:root {
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --bg: #EEF0F2;
  --ink: #0F1115;
  --body: #2A2E35;
  --muted: #6F747C;
  --code: #7A7F88;
  --comment: #B3B8BF;
  --hot: #FF5A1F;
  --hot-soft: #FFE1D3;
  --cw: 46vw;
  --ch: 52vh;
  --gap: 4.75vw;
  --top: 40.2vh;
  --r: 1.6vw;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; border-radius: 6px; }

.stage { position: absolute; inset: 0; overflow: hidden; }

/* Nav */
.nav {
  position: relative; z-index: 5;
  height: 56px; padding: 0 20px;
  display: flex; align-items: center; gap: 56px;
}
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.logo span { font-weight: 600; font-size: 23px; letter-spacing: -.035em; }
.links { display: flex; gap: 38px; margin: 0; padding: 0; list-style: none; }
.links a { font-size: 13px; font-weight: 500; color: var(--body); display: inline-flex; align-items: center; gap: 6px; }
.links i {
  width: 8px; height: 5px; opacity: .7;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.actions { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 12.5px; font-weight: 500; }
.pill { height: 32px; padding: 0 17px; border-radius: 99px; display: inline-flex; align-items: center; }
.pill.ghost { border: 1px solid #C4C9CF; background: rgba(255,255,255,.35); }
.pill.hot { background: var(--hot); color: #fff; }
.signin { color: var(--body); }

/* Hero */
.hero {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: 1fr 34vw; gap: 4vw;
  padding: 30px 8.9vw 0;
}
.eyebrow {
  margin: 0; font-family: var(--mono); font-weight: 500; font-size: 11.5px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--body);
}
h1 {
  margin: 14px 0 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3vw, 58px); line-height: 1.05; letter-spacing: -.025em;
}
h1 em { font-style: italic; }
.pitch p {
  margin: 0; max-width: 34vw; color: var(--body);
  font-size: clamp(14px, 1.05vw, 19px); line-height: 1.55;
}
.cta {
  margin-top: 20px; height: 40px; padding: 0 22px; border-radius: 99px;
  display: inline-flex; align-items: center;
  background: var(--hot); color: #fff; font-size: 13px; font-weight: 500;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.cta:hover { transform: translateY(-2px); }

/* Belt */
.belt {
  position: absolute; left: 0; right: 0;
  top: calc(var(--top) - 70px); height: calc(var(--ch) + 140px);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  z-index: 2;
}
.belt.dragging { cursor: grabbing; }
.belt:focus-visible { outline: none; }
.belt:focus-visible ~ .scan i { box-shadow: 0 0 0 3px #fff, 0 0 10px 4px rgba(255,90,31,.95), 0 0 34px 10px rgba(255,90,31,.45); }
.codes {
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24vw);
  mask-image: linear-gradient(90deg, transparent 0, #000 24vw);
}
.cards, .fx { position: absolute; inset: 0; }
.fx { width: 100%; height: 100%; pointer-events: none; }
.card, .code {
  position: absolute; top: 70px; left: 0;
  width: var(--cw); height: var(--ch);
  will-change: transform, clip-path;
}
.code { container-type: inline-size; white-space: pre; overflow: hidden; visibility: hidden; }
.code .html, .code .meta {
  position: absolute; top: 0; margin: 0;
  font-family: var(--mono); font-size: 1.56cqw; line-height: 1.39;
}
.code .html { left: 0; color: var(--code); }
.code .meta { left: 51%; color: var(--comment); }

/* Scanner */
.scan {
  position: absolute; left: 50%; width: 0;
  top: calc(var(--top) - 14px); height: calc(var(--ch) + 40px);
  z-index: 3; pointer-events: none;
}
.scan i {
  position: absolute; left: -2px; top: 0; bottom: 0; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, #ff7a3c, var(--hot) 12%, var(--hot) 88%, #ff7a3c);
  box-shadow: 0 0 10px 2px rgba(255,90,31,.85), 0 0 34px 10px rgba(255,90,31,.38);
}
.scan b {
  position: absolute; left: 0; top: 4%; bottom: 4%; width: 42px;
  background: linear-gradient(90deg, rgba(255,110,50,.55), transparent);
  filter: blur(6px);
}
.badge {
  position: absolute; left: 50%; top: calc(var(--top) - 60px); transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 9px;
  pointer-events: none;
}
.badge .label { font-size: 11.5px; color: var(--muted); }
.count {
  display: flex; height: 26px; border-radius: 99px; overflow: hidden;
  box-shadow: 0 0 18px rgba(255,90,31,.35);
  font-family: var(--mono); font-weight: 500; font-size: 12.5px; white-space: nowrap;
}
.num {
  background: var(--hot); color: #fff; padding: 0 11px 0 13px; min-width: 8.2ch;
  display: flex; align-items: center; justify-content: flex-end; font-variant-numeric: tabular-nums;
}
.pct { background: var(--hot-soft); color: #C7380A; font-size: 11px; padding: 0 12px 0 10px; display: flex; align-items: center; }

/* Footer row */
.foot {
  position: absolute; left: 20px; right: 20px; bottom: 0; z-index: 5;
  height: calc(100% - var(--top) - var(--ch));
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.foot > * { pointer-events: auto; }
.foot-right { display: flex; align-items: center; gap: 16px; }
.privacy { font-size: 12px; font-weight: 500; color: var(--body); padding: 8px 2px; }
.privacy:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.credit img { display: block; height: clamp(22px, 3.4vh, 30px); width: auto; }
.pause {
  height: 30px; padding: 0 14px; border-radius: 99px; cursor: pointer;
  border: 1px solid #C4C9CF; background: rgba(255,255,255,.45);
  font-size: 12px; font-weight: 500; color: var(--body);
  display: inline-flex; align-items: center; gap: 8px;
}
.pause::before { content: ""; width: 8px; height: 9px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.pause[aria-pressed="true"]::before { border: 0; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* Solenne cards: each is a scaled mini website sized in cqw */
.card {
  container-type: inline-size; overflow: hidden; border-radius: var(--r);
  color: #fff; background: #1B1311; user-select: none; -webkit-user-select: none;
}
.card .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.card .veil { position: absolute; inset: 0; }
.card > *:not(.bg):not(.veil) { position: absolute; }
.s-nav {
  left: 4.4cqw; right: 4.4cqw; top: 4cqw;
  display: flex; align-items: center; justify-content: space-between;
}
.s-logo { display: flex; align-items: center; gap: 1.3cqw; font-weight: 500; font-size: 4.6cqw; letter-spacing: -.03em; }
.s-logo svg { width: 5.2cqw; height: 4.2cqw; }
.s-menu { display: flex; gap: 3.4cqw; font-size: 1.32cqw; font-weight: 500; letter-spacing: .14em; opacity: .85; }
.s-menu .on { border: 1px solid rgba(255,255,255,.6); border-radius: 99px; padding: .7cqw 1.6cqw; margin: -.7cqw -1.6cqw; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); font-weight: 400; }

/* 1 home */
.c-home .veil { background: linear-gradient(180deg, rgba(20,10,4,.25), transparent 30%, rgba(20,10,4,.6)); }
.c-home .stats { left: 4.4cqw; bottom: 4.4cqw; display: flex; gap: 4cqw; }
.c-home .stats div + div { border-left: 1px solid rgba(255,255,255,.35); padding-left: 4cqw; }
.c-home .stats strong { display: block; font-weight: 300; font-size: 9cqw; line-height: .9; letter-spacing: -.04em; }
.c-home .stats small { display: block; font-size: 1.9cqw; margin-top: 1cqw; opacity: .9; }
.c-home .tag { right: 4.4cqw; bottom: 4.4cqw; width: 24cqw; font-size: 2.2cqw; line-height: 1.35; margin: 0; }

/* 2 subscribe */
.c-sub { color: #2A1406; background: radial-gradient(120% 90% at 20% 110%, #FF6A1F 0, #FF9A4A 35%, #F7C79A 62%, #EFD9C4 100%); }
.c-sub .s-menu .on { border-color: rgba(42,20,6,.55); }
.c-sub .price { left: 4.4cqw; top: 33%; font-weight: 300; font-size: 13cqw; letter-spacing: -.05em; line-height: 1; }
.c-sub .price sup { font-size: .4em; vertical-align: .9em; margin-right: .05em; }
.c-sub .per { left: 4.4cqw; top: 58%; font-size: 1.6cqw; opacity: .75; letter-spacing: .06em; }
.c-sub .plans { right: 4.4cqw; top: 30%; width: 36cqw; margin: 0; padding: 0; list-style: none; font-size: 1.9cqw; }
.c-sub .plans li { display: flex; justify-content: space-between; border-top: 1px solid rgba(42,20,6,.25); padding: 1.5cqw 0; }
.c-sub .go { left: 4.4cqw; bottom: 4.4cqw; background: #2A1406; color: #F7E6D6; border-radius: 99px; padding: 1.4cqw 2.6cqw; font-size: 1.8cqw; }

/* 3 case */
.c-case .bg { filter: blur(1.4cqw) saturate(1.1); transform: scale(1.12); }
.c-case .veil { background: linear-gradient(180deg, rgba(25,14,8,.2), rgba(25,14,8,.6)); }
.c-case .kick { left: 4.4cqw; top: 17%; font-size: 1.4cqw; letter-spacing: .08em; opacity: .9; }
.c-case h3 { left: 4.4cqw; top: 23%; width: 60cqw; margin: 0; font-size: 4.6cqw; line-height: 1.08; letter-spacing: -.01em; }
.c-case .cols { left: 4.4cqw; right: 4.4cqw; bottom: 4.4cqw; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; }
.c-case .cols div { border-top: 1px solid rgba(255,255,255,.4); padding-top: 1.4cqw; }
.c-case .cols strong { display: block; font-weight: 300; font-size: 6cqw; letter-spacing: -.04em; line-height: 1; }
.c-case .cols small { font-size: 1.7cqw; opacity: .85; }

/* 4 origin */
.c-origin { background: #1B1311; }
.c-origin .tiles { left: 4.4cqw; right: 4.4cqw; top: 21%; height: 46%; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 2cqw; }
.c-origin .tiles span { border-radius: 1.4cqw; background-size: cover; background-position: center; }
.c-origin .tiles p { margin: 0; align-self: center; font-size: 3.4cqw; line-height: 1.12; }
.c-origin .tiles em { opacity: .75; }
.c-origin .ft { left: 4.4cqw; right: 4.4cqw; bottom: 4.4cqw; display: flex; justify-content: space-between; align-items: flex-end; font-size: 1.6cqw; opacity: .7; line-height: 1.4; }

/* 5 roast */
.c-roast { background: #140C08; }
.c-roast .bg { filter: blur(.6cqw); transform: scale(1.06); }
.c-roast .veil { background: linear-gradient(90deg, transparent 45%, rgba(10,5,2,.45)), linear-gradient(180deg, transparent 40%, rgba(10,5,2,.4)); }
.c-roast h3 { left: 4.4cqw; bottom: 4.4cqw; margin: 0; font-size: 7.4cqw; line-height: .98; letter-spacing: -.02em; }
.c-roast dl { right: 4.4cqw; bottom: 4.4cqw; width: 30cqw; margin: 0; font-size: 1.8cqw; }
.c-roast dl div { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.35); padding: 1.3cqw 0; }
.c-roast dt { opacity: .75; }
.c-roast dd { margin: 0; }

/* 6 journal */
.c-journal { background: #E9ECF1; color: #121A2A; }
.c-journal .s-nav { opacity: .7; }
.c-journal .s-menu .on { border-color: rgba(18,26,42,.55); }
.c-journal h3 { left: 4.4cqw; top: 21%; margin: 0; font-size: 5.6cqw; line-height: 1.02; }
.c-journal h3 em { color: #46618E; }
.c-journal .posts { left: 4.4cqw; right: 4.4cqw; bottom: 4.4cqw; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 2.4cqw; align-items: end; }
.c-journal .posts span { display: block; aspect-ratio: 4 / 3; border-radius: 1.2cqw; background-size: cover; background-position: center; }
.c-journal .posts small { display: block; margin-top: 1.2cqw; font-size: 1.3cqw; letter-spacing: .08em; color: #6A7891; }
.c-journal .posts b { display: block; margin-top: .5cqw; font-weight: 500; font-size: 1.8cqw; line-height: 1.25; }

/* Mobile */
@media (max-width: 767px) {
  :root { --cw: 84vw; --ch: 54vw; --gap: 7vw; --top: max(56svh, 392px); --r: 3.2vw; }
  .code .html, .code .meta { font-size: 2cqw; }
  .nav { padding: 0 16px; }
  .links, .signin, .pill.ghost { display: none; }
  .pill.hot { height: 30px; padding: 0 13px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 14px; padding: 18px 20px 0; }
  h1 { font-size: 34px; }
  .pitch p { max-width: none; font-size: 14px; }
  .cta { margin-top: 14px; }
  .codes {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30vw);
    mask-image: linear-gradient(90deg, transparent 0, #000 30vw);
  }
  .foot { left: 16px; right: 16px; }
}
@media (max-width: 767px) and (max-height: 700px) {
  :root { --top: max(58svh, 372px); }
}
@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}

/* Navigation panels */
.panel {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100svh - 48px);
  border: 0; border-radius: 22px; padding: 0; color: var(--ink); background: #fff;
  box-shadow: 0 30px 80px rgba(15,17,21,.22);
}
.panel::backdrop { background: rgba(15,17,21,.32); backdrop-filter: blur(3px); }
.sheet { padding: 22px 26px 28px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.panel-head small { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--body); }
.close { width: 44px; height: 44px; margin: -8px -12px -8px 0; border: 0; border-radius: 99px; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; }
.close:hover { background: var(--bg); }
.panel h2 { margin: 10px 0 18px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.08; letter-spacing: -.02em; }
.panel ol.steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.panel ol.steps b { color: var(--ink); font-weight: 600; }
.panel .rows { list-style: none; margin: 0; padding: 0; }
.panel .rows li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid #E1E4E8; font-size: 14px; line-height: 1.45; }
.panel .rows b { font-weight: 600; }
.panel .rows span { color: var(--body); }
.snippet { margin: 0; padding: 16px 18px; border-radius: 14px; background: #F4F5F7; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--body); overflow-x: auto; }
.note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.field span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.field textarea { width: 100%; resize: vertical; border: 1px solid #C4C9CF; border-radius: 12px; padding: 12px 14px; font: 14px/1.5 var(--sans); color: var(--ink); background: #fff; }
.field textarea:focus { outline: 2px solid var(--hot); outline-offset: 1px; }
.panel-actions { margin-top: 14px; }
.panel-actions .pill { height: 40px; padding: 0 20px; font-size: 13px; font-weight: 500; }
@media (max-width: 767px) {
  .panel .rows li { grid-template-columns: 1fr; gap: 2px; }
  .panel h2 { font-size: 28px; }
}
