/* ============================================================
   CODE AS YOU ARE : feuille de style unique, sans préprocesseur.
   ============================================================ */

/* ---------- Fonts (auto-hébergées, /fonts) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-variable-latin.woff2") format("woff2-variations"), url("/fonts/fraunces-variable-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-variable-latin.woff2") format("woff2-variations"), url("/fonts/inter-variable-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --paper: #ffffff;
  --cream: #faf8f4;
  --cream-deep: #f3efe7;
  --line: #eae6dd;
  --line-strong: #ddd7c9;

  --ink: #0b0b0c;
  --ink-85: rgba(11, 11, 12, 0.85);
  --ink-70: rgba(11, 11, 12, 0.68);
  --ink-50: rgba(11, 11, 12, 0.5);
  --ink-30: rgba(11, 11, 12, 0.32);
  --ink-15: rgba(11, 11, 12, 0.12);

  --accent: #2f8f6b;
  --accent-bright: #2fbf85;
  --accent-soft: #e6f5ee;
  --accent-line: #bfe4d3;

  --blue: #2563eb;
  --blue-soft: #e8f0fe;
  --amber: #b45309;
  --amber-soft: #fdf1e0;
  --rose: #e11d48;
  --rose-soft: #fde8ec;
  --purple: #7c3aed;

  --code-bg: #101114;
  --code-text: #e7e7e2;
  --code-line: #26282e;

  /* legacy aliases kept so component rules below stay short */
  --wire: var(--line);
  --signal: var(--accent);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --ease-system: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1440px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 12, 0.04), 0 1px 1px rgba(11, 11, 12, 0.03);
  --shadow-md: 0 12px 28px rgba(11, 11, 12, 0.07), 0 2px 6px rgba(11, 11, 12, 0.04);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input, textarea, select {
  font: inherit;
  color: inherit;
}
img, svg {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--accent-soft);
  color: var(--ink);
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-30); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

main, .site-footer { position: relative; z-index: 1; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 640px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

.section {
  position: relative;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) { .section { padding: 100px 0; } }

.section-head { max-width: 900px; }
.section-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  color: var(--ink);
  max-width: 800px;
}
.section-lead {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 640px;
}
.section-body { margin-top: 56px; }

.kicker { display: flex; align-items: center; gap: 10px; }
.kicker-index { display: none; }
.kicker-label {
  position: relative;
  padding-left: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.kicker-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent-bright);
}

.mono-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-system), transform 0.7s var(--ease-system);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s var(--ease-system);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #262629; box-shadow: var(--shadow-sm); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink-30); box-shadow: var(--shadow-sm); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(11, 11, 12, 0.02);
}
.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) { .site-header .container { height: 76px; } }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
@media (min-width: 640px) { .brand-name { font-size: 17px; } }

.nav-desktop { display: none; align-items: center; gap: 28px; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-desktop a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-70);
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--ink); }

.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: block; } }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle .bar-wrap { position: relative; width: 22px; height: 14px; }
.bar-wrap span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s var(--ease-system);
}
.bar-wrap span:nth-child(1) { top: 0; }
.bar-wrap span:nth-child(2) { top: 6px; }
.bar-wrap span:nth-child(3) { top: 12px; }
.site-header.menu-open .bar-wrap span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.site-header.menu-open .bar-wrap span:nth-child(2) { opacity: 0; }
.site-header.menu-open .bar-wrap span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 64px 0 0 0;
  z-index: 40;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-system);
}
@media (min-width: 1024px) { .mobile-menu { display: none; } }
.site-header.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu .container { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: 32px; padding-bottom: 40px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0; }
.mobile-menu nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.mobile-menu nav a span { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--cream); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 64px 0;
}
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer-brand p { margin-top: 16px; max-width: 320px; font-size: 14px; line-height: 1.6; color: var(--ink-70); }
.footer-status {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-50);
}
.dot-pulse { width: 6px; height: 6px; border-radius: 999px; background: var(--accent-bright); animation: pulseDot 2s ease-in-out infinite; }
.footer-col h3 { margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { font-size: 14px; color: var(--ink-70); }
.footer-col a:hover { color: var(--ink); }
.footer-mono { font-family: var(--font-body); font-size: 13px; color: var(--ink-50); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-50);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 48px;
}
.hero-glow {
  position: absolute;
  top: -20%;
  right: -12%;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 191, 133, 0.16), rgba(124, 58, 237, 0.05) 55%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.tentacle {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.tentacle path {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
}
.tentacle.t1 path { stroke-width: 110; opacity: 0.028; }
.tentacle.t2 path { stroke-width: 85; opacity: 0.024; }
.tentacle.t3 path { stroke-width: 130; opacity: 0.02; }
.tentacle.t4 path { stroke-width: 75; opacity: 0.032; }
.tentacle.t5 path { stroke-width: 50; opacity: 0.04; }

.tentacle.t1 { transform-origin: 10% 60%; animation: tentacleSway 20s ease-in-out infinite alternate; }
.tentacle.t2 { transform-origin: 75% 25%; animation: tentacleSway 24s ease-in-out infinite alternate-reverse; animation-delay: -6s; }
.tentacle.t3 { transform-origin: 85% 55%; animation: tentacleSway 28s ease-in-out infinite alternate; animation-delay: -18s; }
.tentacle.t4 { transform-origin: 30% 80%; animation: tentacleSway 22s ease-in-out infinite alternate-reverse; animation-delay: -10s; }
.tentacle.t5 { transform-origin: 55% 40%; animation: tentacleSway 26s ease-in-out infinite alternate; animation-delay: -24s; }

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) { .hero .container { grid-template-columns: 1.05fr 0.95fr; gap: 40px; } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 7px 14px 7px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-70);
  box-shadow: var(--shadow-sm);
}

.hero-headline {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1.08;
  color: var(--ink);
  max-width: 620px;
}
.hero-headline span { display: block; }

.hero-lead {
  margin-top: 24px;
  max-width: 520px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-70);
}
.hero-lead b, .hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-50);
}

/* Hero product mockup */
.hero-visual { position: relative; }
.mockup-window {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transform: rotate(1deg);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mockup-bar span { width: 9px; height: 9px; border-radius: 999px; background: var(--line-strong); }
.mockup-body { display: flex; min-height: 320px; }
.mockup-sidebar {
  width: 34%;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mockup-line { height: 8px; border-radius: 5px; background: var(--line-strong); opacity: 0.7; }
.mockup-line.active { background: var(--accent-bright); opacity: 1; }
.mockup-line.w-40 { width: 40%; }
.mockup-line.w-45 { width: 45%; }
.mockup-line.w-50 { width: 50%; }
.mockup-line.w-60 { width: 60%; }
.mockup-line.w-70 { width: 70%; }
.mockup-line.w-80 { width: 80%; }
.mockup-main { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.mockup-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.mockup-card {
  height: 84px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--accent-soft), var(--paper));
}
.mockup-badge {
  position: absolute;
  bottom: -14px;
  right: -14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.mockup-badge .dot-pulse { background: var(--accent-bright); }

/* ---------- Capabilities (what we build) ---------- */
.capabilities-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .capabilities-grid { grid-template-columns: 340px 1fr; } }

.capabilities-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--line);
}
@media (min-width: 640px) { .capabilities-nav { grid-template-columns: 1fr; } }
.capabilities-nav button {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  padding: 15px 18px;
  text-align: left;
  transition: background-color 0.2s;
}
.capabilities-nav button:hover { background: var(--cream); }
.capabilities-nav button.is-active { background: var(--cream-deep); }
.capabilities-nav button.span-2 { grid-column: span 2; }
@media (min-width: 640px) { .capabilities-nav button.span-2 { grid-column: span 1; } }
.cap-code { font-family: var(--font-body); font-size: 13px; color: var(--ink-30); }
.capabilities-nav button.is-active .cap-code { color: var(--accent); }
.cap-title { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--ink-70); }
@media (min-width: 640px) { .cap-title { font-size: 15px; } }
.capabilities-nav button.is-active .cap-title { color: var(--ink); font-weight: 600; }

.capabilities-panel {
  min-height: 380px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 32px;
}
@media (min-width: 640px) { .capabilities-panel { padding: 40px; } }
.capabilities-panel h3 { margin-top: 12px; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; color: var(--ink); }
.capabilities-panel > p { margin-top: 12px; max-width: 560px; color: var(--ink-70); }
.cap-items {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 32px;
}
@media (min-width: 640px) { .cap-items { grid-template-columns: 1fr 1fr; } }
.cap-items li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-85); padding: 4px 0; }
.dot { margin-top: 7px; width: 5px; height: 5px; border-radius: 999px; background: var(--accent-bright); flex-shrink: 0; }

/* ---------- Start anywhere (flip cards) ---------- */
.flip-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .flip-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .flip-grid { grid-template-columns: 1fr 1fr 1fr; } }

.flip-card { height: 250px; perspective: 1200px; }
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-system), box-shadow 0.3s;
  cursor: pointer;
}
.flip-card:hover .flip-card-inner { box-shadow: var(--shadow-md); }
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 24px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.flip-front { background: var(--cream); }
.flip-front .flip-index { font-family: var(--font-body); font-size: 13px; color: var(--ink-30); }
.flip-front .flip-quote { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.3; color: var(--ink); }
.flip-front .flip-hint { font-size: 13px; font-weight: 500; color: var(--ink-50); }
.flip-back { background: var(--ink); border: 1px solid var(--ink); transform: rotateY(180deg); overflow-y: auto; }
.flip-back .flip-response { font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--accent-bright); margin-bottom: 12px; }
.flip-back ul { display: flex; flex-direction: column; gap: 8px; }
.flip-back li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.82); }
.flip-back li .dot { background: var(--accent-bright); }

/* ---------- Tech stack ---------- */
.stack-wrap { display: none; }
.stack-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
@media (min-width: 768px) { .stack-mobile { grid-template-columns: repeat(4, 1fr); } }
.stack-mobile h4 { font-family: var(--font-body); font-size: 13px; font-weight: 700; }
.stack-mobile ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.stack-mobile li { border-radius: 999px; border: 1px solid var(--line); background: var(--paper); padding: 6px 14px; font-size: 13px; color: var(--ink-85); }

.stack-legend { display: none; }

/* ---------- Architecture visualizer ---------- */
.arch-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .arch-grid { grid-template-columns: minmax(0, 320px) 1fr; align-items: start; } }
.arch-list { position: relative; }
.arch-list ul { display: flex; flex-direction: column; gap: 4px; }
.arch-item {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  padding: 10px 10px;
  text-align: left;
  transition: background-color 0.2s;
}
.arch-item:hover { background: var(--cream); }
.arch-badge {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-50);
  transition: all 0.2s;
}
.arch-item.is-active .arch-badge { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.arch-item span.arch-label { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--ink-50); }
.arch-item.is-active span.arch-label { color: var(--ink); font-weight: 600; }

.arch-panel { min-height: 220px; border-radius: 16px; border: 1px solid var(--line); background: var(--cream); padding: 32px; }
@media (min-width: 640px) { .arch-panel { padding: 40px; } }
.arch-panel h3 { margin-top: 14px; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; color: var(--ink); }
.arch-panel p { margin-top: 14px; max-width: 480px; color: var(--ink-70); }
.arch-flow { margin-top: 36px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--ink-30); }
.arch-flow-track { margin-left: 4px; flex: 1; display: flex; align-items: center; gap: 4px; }
.arch-flow-track span { height: 4px; flex: 1; border-radius: 999px; background: var(--line-strong); transition: background-color 0.3s; }
.arch-flow-track span.is-filled { background: var(--accent-bright); }

/* ---------- API playground ---------- */
.api-box { overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-sm); }
.api-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; border-bottom: 1px solid var(--line); background: var(--cream); }
.api-tab {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-50);
  transition: all 0.2s;
}
.api-tab:hover { color: var(--ink); }
.api-tab.is-active[data-method="GET"] { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.api-tab.is-active[data-method="POST"] { color: var(--blue); border-color: #c7d9fb; background: var(--blue-soft); }
.api-tab.is-active[data-method="PATCH"] { color: var(--amber); border-color: #f3daa8; background: var(--amber-soft); }
.api-tab.is-active[data-method="DELETE"] { color: var(--rose); border-color: #f6c2cd; background: var(--rose-soft); }

.api-columns { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .api-columns { grid-template-columns: 1fr 1.3fr; } }
.api-col { padding: 24px; }
@media (min-width: 640px) { .api-col { padding: 32px; } }
.api-col-left { border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .api-col-left { border-bottom: 0; border-right: 1px solid var(--line); } }

.api-request-line {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.api-method { font-weight: 700; }
.api-method[data-method="GET"] { color: var(--accent); }
.api-method[data-method="POST"] { color: var(--blue); }
.api-method[data-method="PATCH"] { color: var(--amber); }
.api-method[data-method="DELETE"] { color: var(--rose); }
.api-path { color: var(--ink-70); }
.api-body-label { display: block; margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--ink-50); }
.api-body-block {
  margin-top: 8px;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--code-bg);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--code-text);
  white-space: pre;
}
.api-run-btn { margin-top: 24px; width: 100%; }

.api-response-box { margin-top: 16px; min-height: 220px; border-radius: 8px; background: var(--code-bg); padding: 16px; }
.api-response-idle { font-family: var(--font-mono); font-size: 12px; color: rgba(231, 231, 226, 0.4); }
.api-response-loading { font-family: var(--font-mono); font-size: 12px; color: rgba(231, 231, 226, 0.65); display: none; }
.api-response-done { display: none; }
.api-response-status { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; }
.api-status-code { border-radius: 4px; padding: 2px 8px; font-weight: 700; background: rgba(47, 191, 133, 0.18); color: #5fe0a8; }
.api-status-text { color: rgba(231, 231, 226, 0.6); }
.api-latency { margin-left: auto; color: rgba(231, 231, 226, 0.35); }
.api-response-body { margin-top: 16px; overflow-x: auto; white-space: pre-wrap; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--code-text); }

/* JSON syntax colors (dark code block) */
.tok-key { color: #7db8ff; }
.tok-string { color: #5fe0a8; }
.tok-bool { color: #f0b45f; }
.tok-num { color: #c9a2f5; }

/* ---------- AI Lab pipeline ---------- */
.pipeline-scroll { overflow-x: auto; padding-bottom: 16px; }
.pipeline-row { position: relative; min-width: 720px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
@media (min-width: 640px) { .pipeline-row { min-width: 0; } }
.pipeline-track { position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line-strong); }
.pipeline-sweep {
  position: absolute; left: 0; top: 23px; height: 1px; width: 25%;
  background: linear-gradient(to right, transparent, var(--accent-bright), transparent);
  animation: sweep 3.5s ease-in-out infinite alternate;
  opacity: 0.7;
}
.pipeline-step { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pipeline-num {
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.pipeline-step span.label { font-size: 13px; font-weight: 500; color: var(--ink-70); }

.usecase-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--line);
}
@media (min-width: 640px) { .usecase-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .usecase-grid { grid-template-columns: repeat(3, 1fr); } }
.usecase-card { background: var(--paper); padding: 24px; }
.usecase-card .idx { font-family: var(--font-body); font-size: 12px; color: var(--ink-30); }
.usecase-card h4 { margin-top: 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.usecase-card p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-70); }

/* ---------- Use cases grid ---------- */
.uc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .uc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .uc-grid { grid-template-columns: 1fr 1fr 1fr; } }
.uc-card {
  display: flex; flex-direction: column; height: 100%;
  border-radius: 16px; border: 1px solid var(--line);
  background: var(--cream); padding: 24px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.uc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.uc-card .idx { font-family: var(--font-body); font-size: 13px; color: var(--ink-30); }
.uc-card h3 { margin-top: 12px; font-size: 18px; font-weight: 500; color: var(--ink); }
.uc-card p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-70); }
.uc-flow { margin-top: 18px; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.uc-flow span { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--ink-30); }
.uc-flow span.arrow { color: var(--ink-15); }

/* ---------- Hard problems ---------- */
.hp-section { background: var(--cream); }
.hp-list { margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hp-row { display: flex; flex-direction: column; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.hp-row:last-child { border-bottom: 0; }
@media (min-width: 640px) { .hp-row { flex-direction: row; align-items: center; gap: 32px; } }
.hp-row .code { font-family: var(--font-body); font-size: 12px; color: var(--ink-30); }
.hp-row p { font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.35; color: var(--ink-85); }
@media (min-width: 640px) { .hp-row p { font-size: 19px; } }
.hp-cta { margin-top: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
@media (min-width: 640px) { .hp-cta { flex-direction: row; align-items: center; justify-content: space-between; } }
.hp-cta p { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--ink); }

/* ---------- Process timeline ---------- */
.process-list { display: flex; flex-direction: column; gap: 10px; }
.process-item {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  border-radius: 16px; border: 1px solid var(--line);
  background: var(--paper); padding: 24px;
  transition: box-shadow 0.3s;
}
.process-item:hover { box-shadow: var(--shadow-md); }
@media (min-width: 640px) { .process-item { grid-template-columns: 52px 1fr 1.1fr; align-items: start; gap: 32px; padding: 30px; } }
.process-badge {
  width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--accent);
}
.process-item h3 { font-size: 19px; font-weight: 500; color: var(--ink); }
.process-item > div > p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-70); }
.process-deliverables span.label { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-30); }
.process-deliverables ul { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.process-deliverables li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink-85); }

/* ---------- Project showcase ---------- */
.showcase-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .showcase-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .showcase-grid { grid-template-columns: 1fr 1fr 1fr; } }
.showcase-card {
  display: flex; flex-direction: column; height: 100%;
  border-radius: 16px; border: 1px solid var(--line);
  background: var(--paper); padding: 24px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.showcase-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.showcase-top { display: flex; align-items: center; justify-content: space-between; }
.showcase-top .code { font-family: var(--font-body); font-size: 12px; color: var(--ink-30); }
.showcase-top .badge { border-radius: 999px; border: 1px solid var(--line); padding: 3px 11px; font-size: 11px; font-weight: 600; color: var(--ink-50); }
.showcase-card h3 { margin-top: 16px; font-family: var(--font-display); font-weight: 500; font-size: 23px; color: var(--ink); }
.showcase-category { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--accent); }
.showcase-card > p { margin-top: 14px; flex: 1; font-size: 14px; line-height: 1.5; color: var(--ink-70); }
.showcase-stack { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.showcase-stack span { border-radius: 999px; background: var(--cream); padding: 4px 11px; font-size: 12px; color: var(--ink-70); }

/* ---------- Internet stack ---------- */
.istack-list { margin: 0 auto; max-width: 640px; }
.istack-row {
  display: flex; align-items: center; gap: 20px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); padding: 16px 24px;
  transition: box-shadow 0.3s;
}
.istack-row:hover { box-shadow: var(--shadow-sm); }
.istack-row .code { font-family: var(--font-body); font-size: 13px; color: var(--ink-30); }
.istack-row .label { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--ink); }
@media (min-width: 640px) { .istack-row .label { font-size: 18px; } }
.istack-row .detail { margin-left: auto; max-width: 46%; text-align: right; font-size: 12px; color: var(--ink-50); display: none; }
@media (min-width: 640px) { .istack-row .detail { display: block; } }
.istack-connector { width: 1px; height: 16px; background: var(--line-strong); margin: 0 auto; }
.istack-cross-label { margin-top: 56px; text-align: center; }
.cross-grid { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .cross-grid { grid-template-columns: repeat(5, 1fr); } }
.cross-card { border-radius: 12px; border: 1px dashed var(--line-strong); padding: 16px; text-align: center; }
.cross-card .label { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--accent); }
.cross-card p { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--ink-50); }

/* ---------- Performance ---------- */
.perf-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .perf-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .perf-grid { grid-template-columns: 1fr 1fr 1fr; } }
.perf-card { border-radius: 16px; border: 1px solid var(--line); background: var(--paper); padding: 24px; }
.perf-top { display: flex; align-items: center; justify-content: space-between; }
.perf-top .swatch { width: 6px; height: 6px; border-radius: 999px; background: var(--accent-bright); }
.perf-value { margin-top: 18px; font-family: var(--font-display); font-size: 34px; font-weight: 500; color: var(--ink); }
.perf-value .lt { color: var(--ink-30); }
.perf-label { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink-85); }
.perf-desc { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--ink-50); }

/* ---------- Security ---------- */
.sec-checkpoints { overflow-x: auto; padding-bottom: 16px; }
.sec-row { position: relative; min-width: 760px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sec-tag {
  position: absolute; top: -18px;
  display: flex; align-items: center; gap: 6px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  padding: 4px 11px; font-size: 11px; font-weight: 600; color: var(--ink-50);
}
.sec-tag.left { left: 0; }
.sec-tag.right { right: 0; border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.sec-checkpoint { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; }
.sec-num {
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.sec-detail-grid {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr; gap: 1px;
  overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--line);
}
@media (min-width: 640px) { .sec-detail-grid { grid-template-columns: 1fr 1fr; } }
.sec-detail-card { background: var(--paper); padding: 24px; }
.sec-detail-card.span-2 { grid-column: 1 / -1; }
.sec-detail-card h4 { margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.sec-detail-card p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-70); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card {
  display: flex; flex-direction: column;
  border-radius: 16px; border: 1px solid var(--line);
  background: var(--cream); padding: 24px;
  transition: box-shadow 0.3s;
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-avatar {
  width: 56px; height: 56px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); display: block;
  object-fit: cover;
}
.team-card h3 { margin-top: 16px; font-size: 18px; font-weight: 500; color: var(--ink); }
.team-role { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--ink-50); }
.team-focus { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-70); }
.team-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--ink-50); }

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .founder-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.founder-copy p:first-child { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.15rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--ink-85); }
.founder-copy p + p { margin-top: 18px; line-height: 1.6; color: var(--ink-70); }
.founder-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.founder-tags span { border-radius: 999px; border: 1px solid var(--line); padding: 6px 13px; font-size: 12px; font-weight: 500; color: var(--ink-70); }

.terminal { border-radius: 16px; border: 1px solid var(--line); background: var(--cream); padding: 28px; }
@media (min-width: 640px) { .terminal { padding: 32px; } }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.terminal-bar .path { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink-50); }
.terminal ul { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.terminal li { display: flex; gap: 16px; }
.terminal .year { flex-shrink: 0; font-family: var(--font-body); font-weight: 700; color: var(--accent); }
.terminal .desc { color: var(--ink-70); }

/* ---------- Collaboration ---------- */
.collab-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .collab-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .collab-grid { grid-template-columns: 1fr 1fr 1fr; } }
.collab-card {
  display: flex; flex-direction: column;
  border-radius: 16px; border: 1px solid var(--line);
  background: var(--cream); padding: 28px;
  transition: box-shadow 0.3s;
}
.collab-card:hover { box-shadow: var(--shadow-md); }
.collab-card h3 { margin-top: 14px; font-family: var(--font-display); font-weight: 500; font-size: 23px; color: var(--ink); }
.collab-pitch { margin-top: 8px; font-weight: 600; color: var(--accent); }
.collab-card > p:last-child { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-70); }

/* ---------- FAQ ---------- */
.faq-list { margin: 0 auto; max-width: 760px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 0; text-align: left;
}
.faq-question span.q-text { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--ink); }
@media (min-width: 640px) { .faq-question span.q-text { font-size: 18px; } }
.faq-toggle {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--ink-50);
  transition: all 0.3s var(--ease-system);
}
.faq-item.is-open .faq-toggle { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.faq-answer-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease-system); }
.faq-item.is-open .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p { max-width: 640px; padding-bottom: 24px; font-size: 14px; line-height: 1.6; color: var(--ink-70); }

/* ---------- Contact ---------- */
.contact-form { margin: 0 auto; max-width: 760px; }
.chip-group { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper); padding: 9px 15px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-70); transition: all 0.2s;
}
.chip:hover { border-color: var(--ink-30); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.form-grid { margin-top: 36px; display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-70); }
.form-field input,
.form-field select,
.form-field textarea {
  margin-top: 10px; width: 100%; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--paper); padding: 11px 14px; font-size: 14px; color: var(--ink);
  outline: none; transition: border-color 0.2s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-30); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--ink); }
.form-field textarea { resize: none; }
.form-note { margin-top: 8px; font-size: 12px; color: var(--ink-50); }
.form-submit { margin-top: 28px; }
.form-alt { margin-top: 16px; font-size: 13px; color: var(--ink-50); }
.form-alt a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Legal page ---------- */
.legal-main { padding-top: 128px; padding-bottom: 96px; }
.legal-main h1 { margin-top: 14px; font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.legal-body { margin-top: 48px; max-width: 680px; display: flex; flex-direction: column; gap: 36px; font-size: 14px; line-height: 1.6; color: var(--ink-70); }
.legal-body h2 { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--ink); }
.legal-body ul { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.legal-body p { margin-top: 16px; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Keyframes ---------- */
@keyframes pulseDot { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.4); } }
@keyframes sweep { 0% { transform: translateX(0%); } 100% { transform: translateX(300%); } }
@keyframes tentacleSway {
  0% { transform: rotate(-4deg) translate(-10px, 6px); }
  50% { transform: rotate(1.6deg) translate(8px, -26px); }
  100% { transform: rotate(4.5deg) translate(14px, 16px); }
}
