/* Three Split Labs — shared styles */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Cool near-black dark system */
  --bg:        oklch(0.165 0.013 255);
  --bg-2:      oklch(0.195 0.015 255);
  --surface:   oklch(0.214 0.016 255);
  --surface-2: oklch(0.245 0.017 255);
  --line:      oklch(0.30 0.018 255);
  --line-soft: oklch(0.255 0.016 255);

  --text:   oklch(0.955 0.004 255);
  --muted:  oklch(0.74 0.012 255);
  --faint:  oklch(0.56 0.013 255);

  /* Three accent hues — shared lightness & chroma, varied hue (the "three split") */
  --a1: oklch(0.80 0.145 158);  /* green  */
  --a2: oklch(0.80 0.145 200);  /* cyan   */
  --a3: oklch(0.80 0.145 255);  /* blue   */
  --accent: var(--a1);

  --maxw: 1080px;
  --r:   16px;
  --r-sm: 10px;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: oklch(0.80 0.145 200 / 0.30); }

a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.165 0.013 255 / 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; }
.mark { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.mark span { width: 5px; border-radius: 3px; display: block; }
.mark span:nth-child(1) { height: 13px; background: var(--a1); }
.mark span:nth-child(2) { height: 22px; background: var(--a2); }
.mark span:nth-child(3) { height: 17px; background: var(--a3); }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand-name b { font-weight: 600; }

.nav-link {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .2s, color .2s, background .2s;
}
.nav-link:hover { color: var(--text); border-color: var(--a2); background: var(--surface); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint);
}

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--muted); padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--surface);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 0 0 oklch(0.80 0.145 158 / 0.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.80 0.145 158 / 0.55); }
  70% { box-shadow: 0 0 0 7px oklch(0.80 0.145 158 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.80 0.145 158 / 0); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 120px 0 96px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(0.30 0.018 255 / 0.30) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.30 0.018 255 / 0.30) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 10%, transparent 70%);
}
.hero-bg .glow {
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 480px;
  background: radial-gradient(ellipse at center, oklch(0.80 0.145 200 / 0.10), transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 7.5vw, 78px); line-height: 1.02;
  letter-spacing: -0.03em; margin: 22px 0 0; text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--a1), var(--a2) 55%, var(--a3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede {
  margin: 26px 0 0; max-width: 600px; font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted); line-height: 1.6; text-wrap: pretty;
}
.hero-cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px; border-radius: var(--r-sm); border: 1px solid var(--line);
  color: var(--text); transition: all .2s; cursor: pointer; background: transparent;
}
.btn:hover { border-color: var(--a2); background: var(--surface); transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.btn-primary:hover { background: var(--a2); border-color: var(--a2); color: var(--bg); }

/* ---------- Section scaffolding ---------- */
.section { padding: 88px 0; border-top: 1px solid var(--line-soft); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.02em; margin: 14px 0 0; line-height: 1.1;
}
.section-head p { margin: 16px 0 0; color: var(--muted); text-wrap: pretty; }

/* ---------- Product cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 26px 24px 24px; position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card .tile {
  width: 60px; height: 60px; border-radius: 16px; position: relative;
  display: flex; align-items: flex-end; justify-content: flex-start; padding: 12px; gap: 4px;
  border: 1px solid var(--line); margin-bottom: 22px;
}
.card .tile span { width: 6px; border-radius: 3px; display: block; opacity: 0.95; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.card .cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.card p { margin: 12px 0 22px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.card .foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.card .ship { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.c1 .tile { background: oklch(0.80 0.145 158 / 0.10); }
.c1 .tile span { background: var(--a1); }
.c2 .tile { background: oklch(0.80 0.145 200 / 0.10); }
.c2 .tile span { background: var(--a2); }
.c3 .tile { background: oklch(0.80 0.145 255 / 0.10); }
.c3 .tile span { background: var(--a3); }
.c1 .dot { background: var(--a1); }

/* ---------- Approach / values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value .num { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.1em; }
.value h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 14px 0 8px; }
.value p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.value { border-top: 2px solid var(--line); padding-top: 18px; }
.value:nth-child(1) { border-color: var(--a1); }
.value:nth-child(2) { border-color: var(--a2); }
.value:nth-child(3) { border-color: var(--a3); }

/* ---------- Contact band ---------- */
.contact { text-align: center; }
.contact h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4.5vw, 44px); letter-spacing: -0.02em; }
.contact p { color: var(--muted); margin: 16px auto 30px; max-width: 480px; }
.mailto { font-family: var(--mono); font-size: clamp(16px, 2.5vw, 22px); color: var(--text); border-bottom: 1px solid var(--a2); padding-bottom: 3px; transition: color .2s; }
.mailto:hover { color: var(--a2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 44px 0 56px; }
.footer .wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .col-brand { max-width: 320px; }
.footer .col-brand p { color: var(--faint); font-size: 13px; margin-top: 14px; line-height: 1.6; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { font-family: var(--mono); font-size: 13px; color: var(--muted); transition: color .2s; }
.foot-links a:hover { color: var(--text); }
.copyright { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 28px; width: 100%; border-top: 1px solid var(--line-soft); padding-top: 22px; }

/* ---------- Legal / content pages ---------- */
.doc { padding: 72px 0 40px; max-width: 760px; }
.doc .eyebrow { display: block; margin-bottom: 14px; }
.doc h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 6vw, 50px); letter-spacing: -0.025em; line-height: 1.05; }
.doc .updated { font-family: var(--mono); font-size: 13px; color: var(--faint); margin-top: 16px; }
.doc h2 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin: 44px 0 14px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.doc h2:first-of-type { border-top: none; padding-top: 0; }
.doc h3 { font-family: var(--display); font-weight: 600; font-size: 16px; margin: 24px 0 8px; }
.doc p { color: var(--muted); margin: 0 0 16px; line-height: 1.7; }
.doc ul { color: var(--muted); margin: 0 0 18px; padding-left: 22px; line-height: 1.7; }
.doc li { margin-bottom: 8px; }
.doc a.inline { color: var(--text); border-bottom: 1px solid var(--a2); }
.doc a.inline:hover { color: var(--a2); }
.doc strong { color: var(--text); font-weight: 600; }

.back {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.back:hover { color: var(--a2); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .reveal.d1 { animation-delay: .08s; }
  .reveal.d2 { animation-delay: .16s; }
  .reveal.d3 { animation-delay: .24s; }
  .reveal.d4 { animation-delay: .32s; }
}
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .grid-3, .values { grid-template-columns: 1fr; gap: 18px; }
  .values { gap: 30px; }
  .hero { padding: 84px 0 72px; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .nav-link { display: none; }
}
