/* =========================================================
   Solentra — styles
   ========================================================= */

:root {
  --paper: #F7F1E4;
  --paper-2: #EFE5CF;
  --card: #FFFBF3;
  --ink: #1D1A16;
  --ink-soft: #3A342C;
  --muted: #5B5348;
  --hair: rgba(29, 26, 22, .14);

  --flare: #EA5A2E;          /* fills (ink text on top) */
  --flare-text: #CF4519;     /* large headline text */
  --flare-deep: #B23A0E;     /* small text on paper */
  --sun: #F5B841;
  --sun-soft: #FBE6B0;
  --sage: #5FB389;           /* automation */
  --iris: #8C7CF0;           /* 3D */

  --night: #1C1915;
  --night-2: #27221C;
  --night-line: #3D362D;
  --on-night: #F3EAD8;
  --on-night-muted: #B9AE9B;

  --radius: 16px;
  --radius-sm: 10px;
  --border: 1.5px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);

  --f-display: "Schibsted Grotesk", "Instrument Sans", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%231D1A16' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --check-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23F7F1E4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
s { text-decoration-thickness: 2px; opacity: .6; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--flare); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.flare-text { color: var(--flare-text); }
.flare-deep { color: var(--flare-deep); }
.sun-text { color: var(--sun); }

.display {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3.1rem, 7vw, 5.6rem);
  line-height: .95;
  letter-spacing: -.045em;
  margin: 18px 0 22px;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.8vw, 3.75rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.15rem); color: var(--ink-soft); max-width: 34em; }

.marker { position: relative; white-space: nowrap; z-index: 0; }
.marker::after {
  content: "";
  position: absolute; z-index: -1;
  left: -.04em; right: -.06em; bottom: .04em; height: .3em;
  background: var(--sun);
  border-radius: 4px;
  transform: skewX(-8deg) scaleX(0);
  transform-origin: left;
  animation: marker 0.9s .7s var(--ease) forwards;
}
@keyframes marker { to { transform: skewX(-8deg) scaleX(1); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--flare);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 90, 46, .5); }
  70% { box-shadow: 0 0 0 9px rgba(234, 90, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 90, 46, 0); }
}

.link { color: var(--flare-deep); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px;
  border: var(--border);
  border-radius: 12px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.btn--flare { background: var(--flare); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--flare); }
.btn--ink:hover { box-shadow: 6px 6px 0 var(--flare); }
.btn--ink:active { box-shadow: 1px 1px 0 var(--flare); }
.btn--ghost { background: var(--card); color: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn__arrow {
  flex: none;
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  font-size: 13px;
  transition: transform .2s var(--ease);
}
.btn--ink .btn__arrow { background: var(--flare); color: var(--ink); }
.btn:hover .btn__arrow { transform: rotate(45deg); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 228, .86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--hair); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.035em; }
.sun-fill { fill: var(--flare); }
.ink-stroke { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.ink-stroke--light { stroke: var(--on-night); }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 11px; border-radius: 8px;
  transition: background-color .15s;
}
.nav__links a:hover, .nav__links a.is-current { background: var(--paper-2); }
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px; border: var(--border); border-radius: 12px; background: var(--card);
  cursor: pointer; position: relative;
  box-shadow: 3px 3px 0 var(--ink);
}
.nav__toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.mobile-menu > * { overflow: hidden; }
.mobile-menu.is-open { grid-template-rows: 1fr; border-bottom-color: var(--hair); }
.nav:has(.mobile-menu.is-open) { background: var(--paper); }
.mobile-menu__inner { display: flex; flex-direction: column; }
.mobile-menu__inner a:not(.btn) {
  text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -.03em;
  padding: 9px 0; border-bottom: 1px solid var(--hair);
}
.mobile-menu__inner .btn { margin: 18px 4px 24px 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { min-width: 0; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; max-width: 560px; }
.tile {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px 15px;
  background: var(--card);
  border: var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tile:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.tile:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.tile--flare { background: var(--flare); }
.tile--night { background: var(--night); color: var(--on-night); box-shadow: 6px 6px 0 var(--flare); }
.tile--night:hover { box-shadow: 9px 9px 0 var(--flare); }
.tile--wide { grid-column: 1 / -1; }
.tile__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.tile__top .mono { font-size: 11px; }
.tile__price { font-family: var(--f-display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.tile__price s { font-size: 14px; font-weight: 600; margin-right: 2px; }
.tile__title { font-weight: 700; font-size: 16px; line-height: 1.25; }
.tile__sub { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.tile--flare .tile__sub { color: var(--ink); }
.tile--night .tile__sub { color: var(--on-night-muted); }
.tile__arrow { font-size: 14px; transition: transform .2s var(--ease); }
.tile:hover .tile__arrow { transform: translate(2px, -2px); }

.hero__ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.hero__ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__ticks li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--sun) var(--check) center/100% no-repeat;
  border: 1.5px solid var(--ink);
}

/* Hero stage / demo */
.hero__visual { min-width: 0; }
.stage {
  position: relative;
  padding: 20px 20px 72px;
  background-color: var(--sun-soft);
  background-image: radial-gradient(rgba(29, 26, 22, .16) 1px, transparent 1.2px);
  background-size: 16px 16px;
  border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.stage__label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; margin-bottom: 16px; color: var(--ink-soft); }
.track-pills { display: flex; gap: 4px; }
.track-pills i {
  font-style: normal; font-size: 10px; padding: 3px 8px; border-radius: 999px;
  border: 1px solid rgba(29, 26, 22, .25); transition: background-color .3s, color .3s, border-color .3s;
}
.track-pills i.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stage__caption { font-size: 11px; color: var(--muted); margin-top: 22px; text-align: right; letter-spacing: .08em; }

.term {
  width: 90%;
  background: #17140F;
  color: #EDE4D3;
  border: var(--border); border-radius: 12px;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
}
.term__bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px;
  background: #221E18; border-bottom: 1px solid #332D25;
}
.term__bar i, .preview__bar i, .art-web__bar i {
  width: 10px; height: 10px; border-radius: 50%; background: #4A4238; display: block;
}
.term__bar i:first-child { background: #E2624A; }
.term__bar i:nth-child(2) { background: #E9B44C; }
.term__bar i:nth-child(3) { background: #6FBF73; }
.term__bar em { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: #A69C8B; margin-left: 8px; }
.term__body {
  font-family: var(--f-mono); font-size: 12.5px; line-height: 1.65;
  padding: 14px 16px 66px;
  height: 230px;
  overflow: hidden;
  scroll-behavior: smooth;
}
.term__line { white-space: pre-wrap; word-break: break-word; }
.term__line .p, .art-term .p { color: var(--sun); }
.term__line .w, .art-term .w { color: #A69C8B; }
.term__line .dot { color: var(--flare); }
.term__line .ok { color: #8FD18A; }
.term__line .hl { color: #fff; }
.caret {
  display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px;
  background: var(--sun); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.preview {
  position: relative; z-index: 2;
  width: 78%;
  margin: -54px 0 0 auto;
  background: #fff;
  border: var(--border); border-radius: 12px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
}
.preview__bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px;
  background: #fff; border-bottom: 1.5px solid var(--ink); color: var(--ink);
}
.preview__url {
  margin-left: 8px; flex: 1;
  font-family: var(--f-mono); font-size: 10.5px; color: var(--muted);
  background: var(--paper); border-radius: 6px; padding: 3px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.preview__page { position: relative; height: 196px; }
.scene { position: absolute; inset: 0; padding: 14px 16px 16px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.scene.is-active { opacity: 1; visibility: visible; }
.pv { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.pv.on { opacity: 1; transform: none; }

/* scene: web */
.scene[data-scene="web"] { background: #FFF4E6; color: #3B2416; }
.pv-nav { display: flex; align-items: center; gap: 8px; }
.pv-nav b { font-family: var(--f-display); font-weight: 800; font-size: 13px; letter-spacing: -.02em; margin-right: auto; }
.pv-nav i { width: 24px; height: 5px; border-radius: 3px; background: currentColor; opacity: .25; display: block; }
.pv-hero { padding: 16px 0 14px; }
.pv-hero strong {
  display: block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(18px, 2.1vw, 24px); line-height: 1.05; letter-spacing: -.03em; max-width: 13em;
}
.pv-btn { display: inline-block; margin-top: 10px; background: #C8553D; color: #fff; font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-cards span { height: 46px; border-radius: 8px; position: relative; overflow: hidden; background: rgba(200, 85, 61, .16); }
.pv-cards span::before { content: ""; position: absolute; left: 8px; right: 30%; bottom: 9px; height: 5px; border-radius: 3px; background: currentColor; opacity: .3; }
.pv-cards span::after { content: ""; position: absolute; left: 8px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #C8553D; opacity: .65; }

/* scene: video */
.scene[data-scene="video"] { background: #131215; color: #fff; }
.vid-player {
  position: relative; height: 104px; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #3B2F5C, #C2563B 60%, #F5B841);
  display: grid; place-items: center;
}
.vid-play { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); position: relative; }
.vid-play::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.vid-cap {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  font-family: var(--f-display); font-weight: 900; font-size: 13px; letter-spacing: -.01em; text-transform: uppercase;
  background: var(--sun); color: var(--ink); padding: 2px 8px; border-radius: 4px; white-space: nowrap;
}
.vid-track { position: relative; display: flex; gap: 3px; margin-top: 12px; height: 22px; }
.vid-track span { width: var(--w); border-radius: 4px; background: #E36A43; }
.vid-track span:nth-child(2) { background: #F5B841; }
.vid-track span:nth-child(3) { background: #8C7CF0; }
.vid-track span:nth-child(4) { background: #5FB389; }
.vid-head { position: absolute; top: -5px; bottom: -5px; width: 2px; background: #fff; left: 0; animation: playhead 4s linear infinite; }
.vid-head::before { content: ""; position: absolute; top: -3px; left: -4px; width: 10px; height: 6px; border-radius: 2px; background: #fff; }
@keyframes playhead { to { left: 100%; } }
.vid-wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-top: 8px; }
.vid-wave span { flex: 1; border-radius: 2px; background: rgba(255, 255, 255, .35); height: 30%; animation: wave 1.2s ease-in-out infinite; }
.vid-wave span:nth-child(3n) { animation-delay: -.3s; }
.vid-wave span:nth-child(3n+1) { animation-delay: -.7s; }
.vid-wave span:nth-child(4n) { animation-delay: -.5s; }
@keyframes wave { 50% { height: 100%; } }

/* scene: automation */
.scene[data-scene="auto"] { background: #EEF6F0; color: #173A2A; }
.flow { display: flex; align-items: center; margin-top: 8px; }
.flow__node {
  flex: none; padding: 7px 10px; border-radius: 8px; background: #fff; border: 1.5px solid #173A2A;
  font-size: 11px; font-weight: 700;
}
.flow__node--ai { background: #173A2A; color: #fff; }
.flow__link { flex: 1; height: 2px; margin: 0 4px; background: repeating-linear-gradient(90deg, #3E8E6A 0 6px, transparent 6px 10px); background-size: 20px 2px; animation: flow 0.8s linear infinite; }
@keyframes flow { to { background-position: 20px 0; } }
.flow-rows { display: grid; gap: 6px; margin-top: 16px; }
.flow-rows span { height: 20px; border-radius: 5px; background: #fff; border: 1px solid #CFE3D6; position: relative; }
.flow-rows span::before { content: ""; position: absolute; left: 8px; top: 7px; width: 40%; height: 5px; border-radius: 3px; background: #9CC9B1; }
.flow-rows span::after { content: ""; position: absolute; right: 8px; top: 7px; width: 18%; height: 5px; border-radius: 3px; background: #3E8E6A; }
.flow-done { margin-top: 14px; font-family: var(--f-mono); font-size: 10.5px; color: #2F7A3A; font-weight: 600; }

/* scene: 3D */
.scene[data-scene="three"] { background: radial-gradient(circle at 50% 35%, #3A3364, #15131F 70%); color: #fff; }
.three { position: relative; height: 128px; display: grid; place-items: center; perspective: 500px; }
.three__floor { position: absolute; bottom: 8px; left: 50%; width: 110px; height: 18px; margin-left: -55px; border-radius: 50%; background: radial-gradient(rgba(140, 124, 240, .55), transparent 70%); }
.three-ui { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.three-ui span { font-family: var(--f-mono); font-size: 9.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .85); }

.cube {
  --s: 56px;
  position: relative; width: var(--s); height: var(--s);
  transform-style: preserve-3d;
  animation: cube 9s linear infinite;
}
.cube i {
  position: absolute; inset: 0; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 6px;
  background: linear-gradient(135deg, rgba(140, 124, 240, .9), rgba(234, 90, 46, .85));
}
.cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); background: linear-gradient(135deg, #F5B841, #EA5A2E); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); background: linear-gradient(135deg, #F5B841, #EA5A2E); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: linear-gradient(135deg, #B9AEFF, #8C7CF0); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
@keyframes cube { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }

.sticker {
  position: absolute; left: -14px; bottom: 26px; z-index: 3;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 40px 12px 16px;
  background: var(--card);
  border: var(--border); border-radius: 10px;
  box-shadow: 5px 5px 0 var(--flare);
  transform: rotate(-4deg);
  font-weight: 700; font-size: 15px; line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}
.sticker .mono { font-size: 10.5px; color: var(--flare-deep); }
.sticker__spark { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: var(--flare); animation: spin 8s linear infinite; }
@keyframes float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-6px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Facts band ---------- */
.facts {
  background: var(--night); color: var(--on-night);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--flare);
  overflow: hidden;
}
.facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: clamp(22px, 3vw, 34px); }
.fact + .fact { border-left: 1px solid var(--night-line); }
.fact .mono { font-size: 11px; color: var(--on-night-muted); }
.fact__num { font-family: var(--f-display); font-weight: 800; letter-spacing: -.04em; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; margin: 12px 0 8px; }
.fact__sub { color: var(--on-night-muted); font-size: 15px; }
.marquee {
  border-top: 1px solid var(--night-line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; padding: 16px 0; }
.marquee__track span {
  font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; padding: 0 22px; display: inline-flex; align-items: center; gap: 44px;
}
.marquee__track span::after { content: "✺"; color: var(--sun); margin-right: -22px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding-top: 0; }
.section--night { background: var(--night); color: var(--on-night); }
.section--night .lead { color: var(--on-night-muted); }
.section--paper2 { background: var(--paper-2); border-top: var(--border); border-bottom: var(--border); }
.section__head {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; margin-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--hair);
}
.section--night .section__head { border-bottom-color: var(--night-line); }
.section--night .section__head .muted { color: var(--on-night-muted); }

/* ---------- Courses ---------- */
.courses__intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: end; }
.courses {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.6vw, 28px);
  margin-top: clamp(36px, 5vw, 56px);
}
.course {
  --c: var(--flare);
  position: relative; display: flex; flex-direction: column;
  background: var(--card);
  border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.course:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.course__art {
  position: relative; height: 180px; border-bottom: var(--border); overflow: hidden;
  background-color: color-mix(in srgb, var(--c) 22%, var(--card));
  background-image: radial-gradient(rgba(29, 26, 22, .14) 1px, transparent 1.2px);
  background-size: 14px 14px;
  display: grid; place-items: center;
}
.course__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.course__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.level { font-size: 10.5px; padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c) 30%, var(--card)); border: 1px solid var(--ink); }
.course__price { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.course__price--free { background: var(--sun); border: var(--border); border-radius: 8px; padding: 1px 10px; font-size: 18px; }
.course__desc { color: var(--ink-soft); margin-top: 8px; font-size: 16px; }
.course__sell {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--hair);
  font-size: 14.5px; font-weight: 600;
}
.course__sell .mono { display: block; font-size: 10px; color: var(--flare-deep); margin-bottom: 2px; }
.course__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 20px; }

/* featured beginner card */
.course--featured { grid-column: 1 / -1; flex-direction: row; box-shadow: 10px 10px 0 var(--ink); }
.course--featured:hover { box-shadow: 13px 13px 0 var(--ink); }
.course--featured .course__art { flex: 0 0 46%; height: auto; min-height: 280px; border-bottom: 0; border-right: var(--border); }
.course--featured .course__body { padding: clamp(24px, 3.4vw, 40px); justify-content: center; }
.course--featured .h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.course__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: 15px; color: var(--ink-soft); }
.course__facts b { font-family: var(--f-display); color: var(--ink); font-size: 18px; }

/* bundle callout */
.course--bundle {
  grid-column: 1 / -1;
  flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  padding: 22px 26px;
  background: var(--flare); text-decoration: none;
}
.course--bundle .mono { font-size: 11px; }
.bundle__price { font-family: var(--f-display); font-weight: 900; font-size: 30px; letter-spacing: -.03em; }
.bundle__price s { font-size: 18px; font-weight: 700; }
.bundle__title { font-weight: 700; font-size: 17px; flex: 1; min-width: 200px; }
.bundle__cta {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 10px;
}

/* course art: terminal */
.art-term { background-color: var(--sun-soft); }
.art-term__win {
  width: min(380px, 84%); background: #17140F; color: #EDE4D3; border: var(--border); border-radius: 12px;
  padding: 16px 18px; font-family: var(--f-mono); font-size: 13px; line-height: 1.8;
  box-shadow: 6px 6px 0 var(--ink); transform: rotate(-2deg);
}
.art-badge {
  position: absolute; right: 18px; top: 18px; font-size: 10.5px;
  background: var(--flare); border: var(--border); border-radius: 999px; padding: 6px 12px;
  box-shadow: 3px 3px 0 var(--ink); transform: rotate(4deg);
}

/* course art: web */
.art-web__win { width: 64%; background: #fff; border: var(--border); border-radius: 10px; overflow: hidden; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-3deg); transition: transform .4s var(--ease); }
.course:hover .art-web__win { transform: rotate(0) translateY(-4px); }
.art-web__bar { display: flex; gap: 5px; padding: 7px 9px; border-bottom: 1.5px solid var(--ink); }
.art-web__page { padding: 10px 12px 12px; background: #FFF4E6; }
.art-web__page b { display: block; width: 40%; height: 6px; border-radius: 3px; background: #3B2416; opacity: .7; }
.art-web__page strong { display: block; width: 80%; height: 11px; border-radius: 3px; background: #3B2416; margin-top: 12px; }
.art-web__page strong.s2 { width: 55%; margin-top: 6px; }
.art-web__page em { display: block; width: 30%; height: 12px; border-radius: 999px; background: var(--flare); margin-top: 10px; }
.art-web__page div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.art-web__page div span { height: 22px; border-radius: 5px; background: rgba(234, 90, 46, .2); }

/* course art: video */
.art-video { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.art-video__screen {
  position: relative; width: 70px; height: 112px; border-radius: 10px; border: var(--border);
  background: linear-gradient(160deg, #3B2F5C, #C2563B 65%, #F5B841);
  display: grid; place-items: center; box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-4deg);
}
.art-video__screen .vid-play { width: 26px; height: 26px; }
.art-video__screen .vid-play::after { left: 10px; top: 7px; border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }
.art-video__cap { position: absolute; bottom: 12px; left: 6px; right: 6px; text-align: center; font-family: var(--f-display); font-weight: 900; font-size: 8px; background: var(--sun); border-radius: 3px; padding: 1px 0; }
.art-video__track { position: relative; display: flex; gap: 3px; width: 66%; height: 16px; }
.art-video__track span { flex: 1; border-radius: 3px; border: 1px solid var(--ink); background: var(--flare); }
.art-video__track span:nth-child(2) { flex: 1.6; background: var(--sun); }
.art-video__track span:nth-child(3) { flex: .8; background: var(--iris); }
.art-video__track span:nth-child(4) { flex: 1.2; background: var(--sage); }
.art-video__track b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); left: 0; animation: playhead 5s linear infinite; }

/* course art: automation */
.art-auto { display: flex; align-items: center; justify-content: center; padding: 0 8%; }
.art-auto__node {
  flex: none; padding: 9px 14px; border-radius: 10px; background: var(--card); border: var(--border);
  font-weight: 700; font-size: 14px; box-shadow: 3px 3px 0 var(--ink);
}
.art-auto__node--ai { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--sage); animation: nodePulse 2.4s ease-in-out infinite; }
@keyframes nodePulse { 50% { transform: scale(1.08); } }
.art-auto__link { flex: 1; height: 3px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); background-size: 28px 3px; animation: flow .9s linear infinite; }

/* course art: 3D */
.art-three { perspective: 600px; background-color: #2B2645; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.2px); }
.cube--lg { --s: 72px; }
.art-three .three__floor { bottom: 22px; width: 150px; margin-left: -75px; height: 22px; }

/* ---------- How ---------- */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.how__copy .lead { margin-top: 20px; }
.steps { margin-top: 32px; display: grid; gap: 4px; }
.step {
  display: flex; gap: 18px; width: 100%; text-align: left;
  padding: 16px 18px 18px 14px;
  border: 1.5px solid transparent; border-radius: 12px;
  background: none; cursor: pointer;
  position: relative;
  transition: background-color .2s, border-color .2s;
}
.step:hover { background: rgba(29, 26, 22, .04); }
.step.is-active { background: var(--card); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.step__num { color: var(--flare-deep); padding-top: 3px; }
.step__title { display: block; font-weight: 700; font-size: 18px; }
.step__text { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.step__progress { position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--hair); overflow: hidden; }
.step__progress::after { content: ""; position: absolute; inset: 0; background: var(--flare); transform: scaleX(0); transform-origin: left; }
.step.is-active.is-timing .step__progress::after { animation: progress var(--step-dur, 6s) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }

.demo {
  position: sticky; top: 100px;
  background: var(--card);
  border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  min-height: 400px;
}
.demo__head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px dashed var(--hair); }
.demo__panel { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.demo__note { margin-top: 16px; font-size: 11px; color: #2F7A3A; }
.demo__note--muted { color: var(--muted); }
.demo__q { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; margin-bottom: 16px; }

.guide-card { background: var(--night); color: var(--on-night); border-radius: 12px; padding: 20px; }
.guide-card .mono { font-size: 11px; color: var(--sun); }
.progress { height: 10px; border-radius: 999px; background: var(--night-line); margin-top: 16px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sun), var(--flare)); animation: grow 1.2s var(--ease); }
@keyframes grow { from { width: 0 !important; } }
.progress__label { font-size: 13px; color: var(--on-night-muted); margin-top: 8px; }
.checklist { margin-top: 16px; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--on-night-muted); }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--night-line); }
.checklist li.done { color: var(--on-night); }
.checklist li.done::before { background: var(--sun) var(--check) center/100% no-repeat; border-color: var(--sun); }
.checklist li.now { color: var(--on-night); font-weight: 600; }
.checklist li.now::before { border-color: var(--flare); box-shadow: inset 0 0 0 4px var(--night), inset 0 0 0 10px var(--flare); }

.skill-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.skill-pick__item {
  display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 12px;
  border: var(--border); background: color-mix(in srgb, var(--c) 18%, var(--card));
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.skill-pick__item b { font-size: 16px; }
.skill-pick__item small { font-size: 13px; color: var(--muted); }
.skill-pick__item.is-on { background: var(--c); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.skill-pick__item.is-on small { color: var(--ink); }

.portfolio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf { border: var(--border); border-radius: 12px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; padding-bottom: 10px; }
.pf__thumb { height: 74px; border-bottom: var(--border); margin-bottom: 8px; }
.pf b, .pf small { padding: 0 12px; }
.pf b { font-size: 14px; }
.pf small { font-size: 12px; color: var(--muted); }
.pf--web .pf__thumb { background: linear-gradient(#FFF4E6 0 40%, transparent 40%), linear-gradient(90deg, #3B2416 0 50%, transparent 50%) 12px 44% / 70% 8px no-repeat, #FFE3C8; }
.pf--video .pf__thumb { background: linear-gradient(135deg, #3B2F5C, #C2563B 60%, #F5B841); }
.pf--auto .pf__thumb { background: repeating-linear-gradient(#EEF6F0 0 14px, #CFE3D6 14px 15px); }
.pf--three .pf__thumb { background: radial-gradient(circle at 50% 55%, #8C7CF0 0 22%, transparent 23%), radial-gradient(circle at 50% 35%, #3A3364, #15131F 70%); }

.invoice { border: var(--border); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 5px 5px 0 var(--ink); }
.invoice__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px dashed var(--hair); }
.invoice__paid { font-size: 10.5px; background: #DDF1D9; color: #2F7A3A; padding: 4px 10px; border-radius: 999px; animation: stamp .6s .3s var(--ease) both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
.invoice__row { display: flex; justify-content: space-between; padding: 10px 16px; font-size: 15px; color: var(--ink-soft); }
.invoice__total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; background: var(--paper); border-top: 1px solid var(--hair); }
.invoice__total b { font-family: var(--f-display); font-size: 26px; letter-spacing: -.02em; }

/* ---------- Earn ---------- */
.earn { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.earn__copy .lead { margin-top: 20px; }
.earn__list { margin-top: 32px; display: grid; gap: 22px; }
.earn__list li { display: flex; gap: 16px; }
.earn__icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--night-2); border: 1px solid var(--night-line); color: var(--sun); font-size: 12px;
}
.earn__list b { font-size: 17px; }
.earn__list p { color: var(--on-night-muted); font-size: 15px; margin-top: 2px; }

.calc {
  background: var(--night-2);
  border: 1.5px solid var(--night-line); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--flare);
  padding: clamp(20px, 3vw, 28px);
}
.calc__head { display: flex; justify-content: space-between; font-size: 11px; color: var(--on-night-muted); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--night-line); }
.calc__head span:last-child { color: var(--sun); }
.calc__skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--night); border: 1px solid var(--night-line); }
.calc__skills button {
  border: 0; background: none; color: var(--on-night-muted); cursor: pointer;
  padding: 9px 4px; border-radius: 9px; font-weight: 600; font-size: 14px;
  transition: background-color .2s, color .2s;
}
.calc__skills button:hover { color: var(--on-night); }
.calc__skills button.is-on { background: var(--sun); color: var(--ink); }
.calc__field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; padding: 14px 0 4px; }
.calc__field label { font-weight: 600; font-size: 15px; }
.calc__field output { font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--sun); letter-spacing: -.02em; }
.calc__field input { grid-column: 1 / -1; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 4px 0 0;
  --fill: 20%;
}
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--flare) var(--fill), var(--night-line) var(--fill)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--night-line); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--flare); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -8px; border-radius: 50%;
  background: var(--sun); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  transition: transform .15s;
}
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--on-night); outline-offset: 2px; }

.calc__bars { display: flex; align-items: flex-end; gap: 5px; height: 96px; margin-top: 22px; }
.calc__bars span { flex: 1; border-radius: 4px 4px 2px 2px; min-height: 4px; background: linear-gradient(180deg, var(--sun), var(--flare)); transition: height .4s var(--ease); }
.calc__axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--on-night-muted); margin-top: 8px; }
.calc__results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--night-line); }
.calc__results .mono { font-size: 10.5px; color: var(--on-night-muted); }
.calc__num { font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -.03em; margin-top: 4px; }
.calc__total { grid-column: 1 / -1; background: var(--night); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--night-line); }
.calc__num--big { font-size: clamp(34px, 4.5vw, 44px); color: var(--sun); line-height: 1.05; }
.calc__note { font-size: 13px; color: var(--on-night-muted); margin-top: 14px; }

/* ---------- Community ---------- */
.community { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.community__copy .lead { margin-top: 20px; }
.perks { margin-top: 30px; display: grid; gap: 18px; }
.perks li { display: flex; gap: 16px; }
.perks__icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--sun); border: var(--border); box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--f-display); font-weight: 900; font-size: 18px;
}
.perks b { font-size: 17px; }
.perks p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.community__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px dashed var(--hair); }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.price--inline { flex-direction: column; gap: 4px; }
.price__num { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.4rem, 4.6vw, 3.2rem); letter-spacing: -.045em; line-height: 1; }
.price__meta { font-size: 11px; color: var(--muted); }
.price__num small, .tile__price small { font-size: .38em; font-weight: 700; letter-spacing: 0; margin-left: 3px; opacity: .75; }

.chat {
  display: grid; grid-template-columns: 190px 1fr;
  background: #201D19; color: var(--on-night);
  border: var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: 10px 10px 0 var(--flare);
  height: 520px;
}
.chat__side { background: #17140F; padding: 16px 10px; border-right: 1px solid #2E2923; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.chat__server { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 0 6px 14px; margin-bottom: 8px; border-bottom: 1px solid #2E2923; }
.chat__logo { width: 28px; height: 28px; border-radius: 8px; background: #2B261F; display: grid; place-items: center; }
.chat__logo svg { width: 20px; height: 20px; }
.chat__group { font-size: 9.5px; color: #8C826F; padding: 10px 8px 4px; }
.chat__ch {
  display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  color: #A69C8B; font-size: 14px; padding: 6px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background-color .15s, color .15s;
}
button.chat__ch:hover { background: #2B261F; color: var(--on-night); }
.chat__ch.is-on { background: #332D25; color: #fff; font-weight: 600; }
.chat__ch--static { cursor: default; opacity: .7; }
.chat__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #2E2923; }
.chat__head .mono { font-size: 9.5px; color: var(--sun); border: 1px solid #4A4238; border-radius: 999px; padding: 3px 8px; }
.chat__msgs { flex: 1; min-height: 0; overflow: hidden; padding: 6px 18px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.msg { display: flex; gap: 12px; animation: msgIn .45s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.msg__av {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: var(--ink);
}
.msg__name { font-weight: 700; font-size: 14.5px; }
.msg__name small { font-weight: 500; color: #8C826F; font-size: 11.5px; margin-left: 6px; }
.msg__text { font-size: 14.5px; color: #DCD2BF; line-height: 1.45; }
.msg__tag { display: inline-block; margin-top: 6px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(245, 184, 65, .14); color: var(--sun); }
.typing { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #8C826F; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8C826F; animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat__input { display: flex; justify-content: space-between; align-items: center; margin: 0 14px 14px; padding: 12px 14px; border-radius: 10px; background: #2B261F; color: #8C826F; font-size: 14px; }
.chat__send { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--flare); color: var(--ink); font-weight: 700; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); margin-top: clamp(32px, 5vw, 48px); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px 24px;
}
.plan--featured { box-shadow: 10px 10px 0 var(--flare); padding-top: 54px; transform: translateY(-10px); }
.plan__ribbon { position: absolute; left: -1.5px; right: -1.5px; top: -1.5px; background: var(--flare); border: var(--border); border-radius: var(--radius) var(--radius) 0 0; text-align: center; padding: 9px; font-size: 11px; }
.plan__label { font-size: 11px; color: var(--flare-deep); }
.plan__price { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 12px; }
.plan__price s { opacity: 1; }
.plan__desc { color: var(--ink-soft); font-size: 15.5px; }
.plan .ticks { margin: 18px 0 24px; }
.plan .btn { margin-top: auto; }

.ticks { display: grid; align-content: start; flex: 1; }
.ticks li {
  display: grid; grid-template-columns: 22px 1fr; column-gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 15px; color: var(--ink-soft);
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: ""; grid-row: span 2; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  border: 1.5px solid var(--ink);
  background: var(--flare) var(--check) center/100% no-repeat;
}
.ticks--ink li::before { background-color: var(--ink); background-image: var(--check-light); }
.ticks b { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--flare-deep); }
.ticks--ink b { color: var(--ink); }

.picker { display: grid; gap: 8px; margin: 16px 0 24px; flex: 1; align-content: start; }
.picker__opt { position: relative; cursor: pointer; }
.picker__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.picker__opt span {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border: var(--border); border-radius: 10px; background: var(--paper);
  font-weight: 600; font-size: 15px;
  transition: background-color .15s, box-shadow .15s, transform .15s;
}
.picker__opt span::after { content: ""; margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--card); transition: box-shadow .15s; }
.picker__opt i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); border: 1px solid var(--ink); }
.picker__opt:hover span { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); }
.picker__opt input:checked + span { background: var(--card); box-shadow: 3px 3px 0 var(--ink); }
.picker__opt input:checked + span::after { box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 10px var(--flare); }
.picker__opt input:focus-visible + span { outline: 3px solid var(--flare); outline-offset: 2px; }

.addon {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 32px;
  margin-top: clamp(32px, 5vw, 48px);
  padding: clamp(22px, 3vw, 32px);
  background: var(--night); color: var(--on-night);
  border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.addon__copy .mono { font-size: 11px; }
.addon__copy .h3 { margin: 6px 0 6px; }
.addon__copy p:last-child { color: var(--on-night-muted); font-size: 15.5px; max-width: 36em; }
.addon__icon { position: relative; width: 84px; height: 84px; }
.addon__icon span {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--night);
  background: var(--sun);
}
.addon__icon span:nth-child(1) { left: 0; top: 4px; background: var(--flare); }
.addon__icon span:nth-child(2) { right: 0; top: 4px; background: var(--iris); }
.addon__icon span:nth-child(3) { left: 20px; bottom: 0; background: var(--sun); animation: nodePulse 3s ease-in-out infinite; }
.addon__buy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.addon__buy .price__meta { color: var(--on-night-muted); margin-bottom: 8px; }
.addon .btn { box-shadow: 4px 4px 0 var(--paper); border-color: var(--paper); }
.addon .btn:hover { box-shadow: 6px 6px 0 var(--paper); }
.pricing__fine { text-align: center; margin-top: 26px; font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__head .h2 { margin: 14px 0 18px; }
.faq__head { position: sticky; top: 110px; }
.faq__list { border-top: var(--border); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 4px; font-weight: 700; font-size: 17px;
  transition: color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: var(--border); font-size: 18px; font-weight: 500; line-height: 1;
  transition: transform .3s var(--ease), background-color .2s;
}
.faq summary:hover { color: var(--flare-deep); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--flare); }
.faq__a { padding: 0 52px 22px 4px; color: var(--ink-soft); }
.faq details[open] .faq__a { animation: panelIn .35s var(--ease); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 24px;
  margin-bottom: clamp(56px, 8vw, 96px);
  padding: clamp(32px, 6vw, 64px);
  background-color: var(--sun-soft);
  background-image:
    linear-gradient(rgba(29, 26, 22, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 26, 22, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  border: var(--border); border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--flare);
}
.cta .h2 { margin: 14px 0 28px; }
.cta .mono { font-size: 11px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.cta__sun { width: 100%; max-width: 320px; justify-self: center; }
.cta__rays { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; transform-origin: 100px 89px; animation: spin 40s linear infinite; }
.cta__disc { fill: var(--flare); stroke: var(--ink); stroke-width: 3; }
.cta__ground { fill: var(--sun-soft); }
.cta__lines { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; fill: none; }

/* ---------- Footer ---------- */
.footer { border-top: var(--border); padding: 32px 0 28px; }
.footer__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; }
.footer__tag { color: var(--muted); font-size: 15px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; }
.footer__links a { font-weight: 600; font-size: 15px; text-underline-offset: 3px; }
.footer__links a:hover { color: var(--flare-deep); }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hair); }
.footer__base .mono { font-size: 11px; color: var(--muted); }
.footer__legal { font-size: 13px; color: var(--muted); max-width: 52em; }

/* ---------- Modals ---------- */
.modal {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0; border: var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--ink);
  box-shadow: 10px 10px 0 var(--flare);
  overflow: auto;
}
.modal--wide { width: min(880px, calc(100% - 32px)); }
.modal[open] { animation: modalIn .35s var(--ease); }
.modal::backdrop { background: rgba(29, 26, 22, .55); backdrop-filter: blur(3px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__inner { position: relative; padding: 28px; }
.modal__inner > .mono { font-size: 11px; }
.modal .h3 { margin: 6px 0 20px; padding-right: 40px; }
.modal__close {
  position: absolute; right: 18px; top: 18px; z-index: 2; width: 36px; height: 36px;
  border: var(--border); border-radius: 50%; background: var(--paper); cursor: pointer; font-size: 20px; line-height: 1;
}
.modal__close:hover { background: var(--sun); }
body.modal-open { overflow: hidden; }

/* course detail */
.cm__head { padding-bottom: 18px; border-bottom: 1px dashed var(--hair); }
.cm__head > .mono { font-size: 11px; color: var(--flare-deep); }
.cm .h3 { margin: 6px 0 8px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.cm__tag { color: var(--ink-soft); max-width: 40em; }
.cm__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; margin-top: 20px; }
.cm__label { font-size: 10.5px; color: var(--muted); margin-bottom: 6px; }
.modules { counter-reset: m; }
.modules li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 10px 4px; border-bottom: 1px solid var(--hair); font-size: 15px;
  transition: background-color .15s, padding-left .2s var(--ease);
}
.modules li:last-child { border-bottom: 0; }
.modules li:hover { background: var(--paper); padding-left: 10px; }
.modules .mono { color: var(--flare-deep); font-size: 11px; flex: none; }
.cm__side { display: flex; flex-direction: column; gap: 14px; }
.cm__box { border: var(--border); border-radius: 12px; padding: 16px; background: var(--paper); }
.cm__box--sun { background: var(--sun-soft); }
.cm__box p:not(.mono) { font-weight: 600; font-size: 15px; }
.cm__list { display: grid; gap: 8px; }
.cm__list li { display: flex; gap: 10px; font-size: 15px; }
.cm__list li::before { content: "→"; color: var(--flare-deep); font-weight: 700; }
.cm__format { font-size: 10.5px; color: var(--muted); line-height: 1.7; }
.cm__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 24px; padding-top: 20px; border-top: var(--border); }
.cm__price { display: flex; flex-direction: column; gap: 4px; }
.cm__price .price__num { font-size: 2.4rem; }
.cm__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* checkout */
.order { border: var(--border); border-radius: 12px; overflow: hidden; }
.order__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px; }
.order__item p { font-size: 13.5px; }
.order__item > div { min-width: 0; }
.order__thumb {
  width: 56px; height: 72px; border-radius: 4px 6px 6px 4px; background: var(--night); color: var(--on-night);
  display: flex; align-items: flex-end; padding: 6px; border: 1.5px solid var(--ink);
}
.order__thumb span { font-family: var(--f-display); font-weight: 800; font-size: 9px; line-height: 1.05; }
.order__thumb em { font-style: normal; color: var(--sun); }
.order__price { font-weight: 700; white-space: nowrap; }
.order__total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px; background: var(--paper); border-top: 1px dashed var(--hair); }
.order__total b { font-family: var(--f-display); font-size: 22px; }
.order__total .mono { font-size: 10px; }
.soon { display: flex; gap: 12px; margin: 18px 0; padding: 14px; border-radius: 12px; background: var(--sun-soft); border: 1.5px dashed var(--ink); font-size: 14.5px; }
.soon__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--flare); margin-top: 6px; animation: pulse 2.4s infinite; }
.modal__fine { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .course.reveal.is-in { transition: opacity .7s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__cta { margin-left: auto; }
  .nav__cta + .nav__toggle { margin-left: 0; }
}
@media (min-width: 1081px) {
  .mobile-menu { display: none; }
}

@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 620px; width: 100%; margin: 8px auto 0; }
  .how, .earn, .faq, .community { grid-template-columns: 1fr; }
  .demo { position: relative; top: 0; min-height: 0; }
  .faq__head { position: static; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan--featured { grid-column: 1 / -1; grid-row: 1; transform: none; }
  .chat { max-width: 640px; }
}

@media (max-width: 820px) {
  .courses__intro { grid-template-columns: 1fr; }
  .courses { grid-template-columns: 1fr; }
  .course--featured { flex-direction: column; }
  .course--featured .course__art { flex: none; min-height: 200px; border-right: 0; border-bottom: var(--border); }
  .facts__grid { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--night-line); }
  .fact { padding: 20px 22px; }
  .fact__num { margin: 8px 0 4px; font-size: 2.3rem; }
  .fact__sub { font-size: 14px; }
  .plans { grid-template-columns: 1fr; }
  .addon { grid-template-columns: 1fr; }
  .addon__icon { width: 70px; height: 70px; }
  .addon__icon span { width: 36px; height: 36px; }
  .addon__icon span:nth-child(3) { left: 17px; }
  .cm__grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .cta__sun { max-width: 220px; justify-self: start; order: -1; margin-bottom: -8px; }
}

@media (max-width: 600px) {
  .chat { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 500px; }
  .chat__side { flex-direction: row; align-items: center; gap: 6px; padding: 10px; border-right: 0; border-bottom: 1px solid #2E2923; overflow-x: auto; scrollbar-width: none; }
  .chat__side::-webkit-scrollbar { display: none; }
  .chat__server, .chat__group, .chat__ch--static { display: none; }
  .chat__ch { width: auto; flex: none; font-size: 13px; padding: 6px 10px; border: 1px solid #332D25; border-radius: 999px; }
  .chat__ch.is-on { border-color: var(--sun); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__inner { height: 64px; gap: 12px; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto !important; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 20px; }

  .tiles { grid-template-columns: 1fr; gap: 14px; }
  .tile { padding: 15px 16px; }
  .stage { padding: 14px 14px 84px; box-shadow: 6px 6px 0 var(--ink); }
  .track-pills i { padding: 2px 6px; font-size: 9px; }
  .term { width: 100%; }
  .term__body { font-size: 11.5px; height: 210px; padding: 12px 13px 60px; }
  .preview { width: 90%; margin-top: -40px; }
  .preview__page { height: 186px; }
  .sticker { left: 10px; bottom: 16px; font-size: 14px; }
  .stage__caption { text-align: left; }

  .section__head .muted { display: none; }
  .course__body { padding: 20px; }
  .course__art { height: 160px; }
  .course__actions .btn { flex: 1 1 100%; }
  .art-term__win { font-size: 11.5px; padding: 14px; }
  .course--bundle { padding: 20px; }
  .bundle__cta { width: 100%; justify-content: center; }
  .step { padding: 14px 14px 18px 12px; gap: 14px; }
  .skill-pick, .portfolio { gap: 10px; }
  .calc__skills button { font-size: 13px; padding: 9px 2px; }
  .community__buy .btn { width: 100%; }
  .plan { padding: 22px 20px 20px; }
  .plan--featured { padding-top: 52px; }
  .faq summary { font-size: 16px; padding: 18px 2px; }
  .faq__a { padding-right: 8px; }
  .footer__links { margin-left: 0; width: 100%; }
  .modal__inner { padding: 22px 18px; }
  .cm__btns, .cm__btns .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track span[aria-hidden] { display: none; }
}
