@font-face { font-family: "Cabinet Grotesk"; src: url("fonts/cabinet-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("fonts/cabinet-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("fonts/cabinet-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* Neutral base with brand indigo and green as accents: buttons, icons, tags, and one tinted panel. */
:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --text: #0a0a0a;
  --muted: #62626a;
  --faint: #8e8e96;
  --line: #e3e6f0;
  --brand: #36479d;
  --brand-2: #1b9748;
  --brand-soft: #eef0fa;
  --brand-2-soft: #e7f5ec;
  --btn: #36479d;
  --btn-text: #ffffff;
  --ok: #1b9748;
  --no: #b42318;
  --header-shadow: 0 6px 24px rgba(18, 21, 48, .08);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f1d;
    --surface: #121629;
    --text: #ededef;
    --muted: #a0a6c0;
    --faint: #6f7592;
    --line: #222844;
    --brand: #8e9bf0;
    --brand-2: #4fc47c;
    --brand-soft: #161c3a;
    --brand-2-soft: #10251a;
    --btn: #4a5bc4;
    --btn-text: #ffffff;
    --ok: #4fc47c;
    --no: #f07167;
    --header-shadow: 0 8px 28px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 "Cabinet Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.i { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }

/* Side padding respects the iPhone notch and rounded corners in landscape. */
.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* Header */
.top::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.wordmark {
  font-family: "Cabinet Grotesk", system-ui, sans-serif;
  font-weight: 700; font-size: 15.3px; letter-spacing: .06em; line-height: 1;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 8px;
  background: var(--btn); color: var(--btn-text);
  font-weight: 500; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--btn);
}
.btn:hover { opacity: .88; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { opacity: 1; border-color: var(--faint); }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 96px 0 80px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .02em;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-2-soft); }
.accent { color: var(--brand); }
h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 20px; max-width: 14em; }
.lead { font-size: 17px; color: var(--muted); max-width: 32em; margin-bottom: 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Illustration */
.panel { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted);
}
.status { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
.panel-body { padding: 18px 16px; }
.req { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.req .i { color: var(--brand); }
.sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.fields { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fields li {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); border-radius: 6px;
}
.fields li .i { color: var(--ok); }
.fields li.off { color: var(--faint); text-decoration: line-through; }
.fields li.off .i { color: var(--faint); }
.panel-actions { display: flex; gap: 8px; margin-top: 18px; }
.fake { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); }
.fake.primary { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.log { list-style: none; margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.log li { display: flex; justify-content: space-between; gap: 12px; }
.log .ok { color: var(--ok); }
.log .no { color: var(--no); }
.panel figcaption { padding: 8px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--faint); }

/* Sections */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; margin-bottom: 28px; }
h3 { font-size: 17px; line-height: 1.3; }

.rules {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface);
}
.rules li { position: relative; padding: 28px 24px; border-left: 1px solid var(--line); }
.rules li:first-child { border-left: 0; }
.num { position: absolute; top: 28px; right: 24px; font-size: 12px; color: var(--faint); }
.rule-icon { width: 22px; height: 22px; color: var(--brand); margin-bottom: 18px; }
.rules h3 { margin-bottom: 6px; }
.rules p, .audiences p { color: var(--muted); }

.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.audiences article { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.audiences article, .rules li, .hero-grid > * { min-width: 0; }
.aud-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.aud-head .i { width: 20px; height: 20px; color: var(--brand); }
.tag { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.tag.live { color: var(--brand-2); background: var(--brand-2-soft); border-color: transparent; }

.contact {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px;
  padding: 36px; border-radius: 14px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.contact > div:first-child { max-width: 34em; }
.contact h2 { margin-bottom: 12px; }
.contact p { color: var(--muted); }
.contact-action { display: grid; gap: 10px; justify-items: start; }
.small { font-size: 13px; color: var(--muted) !important; }

/* Footer */
.foot { padding: 28px 0 calc(36px + env(safe-area-inset-bottom)); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.foot p { font-size: 13px; color: var(--faint); }
.brand.small .wordmark { font-size: 13px; }
.foot-end { display: flex; align-items: center; gap: 16px; }
.foot-link { font-size: 13px; color: var(--muted); text-decoration: none; }
.foot-link:hover { color: var(--brand); }
.small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Privacy notice */
.legal { padding: 64px 0 80px; border-bottom: 1px solid var(--line); }
.prose { max-width: 720px; }
.prose .eyebrow { font-family: "Cabinet Grotesk", system-ui, sans-serif; font-size: 13px; letter-spacing: 0; margin-bottom: 14px; }
.prose h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; }
.prose .intro { font-size: 17px; color: var(--muted); margin-bottom: 8px; }
.prose h2 { font-size: 19px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 10px; }
.prose ul + p { margin-top: 12px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.prose b { color: var(--text); font-weight: 700; }
.prose a { color: var(--brand); text-underline-offset: 2px; }
.social { display: flex; gap: 4px; }
.social a {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  color: var(--muted); border: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.social a:hover { color: var(--brand); border-color: var(--line); background: var(--surface); }
.social .i { width: 20px; height: 20px; }

/* Tablet */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .panel { max-width: 460px; }
}

/* Phone */
@media (max-width: 640px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .hero { padding: 48px 0 56px; }
  .lead { font-size: 16px; }
  .cta .btn { flex: 1 1 100%; }
  .section { padding: 56px 0; }
  .glow-a { width: 300px; height: 300px; top: -140px; right: -120px; }
  .glow-b { width: 240px; height: 240px; bottom: -140px; left: -120px; }
  .rules { grid-template-columns: 1fr; }
  .rules li { border-left: 0; border-top: 1px solid var(--line); padding: 24px 20px; }
  .rules li:first-child { border-top: 0; }
  .num { top: 24px; right: 20px; }
  .audiences { grid-template-columns: 1fr; }
  .audiences article { padding: 20px; }
  .contact { padding: 24px 20px; }
  .contact-action, .contact-action .btn { width: 100%; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .social { margin-left: -12px; }
}

/* ---------- Background ---------- */

/* Faint grid that fades out towards the edges, with two soft brand glows. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: .6;
}
.glow {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  filter: blur(90px); opacity: .18;
}
.glow-a { width: 520px; height: 520px; background: var(--brand); top: -200px; right: -80px; }
.glow-b { width: 380px; height: 380px; background: var(--brand-2); bottom: -220px; left: -120px; opacity: .12; }
@media (prefers-color-scheme: dark) {
  .glow { opacity: .28; }
  .glow-b { opacity: .14; }
}

/* Sections alternate with a light surface tint. */
.section.alt { background: color-mix(in srgb, var(--surface) 55%, var(--bg)); }

/* ---------- Motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 24px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--brand-2-soft); }
  50% { box-shadow: 0 0 0 6px transparent; }
}
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes strike { from { text-decoration-color: transparent; } to { text-decoration-color: currentColor; } }

/* Hero content rises in, one piece after another. */
.hero-grid > div > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
/* The headline arrives word by word, then a soft brand shine passes once across
   "for apps and AI agents." It ends in plain indigo and does not loop. */
.hero-grid > div > .headline { animation: none; }
.headline .w { display: inline-block; animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.headline .w:nth-child(1) { animation-delay: .10s; }
.headline .w:nth-child(2) { animation-delay: .17s; }
.headline .w:nth-child(3) { animation-delay: .24s; }
.headline .w:nth-child(4) { animation-delay: .31s; }
.headline .w:nth-child(5) { animation-delay: .42s, 1.25s; }
.headline .w:nth-child(6) { animation-delay: .49s, 1.33s; }
.headline .w:nth-child(7) { animation-delay: .56s, 1.41s; }
.headline .w:nth-child(8) { animation-delay: .63s, 1.49s; }
.headline .w:nth-child(9) { animation-delay: .70s, 1.57s; }
.headline .w.accent {
  background-image: linear-gradient(100deg, var(--brand) 0%, var(--brand) 38%, var(--brand-2) 50%, var(--brand) 62%, var(--brand) 100%);
  background-size: 300% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) both, shine 1.1s ease-in-out both;
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.hero-grid > div > *:nth-child(3) { animation-delay: .75s; }
.hero-grid > div > *:nth-child(4) { animation-delay: .85s; }
.panel { animation: rise .8s .6s cubic-bezier(.2, .7, .2, 1) both; }

/* The example plays once: fields are chosen, then each log line appears. */
.fields li { animation: fade .4s both; }
.fields li:nth-child(1) { animation-delay: .9s; }
.fields li:nth-child(2) { animation-delay: 1.05s; }
.fields li:nth-child(3) { animation-delay: 1.2s; }
.fields li.off { animation: fade .4s 1.2s both, strike .4s 1.6s both; }
.log li { animation: rise .45s both; }
.log li:nth-child(1) { animation-delay: 2.0s; }
.log li:nth-child(2) { animation-delay: 2.35s; }
.log li:nth-child(3) { animation-delay: 2.7s; }

.glow-a { animation: drift 18s ease-in-out infinite; }
.glow-b { animation: drift 22s ease-in-out infinite reverse; }
.dot { animation: pulse 2.4s ease-in-out infinite; }
.top::before { background-size: 200% 100%; background-image: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand)); animation: sheen 8s linear infinite; }

/* Buttons and cards respond to the pointer. */
.btn { transition: transform .15s ease, opacity .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); opacity: 1; box-shadow: 0 6px 18px color-mix(in srgb, var(--btn) 30%, transparent); }
.btn-ghost:hover { box-shadow: none; }
.btn .i { transition: transform .15s ease; }
.btn:hover .i { transform: translateX(3px); }
.rules li, .audiences article { transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.rules li:hover { background: var(--brand-soft); }
.audiences article:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-2px); }

/* Sections fade in as they scroll into view, where the browser supports it.
   Elsewhere they are simply visible. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

/* Header: see-through at the top of the page, then a solid, blurred bar with a
   faint shadow once the visitor scrolls. Browsers without scroll timelines keep
   the solid bar. */
@keyframes header-solid {
  from {
    background-color: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
  to {
    background-color: color-mix(in srgb, var(--bg) 85%, transparent);
    border-bottom-color: var(--line);
    box-shadow: var(--header-shadow);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
  }
}
@supports (animation-timeline: scroll()) {
  .top {
    animation: header-solid linear both;
    animation-timeline: scroll(root);
    animation-range: 0 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .top {
    background-color: color-mix(in srgb, var(--bg) 92%, transparent);
    border-bottom-color: var(--line);
  }
}
