/* DrakenLume hub. No frameworks: CSS animations + a tiny hub.js. */
:root {
  --bg: #ffffff;
  --bg-2: #f4f4f6;
  --card: #ffffff;
  --ink: #0b0b10;
  --ink-2: #3f3f48;
  --ink-3: #62626c;
  --line: #e6e6ea;
  --ember: #f05a28;
  --ember-2: #ff9a3c;
  --ember-soft: #fff0e8;
  --ember-ink: #c2410c;
  --flame: linear-gradient(90deg, #f05a28, #ff9a3c);
  --ok: #15803d;
  --ok-soft: #e8f7ee;
  --wait: #8a5a00;
  --wait-soft: #fbf0d9;
  --night: #0b0b10;
  --btn: #0b0b10;
  --btn-ink: #ffffff;
  --kutti: #fff3e6;
  --festive: #edf3ff;
  --glow: rgba(255, 154, 60, .30);
  --shadow: 0 1px 2px rgba(10, 10, 20, .04), 0 8px 24px -12px rgba(10, 10, 20, .14);
  --shadow-lg: 0 2px 4px rgba(10, 10, 20, .04), 0 28px 56px -24px rgba(10, 10, 20, .28);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08080c;
    --bg-2: #13131b;
    --card: #101017;
    --ink: #f5f5f7;
    --ink-2: #b6b6c2;
    --ink-3: #8d8d9b;
    --line: #24242f;
    --ember: #ff6b3d;
    --ember-2: #ffb347;
    --ember-soft: #2a160f;
    --ember-ink: #ff8a5c;
    --flame: linear-gradient(90deg, #ff6b3d, #ffb347);
    --ok: #5ee0a0;
    --ok-soft: #10261c;
    --wait: #f2c46b;
    --wait-soft: #3a2d12;
    --night: #000000;
    --btn: linear-gradient(135deg, #ff6b3d, #ff9a3c);
    --btn-ink: #140802;
    --kutti: #251a10;
    --festive: #111d33;
    --glow: rgba(255, 107, 61, .30);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .8);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 30px 60px -24px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 56px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 30; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink);
  font: 600 15px/1.2 var(--sans); text-decoration: none; text-align: center;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.btn.primary:hover { border-color: transparent; box-shadow: 0 12px 28px -12px var(--ember), 0 0 0 3px color-mix(in srgb, var(--ember) 22%, transparent); }
.btn.lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn.sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  padding: 14px 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s;
}
.top.scrolled { border-bottom-color: var(--line); padding: 10px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.01em; font-size: 18px; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; }
.glow {
  position: absolute; top: -20%; left: calc(50% + 20px); width: 720px; height: 720px; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-90px, 60px, 0) scale(1.12); } }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 5vw, 88px); align-items: center; }
.eyebrow {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0;
  font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ember-ink);
}
.eyebrow span { color: var(--ink-3); }
.eyebrow span::before { content: "·"; margin-right: 8px; color: var(--ink-3); }
h1 {
  font-family: var(--display); font-weight: 760;
  font-size: clamp(40px, 6.6vw, 76px); line-height: 1.02; letter-spacing: -.04em;
  margin: 18px 0 22px; max-width: 13ch;
}
h1 em {
  font-style: normal; white-space: nowrap; color: var(--ember);
  background: linear-gradient(90deg, var(--ember), var(--ember-2), var(--ember)) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }
.lede { font-size: clamp(17px, 2vw, 19.5px); color: var(--ink-2); max-width: 46ch; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-2); }
.proof li { display: flex; flex-direction: column; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--card) 70%, transparent); line-height: 1.35; }
.proof b { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }

/* Hero dock: the product family as a small app window */
.dock {
  position: relative; border-radius: 26px; padding: 0 0 22px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: rise .9s .15s var(--ease) both;
}
@keyframes rise { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
.dock-bar { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.dock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dock-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--bg-2); }
.dock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; padding: 26px 18px 6px; }
.app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; text-align: center; color: var(--ink-2); animation: bob 6s var(--d, 0s) ease-in-out infinite; }
.app img { width: 56px; height: 56px; border-radius: 15px; box-shadow: var(--shadow); }
.app b { font-weight: 600; line-height: 1.25; }
.app s { position: absolute; top: -3px; left: calc(50% + 20px); width: 11px; height: 11px; border-radius: 50%; background: var(--line); border: 2px solid var(--card); }
.app s.on { background: #2fbf71; }
.app s.ok { background: #e7a92f; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.toast {
  position: absolute; left: -28px; bottom: -26px; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--night); color: #f5f5f7;
  font-size: 13px; line-height: 1.3; box-shadow: var(--shadow-lg);
  animation: toast 7s 1.2s var(--ease) infinite both;
}
.toast img { width: 28px; height: 28px; border-radius: 8px; }
.toast b { display: block; font-weight: 650; }
.toast span { color: #b6b6c2; }
@keyframes toast {
  0% { transform: translateY(16px) scale(.96); opacity: 0; }
  8%, 70% { transform: none; opacity: 1; }
  80%, 100% { transform: translateY(8px); opacity: 0; }
}

/* Sections */
.sec { padding: 72px 0 0; }
.head { max-width: 640px; margin: 0 0 32px; }
.kicker { margin: 0 0 8px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ember-ink); }
h2 { font-family: var(--display); font-weight: 720; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 12px; }
.head p:not(.kicker) { margin: 0; color: var(--ink-2); font-size: 17px; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--ember-2) 16%, transparent), transparent 60%);
}
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ember) 35%, var(--line)); box-shadow: var(--shadow-lg); }
.tile:hover::before { opacity: 1; }
.t-flow { grid-column: span 4; grid-row: span 2; }
.t-discord { grid-column: span 2; grid-row: span 2; }
.t-tg, .t-cert { grid-column: span 3; }
.t-kutti, .t-festive { grid-column: span 3; }
.tile-top { display: flex; align-items: center; gap: 14px; }
.tile-top > div { flex: 1; min-width: 0; }
.ico { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.tile h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.2; margin: 0; }
.platform { font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 3px 0 0; }
.tile .desc { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.t-flow .desc { font-size: 18px; max-width: 46ch; }
.pill {
  flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  margin: 0; padding: 5px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 650; color: var(--ink-2); background: var(--bg-2);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.live { color: var(--ok); background: var(--ok-soft); }
.pill.live::before { animation: pulse 2s ease-out infinite; }
.pill.ok { color: var(--wait); background: var(--wait-soft); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
.demo { margin: 4px 0 0; }
.demo video {
  width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line); background: var(--night);
}
.t-discord .demo video { aspect-ratio: 16 / 10; }
.demo figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.facts { list-style: none; padding: 0; margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.facts li { display: flex; gap: 9px; padding: 3px 0; }
.facts li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; background: var(--ember-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23e4572e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.t-flow .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.t-flow .facts li { flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: var(--bg-2); font-size: 14px; }
.price { margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--ink-2); }
.price b { color: var(--ink); }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.actions.one { grid-template-columns: minmax(0, 1fr); }
.t-flow .actions { grid-template-columns: auto auto; justify-content: start; }
.note { margin: -4px 0 0; font-size: 13px; color: var(--ink-3); }
.t-kutti { background: linear-gradient(160deg, var(--kutti), var(--card) 60%); }
.t-festive { background: linear-gradient(160deg, var(--festive), var(--card) 60%); }

/* Price line with a Go Pro button (Notify cards) */
.price.has-pro { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.btn.pro { flex: none; color: var(--ember-ink); border-color: color-mix(in srgb, var(--ember) 45%, var(--line)); }
.btn.pro:hover { border-color: var(--ember); }

/* App Store link on the Kutti Buddies card */
.store { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
.btn.store-btn { background: var(--night); color: #f5f5f7; border-color: transparent; }
.btn.store-btn:hover { border-color: transparent; box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .btn.store-btn { background: #f5f5f7; color: #0b0b10; } }

/* Christmas: Festive Buddies comes first until 25 Dec (hub.js moves it back after) */
.t-festive .actions { margin-top: auto; }
.xmas-tag { position: relative; margin: 0 0 -4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-ink); }
.bento:not(.xmas) .xmas-tag { display: none; }
@media (min-width: 761px) {
  .bento.xmas .t-festive { grid-column: span 6; padding: 30px; }
  .bento.xmas .t-festive .desc { font-size: 18px; max-width: 56ch; }
  .bento.xmas .t-festive .facts { display: flex; flex-wrap: wrap; gap: 8px 24px; }
  .bento.xmas .t-festive .actions { grid-template-columns: auto auto; justify-content: start; }
  .bento.xmas .t-tg, .bento.xmas .t-cert, .bento.xmas .t-kutti { grid-column: span 2; }
}
@media (min-width: 761px) and (max-width: 1199px) {
  .bento.xmas .t-tg, .bento.xmas .t-cert { grid-column: span 3; }
  .bento.xmas .t-kutti { grid-column: span 6; }
  .bento.xmas .t-kutti .actions { grid-template-columns: auto auto; justify-content: start; }
}

/* Festive tile: falling snow, pure CSS */
.snow, .snow::before, .snow::after {
  position: absolute; inset: -100px 0 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(2.5px 2.5px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 90px 70px, #fff, transparent),
    radial-gradient(3px 3px at 160px 20px, #fff, transparent),
    radial-gradient(2px 2px at 230px 90px, #fff, transparent),
    radial-gradient(2.5px 2.5px at 300px 50px, #fff, transparent);
  background-size: 320px 100px;
  animation: snow 9s linear infinite;
  opacity: .9;
}
.snow::before { content: ""; inset: -100px 0 0; background-position: 60px 40px; animation-duration: 13s; opacity: .6; }
.snow::after { content: ""; inset: -100px 0 0; background-position: 140px 10px; animation-duration: 17s; opacity: .45; }
@media (prefers-color-scheme: light) { .snow, .snow::before, .snow::after { filter: drop-shadow(0 0 1px rgba(80, 110, 160, .55)); } }
@keyframes snow { from { transform: translateY(0); } to { transform: translateY(100px); } }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.steps li { counter-increment: s; display: flex; gap: 10px; align-items: baseline; line-height: 1.4; }
.steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ember-ink); background: var(--ember-soft); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principles > div { padding: 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); }
.principles h3 { font-size: 18px; margin: 0 0 6px; }
.principles p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.principles .n { font-family: var(--display); font-weight: 760; letter-spacing: -.03em; color: var(--ember-ink); font-size: 24px; display: block; margin-bottom: 8px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.qa { border: 1px solid var(--line); border-radius: 18px; background: var(--card); transition: border-color .2s; }
.qa[open] { border-color: color-mix(in srgb, var(--ember) 30%, var(--line)); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--ember); transition: transform .25s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa h3 { margin: 0; font-size: 16.5px; line-height: 1.35; }
.qa p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); font-size: 15.5px; }

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.founder p:not(.kicker) { margin: 0 0 12px; color: var(--ink-2); }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; }
.social a:hover { border-color: var(--ink-3); }
.contact { background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.contact h3 { margin: 0 0 6px; font-size: 19px; }
.contact p { font-size: 15px; margin: 0 0 8px; color: var(--ink-2); }
.contact a.mail { font-weight: 650; color: var(--ember-ink); text-decoration: none; word-break: break-all; }
.contact a.mail:hover { text-decoration: underline; }

/* Closing band */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 56px 40px; border-radius: 30px; text-align: center;
  background: var(--night); color: #f5f5f7;
}
.band::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 154, 60, .45), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
.band h2 { color: #fff; }
@media (prefers-color-scheme: dark) { .band { background: var(--card); border: 1px solid var(--line); } }
.band p { margin: 0 auto 26px; max-width: 44ch; color: #b6b6c2; }
.band .cta { justify-content: center; }
.band .btn.primary { background: #fff; color: #0b0b10; }
@media (prefers-color-scheme: dark) { .band .btn.primary { background: var(--btn); color: var(--btn-ink); } }
.band .btn.light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.band .btn.light:hover { border-color: #fff; }

/* Footer */
.foot { margin-top: 72px; border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--ink-3); }
.foot .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot .fh { font-weight: 650; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 3px 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .brand { color: var(--ink); margin-bottom: 10px; }
.listed a { color: var(--ink-2); font-weight: 600; }

/* Scroll reveal: hub.js marks only below-the-fold blocks as pending */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.pending:not(.in) { opacity: 0; transform: translateY(22px); }
.bento .reveal:nth-child(2), .principles .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3), .principles .reveal:nth-child(3) { transition-delay: .12s; }
.bento .reveal:nth-child(4) { transition-delay: .16s; }
.bento .reveal:nth-child(5) { transition-delay: .08s; }
.bento .reveal:nth-child(6) { transition-delay: .14s; }

/* Wide screens: use the room */
@media (min-width: 981px) {
  #faq .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
  #faq .head { position: sticky; top: 96px; margin: 0; }
  .faq { max-width: none; }
}
@media (min-width: 1200px) {
  .app img { width: 68px; height: 68px; border-radius: 18px; }
  .app { font-size: 13.5px; }
  .dock-grid { gap: 26px 12px; padding: 34px 24px 10px; }
  .t-flow .desc { font-size: 19px; }
}

@media (min-width: 1700px) { .wrap { max-width: 1560px; } h1 { font-size: 88px; } .lede { font-size: 21px; } }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .dock { max-width: 460px; margin: 0 auto; }
  .t-flow, .t-discord { grid-column: span 6; grid-row: auto; }
  .t-discord .demo video { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 36px 0 64px; }
  .glow { width: 460px; height: 460px; top: -10%; left: 30%; }
  .proof { display: grid; grid-template-columns: 1fr 1fr; }
  .proof li:last-child { grid-column: span 2; }
  .cta .btn { flex: 1 1 100%; }
  .toast { left: 8px; bottom: -22px; }
  .sec { padding-top: 56px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .bento > .tile { grid-column: auto; }
  .tile { padding: 20px; border-radius: 22px; }
  .tile-top { flex-wrap: wrap; }
  .t-flow .facts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .t-flow .facts li { flex-direction: row; padding: 3px 0; background: none; }
  .cta .desk { display: none; }
  .t-flow .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles, .faq, .about { grid-template-columns: minmax(0, 1fr); }
  .band { padding: 40px 20px; border-radius: 24px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .cols > div:first-child { grid-column: span 2; }
}

/* Small phones */
@media (max-width: 480px) {
  .tile-top > div { flex: 1 1 150px; }
  .eyebrow { flex-direction: column; align-items: flex-start; gap: 2px; }
  .eyebrow span::before { display: none; }
  .dock { padding-bottom: 46px; }
  .dock-grid { gap: 16px 4px; padding: 22px 10px 4px; }
  .app { font-size: 12px; }
}
@media (max-width: 400px) {
  .actions, .t-flow .actions { grid-template-columns: minmax(0, 1fr); }
  .proof { grid-template-columns: minmax(0, 1fr); }
  .proof li:last-child { grid-column: auto; }
  h1 { font-size: 38px; }
}

/* Respect reduced motion: no loops, no reveals, no autoplay (hub.js checks this too) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.pending { opacity: 1; transform: none; }
}

/* Staggered bob for the hero dock (no inline styles: the CSP blocks them) */
.app:nth-child(2) { --d: .6s; } .app:nth-child(3) { --d: 1.2s; } .app:nth-child(4) { --d: 1.8s; }
.app:nth-child(5) { --d: 2.4s; } .app:nth-child(6) { --d: 3s; }
