/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #000000;
  --color-text: #ffffff;
  --color-text-dim: #999999;
  --color-text-mid: #cccccc;
  --color-accent: #6276c5;
  --color-accent-light: #7b8fd4;
  --color-card-bg: #0a0a0a;
  --color-border: #1a1a1a;
  --color-border-hover: #2a2a2a;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-logo {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links .nav-login {
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-links .nav-login:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 4rem 5rem;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  max-width: 640px;
}

.hero-text {
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards;
  animation-delay: 7s;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
}

.title-accent {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--color-accent-light);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-dim);
  max-width: 560px;
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero-trust {
  margin-bottom: 0;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  background: rgba(98, 118, 197, 0.1);
  border: 1px solid rgba(98, 118, 197, 0.3);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--color-text-mid);
}

.trust-icon {
  font-size: 1rem;
}

.hero-right {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-left: 2rem;
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards;
  animation-delay: 7.3s;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
  font-family: var(--font-main);
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(98, 118, 197, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-mid);
  border: 1px solid var(--color-border-hover);
}

.btn-secondary:hover {
  border-color: var(--color-text-dim);
  color: var(--color-text);
  transform: translateY(-2px);
}

.btn-primary.large {
  padding: 1.1rem 3rem;
  font-size: 1rem;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 3s;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(15px); opacity: 0.3; }
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  margin-bottom: var(--spacing-md);
}

.section-header.centered {
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-title.large-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-description {
  font-size: 1rem;
  color: var(--color-text-dim);
  max-width: 650px;
  line-height: 1.6;
}

.section-callout {
  font-size: 1.15rem;
  color: var(--color-accent-light);
  font-weight: 600;
  font-style: italic;
  margin-top: 1rem;
  max-width: 650px;
}

.section-header.centered .section-callout {
  margin-left: auto;
  margin-right: auto;
}

.section-header.centered .section-description {
  margin: 0 auto;
}

/* ===== PROBLEM SECTION ===== */
.problem-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, #050505 100%);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.problem-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.problem-card:hover::before {
  transform: scaleX(1);
}

.problem-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
}

.problem-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.problem-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.problem-card p {
  color: var(--color-text-dim);
  line-height: 1.6;
  font-size: 0.88rem;
}

/* ===== SOLUTION STATEMENT ===== */
.solution-statement-section {
  background: #050505;
  padding: var(--spacing-md) 0 var(--spacing-md);
}

/* ===== HOW IT WORKS - WORKFLOW STEPS ===== */
.how-section {
  background: #050505;
}

.workflow-step {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.workflow-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.workflow-kanban-overview {
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.kanban-overview-text {
  font-size: 1.2rem;
  color: var(--color-text-dim);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.workflow-step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.workflow-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.workflow-step-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.workflow-step-desc {
  color: var(--color-text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 700px;
  padding-left: 3.25rem;
}

.workflow-screenshot {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.workflow-screenshot--narrow {
  max-width: 500px;
}

.workflow-screenshot-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.workflow-screenshot--wide {
  /* inbox messages - takes more space */
}

.workflow-screenshot--small {
  max-width: 250px;
}

.workflow-img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 968px) {
  .workflow-screenshot-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .workflow-step-desc {
    padding-left: 0;
  }

  .workflow-step {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
}

/* ===== TRUST SECTION ===== */
.trust-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.trust-card {
  padding: 2rem 1.75rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.trust-card:hover {
  border-color: var(--color-border-hover);
}

.trust-card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.trust-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.trust-card p {
  color: var(--color-text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== PROOF SECTION ===== */
.proof-section {
  background: #050505;
}

.proof-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.proof-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.proof-content > p {
  font-size: 1.05rem;
  color: var(--color-text-dim);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: rgba(98, 118, 197, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.proof-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent-light);
}

.proof-label {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  text-align: center;
}

/* ===== CTA / DEMO FORM ===== */
.cta-section {
  background: linear-gradient(180deg, #050505 0%, var(--color-bg) 100%);
  padding: var(--spacing-lg) 0;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding: 3rem;
  border-radius: 12px;
  background: var(--color-bg);
  isolation: isolate;
}

.cta-content::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 14px;
  background: conic-gradient(
    from 0deg,
    #6276c5,
    #3a4a8a,
    #7a8ab5,
    #4a5a7a,
    #6276c5,
    #3a4a8a,
    #6276c5
  );
  z-index: -1;
  animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Make the rotating element larger so rotation doesn't show corners */
.cta-content::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--color-bg);
  border-radius: 9px;
  z-index: -1;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-content > p {
  font-size: 1.05rem;
  color: var(--color-text-dim);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.demo-form input,
.demo-form select {
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 0.95rem;
  font-family: var(--font-main);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  transition: border-color 0.3s ease;
}

.demo-form input::placeholder {
  color: var(--color-text-dim);
}

.demo-form input:focus,
.demo-form select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.demo-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.demo-form select option {
  background: #111;
  color: var(--color-text);
}

.demo-form .btn-primary.large {
  width: 100%;
  margin-top: 0.5rem;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-top: 0.75rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-logo {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text-dim);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  opacity: 0.6;
}

.footer-contact {
  display: flex;
  gap: 2rem;
}

.footer-contact a {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .feature-showcase {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-showcase.reverse {
    direction: ltr;
  }

  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .hero-section {
    flex-direction: column;
    padding: 6rem 2rem 4rem;
    justify-content: center;
  }

  .hero-right {
    align-items: center;
    padding: 2rem 0 0;
  }

  .hero-cta {
    flex-direction: row;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .nav-links .nav-login {
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
  }

  /* Hero fills full viewport height, animation behind */
  .hero-section {
    padding: 5rem 1rem 3rem;
    min-height: 100vh;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
  }

  #heroCanvas {
    height: 100vh;
  }

  /* Text in front of animation — larger, brighter, readable */
  .hero-content {
    position: relative;
    z-index: 20;
    max-width: 100%;
    width: 100%;
    padding: 0;
  }

  .hero-title {
    font-size: 12vw;
    width: 100%;
    text-align: center;
    white-space: nowrap;
  }

  .hero-tagline {
    display: none;
  }

  .hero-subtitle {
    display: none;
  }

  .hero-trust {
    margin-top: 4rem;
  }

  .hero-right {
    align-items: stretch;
    padding: 0;
    margin-top: -0.5rem;
    z-index: 20;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .trust-badge {
    font-size: 1.1rem;
    text-shadow: 0 0 20px rgba(0,0,0,1);
    padding: 0.8rem 1.25rem;
  }

  .scroll-indicator {
    display: none;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-description {
    font-size: 0.95rem;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .problem-card {
    padding: 1.5rem 1.25rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .proof-stats {
    grid-template-columns: 1fr;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }
}

/* Spacer so the demo section can scroll fully to top of viewport */
.bottom-spacer {
  height: 25vh;
}

/* Mobile/Desktop visibility helpers */
.mobile-only {
  display: none;
}

.mobile-bullets {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  text-align: left;
}

.mobile-bullets li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-dim);
  font-size: 1rem;
}

.mobile-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

@media (max-width: 480px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}

/* ===== NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-links a {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: var(--font-main);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links .nav-cta {
  color: var(--color-accent-light);
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ===== FOOTER ===== */
footer {
  padding: var(--spacing-md) var(--spacing-md);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

footer p {
  color: var(--color-text-dim);
  font-family: var(--font-main);
  font-size: 0.85rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: var(--spacing-xl) 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-card-bg);
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--color-border-hover);
}

.faq-question {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  padding: var(--spacing-xs) 0;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  margin-right: var(--spacing-sm);
  font-weight: 300;
  font-size: 1.2rem;
  color: var(--color-accent-light);
}

.faq-item[open] .faq-question::before {
  content: "−";
}

.faq-answer {
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--color-text-mid);
  line-height: 1.6;
  padding: var(--spacing-sm) 0;
  padding-left: 1.8rem;
}
