*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0A0F1E;
  --navy-2: #111827;
  --navy-3: #1a2235;
  --navy-4: #243047;
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --blue-glow: rgba(37,99,235,0.15);
  --teal: #0EA5E9;
  --slate: #94A3B8;
  --slate-light: #CBD5E1;
  --white: #F8FAFC;
  --text: #E2E8F0;
  --border: rgba(148,163,184,0.12);
  --border-accent: rgba(59,130,246,0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}

.nav-gradient-line {
  position: fixed;
  top: 60px;
  left: 0; right: 0;
  height: 1px;
  z-index: 99;
  background: linear-gradient(90deg, transparent, var(--blue), var(--teal), var(--blue), transparent);
  background-size: 200% 100%;
  animation: gradientSlide 4s linear infinite;
  opacity: 0.6;
}

@keyframes gradientSlide {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo span { color: var(--blue-light); }

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

nav ul a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

nav ul a:hover { color: var(--white); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--blue-light) !important; color: var(--white) !important; }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-light);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 61px; left: 0; right: 0;
  background: rgba(10,15,30,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  z-index: 99;
  padding: 1.5rem 1.5rem 2rem;
  flex-direction: column;
  gap: 0;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--slate);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.875rem 0;
  border-bottom: 0.5px solid var(--border);
  transition: color 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-menu a:hover { color: var(--white); }

.mobile-menu .nav-cta {
  margin-top: 1rem;
  border: none;
  border-bottom: none;
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.875rem 1.25rem;
  border-radius: 8px;
  justify-content: center;
  font-weight: 600 !important;
}

.mobile-menu .nav-cta:hover { background: var(--blue-light) !important; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37,99,235,0.12);
  border: 0.5px solid var(--border-accent);
  color: var(--blue-light);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 820px;
  margin-bottom: 1.5rem;
}

h1 em {
  font-style: italic;
  color: var(--blue-light);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  display: inline-block;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }

.btn-ghost {
  color: var(--slate-light);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 0.5px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.btn-ghost:hover { border-color: var(--slate); color: var(--white); }

/* STATS BAR */
.stats-bar {
  display: flex;
  gap: 0;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-2);
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.stat-item {
  flex: 1;
  padding: 1.25rem 1.5rem;
  border-right: 0.5px solid var(--border);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  display: block;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--slate);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 0.2rem;
}

/* SECTIONS */
section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

h2 em { font-style: italic; color: var(--blue-light); }

.section-body {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.75;
  font-weight: 300;
}

/* PROBLEM GRID */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3.5rem;
}

.problem-card {
  background: var(--navy-2);
  padding: 2rem;
  transition: background 0.2s;
}

.problem-card:hover { background: var(--navy-3); }

.problem-icon {
  width: 40px; height: 40px;
  background: var(--blue-glow);
  border: 0.5px solid var(--border-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.problem-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.problem-desc {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.6;
}

/* TWO-COL LAYOUT */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* FEATURE PANEL */
.feature-panel {
  background: var(--navy-2);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.panel-header {
  background: var(--navy-3);
  padding: 1rem 1.5rem;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.panel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.panel-dot.active { background: var(--teal); box-shadow: 0 0 6px var(--teal); }

.panel-title {
  font-size: 0.8rem;
  color: var(--slate);
  letter-spacing: 0.05em;
}

.panel-body { padding: 1.5rem; }

.call-simulation {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.call-msg {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.call-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.call-msg.resident {
  background: var(--navy-4);
  border: 0.5px solid var(--border);
  color: var(--text);
  align-self: flex-start;
}

.call-msg.ai {
  background: rgba(37,99,235,0.15);
  border: 0.5px solid var(--border-accent);
  color: var(--slate-light);
  align-self: flex-end;
}

.msg-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.msg-label.res { color: var(--slate); }
.msg-label.ai-label { color: var(--blue-light); text-align: right; }

.sms-preview {
  margin-top: 1rem;
  background: var(--navy-3);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.sms-preview.visible {
  opacity: 1;
  transform: translateY(0);
}

.sms-header {
  font-size: 0.7rem;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sms-dot { width: 5px; height: 5px; background: var(--teal); border-radius: 50%; }

.sms-body {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.6;
}

/* FEATURE LIST */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-check {
  width: 22px; height: 22px;
  background: rgba(14,165,233,0.1);
  border: 0.5px solid rgba(14,165,233,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.65rem;
  color: var(--teal);
}

.feature-text strong {
  display: block;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.feature-text span {
  font-size: 0.85rem;
  color: var(--slate);
}

/* USE CASES */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.use-case-card {
  background: var(--navy-2);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}

.use-case-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

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

.uc-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.uc-desc {
  font-size: 0.8rem;
  color: var(--slate);
  line-height: 1.5;
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 0;
}

/* SOCIAL PROOF */
.proof-section {
  background: var(--navy-2);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 5rem 2rem;
}

.proof-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.proof-card {
  background: var(--navy);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}

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

.proof-quote {
  font-size: 0.9rem;
  color: var(--slate-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.proof-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
}

.proof-org {
  font-size: 0.75rem;
  color: var(--slate);
  margin-top: 0.15rem;
}

.result-badge {
  display: inline-block;
  background: rgba(14,165,233,0.1);
  border: 0.5px solid rgba(14,165,233,0.25);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

/* HOW IT WORKS */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 3.5rem;
  position: relative;
}

.step {
  padding: 0 2rem 2rem 0;
  position: relative;
}

.step-num {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.6;
}

/* CTA SECTION */
.cta-section {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-section h2 { margin-bottom: 1rem; }

.cta-sub {
  color: var(--slate);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  font-weight: 300;
}

.cta-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-input {
  flex: 1;
  min-width: 220px;
  background: var(--navy-2);
  border: 0.5px solid var(--border);
  color: var(--white);
  padding: 0.875rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  min-height: 44px;
}

.cta-input::placeholder { color: var(--slate); }
.cta-input:focus { border-color: var(--blue); }
.cta-input.error { border-color: #EF4444; }

.form-error {
  font-size: 0.8rem;
  color: #EF4444;
  margin-top: 0.5rem;
  display: none;
}

.form-error.visible { display: block; }

.thank-you {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  background: rgba(14,165,233,0.08);
  border: 0.5px solid rgba(14,165,233,0.25);
  border-radius: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.thank-you.visible { display: flex; }

.thank-you-icon { font-size: 2rem; }

.thank-you h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
}

.thank-you p {
  font-size: 0.875rem;
  color: var(--slate);
}

/* FOOTER */
footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.footer-logo span { color: var(--blue-light); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--slate);
}

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

.footer-links a {
  font-size: 0.8rem;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

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

/* SCROLL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { display: none; }
  .hamburger { display: flex; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero { padding-top: 7rem; }

  h1 { font-size: clamp(2.2rem, 8vw, 3rem); }

  .hero-sub { font-size: 1rem; }

  .stats-bar {
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 1 1 calc(50% - 0.5px);
    border-right: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
  }

  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-bottom: none; }
  .stat-item:nth-child(4) { border-right: none; border-bottom: none; }

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

  .use-case-grid {
    grid-template-columns: 1fr;
  }

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

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

  .step { padding: 0 0 2rem 0; }

  footer {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links { flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 480px) {
  .stats-bar {
    flex-direction: column;
  }

  .stat-item {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }

  .stat-item:last-child { border-bottom: none; }

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

  .cta-input { min-width: 100%; }

  .btn-primary { width: 100%; justify-content: center; }

  section { padding: 4rem 1.25rem; }

  .hero { padding: 6rem 1.25rem 3rem; }

  .proof-section { padding: 3.5rem 1.25rem; }
}
