/* =========================================================
   Kimistore — marketing site
   ========================================================= */

:root {
  --bg:            #05070d;
  --bg-alt:        #080b14;
  --surface:       rgba(255,255,255,.028);
  --surface-2:     rgba(255,255,255,.05);
  --border:        rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);

  --text:          #e9edf7;
  --text-dim:      #a3adc2;
  --text-mute:     #6d778d;

  --blue:          #6ea8ff;
  --violet:        #8b5cf6;
  --cyan:          #22d3ee;
  --green:         #34d399;
  --amber:         #fbbf24;
  --red:           #f87171;

  --grad:  linear-gradient(100deg, #6ea8ff 0%, #8b5cf6 45%, #22d3ee 100%);
  --grad-soft: linear-gradient(100deg, rgba(110,168,255,.16), rgba(139,92,246,.14), rgba(34,211,238,.14));

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --radius: 16px;
  --radius-sm: 11px;

  --shadow-lg: 0 28px 70px -28px rgba(0,0,0,.85);
  --shadow-md: 0 16px 40px -20px rgba(0,0,0,.75);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #9cc3ff; }

code, pre { font-family: var(--mono); }
code {
  font-size: .88em;
  background: rgba(110,168,255,.1);
  border: 1px solid rgba(110,168,255,.16);
  padding: .12em .4em;
  border-radius: 5px;
  color: #bcd6ff;
}
pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.05rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 880px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #04060b; padding: .7rem 1.1rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--text-dim); max-width: 62ch; }
.lede--sm { font-size: 1.02rem; }
.muted { color: var(--text-mute); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .9rem;
}

/* ========================= BUTTONS ========================= */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .68rem 1.25rem;
  border-radius: 999px;
  font-weight: 600; font-size: .93rem;
  border: 1px solid transparent;
  background: var(--grad);
  color: #05070d;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s, filter .18s;
  box-shadow: 0 10px 26px -12px rgba(110,168,255,.7);
  white-space: nowrap;
}
.btn:hover { color: #05070d; transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(139,92,246,.8); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: none;
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: var(--surface-2); color: #fff; box-shadow: 0 12px 30px -18px rgba(0,0,0,.9); }
.btn--sm { padding: .45rem .95rem; font-size: .85rem; }
.btn--lg { padding: .88rem 1.7rem; font-size: 1rem; }

/* ========================= NAV ========================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(5,7,13,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-stuck { border-bottom-color: var(--border); background: rgba(5,7,13,.92); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }

.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; letter-spacing: -.02em; }
.brand__mark { display: grid; place-items: center; }
.brand__text { font-size: 1.08rem; }

.nav__links { display: flex; gap: .3rem; margin-left: auto; }
.nav__links a {
  color: var(--text-dim); font-size: .89rem; font-weight: 500;
  padding: .45rem .72rem; border-radius: 8px; transition: color .18s, background .18s;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__cta { display: flex; gap: .55rem; }

.nav__toggle {
  display: none; margin-left: auto;
  width: 40px; height: 38px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; padding: 0; place-items: center; gap: 4px; flex-direction: column;
}
.nav__toggle span { display: block; width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; padding: .5rem 24px 1.2rem; border-top: 1px solid var(--border); }
.nav__mobile a { color: var(--text-dim); padding: .65rem .2rem; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .95rem; }
.nav__mobile a:hover { color: var(--text); }

/* ========================= HERO ========================= */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 0; overflow: hidden; }
.hero__glow {
  position: absolute; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 30% 40%, rgba(110,168,255,.20), transparent 55%),
    radial-gradient(circle at 68% 35%, rgba(139,92,246,.20), transparent 55%),
    radial-gradient(circle at 50% 65%, rgba(34,211,238,.12), transparent 60%);
  filter: blur(30px);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__copy .lede { margin-bottom: 1.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }

.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .38rem .9rem .38rem .7rem; margin-bottom: 1.4rem;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); backdrop-filter: blur(8px);
  font-size: .8rem; color: var(--text-dim);
}
.pill__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.hero__facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
  list-style: none; margin: 0; padding: 1.1rem 0 0;
  border-top: 1px solid var(--border);
}
.hero__facts li { font-size: .8rem; color: var(--text-mute); line-height: 1.35; }
.hero__facts strong { display: block; font-size: 1.32rem; color: var(--text); font-weight: 700; letter-spacing: -.03em; }

/* terminal */
.terminal {
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18,22,36,.92), rgba(10,13,22,.94));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.terminal__bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .6rem .9rem; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.028);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.terminal__title { margin-left: .5rem; font-family: var(--mono); font-size: .74rem; color: var(--text-mute); }
.terminal__body { margin: 0; padding: 1.1rem 1.15rem; font-size: .84rem; line-height: 1.85; overflow-x: auto; }

.c-prompt { color: var(--green); font-weight: 600; }
.c-cmd    { color: var(--cyan); }
.c-kv     { color: var(--violet); }
.c-fn     { color: #c4b5fd; }
.c-str    { color: #a5e8b0; }
.c-cmt    { color: #5c6680; font-style: italic; }
.c-dim    { color: #5c6680; }
.c-ok     { color: var(--green); }
.c-hl     { color: var(--amber); font-weight: 600; }

.stack-card {
  margin-top: 1rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); backdrop-filter: blur(8px); padding: .55rem 1.05rem;
}
.stack-card__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .62rem 0; border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .84rem;
}
.stack-card__row:last-child { border-bottom: 0; }
.stack-card__key { color: var(--text-mute); font-family: var(--mono); font-size: .78rem; }
.stack-card__val { color: var(--text); text-align: right; font-weight: 500; }

/* marquee */
.marquee {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1.05rem 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; gap: 3.2rem; width: max-content;
  animation: scroll-x 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--mono); font-size: .82rem; color: var(--text-mute); white-space: nowrap;
  display: flex; align-items: center; gap: 3.2rem;
}
.marquee__track span::after { content: "◆"; font-size: .5rem; color: rgba(255,255,255,.18); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========================= SECTIONS ========================= */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { max-width: 70ch; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section__head h2 { margin-bottom: .8rem; }

.grid { display: grid; gap: 1.15rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card {
  padding: 1.6rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s, background .25s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px 220px at 50% -20%, rgba(110,168,255,.14), transparent 70%);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 1.1rem;
  border-radius: 11px; background: var(--grad-soft); border: 1px solid var(--border-strong);
  color: var(--blue); font-size: 1.15rem;
}
.card p { color: var(--text-dim); font-size: .95rem; margin: 0; }

.callout {
  display: flex; gap: 1.3rem; align-items: flex-start; margin-top: 1.6rem;
  padding: 1.6rem 1.7rem; border-radius: var(--radius);
  border: 1px solid rgba(110,168,255,.25);
  background: linear-gradient(120deg, rgba(110,168,255,.09), rgba(139,92,246,.05));
}
.callout--warn { border-color: rgba(251,191,36,.3); background: linear-gradient(120deg, rgba(251,191,36,.08), rgba(248,113,113,.04)); }
.callout__mark {
  flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; font-weight: 700; font-size: 1.1rem;
  background: rgba(110,168,255,.16); color: var(--blue); border: 1px solid rgba(110,168,255,.3);
}
.callout--warn .callout__mark { background: rgba(251,191,36,.16); color: var(--amber); border-color: rgba(251,191,36,.32); }
.callout h3 { margin-bottom: .5rem; }
.callout p { margin: 0; color: var(--text-dim); font-size: .97rem; }
.callout strong { color: var(--text); }

/* features */
.feature {
  display: flex; gap: 1.3rem; align-items: flex-start;
  padding: 1.7rem 1.6rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: border-color .25s, background .25s;
}
.feature:hover { border-color: var(--border-strong); background: var(--surface-2); }
.feature__num {
  font-family: var(--mono); font-size: .82rem; font-weight: 600; flex: 0 0 auto;
  padding-top: .2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--text-dim); font-size: .95rem; margin-bottom: .5rem; }

/* ========================= DIAGRAM ========================= */
.diagram {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16,20,34,.7), rgba(8,11,20,.7));
  padding: clamp(.8rem, 2.4vw, 1.8rem); box-shadow: var(--shadow-md); overflow-x: auto;
}
.diagram svg { display: block; width: 100%; min-width: 760px; height: auto; }
.d-box { stroke-width: 1.5; }
.d-box--muted { fill: rgba(255,255,255,.03); stroke: var(--border-strong); }
.d-box--agent { fill: rgba(139,92,246,.07); stroke: rgba(139,92,246,.5); }
.d-box--inner { fill: rgba(255,255,255,.035); stroke: var(--border); }
.d-box--wal   { fill: rgba(52,211,153,.09); stroke: rgba(52,211,153,.42); }
.d-box--s3    { fill: rgba(34,211,238,.07); stroke: rgba(34,211,238,.45); }
.d-chip { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.1); }
.d-label { fill: var(--text); font-size: 14px; font-weight: 600; text-anchor: middle; font-family: var(--sans); }
.d-label--hot { fill: #6ee7b7; }
.d-sub, .d-sub2 { fill: var(--text-mute); font-size: 11.5px; text-anchor: middle; font-family: var(--sans); }
.d-title { fill: #cbd5f5; font-size: 12.5px; font-weight: 700; letter-spacing: .13em; text-anchor: middle; font-family: var(--mono); }
.d-title--s3 { fill: #7dd3fc; }
.d-line { stroke: #5b6478; stroke-width: 1.6; fill: none; }
.d-line--dash { stroke-dasharray: 5 4; stroke: #47506a; }
.d-tag { fill: var(--text-mute); font-size: 10.5px; font-family: var(--mono); }

.flow-cards { margin-top: 1.4rem; }
.flow {
  padding: 1.35rem 1.4rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  border-top: 2px solid var(--blue);
}
.flow:nth-child(2) { border-top-color: var(--violet); }
.flow:nth-child(3) { border-top-color: var(--cyan); }
.flow__step {
  display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-mute); margin-bottom: .55rem;
}
.flow h4 { margin-bottom: .4rem; }
.flow p { margin: 0; color: var(--text-dim); font-size: .91rem; }

/* ========================= TABLE ========================= */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 660px; }
.table th, .table td { padding: .95rem 1.15rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.055); vertical-align: top; }
.table thead th {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute);
  font-weight: 600; background: rgba(255,255,255,.022); white-space: nowrap;
}
.table thead th:last-child { color: var(--cyan); }
.table tbody th { font-weight: 500; color: var(--text-dim); white-space: nowrap; }
.table td { color: var(--text-dim); }
.table td.muted { color: var(--text-mute); }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .18s; }
.table tbody tr:hover { background: rgba(255,255,255,.022); }
.tag {
  display: inline-block; padding: .16rem .55rem; border-radius: 6px; font-size: .78rem; font-weight: 500;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,.05); color: var(--text-dim);
}
.tag--yes { border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.1); color: #6ee7b7; }

/* ========================= COMPAT ========================= */
.compat { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.15rem; }
.compat__col { padding: 1.4rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compat__title {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: .95rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border);
}
.api-list, .plain-list { list-style: none; margin: 0; padding: 0; }
.api-list li {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: .6rem; align-items: center;
  padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .875rem;
}
.api-list li:last-child { border-bottom: 0; }
.api { color: var(--text); font-weight: 500; }
.api__k {
  font-family: var(--mono); font-size: .7rem; color: var(--text-mute);
  background: rgba(255,255,255,.05); border: 1px solid var(--border); padding: .05rem .38rem; border-radius: 5px;
}
.api__k--off { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.28); color: #fca5a5; }
.api__v { font-family: var(--mono); font-size: .74rem; color: var(--blue); min-width: 3.4rem; text-align: right; }
.tick { color: var(--green); font-size: .9rem; }
.plain-list li { display: flex; gap: .6rem; align-items: center; padding: .4rem 0; font-size: .875rem; color: var(--text-dim); }

/* ========================= CODE ========================= */
.code-block {
  border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(16,20,34,.95), rgba(9,12,20,.96));
  box-shadow: var(--shadow-lg); margin-bottom: 1.3rem;
}
.code-block__tabs { display: flex; gap: .2rem; padding: .55rem .6rem 0; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.025); overflow-x: auto; }
.tab {
  padding: .55rem 1rem; border: 0; background: none; color: var(--text-mute); cursor: pointer;
  font-family: var(--sans); font-size: .87rem; font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .18s, border-color .18s;
}
.tab:hover { color: var(--text-dim); }
.tab.is-active { color: var(--text); border-bottom-color: var(--blue); }
.code-block__panel { display: none; }
.code-block__panel.is-active { display: block; animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.code-block pre { margin: 0; padding: 1.3rem 1.4rem; overflow-x: auto; font-size: .855rem; line-height: 1.85; }

.lang-cards { margin-top: 1.3rem; }
.lang-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.lang-card__badge {
  display: inline-block; padding: .4rem .9rem; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cyan);
  border-bottom: 1px solid var(--border); background: rgba(34,211,238,.06);
}
.lang-card pre { margin: 0; padding: 1.1rem 1.25rem; overflow-x: auto; font-size: .8rem; line-height: 1.75; }

/* ========================= USE CASES / STATUS ========================= */
.mini {
  padding: 1.4rem 1.35rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: transform .25s, border-color .25s, background .25s;
}
.mini:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.mini h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.mini p { margin: 0; color: var(--text-dim); font-size: .9rem; }

.stat { text-align: center; padding: 1.6rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat__num {
  display: block; font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.stat__label { display: block; margin-top: .3rem; font-size: .85rem; color: var(--text-mute); }

.status-cols { margin-top: 1.4rem; }
.status-h { font-size: 1.02rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .55rem; }
.status-h--on::before  { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(52,211,153,.7); }
.status-h--todo::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(251,191,36,.6); }
.check-list, .todo-list { list-style: none; margin: 0; padding: 0; }
.check-list li, .todo-list li {
  position: relative; padding: .5rem 0 .5rem 1.6rem; font-size: .92rem; color: var(--text-dim);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.check-list li:last-child, .todo-list li:last-child { border-bottom: 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 600; }
.todo-list li::before  { content: "–"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }

/* ========================= FAQ ========================= */
.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 1.4rem; font-weight: 600; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: background .18s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: rgba(255,255,255,.025); }
.faq summary::after {
  content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--text-mute);
  transition: transform .25s, color .2s; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--blue); }
.faq details[open] summary { color: var(--text); }
.faq p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--text-dim); font-size: .95rem; }

/* ========================= CTA / FOOTER ========================= */
.cta { padding: clamp(4rem, 8vw, 6rem) 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(110,168,255,.14), transparent 70%);
}
.cta__inner { text-align: center; max-width: 720px; }
.cta p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 1.9rem; }
.cta__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 3rem 0 1.8rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }
.footer__brand { display: flex; gap: .8rem; align-items: flex-start; max-width: 340px; }
/* A mark must never be squashed by flex shrinking. The wrapper is the flex
   item, so pinning it is what actually stops the distortion. */
.brand__mark { flex: 0 0 auto; }
.footer__brand strong { font-size: 1rem; }
.footer__brand p { margin: .3rem 0 0; color: var(--text-mute); font-size: .87rem; }
.footer__links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer__links h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); margin-bottom: .7rem; }
.footer__links a { display: block; color: var(--text-dim); font-size: .88rem; padding: .22rem 0; transition: color .18s; }
.footer__links a:hover { color: var(--text); }
.footer__legal { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.footer__legal p { margin: 0; font-size: .8rem; color: var(--text-mute); max-width: 80ch; }
/* The privacy note sits under the trademark line, so it needs its own gap.
   Without it the two paragraphs run together with no separation. */
.footer__legal p + p { margin-top: .8rem; }
/* The link inherits the muted paragraph colour, which makes it look like plain
   text. Underline it so it reads as a link. */
.footer__legal a { text-decoration: underline; text-underline-offset: 2px; }
/* An abbreviation used for a term that has no room to expand inline. */
.footer__legal abbr { text-decoration: none; cursor: help; }

/* ========================= REVEAL ========================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ========================= RESPONSIVE ========================= */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .compat { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .nav__mobile.is-open { display: flex; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
  .callout { flex-direction: column; gap: .9rem; }
  .section__head h2 br { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; justify-content: center; }
  .grid--4 { grid-template-columns: 1fr; }
  .terminal__body { font-size: .78rem; }
  .footer__inner { gap: 1.8rem; }
}

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

/* ============================================================
   Grafana use case: Mimir & Tempo
   ============================================================ */

/* Proof row: the measured result, given the same treatment as the
   capability stats, with a green accent so it reads as verified. */
.proof { margin-top: 1.6rem; }
.proof .stat { border-color: rgba(52,211,153,.24); }
.proof .stat__num { background: linear-gradient(100deg, #34d399 0%, #22d3ee 100%); -webkit-background-clip: text; background-clip: text; }

.grafana-flow { margin-top: 1.6rem; }

/* Product cards: one per Grafana service, with a badge band so they read as
   a pair rather than as more feature blurbs. */
.grafana-cards { margin-top: 1.6rem; }
.gcard {
  display: flex; flex-direction: column; gap: .85rem;
  padding: 1.6rem 1.7rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.gcard__head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.gcard__badge {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px; color: var(--text);
  background: var(--grad-soft); border: 1px solid rgba(110,168,255,.28);
}
.gcard__ver {
  font-size: .72rem; color: var(--text-mute); font-family: var(--mono);
  padding: .3rem .55rem; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
}
.gcard h3 { margin: 0; font-size: 1.16rem; }
.gcard p { margin: 0; font-size: .95rem; color: var(--text-dim); line-height: 1.6; }
.gcard p strong, .gcard p em { color: var(--text); }
.gcard .check-list { margin: .1rem 0; }
.gcard__foot {
  margin-top: auto !important; padding-top: .9rem; border-top: 1px solid var(--border);
  font-size: .89rem !important; color: var(--text-mute) !important;
}

.sources {
  margin: 1.4rem 0 0; text-align: center; font-size: .84rem; color: var(--text-mute);
}
.sources a { color: var(--text-dim); border-bottom: 1px solid var(--border-strong); }
.sources a:hover { color: var(--blue); border-bottom-color: var(--blue); }
