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

:root {
  --primary: #1B5E9E;
  --primary-dark: #154B7E;
  --accent: #E8850C;
  --accent-dark: #C97108;
  --dark: #152D4A;
  --text: #1A1D21;
  --text-secondary: #566478;
  --bg: #F5F6F8;
  --white: #FFFFFF;
  --border: #E8EAF0;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1), 0 12px 32px rgba(0,0,0,0.06);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-light {
  background: var(--bg);
}

.section-white {
  background: var(--white);
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-accent {
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a5c 100%);
  color: var(--white);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.section-accent .section-subtitle {
  color: rgba(255,255,255,0.8);
}

.section-transition {
  text-align: center;
  margin-top: 48px;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(232,133,12,0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(232,133,12,0.35);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.nav.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wm-field {
  color: var(--dark);
}

.wm-lane {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.925rem;
  transition: color 0.15s;
}

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

.nav-login {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.925rem;
  margin-left: 8px;
  transition: color 0.15s;
}

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

.nav-cta {
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ===== HERO ===== */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(170deg, #f8fafd 0%, var(--white) 60%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.text-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-trust {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ===== PHONE MOCKUP ===== */
.phone {
  width: 320px;
  background: var(--white);
  border-radius: 36px;
  border: 3px solid #1a1d21;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 120px;
  height: 24px;
  background: #1a1d21;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}

.phone-header {
  padding: 12px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.phone-header-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

.phone-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow: hidden;
}

.sms {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  position: relative;
}

.sms p {
  margin: 0;
}

.sms-in {
  background: #E8EFF7;
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.sms-time {
  display: block;
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.sms-link {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== PROBLEM CARDS ===== */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(27,94,158,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== JOURNEY TIMELINE ===== */
.journey {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 8px;
}

.journey-phase {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.journey-phase-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 20px;
}

.journey-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.journey-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

.step-content {
  flex: 1;
}

.step-trigger {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.step-bubble {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  border-left: 3px solid var(--accent);
}

.step-bubble em {
  color: var(--accent);
  font-style: normal;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
}

.journey-bottom {
  text-align: center;
  margin-top: 48px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FEATURE CARDS (3 demo moments) ===== */
.features-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(232,133,12,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.feature-card ul {
  padding-left: 0;
}

.feature-card li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 4px 0 4px 20px;
  position: relative;
}

.feature-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ===== FEATURE GRID ===== */
.grid-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-item {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.grid-item:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
}

.grid-item svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  margin-bottom: 14px;
}

.grid-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.grid-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ===== COMPARISON TABLE ===== */
.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.comparison-table {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.925rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.comparison-table th.col-fl {
  color: var(--primary);
}

.comparison-table td.col-fl {
  font-weight: 600;
  color: var(--primary);
}

.check {
  font-weight: 700;
  margin-right: 6px;
}

.check.yes {
  color: #2E7D5B;
}

.check.no {
  color: var(--text-secondary);
  opacity: 0.5;
}

.comparison-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 20px;
}

/* ===== WAITLIST FORM ===== */
.waitlist-form {
  max-width: 640px;
  margin: 0 auto;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.9);
}

.req {
  color: var(--accent);
}

.optional {
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s;
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.35);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}

.form-group select option {
  color: var(--text);
  background: var(--white);
}

.form-group input.invalid,
.form-group select.invalid {
  border-color: #C93B3B;
}

.form-message {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 24px;
}

.form-message.success {
  color: #5CD67E;
}

.form-message.error {
  color: #FF8A8A;
}

/* ===== FOOTER ===== */
.footer {
  background: #0E1F33;
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .wm-field {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color 0.15s;
}

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

.footer-contact a {
  color: var(--accent);
  font-size: 0.9rem;
}

.footer-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

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

  .hero {
    padding: 100px 0 56px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
  }

  .phone {
    width: 280px;
  }

  .phone-messages {
    max-height: 360px;
  }

  .cards-3,
  .features-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .journey {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .grid-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  /* Mobile nav */
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .nav.open .nav-cta {
    display: inline-flex;
    position: absolute;
    top: 76px;
    right: 24px;
  }

  .nav.open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .phone {
    width: 260px;
  }

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

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}
