/* ============================================================
   EchoDepth Insight — Style System
   Cavefish dark aesthetic: navy bg, violet/indigo accent
   Syne (display) + DM Sans (body) + JetBrains Mono (code)
   Distinct from echodepthfintec (teal) — violet signals research/insight
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }

:root {
  --bg:            #07090F;
  --surface:       #0C0F1A;
  --surface-mid:   #111525;
  --surface-alt:   #16192E;
  --surface-card:  #0E1120;

  --border:        rgba(255,255,255,0.07);
  --border-mid:    rgba(255,255,255,0.11);
  --border-violet: rgba(139,92,246,0.3);

  --ink:           #FFFFFF;
  --ink-2:         rgba(255,255,255,0.68);
  --ink-3:         rgba(255,255,255,0.38);
  --ink-4:         rgba(255,255,255,0.16);

  /* Violet accent — Insight brand */
  --violet:        #8B5CF6;
  --violet-mid:    #7C3AED;
  --violet-bright: #A78BFA;
  --violet-glow:   rgba(139,92,246,0.2);
  --violet-subtle: rgba(139,92,246,0.10);

  /* Supporting */
  --teal:          #06B6D4;
  --teal-subtle:   rgba(6,182,212,0.10);
  --amber:         #F59E0B;
  --amber-subtle:  rgba(245,158,11,0.10);
  --green:         #10B981;
  --green-subtle:  rgba(16,185,129,0.10);
  --red:           #EF4444;
  --red-subtle:    rgba(239,68,68,0.10);

  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     18px;
  --radius-xl:     28px;

  --shadow-sm:     0 1px 3px rgba(0,0,0,0.4);
  --shadow:        0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.6);

  --nav-h:         68px;
  --font-display:  'Syne', system-ui, sans-serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;
}

body { font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--ink-2); background: var(--bg); }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(139,92,246,0.08) 0%, transparent 70%);
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }

.text-gradient {
  background: linear-gradient(135deg, var(--violet-bright) 0%, #C4B5FD 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
p { color: var(--ink-2); max-width: 68ch; }
em { font-style: normal; color: var(--violet-bright); }
strong { font-weight: 600; color: var(--ink); }
code, pre { font-family: var(--font-mono); font-size: 0.88em; }

.container      { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container-wide { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; transition: all 0.2s ease; white-space: nowrap; position: relative; z-index: 1; }
.btn-primary { background: var(--violet); color: #fff; font-weight: 600; box-shadow: 0 0 24px rgba(139,92,246,0.3); }
.btn-primary:hover { background: var(--violet-bright); box-shadow: 0 0 36px rgba(139,92,246,0.5); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--border-mid); }
.btn-secondary:hover { border-color: var(--violet); color: var(--violet-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--violet-bright); padding: 12px 0; }
.btn-ghost:hover { color: #C4B5FD; text-decoration: underline; text-underline-offset: 3px; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.badge-violet  { background: var(--violet-subtle); color: var(--violet-bright); border: 1px solid rgba(139,92,246,0.3); }
.badge-teal    { background: var(--teal-subtle); color: var(--teal); border: 1px solid rgba(6,182,212,0.25); }
.badge-amber   { background: var(--amber-subtle); color: var(--amber); border: 1px solid rgba(245,158,11,0.25); }
.badge-green   { background: var(--green-subtle); color: var(--green); border: 1px solid rgba(16,185,129,0.25); }
.badge-neutral { background: rgba(255,255,255,0.04); color: var(--ink-3); border: 1px solid var(--border); }
.badge-red     { background: var(--red-subtle); color: var(--red); border: 1px solid rgba(239,68,68,0.25); }
/* Aliases */
.badge-blue { background: var(--violet-subtle); color: var(--violet-bright); border: 1px solid rgba(139,92,246,0.3); }

.eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-bright); }
.divider { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt  { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--surface-mid); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(139,92,246,0.4), transparent); opacity: 0; transition: opacity 0.2s; }
.card:hover { border-color: rgba(139,92,246,0.25); box-shadow: 0 0 30px rgba(139,92,246,0.08); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.3rem; background: var(--violet-subtle); border: 1px solid rgba(139,92,246,0.2); }

/* Comparison card (traditional vs EchoDepth) */
.vs-card-bad  { background: rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.15); }
.vs-card-good { background: var(--violet-subtle); border-color: rgba(139,92,246,0.2); }

.code-block { background: #040508; border-radius: var(--radius); padding: 1.5rem 1.75rem; overflow-x: auto; border: 1px solid rgba(255,255,255,0.05); }
.code-block code { color: rgba(255,255,255,0.72); font-size: 0.84rem; line-height: 1.8; }
.code-block .token-key    { color: var(--violet-bright); }
.code-block .token-string { color: #C4B5FD; }
.code-block .token-number { color: var(--amber); }
.code-block .token-comment{ color: rgba(255,255,255,0.22); font-style: italic; }

.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); background: rgba(7,9,15,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); transition: box-shadow 0.2s, background 0.2s; }
.site-nav.scrolled { background: rgba(7,9,15,0.97); box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-main { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.nav-logo-sub { font-size: 0.62rem; color: var(--violet-bright); letter-spacing: 0.09em; text-transform: uppercase; margin-top: 3px; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--violet-bright); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.25s; }
.nav-mobile { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 1.5rem 24px 2rem; z-index: 99; }
.nav-mobile.open { display: flex; flex-direction: column; gap: 1.25rem; }
.nav-mobile a { font-size: 1rem; font-weight: 500; color: var(--ink-2); padding: 6px 0; }
.nav-mobile a:hover { color: var(--violet-bright); }
.nav-mobile .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.footer-brand p { color: var(--ink-3); font-size: 0.875rem; margin-top: 1rem; max-width: 32ch; }
.footer-col h5 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { font-size: 0.875rem; color: var(--ink-3); transition: color 0.15s; }
.footer-col ul a:hover { color: var(--violet-bright); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; font-size: 0.78rem; color: var(--ink-4); flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { color: var(--ink-3); }
.footer-bottom a:hover { color: var(--violet-bright); }

.page-header { padding: calc(var(--nav-h) + 80px) 0 80px; border-bottom: 1px solid var(--border); background: var(--surface); position: relative; overflow: hidden; }
.page-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(139,92,246,0.25), transparent); }
.page-header-inner { max-width: 760px; }

.stat-block { text-align: center; padding: 2rem 1rem; }
.stat-number { font-family: var(--font-display); font-size: clamp(2rem,4vw,3.2rem); font-weight: 700; color: var(--violet-bright); letter-spacing: -0.03em; line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--ink-3); margin-top: 0.4rem; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--ink-2); }
.feature-list li::before { content: ''; width: 18px; height: 18px; min-width: 18px; border-radius: 50%; background: var(--violet-subtle); border: 1px solid rgba(139,92,246,0.2); margin-top: 3px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%238B5CF6' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 10px; }

.cross-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.cross-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--ink-2); }
.cross-list li::before { content: ''; width: 18px; height: 18px; min-width: 18px; border-radius: 50%; background: var(--red-subtle); border: 1px solid rgba(239,68,68,0.2); margin-top: 3px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='%23EF4444' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 9px; }

.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--violet-subtle); border: 1.5px solid rgba(139,92,246,0.35); color: var(--violet-bright); font-family: var(--font-display); font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.callout { background: var(--violet-subtle); border: 1px solid rgba(139,92,246,0.22); border-radius: var(--radius); padding: 2.5rem 3rem; }
.callout-amber { background: var(--amber-subtle); border-color: rgba(245,158,11,0.2); }
.callout blockquote { font-family: var(--font-display); font-size: clamp(1.05rem,2vw,1.35rem); font-weight: 400; color: var(--ink); line-height: 1.55; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { text-align: left; padding: 10px 16px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--border-mid); }
.data-table td { padding: 14px 16px; color: var(--ink-2); border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Emotion timeline visual */
.emotion-bar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; margin-top: 6px; }
.emotion-bar-fill { height: 100%; border-radius: 3px; }

/* Progress indicator (VAD) */
.vad-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.vad-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3); width: 20px; }
.vad-track { flex: 1; height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.vad-fill { height: 100%; border-radius: 3px; }
.vad-value { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-2); width: 32px; text-align: right; }

@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.85)} }
.fade-up   { animation: fadeUp 0.7s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
.reveal { opacity:0; transform:translateY(20px); transition:opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity:1; transform:none; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-label { font-size: 0.85rem; font-weight: 500; color: var(--ink-2); }
.form-input, .form-textarea, .form-select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border-mid); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); background: var(--surface-alt); transition: border-color 0.15s, box-shadow 0.15s; outline: none; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-4); }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,0.12); }
.form-select option { background: var(--surface-alt); color: var(--ink); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.78rem; color: var(--ink-3); }

.logo-strip { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.logo-strip span { font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }

/* Aliases */
.text-violet { color: var(--violet-bright); }
.text-blue   { color: var(--violet-bright); }
.text-teal   { color: var(--teal); }
.text-amber  { color: var(--amber); }
.text-muted  { color: var(--ink-3); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-center { text-align: center; }
.text-sm     { font-size: 0.875rem; }
.mt-xs{margin-top:0.5rem}.mt-sm{margin-top:1rem}.mt-md{margin-top:1.5rem}.mt-lg{margin-top:2rem}.mt-xl{margin-top:3rem}
.mb-xs{margin-bottom:0.5rem}.mb-sm{margin-bottom:1rem}.mb-md{margin-bottom:1.5rem}.mb-lg{margin-bottom:2rem}.mb-xl{margin-bottom:3rem}
.flex-center{display:flex;align-items:center;gap:1rem}
.flex-gap-sm{display:flex;align-items:center;gap:0.5rem;flex-wrap:wrap}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:960px){ .grid-4{grid-template-columns:repeat(2,1fr);} .footer-grid{grid-template-columns:1fr 1fr;} }
@media(max-width:720px){
  .grid-2,.grid-3{grid-template-columns:1fr;}
  .grid-4{grid-template-columns:1fr;}
  .section{padding:64px 0;}
  .nav-links,.nav-cta .btn{display:none;}
  .nav-hamburger{display:flex;}
  .footer-grid{grid-template-columns:1fr;gap:2rem;}
  .callout{padding:1.75rem 1.5rem;}
  .page-header{padding:calc(var(--nav-h) + 48px) 0 48px;}
}
