:root {
  --ink: #0a1530;
  --ink-2: #13224a;
  --ink-line: rgba(255, 255, 255, 0.12);
  --ink-muted: #a9b4cc;
  --paper: #f3f5f9;
  --white: #ffffff;
  --text: #0e1a33;
  --muted: #56627a;
  --line: #dde3ee;
  --blue: #1d5bff;
  --blue-dark: #1347d6;
  --sky: #5fb8ff;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; font-weight: 700; }
p { margin: 0; }
code { font-family: var(--mono); }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 6px; border: 1px solid var(--blue);
  background: var(--blue); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--line { background: transparent; border-color: rgba(255, 255, 255, 0.35); }
.btn--line:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }
.btn--white { background: #fff; color: var(--blue); border-color: #fff; }
.btn--white:hover { background: #eaf0ff; border-color: #eaf0ff; }
.btn--small { padding: 8px 16px; font-size: 15px; }
a:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--ink-line); color: #fff; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 32px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--ink-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__links a:hover { color: #fff; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 88px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero__kicker { font-family: var(--mono); font-size: 14px; color: var(--sky); margin-bottom: 16px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); max-width: 13em; }
.lead { margin-top: 20px; font-size: 19px; color: var(--ink-muted); max-width: 32em; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__places { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink-muted); font-size: 15px; }
.hero__places li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero__places span { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--sky); border: 1px solid rgba(95, 184, 255, 0.4); border-radius: 4px; padding: 0 5px; }

.index { border: 1px solid var(--ink-line); border-radius: 10px; background: var(--ink-2); overflow: hidden; }
.index__title { padding: 14px 20px; font-family: var(--mono); font-size: 13px; color: var(--ink-muted); border-bottom: 1px solid var(--ink-line); }
.index__row {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 18px 20px;
  text-decoration: none; border-bottom: 1px solid var(--ink-line); transition: background-color .15s;
}
.index__row:last-child { border-bottom: 0; }
.index__row:hover { background: rgba(255, 255, 255, 0.04); }
.index__row strong { font-size: 18px; font-weight: 600; }
.index__row span { grid-column: 1; font-size: 14px; color: var(--ink-muted); }
.index__row code { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13px; color: var(--sky); }
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 420px) {
  .index__row { grid-template-columns: 1fr; }
  .index__row code { grid-column: 1; grid-row: auto; margin-top: 4px; }
}

/* Sections */
.section { padding: 96px 0; }
.section--paper { background: var(--paper); border-bottom: 1px solid var(--line); }
.section__head { max-width: 40em; }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section__lead { margin-top: 12px; color: var(--muted); }
@media (max-width: 600px) { .section { padding: 64px 0; } }

/* Products */
.products { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .products { grid-template-columns: 1fr; } }
.product { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.product__logo { display: flex; align-items: center; gap: 12px; height: 88px; padding: 0 24px; background: var(--ink); color: #fff; }
.product__logo img[src*="masterprod"] { width: 180px; }
.wordmark { font-size: 22px; font-weight: 700; }
.kukus-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: #fff; }
.kukus-badge img { width: 28px; }
.product__body { display: flex; flex-direction: column; gap: 14px; padding: 24px; flex: 1; }
.product__tag { font-family: var(--mono); font-size: 13px; color: var(--blue); }
.product__body > p:not(.product__tag) { color: var(--muted); font-size: 16px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); }
.product__link { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--blue); text-decoration: none; }
.product__link:hover { text-decoration: underline; }

/* Steps */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { border-top: 2px solid var(--text); padding-top: 20px; }
.steps__n { display: block; font-family: var(--mono); font-size: 14px; color: var(--blue); margin-bottom: 12px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Contact */
.contact { background: var(--blue); color: #fff; padding: 64px 0; }
.contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.contact h2 { font-size: clamp(28px, 3.6vw, 40px); }
.contact p { margin-top: 10px; color: #dbe5ff; max-width: 34em; }

/* Usage (DAU/WAU/MAU) */
.usage { background: var(--white); padding: 72px 0; border-bottom: 1px solid var(--line); }
.usage__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.usage h2 { font-size: clamp(28px, 3.6vw, 40px); }
.usage__live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.usage__live span:nth-child(2) { color: var(--text); font-weight: 500; }
.usage__dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); animation: usage-pulse 2s infinite; }
.usage.is-stale .usage__dot { background: #a3acbd; animation: none; }
@keyframes usage-pulse { 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.usage__grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stat { padding: 28px 28px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__label { font-family: var(--mono); font-size: 13px; color: var(--blue); }
.stat__label abbr { text-decoration: none; font-weight: 500; }
.stat__value { margin-top: 10px; display: flex; align-items: baseline; gap: 10px; font-size: clamp(40px, 5vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat__delta { font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0; color: #16a34a; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.stat__delta.is-on { opacity: 1; transform: none; }
.stat__hint { margin-top: 12px; font-size: 15px; color: var(--muted); }
.usage__ratio { margin-top: 20px; }
.usage__ratio p { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.usage__ratio strong { color: var(--text); font-family: var(--mono); font-weight: 500; }
.usage__bar { margin-top: 8px; height: 6px; border-radius: 3px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.usage__bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .8s ease; }
@media (max-width: 760px) {
  .usage { padding: 56px 0; }
  .usage__grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 22px 20px; }
  .stat:first-child { border-top: 0; }
}

/* Footer */
.footer { background: var(--ink); color: #fff; padding: 64px 0 32px; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__about p { margin-top: 14px; color: var(--ink-muted); font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer__col h3 { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--sky); margin-bottom: 6px; }
.footer__col a, .footer__col p { color: var(--ink-muted); text-decoration: none; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink-line);
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; color: var(--ink-muted); font-size: 13px;
}
@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .index__row, .usage__bar span, .stat__delta { transition: none; }
  .usage__dot { animation: none; }
}
