/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:           #0b0f0e;
  --bg-1:         #111614;
  --bg-2:         #181e1b;
  --bg-card:      #141a17;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --accent:       #2ddc8a;
  --accent-dim:   rgba(45,220,138,0.12);
  --accent-glow:  rgba(45,220,138,0.25);
  --text-primary: #eaf0ec;
  --text-secondary:#8fa899;
  --text-muted:   #4f6459;
  --serif:        'DM Serif Display', Georgia, serif;
  --sans:         'DM Sans', system-ui, sans-serif;
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    18px;
  --radius-xl:    26px;
  --transition:   0.18s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
::selection { background: var(--accent); color: #0b0f0e; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tight { padding: 32px 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.12; letter-spacing: -0.02em; }
.display em { font-style: italic; color: var(--accent); }
h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.18; letter-spacing: -0.015em; }
h3 { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; }
.lead { font-size: 1.125rem; color: var(--text-secondary); font-weight: 300; line-height: 1.7; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.section-label::before {
  content: ''; display: block; width: 18px; height: 1px; background: var(--accent);
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,15,14,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 0.9rem; color: var(--text-primary);
  text-decoration: none;
}
.nav-brand img { width: 28px; height: 28px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 0.85rem; color: var(--text-secondary); padding: 6px 12px;
  border-radius: var(--radius-sm); transition: all var(--transition);
  text-decoration: none;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-secondary);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text-secondary); padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 1.1rem; }
@media(max-width:768px){
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-1); border-bottom: 1px solid var(--border); padding: 12px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition); border: none; text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #0b0f0e;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: #3bf59a; color: #0b0f0e; opacity: 1;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); opacity: 1; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text-primary); opacity: 1; }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }

/* Quick-action pills */
.pill-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text-secondary);
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition);
}
.qa-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); transform: translateY(-1px); }
.qa-pill i { font-size: 0.75rem; }

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-wrap {
  position: relative; margin-top: 28px;
}
.search-input {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 140px 16px 52px;
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 1rem; pointer-events: none;
}
.search-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: var(--accent); color: #0b0f0e;
  border: none; border-radius: var(--radius);
  padding: 9px 20px; font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
}
.search-btn:hover { background: #3bf59a; transform: translateY(calc(-50% - 1px)); }
.search-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 10px; padding-left: 4px; }
.search-hint a { color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.search-hint a:hover { color: var(--accent); border-color: var(--accent); opacity: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 72px;
  position: relative; overflow: hidden;
}
/* Subtle grid background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45,220,138,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,220,138,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 100%);
  pointer-events: none;
}
/* Top glow */
.hero::after {
  content: '';
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(45,220,138,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(45,220,138,0.3);
  background: rgba(45,220,138,0.07);
  border-radius: 999px; padding: 5px 14px;
  font-size: 0.78rem; font-weight: 500; color: var(--accent);
  margin-bottom: 28px;
}
.trust-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--text-muted); }
.trust-item i { color: var(--accent); font-size: 0.85rem; }

/* Coming soon rail */
.coming-rail { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.coming-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border); font-size: 0.78rem; color: var(--text-secondary);
}
.coming-chip.new { border-color: rgba(45,220,138,0.3); color: var(--accent); background: var(--accent-dim); }
.coming-chip a { color: inherit; text-decoration: none; }
.coming-chip a:hover { opacity: 0.8; }

/* ============================================================
   RESULTS SECTION
   ============================================================ */
.results-section { padding: 48px 0; border-top: 1px solid var(--border); }
.results-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
@media(max-width:900px){ .results-grid { grid-template-columns: 1fr; } }
.result-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.sources-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.answer-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
#answerText { white-space: pre-wrap; min-height: 160px; font-size: 0.93rem; line-height: 1.7; color: var(--text-secondary); }
.status-bar { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 48px; }
@media(max-width:768px){ .steps-grid { grid-template-columns: 1fr; } }
.step-card { background: var(--bg-card); padding: 36px 32px; position: relative; }
.step-card:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.step-card:last-child  { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
@media(max-width:768px){ .step-card:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; } .step-card:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); } }
.step-num {
  font-family: var(--serif); font-size: 3rem; line-height: 1;
  color: var(--border-hover); position: absolute; top: 24px; right: 28px;
}
.step-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--accent-dim); border: 1px solid rgba(45,220,138,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.1rem; margin-bottom: 20px;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px; }
@media(max-width:900px){ .benefits-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:580px){ .benefits-grid { grid-template-columns: 1fr; } }
.benefit-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.benefit-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.benefit-icon { font-size: 1.3rem; color: var(--accent); margin-bottom: 14px; }
.benefit-card h3 { margin-bottom: 8px; }
.benefit-card p { color: var(--text-secondary); font-size: 0.88rem; }

/* ============================================================
   COMING SOON SECTIONS (NCC / AS)
   ============================================================ */
.coming-section {
  border-top: 1px solid var(--border);
  padding: 80px 0;
}
.coming-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
@media(max-width:768px){ .coming-grid { grid-template-columns: 1fr; } }
.glow-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  position: relative; overflow: hidden;
  transition: border-color var(--transition);
}
.glow-card:hover { border-color: rgba(45,220,138,0.2); }
.glow-card::after {
  content: '';
  position: absolute; bottom: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(45,220,138,0.08), transparent 70%);
  pointer-events: none;
}
.glow-card h3 { margin-bottom: 10px; }
.glow-card p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 16px; }

/* ============================================================
   BUILT FOR TAS
   ============================================================ */
.built-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
@media(max-width:768px){ .built-card { grid-template-columns: 1fr; gap: 28px; } }
.built-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.built-card ul li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-secondary); font-size: 0.9rem; }
.built-card ul li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex-shrink: 0; }

/* ============================================================
   PRO SECTION
   ============================================================ */
.pro-section {
  position: relative; overflow: hidden;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 0;
}
.pro-section::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(45,220,138,0.06), transparent 65%);
  pointer-events: none;
}
.pro-features { display: flex; flex-direction: column; gap: 10px; margin: 28px 0 32px; }
.pro-feature { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-secondary); }
.pro-feature i { color: var(--accent); width: 16px; }
.waitlist-form { display: flex; gap: 10px; max-width: 440px; }
.waitlist-form input[type="email"] {
  flex: 1; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 16px;
  color: var(--text-primary); font-family: var(--sans); font-size: 0.9rem; outline: none;
  transition: border-color var(--transition);
}
.waitlist-form input:focus { border-color: var(--accent); }
.waitlist-form input::placeholder { color: var(--text-muted); }
.waitlist-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 10px; }

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.testimonial {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg); padding: 28px 32px;
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  margin-top: 48px;
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid rgba(45,220,138,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 0.85rem; font-weight: 500; flex-shrink: 0;
}
.testimonial blockquote { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 8px; }
.testimonial cite { font-size: 0.8rem; color: var(--text-muted); font-style: normal; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { padding: 96px 0; text-align: center; }
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: var(--text-secondary); margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 18px; }

/* ============================================================
   DEMO MODAL
   ============================================================ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-xl); width: 100%; max-width: 900px;
  max-height: 90vh; overflow: hidden; display: flex; flex-direction: column;
  animation: modalIn 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn { from { opacity:0; transform: scale(0.95) translateY(10px); } to { opacity:1; transform: none; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px; border-bottom: 1px solid var(--border);
}
.modal-header h5 { font-size: 1rem; font-weight: 500; }
.modal-close { background: none; border: 1px solid var(--border); color: var(--text-secondary); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; transition: all var(--transition); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { border-color: var(--text-primary); color: var(--text-primary); }
.modal-body { display: grid; grid-template-columns: 280px 1fr; flex: 1; overflow: hidden; }
@media(max-width:680px){ .modal-body { grid-template-columns: 1fr; } }
.modal-sidebar { padding: 24px; border-right: 1px solid var(--border); overflow-y: auto; }
.modal-main { padding: 24px; display: flex; flex-direction: column; overflow-y: auto; }
.modal-footer { padding: 16px 28px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }
.sample-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.sample-list { display: flex; flex-direction: column; gap: 6px; }
.sample-btn {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px;
  color: var(--text-secondary); font-size: 0.82rem; font-family: var(--sans);
  text-align: left; cursor: pointer; transition: all var(--transition); line-height: 1.5;
}
.sample-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.sample-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.modal-form-label { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.modal-textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  color: var(--text-primary); font-family: var(--sans); font-size: 0.9rem; resize: vertical;
  min-height: 90px; outline: none; transition: border-color var(--transition); margin-bottom: 14px;
}
.modal-textarea:focus { border-color: var(--accent); }
.modal-results {
  flex: 1; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  min-height: 220px; white-space: pre-wrap; font-size: 0.88rem;
  color: var(--text-secondary); line-height: 1.7; overflow-y: auto;
}
.tps-toggle { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.toggle-track { position: relative; width: 36px; height: 20px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; transition: background var(--transition), border-color var(--transition); }
.toggle-track:has(input:checked) { background: var(--accent); border-color: var(--accent); }
.toggle-track input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.toggle-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: #fff; border-radius: 50%; transition: transform var(--transition); pointer-events: none; }
.toggle-track:has(input:checked) .toggle-knob { transform: translateX(16px); }
.toggle-label { font-size: 0.82rem; color: var(--text-secondary); }
.api-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 8px; }
.api-note code { color: var(--accent); font-size: 0.68rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--text-secondary); opacity: 1; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .fade-up.visible { opacity: 1; transform: none; }
  .fade-up:nth-child(2) { transition-delay: 0.08s; }
  .fade-up:nth-child(3) { transition-delay: 0.16s; }
  .fade-up:nth-child(4) { transition-delay: 0.24s; }
  .fade-up:nth-child(5) { transition-delay: 0.32s; }
  .fade-up:nth-child(6) { transition-delay: 0.40s; }
}