/* ─── brand palette ─────────────────────────────────────────────────────── */
:root{
  /* brand SVG tokens */
  --sekura-primary:  #2D4A3E;
  --sekura-accent:   #E8847C;
  --sekura-surface:  #F5EFE4;

  --forest:  #2D4A3E;
  --forest-2:#1E3429;
  --coral:   #E8847C;
  --orange:  #D4915D;
  --cream:   #F5F2EB;
  --cream-2: #EEE9DB;
  --ink:     #15251E;
  --muted:   #6B7A72;
  --line:    #D9D2BF;

  --term-bg:     #0B0F0E;
  --term-bg-2:   #0E1413;
  --term-chrome: #141A18;
  --term-gray:   #8A948F;
  --term-dim:    #5C6560;
  --term-phase:  #7FB394;
  --term-agent:  #D4915D;
  --term-finding:#E8847C;
  --term-exploit:#FF5F5F;
  --term-fg:     #D7DDD9;

  --fs-h1: clamp(44px, 6.2vw, 84px);
}

*{ box-sizing:border-box; }
html,body,#root{ height:100%; }
html,body{ margin:0; background:var(--cream); color:var(--ink); }
body{
  font-family: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }

/* ─── hero shell ────────────────────────────────────────────────────────── */
.hero{
  position: relative;
  min-height: 100vh;
  padding: 96px 40px 56px; /* 64px fixed nav + 32px gap */
  background:
    radial-gradient(1200px 480px at 88% -10%, rgba(212,145,93,0.10), transparent 60%),
    radial-gradient(900px 380px at -10% 18%, rgba(45,74,62,0.08), transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero-noise{
  position:absolute; inset:0; pointer-events:none; opacity:0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.08  0 0 0 0 0.06  0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ─── nav ───────────────────────────────────────────────────────────────── */
.hero-nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px;
  display:flex; justify-content:space-between; align-items:center;
  padding: 0 40px;
  background: rgba(245, 242, 235, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 210, 191, 0.5);
}
.nav-brand{
  display:flex; align-items:center; gap:6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 18px; letter-spacing: -0.01em;
}
.brand-mark{ color: var(--forest); font-size: 16px; transform: translateY(-1px); }
.brand-word{ font-weight: 600; }
.brand-slash{ color: var(--line); }
.brand-suffix{ color: var(--muted); font-size: 14px; }
.nav-links{
  display:flex; gap:28px; align-items:center;
  font-size: 14px; color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.nav-links a:hover{ color: var(--ink); }
.nav-login{
  border: 1px solid var(--ink); padding: 8px 14px; border-radius: 2px; color: var(--ink)!important;
  white-space: nowrap;
}
.nav-login:hover{ background: var(--ink); color: var(--cream)!important; }
.nav-scan{
  color: var(--forest) !important; font-weight: 500;
  border: 1px solid var(--forest); padding: 6px 14px; border-radius: 2px;
  white-space: nowrap;
  transition: background 140ms, color 140ms;
}
.nav-scan:hover{ background: var(--forest); color: var(--cream) !important; }

/* ─── inner ─────────────────────────────────────────────────────────────── */
.hero-inner{ position:relative; z-index:1; max-width: 1440px; margin: 0 auto; }

.hero-copy-top{ max-width: 1100px; margin-bottom: 28px; }
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--muted); text-transform: lowercase;
  margin-bottom: 22px;
}
.eyebrow-dot{
  width:8px; height:8px; border-radius:50%; background: var(--coral);
  box-shadow: 0 0 0 4px rgba(232,132,124,0.22);
  animation: eyebrowPulse 1.8s ease-in-out infinite;
}
.eyebrow-em{ color: var(--ink); font-weight: 500; }
@keyframes eyebrowPulse{
  0%,100%{ box-shadow: 0 0 0 4px rgba(232,132,124,0.22); }
  50%    { box-shadow: 0 0 0 8px rgba(232,132,124,0.05); }
}

.hero-h1{
  font-family: 'Fraunces', 'Inter Tight', ui-sans-serif, system-ui, serif;
  font-weight: 360;
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
html[data-heading="sans-tight"] .hero-h1{
  font-family: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  font-weight: 500; letter-spacing: -0.045em;
  font-variation-settings: normal;
}
html[data-heading="sans-mono"] .hero-h1{
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500; letter-spacing: -0.02em;
  font-variation-settings: normal;
  font-size: clamp(34px, 4.6vw, 60px);
}

/* ─── split ─────────────────────────────────────────────────────────────── */
.hero-split{
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 20px;
  margin: 24px 0 28px;
  align-items: stretch;
}
.pane{ border-radius: 4px; overflow: hidden; min-height: 560px; }

/* ─── terminal ──────────────────────────────────────────────────────────── */
.pane--terminal{
  background: var(--term-bg);
  border: 1px solid #1B2321;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 40px 80px -40px rgba(11,15,14,0.45),
    0 8px 24px -12px rgba(11,15,14,0.35);
}
.term-root{
  display:flex; flex-direction:column; height:100%;
  color: var(--term-fg);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.58;
}
.term-chrome{
  display:flex; align-items:center; justify-content:space-between; gap: 18px;
  padding: 11px 16px; background: var(--term-chrome);
  border-bottom: 1px solid #1F2826;
  font-size: 12px;
}
.term-chrome-left{ display:flex; align-items:center; gap: 10px; min-width:0; }
.rec-dot{
  width:8px; height:8px; border-radius:50%; background:#EF4444;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.6);
  animation: recPulse 1.6s ease-in-out infinite;
}
@keyframes recPulse{
  0%,100%{ box-shadow: 0 0 0 0 rgba(239,68,68,0.55); }
  50%    { box-shadow: 0 0 0 6px rgba(239,68,68,0);   }
}
.rec-label{ color:#EF4444; font-weight:600; letter-spacing: 0.12em; font-size: 10.5px; }
.term-elapsed{ color: var(--term-gray); font-variant-numeric: tabular-nums; margin-left: 6px; }
.term-chrome-cmd{
  color: var(--term-fg); opacity: 0.92; white-space: nowrap; overflow:hidden; text-overflow: ellipsis;
  flex: 1; text-align: center;
}
.term-prompt{ color: var(--term-phase); }
.term-chrome-right{ display:flex; gap:6px; }
.term-dot{ width:10px; height:10px; border-radius:50%; opacity:0.85; }
.term-dot--amber{  background: var(--orange); }
.term-dot--coral{  background: var(--coral); }
.term-dot--forest{ background: var(--term-phase); }

.term-body{
  flex: 1 1 auto;
  padding: 14px 18px 18px;
  overflow: hidden;
  background:
    linear-gradient(var(--term-bg), var(--term-bg-2));
  position: relative;
}
.term-body::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px);
}
.term-line{ white-space: pre-wrap; word-break: break-word; }
.term-level{
  display:inline-block; width:74px; color: var(--term-dim);
  font-size: 10.5px; letter-spacing: 0.08em;
  padding-right: 8px; text-align: left;
}
.term-text{ color: var(--term-fg); }
.term-info    .term-level{ color: var(--term-dim); }
.term-info    .term-text { color: #B5BCB8; }
.term-phase   .term-level{ color: var(--term-phase); }
.term-phase   .term-text { color: #B7D4C2; }
.term-agent   .term-level{ color: var(--term-agent); }
.term-agent   .term-text { color: #E2B48A; }
.term-finding .term-level{ color: var(--term-finding); }
.term-finding .term-text { color: #F1B4AE; }
.term-exploit .term-level{ color: var(--term-exploit); letter-spacing: 0.1em; }
.term-exploit .term-text { color: #FF9A9A; text-shadow: 0 0 10px rgba(239,68,68,0.45); }

.term-caret{
  display:inline-block; width: 7px; height: 14px;
  background: var(--term-fg); vertical-align: -2px; margin-left: 2px;
  animation: caret 1.05s steps(2) infinite;
}
@keyframes caret{ 50%{ opacity: 0; } }

.term-footer{
  padding: 8px 16px; border-top: 1px solid #1F2826;
  color: var(--term-dim); font-size: 11px;
  display:flex; gap:10px; align-items:center;
  background: var(--term-chrome);
}
.term-muted{ color: var(--term-dim); }
.term-sep{ color: #2A3431; }

/* ─── graph ─────────────────────────────────────────────────────────────── */
.pane--graph{
  background: var(--cream-2);
  border: 1px solid var(--line);
  display:flex; flex-direction:column;
}
.graph-root{ display:flex; flex-direction:column; height: 100%; }
.graph-header{
  padding: 14px 18px 10px;
  display:flex; justify-content:space-between; align-items:baseline;
  border-bottom: 1px solid var(--line);
}
.graph-title{
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.06em; color: var(--muted);
  text-transform: lowercase;
}
.graph-meta{ display:flex; gap: 18px; }
.graph-counter{
  display:flex; flex-direction:column; align-items:flex-end;
  line-height: 1;
}
.graph-counter-num{
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: 22px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.graph-counter--exploited .graph-counter-num{ color: var(--coral); }
.graph-counter--chain .graph-counter-num{ color: var(--forest); }
.graph-counter-lbl{
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; color: var(--muted); letter-spacing: 0.06em;
  margin-top: 3px; text-transform: lowercase;
}
.graph-svg{ width:100%; flex: 1 1 auto; display:block; }
.graph-legend{
  display:flex; gap:18px; align-items:center;
  padding: 10px 18px; border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--muted);
}
.legend-dot{
  width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; display:inline-block;
  border: 1px solid var(--line);
}
.legend-dot--idle{      background: #E7E1D4; }
.legend-dot--scanning{  background: var(--orange); border-color: var(--orange); }
.legend-dot--finding{   background: var(--coral);  border-color: var(--coral); }
.legend-dot--exploited{ background: #EF4444; border-color: #EF4444; }

/* ─── bottom copy + cta ─────────────────────────────────────────────────── */
.hero-copy-bottom{
  display:flex; justify-content:space-between; align-items:end; gap: 32px;
  margin-top: 8px;
}
.hero-sub{
  max-width: 56ch; margin: 0;
  font-size: 17px; line-height: 1.55; color: #3A443E;
}
.hero-cta-row{ display:flex; gap:12px; align-items:center; }
.cta{
  display:inline-flex; align-items:center; gap: 10px;
  padding: 16px 22px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13.5px; letter-spacing: 0.02em;
  border-radius: 2px;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}
.cta--primary{ background: var(--ink); color: var(--cream); }
.cta--primary:hover{ background: var(--forest); }
.cta--primary .cta-arrow{ transition: transform 160ms ease; }
.cta--primary:hover .cta-arrow{ transform: translateX(4px); }
.cta--ghost{
  color: var(--ink);
  border: 1px solid var(--ink);
  background: transparent;
}
.cta--ghost:hover{ background: var(--ink); color: var(--cream); }

/* ─── section entry signals ─────────────────────────────────────────────── */
.section-intro{ padding: 0 40px 56px; max-width: 760px; }
.section-intro-text{ font-size: 19px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; }
.section-intro-cue{
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); opacity: 0.6;
}

/* ─── floating controls ─────────────────────────────────────────────────── */
.hero-controls{
  position: absolute; bottom: 20px; right: 40px;
  display:flex; align-items:center; gap: 8px;
  padding: 6px 10px 6px 8px;
  background: rgba(11,15,14,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; color: #D7DDD9;
  opacity: 0.45;
  transition: opacity 200ms ease;
}
.hero:hover .hero-controls,
.hero-controls:hover{ opacity: 1; }
.ctrl{
  width: 28px; height: 28px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 2px; color: #D7DDD9;
}
.ctrl:hover{ background: #1B2321; }
.ctrl-speed{ display:flex; gap: 2px; border-left: 1px solid #1F2826; padding-left: 6px; margin-left: 2px; }
.ctrl-speed-btn{
  padding: 4px 7px; border-radius: 2px; color: #8A948F;
  font-size: 11px;
}
.ctrl-speed-btn.is-active{ color: var(--cream); background: #1B2321; }
.ctrl-reduce{ color: #8A948F; padding: 0 6px; font-size: 11px; }

/* ─── tweaks panel ──────────────────────────────────────────────────────── */
.tweaks{
  position: fixed; right: 20px; top: 20px; z-index: 50;
  width: 280px; padding: 14px 14px 12px;
  background: #0B0F0E; color: #D7DDD9;
  border: 1px solid #1F2826; border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px;
  box-shadow: 0 24px 48px -24px rgba(11,15,14,0.5);
}
.tweaks-title{
  display:flex; justify-content:space-between; align-items:center;
  font-size: 11px; letter-spacing: 0.12em; color: var(--orange);
  margin-bottom: 10px; text-transform: uppercase;
}
.tweaks-row{ display:flex; justify-content:space-between; align-items:center; padding: 6px 0; gap: 8px; }
.tweaks-row label{ color: #8A948F; }
.tweaks-row input[type=range]{ width: 120px; }
.tweaks-row select, .tweaks-row button{
  background: #141A18; color: #D7DDD9;
  border: 1px solid #1F2826; border-radius: 2px;
  padding: 4px 8px; font-family: inherit; font-size: 11px;
}

/* ─── team page ─────────────────────────────────────────────────────────── */
.team-page{
  min-height: 100vh;
  padding: 120px 40px 80px;
  background: var(--cream);
}
.team-inner{ max-width: 960px; margin: 0 auto; }
.team-eyebrow{
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.team-h1{
  font-family: 'Fraunces', serif;
  font-weight: 320; font-style: italic;
  font-size: clamp(36px, 5vw, 64px); line-height: 1.1;
  letter-spacing: -0.03em; color: var(--ink);
  margin: 0 0 24px;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.team-sub{
  font-size: 18px; line-height: 1.6; color: var(--muted);
  max-width: 620px; margin: 0 0 72px;
}
.team-grid{
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-bottom: 80px;
}
.team-card{
  border: 1px solid var(--line); border-radius: 4px;
  padding: 36px 28px; background: var(--cream-2);
  display: flex; flex-direction: column; gap: 12px;
}
.team-photo{
  width: 96px; height: 96px; border-radius: 50%;
  overflow: hidden; border: 2px solid var(--line);
  margin-bottom: 4px; flex-shrink: 0;
}
.team-photo img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.team-name{ font-size: 17px; font-weight: 600; color: var(--ink); }
.team-role{
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--coral);
}
.team-bio{
  font-size: 14px; line-height: 1.65; color: var(--muted);
  flex: 1;
}
.team-linkedin{
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--muted); margin-top: auto;
  transition: color 120ms;
}
.team-linkedin:hover{ color: var(--ink); }
.team-cta{
  border-top: 1px solid var(--line); padding-top: 48px;
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.team-cta p{ font-size: 18px; color: var(--muted); margin: 0; }

/* ─── story overlay nav ─────────────────────────────────────────────────── */
.story-nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.40) 0%, transparent 100%);
  pointer-events: none;
}
.story-nav .nav-brand,
.story-nav .nav-links { pointer-events: auto; }
.story-nav .nav-brand { color: #fff; }
.story-nav .brand-mark { color: rgba(255,255,255,0.75); }
.story-nav .nav-links { color: rgba(255,255,255,0.65); }
.story-nav .nav-links a:hover { color: #fff; }
.story-nav .nav-login { border-color: rgba(255,255,255,0.45); color: #fff !important; }
.story-pause{
  font-size: 11px; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55); opacity: 0.8;
  padding: 4px 6px; border-radius: 2px;
  transition: color 120ms, opacity 120ms;
}
.story-pause:hover{ color: #fff; opacity: 1; }

/* ─── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 980px){
  .hero{ padding: 20px 20px 40px; }
  .hero-split{ grid-template-columns: 1fr; }
  .pane{ min-height: 420px; }
  .hero-copy-bottom{ flex-direction: column; align-items: flex-start; }
  .nav-links{ display:none; }
  .hero-controls{ right: 20px; }
}

@media (prefers-reduced-motion: reduce){
  .rec-dot, .eyebrow-dot, .term-caret{ animation: none!important; }
}
