/* ---------- design tokens ---------- */
:root {
  --ink:        #0B1020;
  --ink-2:      #11162A;
  --ink-3:      #1A2040;
  --cobalt:     #3A5BFF;
  --cobalt-dim: #2A45C2;
  --bone:       #F2F4F8;
  --bone-dim:   #BFC5D6;
  --bone-mute:  #6B7390;
  --line:       rgba(255, 255, 255, 0.07);
  --line-hi:    rgba(255, 255, 255, 0.14);
  --ok:         #6AE3A1;

  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  position: relative;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---------- mesh (single faint glow + grid only) ---------- */
.mesh {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.mesh__orb--cobalt {
  display: block;
  position: absolute;
  top: -30vh; left: 50%;
  width: 90vw; height: 90vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(58, 91, 255, 0.18), transparent 60%);
  filter: blur(40px);
  will-change: opacity;
  animation: glow-breathe 12s ease-in-out infinite;
}
.mesh__orb--orchid,
.mesh__orb--pink,
.mesh__scan { display: none; }

@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.30; }
}

.mesh__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 90%);
}

body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, transparent 30%, rgba(11, 16, 32, 0.7) 95%);
  z-index: 1;
}

/* ---------- topbar ---------- */
.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 56px);
}

.brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--bone);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.brand__dot {
  color: var(--cobalt);
  margin-left: 1px;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang {
  border: 1px solid var(--line-hi);
  background: transparent;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, color 0.2s;
}
.lang:hover { border-color: var(--bone-dim); }
.lang__current { color: var(--bone); }
.lang__sep, .lang__alt { color: var(--bone-mute); }

.contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--bone-dim);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
}
.contact:hover { color: var(--bone); border-color: var(--line-hi); }
.contact__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bone-dim);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

@media (max-width: 560px) {
  .contact { display: none; }
}

/* ---------- stage ---------- */
.stage {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vh, 60px) clamp(20px, 5vw, 56px) clamp(40px, 8vh, 100px);
}

.stage__inner {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---------- terminal ---------- */
.terminal {
  width: 100%;
  max-width: 580px;
  border: 1px solid var(--line-hi);
  border-radius: 12px;
  background: rgba(11, 16, 32, 0.85);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  animation: term-in 0.6s ease-out 0.1s forwards;
}
@keyframes term-in {
  to { opacity: 1; transform: translateY(0); }
}

.terminal__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--bone-mute);
  letter-spacing: 0.04em;
}
.terminal__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: var(--ink-3);
  border: 1px solid var(--line-hi);
}
.terminal__dot--r,
.terminal__dot--y,
.terminal__dot--g { /* neutralized — all the same muted dot */ }

.terminal__title {
  margin-left: 10px;
  color: var(--bone-dim);
}
.terminal__pid {
  margin-left: auto;
  color: var(--bone-mute);
}

.terminal__body {
  padding: 18px 20px 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--bone-dim);
  min-height: 250px;
  position: relative;
}

.terminal__pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* terminal line color helpers — only cobalt + one OK green + neutrals */
.t-prompt { color: var(--cobalt); }
.t-cmd    { color: var(--bone); }
.t-dim    { color: var(--bone-mute); }
.t-ok     { color: var(--ok); }
.t-warn   { color: var(--bone-dim); }       /* neutralized */
.t-info   { color: var(--bone-dim); }       /* neutralized */
.t-pink   { color: var(--bone-dim); }       /* neutralized */
.t-grad {
  color: var(--bone);
  font-weight: 600;
}

.cursor {
  display: inline-block;
  color: var(--cobalt);
  animation: blink 1.05s steps(2, end) infinite;
  font-weight: 500;
  margin-left: 2px;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- headline ---------- */
.headline {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0;
  color: var(--bone);
  opacity: 0;
  animation: fade-up 0.7s ease-out 0.5s forwards;
}
.headline span { display: block; }
.headline__accent {
  color: var(--bone);   /* same as the rest — no gradient */
  position: relative;
  display: inline-block;
}
.headline__accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -0.12em;
  height: 2px;
  background: var(--cobalt);
  width: 38%;
  opacity: 0.85;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lede {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 58ch;
  margin: 0;
  opacity: 0;
  animation: fade-up 0.7s ease-out 0.65s forwards;
}

/* ---------- actions ---------- */
.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.7s ease-out 0.85s forwards;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--cobalt);
  color: var(--bone);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.cta:hover {
  background: var(--cobalt-dim);
  transform: translateY(-1px);
}
.cta svg { width: 18px; height: 18px; }

.ghost {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bone-dim);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-hi);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.ghost:hover { color: var(--bone); border-color: var(--bone-dim); }

/* ---------- chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  opacity: 0;
  animation: fade-up 0.7s ease-out 1.05s forwards;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--bone-dim);
}
.chip__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bone-dim);
}
.chip__dot--cobalt,
.chip__dot--orchid,
.chip__dot--pink { background: var(--bone-dim); }
.chip__dot--amber {
  background: var(--cobalt);
  animation: pulse 1.6s ease-in-out infinite;
}

/* ---------- footer ---------- */
.footline {
  position: relative;
  z-index: 4;
  padding: 24px clamp(20px, 5vw, 56px) 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--bone-mute);
  letter-spacing: 0.04em;
}
.footline a {
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footline a:hover { color: var(--bone); }
.footline__sep { opacity: 0.5; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .mesh__orb--cobalt { display: none; }
  .cursor { animation: none; }
}
