:root {
  --bg: #0b0f17;
  --bg-alt: #0f1520;
  --surface: #141b28;
  --border: #222c3d;
  --text: #e8ecf3;
  --muted: #8b97ab;
  --accent: #7cf0c5;
  --accent-2: #6aa8ff;
  --radius: 16px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); max-width: 22ch; margin-bottom: 48px; }
h3 { font-size: 1.2rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 16px;
}

.lead { color: var(--muted); font-size: 1.15rem; max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #06231a; }
.btn-primary:hover { background: #9af5d4; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 23, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06231a;
  font-size: 0.95rem;
}
.logo-text span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 0.8rem var(--font-mono);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-toggle button[aria-pressed="true"] { background: var(--accent); color: #06231a; }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-btn span { width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 112px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  opacity: 0.45;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -120px;
  top: -160px;
  background: radial-gradient(circle, rgba(124, 240, 197, 0.16), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 24px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 36px 0 48px; }

.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; max-width: 150px; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.9rem; }
.hero-stats span { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4559; }
.terminal-bar i:nth-child(1) { background: #ff6b6b; }
.terminal-bar i:nth-child(2) { background: #ffd166; }
.terminal-bar i:nth-child(3) { background: #7cf0c5; }
.terminal-bar span { margin-left: 10px; font: 0.78rem var(--font-mono); color: var(--muted); }
.terminal pre {
  margin: 0;
  padding: 24px;
  font: 0.86rem/1.9 var(--font-mono);
  overflow-x: auto;
  white-space: pre;
}
.c-mute { color: var(--muted); }
.c-accent { color: var(--accent-2); }
.c-ok { color: var(--accent); }
.cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(124, 240, 197, 0.45); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(124, 240, 197, 0.1);
  margin-bottom: 22px;
}
.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { border-top: 2px solid var(--border); padding-top: 24px; }
.steps li:first-child { border-color: var(--accent); }
.step-num { font: 500 0.85rem var(--font-mono); color: var(--accent); display: block; margin-bottom: 12px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.work-feature {
  grid-column: 1 / -1;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(106, 168, 255, 0.14), transparent 55%),
    var(--surface);
}
.work-feature h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.work-feature p { max-width: 70ch; }
.work-tag { font: 500 0.78rem var(--font-mono); color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.work-card h3 { margin-bottom: 12px; }
.work-card p { color: var(--muted); margin: 0 0 20px; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font: 0.8rem var(--font-mono);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--bg-alt);
}
.link-arrow { margin-top: 28px; color: var(--accent); font-weight: 600; align-self: flex-start; }
.link-arrow::after { content: " →"; transition: margin .15s; }
.link-arrow:hover::after { margin-left: 4px; }

/* Founder */
.founder { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: center; }
.founder h2 { margin-bottom: 6px; }
.founder p { color: var(--muted); }
.founder-role { color: var(--accent) !important; font-weight: 500; margin: 0 0 24px; }
.founder-photo { position: relative; }
.founder-photo::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--accent);
  border-radius: 20px;
  opacity: 0.5;
}
.founder-photo img {
  position: relative;
  border-radius: 20px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.founder-facts { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.founder-facts li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.founder-facts span { color: var(--muted); font: 0.8rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.founder-facts strong { font-weight: 500; }
.social { display: flex; gap: 12px; flex-wrap: wrap; }
.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color .15s;
}
.social a:hover { border-color: var(--accent); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* Stack */
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.stack h3 { font-size: 1rem; margin-bottom: 14px; color: var(--muted); font-weight: 600; }

/* Contact */
.contact { text-align: center; position: relative; overflow: hidden; border-top: 1px solid var(--border); }
.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(124, 240, 197, 0.12), transparent 65%);
  pointer-events: none;
}
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact h2 { margin: 0 auto 20px; }
.contact .lead { margin: 0 auto 40px; }
.email-box {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 14px 14px 14px 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--accent);
  word-break: break-all;
}

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 1fr; gap: 56px; }
  .founder-photo { max-width: 340px; }
  .stack { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .menu-btn { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 1.05rem; }
  .hero { padding: 64px 0 80px; }
  .section { padding: 80px 0; }
  h2 { margin-bottom: 36px; }
  .cards, .work-grid, .steps, .stack { grid-template-columns: 1fr; }
  .work-card, .card { padding: 26px; }
  .terminal pre { font-size: 0.75rem; padding: 18px; }
  .founder-facts li { grid-template-columns: 1fr; gap: 4px; }
  .email-box { border-radius: var(--radius); padding: 20px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
}
