/* =============================================
   MEDICODE AI — Marketing Site Styles
   ============================================= */

/* Design Tokens */
:root {
  --primary:       #1e3a5f;
  --primary-light: #2a4f80;
  --accent:        #00b5ad;
  --accent-dark:   #009990;
  --bg:            #f5f7fa;
  --bg-card:       #ffffff;
  --bg-dark:       #0f2240;
  --text:          #1a2535;
  --text-muted:    #6b7a8d;
  --text-light:    #ffffff;
  --border:        #e2e8f0;
  --success:       #22c55e;
  --radius:        0.75rem;
  --radius-sm:     0.5rem;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
  --font:          'IBM Plex Sans', sans-serif;
  --max-w:         1140px;
  --transition:    0.2s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-light);
  letter-spacing: -0.01em;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-icon svg {
  width: 18px;
  height: 18px;
  color: white;
}

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

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover { color: white; }

/* .nav-cta styles are defined in the MODAL section below */

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

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: #07101f;
  padding: 7rem 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Dot grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Animated orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 640px; height: 640px;
  top: -15%; right: -8%;
  background: radial-gradient(circle, rgba(0,181,173,0.16) 0%, transparent 65%);
  filter: blur(60px);
  animation: orbDrift 20s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  bottom: -10%; left: -5%;
  background: radial-gradient(circle, rgba(42,79,128,0.7) 0%, transparent 70%);
  filter: blur(70px);
  animation: orbDrift 26s ease-in-out infinite reverse;
  animation-delay: -10s;
}

.hero-orb-3 {
  width: 280px; height: 280px;
  top: 35%; left: 38%;
  background: radial-gradient(circle, rgba(0,181,173,0.07) 0%, transparent 70%);
  filter: blur(50px);
  animation: orbDrift 32s ease-in-out infinite;
  animation-delay: -16s;
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(25px, -18px) scale(1.04); }
  66%       { transform: translate(-18px, 28px) scale(0.97); }
}

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

/* Two-column layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,181,173,0.1);
  border: 1px solid rgba(0,181,173,0.22);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

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

.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  font-weight: 700;
  color: white;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero h1 .accent {
  background: linear-gradient(120deg, #00b5ad 0%, #4de8df 50%, #00cfea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 500px;
}

/* Hero Waitlist Form */
.hero-form-wrapper {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 1.625rem;
  margin-bottom: 1.5rem;
}

.waitlist-counter {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.waitlist-counter::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.hero-form input {
  background: #132340;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.875rem;
  padding: 0.7rem 1rem;
  width: 100%;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}

.hero-form input::placeholder { color: rgba(255,255,255,0.3); }

.hero-form input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0,181,173,0.4);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  color: var(--success);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 0;
}

.form-success svg { flex-shrink: 0; width: 22px; height: 22px; }

/* Hero action buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-actions .btn-primary {
  width: auto;
  padding: 0.875rem 1.75rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font);
  font-size: 0.925rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.5rem;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.35);
  background: #1e3250;
}

/* Trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.25rem;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.38);
  font-weight: 500;
}

.trust-pill::before {
  content: '';
  width: 4px; height: 4px;
  background: rgba(0,181,173,0.45);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Hero visual (right column) ── */
.hero-visual {
  position: relative;
  /* offset = badge height (~1.7rem) + badge margin-bottom (1.5rem) = ~3.25rem
     so the mock top aligns with the H1 */
  padding-top: 3.25rem;
}

.hero-visual-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 50% 50%, rgba(0,181,173,0.09), transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(20px);
}

.hero-mock {
  background: rgba(13, 24, 44, 0.85);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 1px 0 rgba(0,181,173,0.35) inset;
  backdrop-filter: blur(12px);
}

/* Thin teal top line */
.hero-mock::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--accent) 40%, rgba(0,207,234,0.6) 60%, transparent 95%);
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
}

.mock-dots { display: flex; gap: 6px; }
.mock-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mock-dots span:nth-child(1) { background: rgba(255,95,86,0.55); }
.mock-dots span:nth-child(2) { background: rgba(255,189,68,0.55); }
.mock-dots span:nth-child(3) { background: rgba(40,205,65,0.55); }

.mock-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #0d3a38;
  border: 1px solid rgba(0,181,173,0.3);
  border-radius: 5px;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  margin-left: auto;
}

.mock-tab svg { width: 11px; height: 11px; color: var(--accent); }

.mock-body { padding: 1.375rem 1.25rem 0.875rem; }

.mock-section-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 0.75rem;
}

.mock-note-text {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  font-style: italic;
}

.mock-hl {
  background: #0d3a38;
  color: #7ff0ec;
  border-radius: 3px;
  padding: 1px 4px;
  font-style: normal;
  font-weight: 600;
  font-size: 0.8rem;
}

.mock-sep {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 1.125rem 0;
}

.mock-codes { display: flex; flex-direction: column; gap: 0.5rem; }

.mock-code-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6rem 0.875rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.5rem;
  opacity: 0;
  animation: codeAppear 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}

.mock-code-row:nth-child(1) { animation-delay: 1.0s; }
.mock-code-row:nth-child(2) { animation-delay: 1.55s; }
.mock-code-row:nth-child(3) { animation-delay: 2.1s; }

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

.mock-check {
  width: 20px; height: 20px;
  background: rgba(0,181,173,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.mock-check svg { width: 10px; height: 10px; }

.mock-code-tag {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  color: var(--accent);
  background: rgba(0,181,173,0.1);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.mock-code-desc {
  font-size: 0.775rem;
  color: rgba(255,255,255,0.6);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-code-score {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(0,181,173,0.7);
  white-space: nowrap;
}

.mock-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}

.mock-status-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.mock-action {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0,181,173,0.08);
  border: 1px solid rgba(0,181,173,0.18);
  border-radius: 4px;
  padding: 0.28rem 0.7rem;
  cursor: default;
}

/* =============================================
   SECTION SHARED
   ============================================= */
.section {
  padding: 5rem 0;
}

.section-light { background: var(--bg); }
.section-white { background: var(--bg-card); }
.section-dark { background: var(--primary); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

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

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.875rem;
  line-height: 1.2;
}

.section-dark .section-header h2 { color: white; }

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-dark .section-header p { color: rgba(255,255,255,0.65); }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   FEATURES
   ============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(0,181,173,0.25);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,181,173,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}

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

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 1rem);
  right: calc(16.67% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(0,181,173,0.2));
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(0,181,173,0.12);
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 240px;
  margin: 0 auto;
}

/* =============================================
   FAQ
   ============================================= */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: rgba(0,181,173,0.3);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--accent); }

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.contact-info p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

.contact-detail svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,181,173,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.contact-form .btn-primary {
  margin-top: 0.5rem;
}

.contact-form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-sm);
  color: #166534;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.contact-form-success svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-dark);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1rem;
  color: white;
}

.footer-logo-icon {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon svg { width: 16px; height: 16px; color: white; }

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

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

.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 1.5rem;
}

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

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

/* =============================================
   FLOATING CTA
   ============================================= */
.floating-cta {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 99;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: white;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.375rem;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0,181,173,0.45);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.floating-cta a:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 24px rgba(0,181,173,0.55);
  transform: translateY(-2px);
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 12, 28, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #0d1c35;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 1rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,181,173,0.12) inset;
  overflow: hidden;
  margin: 1.5rem;
}

/* Teal top accent line */
.modal::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--accent) 40%, rgba(0,207,234,0.6) 60%, transparent 95%);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem 1.625rem 0;
}

.modal-header-text h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.modal-header-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.modal-close {
  background: #1e3250;
  border: none;
  border-radius: 6px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #ffffff;
  flex-shrink: 0;
  margin-left: 1rem;
  margin-top: 2px;
  transition: background var(--transition);
}

.modal-close:hover {
  background: #2a4570;
}

.modal-close svg { width: 14px; height: 14px; }

.modal-body {
  padding: 1.375rem 1.625rem 1.625rem;
}

.modal-counter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.125rem;
}

.modal-counter::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-form input {
  background: #0e1f38;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.modal-form input::placeholder { color: rgba(255,255,255,0.28); }

.modal-form input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.09);
}

.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0 0.5rem;
  gap: 0.75rem;
}

.modal-success-icon {
  width: 52px; height: 52px;
  background: rgba(0,181,173,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}

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

.modal-success h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
}

.modal-success p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* Nav Join Waitlist — now a true button */
.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(0,181,173,0.35) !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps::before { display: none; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-dark);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.open .nav-cta {
    text-align: center;
    padding: 0.75rem;
  }

  .hero { padding: 7rem 0 4rem; min-height: auto; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-form-wrapper { max-width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }

  .floating-cta { bottom: 1rem; right: 1rem; }
}
