/* matrixarena.in — shared styles for the landing, privacy and terms pages.
   Light + dark themes via [data-theme] on <html>; Inter throughout.
   Headings stay solid text: Google's OAuth homepage checker cannot read
   gradient background-clip text (caused two review failures). */

:root {
  --bg: #fbfbfc;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --ink: #0b0c0f;
  --ink-2: #3b3f48;
  --ink-3: #676c76;
  --line: rgba(11, 12, 15, 0.08);
  --line-strong: rgba(11, 12, 15, 0.14);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-line: rgba(255, 255, 255, 0.75);
  --glass-ink: #0b0c0f;
  --glass-dim: #4a4f59;
  --btn: #0b0c0f;
  --btn-ink: #ffffff;
  --focus: #5b6cff;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 18px 48px -12px rgba(16, 24, 40, 0.14);
  --radius: 28px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #060708;
  --surface: #0e0f12;
  --surface-2: #15171b;
  --ink: #f4f5f7;
  --ink-2: #b6bbc5;
  --ink-3: #8a909b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(14, 15, 18, 0.58);
  --glass-line: rgba(255, 255, 255, 0.14);
  --glass-ink: #f4f5f7;
  --glass-dim: #b6bbc5;
  --btn: #f4f5f7;
  --btn-ink: #0b0c0f;
  --focus: #8f9bff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 48px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(91, 108, 255, 0.22); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Wordmark (swaps with theme) ---------- */
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { height: 36px; width: auto; }
.wordmark .wm-dark { display: none; }
[data-theme="dark"] .wordmark .wm-light { display: none; }
[data-theme="dark"] .wordmark .wm-dark { display: block; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a { font-size: 15px; color: var(--ink-2); transition: color 0.2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
@media (max-width: 760px) { .nav__links { display: flex; gap: 16px; margin-left: 4px; } .nav__links a { font-size: 14px; } }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.theme-btn {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  color: var(--ink-2); border: 1px solid var(--line-strong);
  transition: color 0.2s, background-color 0.2s, transform 0.4s var(--ease);
}
.theme-btn:hover { color: var(--ink); background: var(--surface-2); }
.theme-btn:active { transform: rotate(-25deg) scale(0.94); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 15.5px; font-weight: 550; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s, box-shadow 0.35s var(--ease), color 0.25s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--solid { background: var(--btn); color: var(--btn-ink); }
.btn--solid:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(11, 12, 15, 0.45); }
.btn--ghost { color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14.5px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 550; letter-spacing: 0.02em; color: var(--ink-2);
  padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.eyebrow .dot {
  width: 20px; height: 20px; border-radius: 999px;
  background: conic-gradient(from 210deg, #5cc8ff, #b7a5ff, #ff9ec7, #7ef0c6, #5cc8ff);
}
.display {
  font-size: clamp(46px, 8.2vw, 104px); line-height: 0.98; letter-spacing: -0.045em;
  font-weight: 650; color: var(--ink);
}
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); letter-spacing: -0.01em; }
.h2 {
  font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em;
  font-weight: 630; color: var(--ink);
}
.kicker { font-size: 14px; font-weight: 550; color: var(--ink-3); letter-spacing: 0.01em; margin-bottom: 18px; }

/* ---------- Gradient art (the "photos") ---------- */
.art {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); background: var(--a0, #cfe9ff);
  transform: translateZ(0);
}
.art__blob {
  position: absolute; width: var(--s, 75%); aspect-ratio: 1; border-radius: 50%;
  left: var(--x, 0%); top: var(--y, 0%);
  background: radial-gradient(circle at 50% 50%, var(--c) 0%, color-mix(in srgb, var(--c) 55%, transparent) 32%, transparent 68%);
  will-change: transform;
  animation: drift var(--t, 22s) var(--ease) infinite alternate;
  animation-delay: var(--dl, 0s);
  animation-play-state: paused;
}
.art.is-live .art__blob { animation-play-state: running; }
.art::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.22; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.art__glow {
  position: absolute; z-index: 1; width: 46%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  left: var(--gx, 50%); top: var(--gy, 40%); translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 65%);
  transition: left 1.2s var(--ease), top 1.2s var(--ease);
  mix-blend-mode: soft-light;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(var(--mx, 8%), var(--my, -6%), 0) scale(1.12) rotate(18deg); }
  100% { transform: translate3d(calc(var(--mx, 8%) * -0.6), calc(var(--my, -6%) * -1), 0) scale(0.94) rotate(-10deg); }
}

/* Palettes — cool, airy, photographic */
.art--aurora  { --a0: #cfe4ff; }
.art--sunset  { --a0: #f2b7d3; }
.art--lagoon  { --a0: #7fd3ff; }
.art--bloom   { --a0: #fff2f6; }
.art--glacier { --a0: #4fbcff; }
.art--dusk    { --a0: #ead9ff; }
.art--mint    { --a0: #e4fff3; }
.art--ember   { --a0: #ffd8c2; }
.art--tide    { --a0: #bfe3ff; }

/* ---------- Glass UI chips on art ---------- */
.glass {
  position: absolute; z-index: 3;
  background: var(--glass); color: var(--glass-ink);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 20px 50px -18px rgba(16, 24, 40, 0.35);
  border-radius: 20px;
}
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 15px; font-weight: 550; letter-spacing: -0.01em; border-radius: 16px; white-space: nowrap; }
.chip svg { width: 18px; height: 18px; flex: none; }
.chip .muted { color: var(--glass-dim); font-weight: 500; }
.pill-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(91, 108, 255, 0.14); color: #4652d6; }
[data-theme="dark"] .pill-tag { background: rgba(143, 155, 255, 0.18); color: #b9c1ff; }
.float { animation: bob 7s ease-in-out infinite; }
.float--2 { animation-duration: 8.5s; animation-delay: -2s; }
.float--3 { animation-duration: 9.5s; animation-delay: -4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- Hero ---------- */
.hero { padding: 148px 0 40px; text-align: center; }
.hero .eyebrow { margin-bottom: 30px; }
.hero .lede { max-width: 660px; margin: 28px auto 0; }
.tagline { display: block; color: var(--ink); font-weight: 550; margin-bottom: 6px; }
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero__stage { margin-top: 72px; }
.hero__art { aspect-ratio: 16 / 9; min-height: 420px; }

.post-card { width: min(360px, 78%); left: 50%; top: 50%; translate: -50% -50%; padding: 16px; border-radius: 24px; text-align: left; }
.post-card__head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 999px; flex: none; background: conic-gradient(from 120deg, #ff9ec7, #b7a5ff, #5cc8ff, #ff9ec7); border: 2px solid rgba(255, 255, 255, 0.85); }
.post-card__name { font-size: 15px; font-weight: 600; line-height: 1.2; }
.post-card__meta { font-size: 13px; color: var(--glass-dim); line-height: 1.3; }
.post-card__media { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; margin-top: 14px; height: 190px; }
.post-card__media span { border-radius: 14px; }
.post-card__media span:first-child { grid-row: span 2; }
.m1 { background: radial-gradient(120% 90% at 20% 20%, #ffd5e6, transparent 60%), radial-gradient(90% 90% at 80% 80%, #a98bff, transparent 60%), #7fd3ff; }
.m2 { background: radial-gradient(100% 100% at 30% 30%, #fff1c7, transparent 60%), #ffab7a; }
.m3 { background: radial-gradient(100% 100% at 70% 30%, #c6fff0, transparent 60%), #4fbcff; }
.post-card__actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; font-size: 14px; font-weight: 550; }
.post-card__actions span { display: inline-flex; align-items: center; gap: 6px; }
.post-card__actions svg { width: 20px; height: 20px; }
.post-card__actions .save { margin-left: auto; }
.post-card__caption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--glass-dim); }
.post-card__caption b { color: var(--glass-ink); font-weight: 600; }

.hero-chip-1 { left: 7%; top: 16%; }
.hero-chip-2 { right: 6%; top: 24%; }
.hero-chip-3 { right: 10%; bottom: 13%; }
.hero-chip-4 { left: 9%; bottom: 17%; }

/* ---------- Statement ---------- */
.statement { padding: 150px 0 130px; }
.statement__text {
  font-size: clamp(30px, 4.2vw, 56px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600;
  max-width: 1040px; color: var(--ink);
}
.statement__text .w { display: inline; opacity: 0.16; transition: opacity 0.6s var(--ease); }
.statement__text .w.on { opacity: 1; }

/* ---------- Features grid ---------- */
.features { padding: 40px 0 120px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head .lede { max-width: 440px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 28px; }
.card { display: block; }
.card .art { aspect-ratio: 1 / 1; transition: transform 0.8s var(--ease); }
.card:hover .art { transform: scale(0.985); }
.card .art .chip { left: 50%; top: 50%; translate: -50% -50%; transition: translate 0.8s var(--ease); }
.card:hover .art .chip { translate: -50% calc(-50% - 6px); }
.card h3 { margin-top: 22px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.card p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; max-width: 34ch; }

/* ---------- Marquee ---------- */
.marquee { padding: 20px 0 120px; overflow: hidden; display: grid; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__row { display: flex; gap: 14px; width: max-content; animation: slide 46s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.tag {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 16px; font-weight: 550; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap;
}
.tag i { width: 10px; height: 10px; border-radius: 999px; background: var(--c, #5cc8ff); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Safety ---------- */
.safety { padding: 40px 0 130px; }
.safety__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.panel {
  border-radius: 24px; padding: 32px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform 0.6s var(--ease), border-color 0.3s;
}
.panel:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.panel__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 26px; color: #0b0c0f; }
.panel__icon svg { width: 22px; height: 22px; }
.panel h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.panel p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }

/* ---------- Steps ---------- */
.steps { padding: 0 0 130px; }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 52px; border-top: 1px solid var(--line-strong); }
.step { padding: 30px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step__n { font-size: 14px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 40px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); max-width: 32ch; }

/* ---------- Closing CTA ---------- */
.cta { padding: 0 0 120px; }
.cta__art { min-height: 520px; display: grid; place-items: center; padding: 40px 20px; }
.cta__card { position: relative; z-index: 3; text-align: center; max-width: 560px; padding: 48px 40px; border-radius: 28px; }
.cta__card .h2 { color: var(--glass-ink); }
.cta__card p { margin-top: 16px; color: var(--glass-dim); font-size: 18px; }
.cta__card .btn { margin-top: 30px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__about { font-size: 15px; color: var(--ink-2); max-width: 340px; margin-top: 18px; }
.footer h4 { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.02em; margin-bottom: 14px; }
.footer__col a { display: block; font-size: 15px; color: var(--ink-2); padding: 5px 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 132px 0 0; }
.legal-hero .art { height: 220px; }
.legal-hero { padding-bottom: 64px; }
.prose { max-width: 740px; margin: 0 auto; padding: 0 24px 120px; }
.prose h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 630; }
.prose .meta { font-size: 14.5px; color: var(--ink-3); margin: 14px 0 36px; }
.prose .dim { font-size: 14.5px; color: var(--ink-3); margin: 4px 0 40px; }
.prose h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 44px 0 10px; }
.prose p { color: var(--ink-2); margin: 12px 0; font-size: 16.5px; line-height: 1.7; }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul, .prose ol { color: var(--ink-2); margin: 12px 0 12px 22px; }
.prose li { margin: 6px 0; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.hero [data-reveal] { transition-duration: 1.2s, 1.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .safety__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__inner { gap: 12px; height: 62px; }
  .wordmark img { height: 28px; }
  .hero { padding-top: 120px; }
  .hero__stage { margin-top: 52px; }
  .hero__art { aspect-ratio: 4 / 5; min-height: 0; }
  .hero-chip-1 { left: 5%; top: 6%; }
  .hero-chip-2 { display: none; }
  .hero-chip-3 { right: 5%; bottom: 5%; }
  .hero-chip-4 { display: none; }
  .post-card__media { height: 160px; }
  .statement { padding: 100px 0 90px; }
  .grid { grid-template-columns: 1fr; gap: 44px; }
  .card .art { aspect-ratio: 4 / 3; }
  .steps__grid { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 26px 0 26px; border-left: 0; border-bottom: 1px solid var(--line); }
  .step h3 { margin-top: 14px; }
  .cta__art { min-height: 460px; }
  .cta__card { padding: 36px 24px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  :root { --radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .statement__text .w { opacity: 1; }
}

/* ===================================================================
   Art style 2: spectrum strips (vertical light bands with grain)
   =================================================================== */
.art--strips { --a0: #050608; display: flex; gap: 0; }
.art--strips .strip {
  flex: 1; height: 100%; transform-origin: 50% 50%;
  background: linear-gradient(180deg,
    #050608 calc(50% - var(--k) * 50%), #0d1f5c calc(50% - var(--k) * 42%), #1f5fe0 calc(50% - var(--k) * 33%),
    #6fa7ff calc(50% - var(--k) * 23%), #f2a1c4 calc(50% - var(--k) * 12%), #f3eee6 50%,
    #f6c445 calc(50% + var(--k) * 12%), #f07a2a calc(50% + var(--k) * 23%), #d9431e calc(50% + var(--k) * 33%),
    #3a0d05 calc(50% + var(--k) * 42%), #050608 calc(50% + var(--k) * 50%));
  box-shadow: inset 7px 0 16px -8px rgba(0, 0, 0, 0.6);
  animation: breathe 8s var(--ease) infinite alternate;
  animation-delay: var(--sd, 0s);
  animation-play-state: paused;
}
.art--strips.is-live .strip { animation-play-state: running; }
@keyframes breathe { to { transform: scaleY(1.07); } }

/* ===================================================================
   Art style 3: glowing halo on near-black
   =================================================================== */
.art--halo { --a0: #040605; display: grid; place-items: center; }
.halo {
  position: relative; width: 78%; aspect-ratio: 1; border-radius: 50%;
  transform: rotate(-32deg) scaleY(0.78);
  animation: halo-spin 26s linear infinite; animation-play-state: paused;
}
.art--halo.is-live .halo { animation-play-state: running; }
.halo::before, .halo::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 210deg, #0b3d1a, #5fd068, #d9f27a, #fbffe9, #ffffff, #3d6dff, #7a1d1d, #0b3d1a);
  -webkit-mask: radial-gradient(closest-side, transparent 64%, #000 66%, #000 100%);
          mask: radial-gradient(closest-side, transparent 64%, #000 66%, #000 100%);
}
.halo::before { filter: blur(26px); opacity: 0.9; transform: scale(1.06); }
.halo::after { filter: blur(3px); }
.halo--warm::before, .halo--warm::after { background: conic-gradient(from 210deg, #3d1305, #f07a2a, #f6c445, #fff4dc, #ffffff, #8fb8ff, #2a1d4a, #3d1305); }
.halo--cool::before, .halo--cool::after { background: conic-gradient(from 210deg, #0a1a44, #2a7dff, #8fd3ff, #eef8ff, #ffffff, #ff9ec7, #3a1550, #0a1a44); }
@keyframes halo-spin { to { rotate: 360deg; } }

/* ===================================================================
   Phone mockups (screens drawn in HTML/CSS, app colours: #0D0D0D / #298DFB)
   =================================================================== */
.phone {
  --s: 1;
  position: relative; width: calc(var(--s) * 300px); aspect-ratio: 9 / 19.4; flex: none;
  border-radius: 50px; padding: 9px;
  background: linear-gradient(145deg, #3a3b40, #121316 40%, #2b2c31);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.08) inset, 0 40px 80px -30px rgba(0,0,0,.55), 0 18px 36px -18px rgba(0,0,0,.4);
  font-size: calc(var(--s) * 10px);
  text-align: left;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 42px; overflow: hidden;
  background: #0d0d0d; color: #f5f5f7; display: flex; flex-direction: column;
}
.phone__island { position: absolute; top: 1.1em; left: 50%; translate: -50% 0; width: 9.4em; height: 2.8em; border-radius: 99px; background: #000; z-index: 5; }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 1.5em 2.6em 0 2.9em; height: 4.6em; font-size: 1.45em; font-weight: 600; flex: none; }
.phone__status svg { height: 1.1em; width: auto; }
.ps-icons { display: flex; gap: .35em; align-items: center; }
.phone__body { flex: 1; overflow: hidden; position: relative; }
.p-bar { display: flex; align-items: center; justify-content: space-between; padding: .8em 1.8em 1em; }
.p-bar img { height: 2.6em; width: auto; }
.p-bar .ico { display: flex; gap: 1.6em; }
.p-bar svg, .p-tabbar svg, .p-actions svg { width: 2.2em; height: 2.2em; }
.p-title { font-size: 1.7em; font-weight: 650; letter-spacing: -0.02em; }
.p-post { padding: 0 0 1.4em; }
.p-author { display: flex; align-items: center; gap: .9em; padding: 0 1.6em .9em; }
.p-author .av { width: 3.2em; height: 3.2em; border-radius: 99px; background: conic-gradient(from 120deg, #ff9ec7, #b7a5ff, #5cc8ff, #ff9ec7); flex: none; }
.p-author b { display: block; font-size: 1.35em; font-weight: 600; line-height: 1.2; }
.p-author span { font-size: 1.15em; color: #9a9aa2; }
.p-media { aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.p-media .dots { position: absolute; bottom: .9em; left: 50%; translate: -50% 0; display: flex; gap: .4em; }
.p-media .dots i { width: .6em; height: .6em; border-radius: 99px; background: rgba(255,255,255,.5); }
.p-media .dots i:first-child { background: #fff; }
.p-media .count { position: absolute; top: 1em; right: 1em; font-size: 1.1em; font-weight: 600; padding: .3em .8em; border-radius: 99px; background: rgba(0,0,0,.45); }
.p-actions { display: flex; align-items: center; gap: 1.5em; padding: 1em 1.6em .6em; font-size: 1.25em; font-weight: 600; }
.p-actions span { display: inline-flex; align-items: center; gap: .4em; }
.p-actions svg { width: 1.8em; height: 1.8em; }
.p-actions .r { margin-left: auto; }
.p-cap { padding: 0 1.6em; font-size: 1.25em; line-height: 1.4; color: #c9c9ce; }
.p-cap b { color: #fff; font-weight: 600; }
.p-tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center; padding: 1.2em 1em 2.6em; background: linear-gradient(180deg, rgba(13,13,13,0), #0d0d0d 30%); color: #8e8e93; }
.p-tabbar .on { color: #fff; }
.p-tabbar .plus { width: 4.4em; height: 3.2em; border-radius: 1.1em; display: grid; place-items: center; background: #298DFB; color: #fff; }
.p-tabbar .plus svg { width: 2em; height: 2em; }
.p-home { position: absolute; bottom: .9em; left: 50%; translate: -50% 0; width: 12em; height: .45em; border-radius: 99px; background: rgba(255,255,255,.85); z-index: 6; }

/* Profile screen */
.p-cover { height: 15em; margin: 0 1.2em; border-radius: 2em; position: relative; overflow: hidden; }
.p-pf { padding: 0 1.8em; margin-top: -3.8em; position: relative; }
.p-pf .av { width: 7em; height: 7em; border-radius: 99px; border: .4em solid #0d0d0d; background: conic-gradient(from 120deg, #ff9ec7, #b7a5ff, #5cc8ff, #7ef0c6, #ff9ec7); }
.p-pf h4 { font-size: 2em; font-weight: 650; letter-spacing: -0.02em; margin-top: .4em; }
.p-pf .h { font-size: 1.25em; color: #9a9aa2; }
.p-pf .bio { font-size: 1.3em; color: #d1d1d6; margin-top: .6em; line-height: 1.4; }
.p-stats { display: flex; gap: 2.2em; margin-top: 1.2em; }
.p-stats div b { display: block; font-size: 1.6em; font-weight: 650; }
.p-stats div span { font-size: 1.1em; color: #9a9aa2; }
.p-btns { display: flex; gap: .8em; margin-top: 1.4em; }
.p-btns span { flex: 1; text-align: center; padding: .85em 0; border-radius: 1.1em; font-size: 1.25em; font-weight: 600; background: #1c1c1e; }
.p-btns span.pri { background: #298DFB; }
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3em; margin-top: 1.6em; padding: 0 .3em; }
.p-grid i { aspect-ratio: 1; border-radius: .5em; }

/* New post screen */
.p-np-head { display: flex; align-items: center; justify-content: space-between; padding: .6em 1.8em 1.2em; }
.p-np-head .x { font-size: 1.4em; color: #9a9aa2; }
.p-next { font-size: 1.3em; font-weight: 600; padding: .55em 1.3em; border-radius: 99px; background: #298DFB; color: #fff; }
.p-preview { margin: 0 1.2em; aspect-ratio: 1; border-radius: 1.8em; position: relative; overflow: hidden; }
.p-preview .crop { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 33.33% 33.33%; }
.p-sub { display: flex; justify-content: space-between; padding: 1.3em 1.8em .8em; font-size: 1.3em; font-weight: 600; }
.p-sub span { color: #298DFB; }
.p-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3em; padding: 0 .3em; }
.p-pick i { aspect-ratio: 1; position: relative; border-radius: .4em; }
.p-pick i b { position: absolute; top: .5em; right: .5em; width: 1.9em; height: 1.9em; border-radius: 99px; display: grid; place-items: center; font-size: 1.05em; font-style: normal; background: #298DFB; color: #fff; border: .15em solid #fff; }

/* Thumbnail paints */
.g1 { background: radial-gradient(90% 90% at 25% 25%, #ffd5e6, transparent 60%), radial-gradient(90% 90% at 80% 80%, #a98bff, transparent 60%), #7fd3ff; }
.g2 { background: radial-gradient(100% 100% at 30% 30%, #fff1c7, transparent 60%), #ffab7a; }
.g3 { background: radial-gradient(100% 100% at 70% 30%, #c6fff0, transparent 60%), #4fbcff; }
.g4 { background: linear-gradient(180deg, #0d1f5c, #1f5fe0 30%, #f2a1c4 55%, #f6c445 80%, #d9431e); }
.g5 { background: radial-gradient(80% 80% at 60% 40%, #d9f27a, #1c5e2a 60%, #040605); }
.g6 { background: radial-gradient(100% 100% at 30% 70%, #ff9bd5, transparent 60%), #7c4dff; }
.g7 { background: radial-gradient(100% 100% at 70% 70%, #6ef0b8, transparent 60%), #74c7ff; }
.g8 { background: radial-gradient(100% 100% at 30% 30%, #ffb36b, transparent 60%), #ff6a6a; }
.g9 { background: radial-gradient(100% 100% at 50% 50%, #ffffff, transparent 55%), #8fb8ff; }

/* ---------- Hero stage with phone ---------- */
.hero__art--stage { aspect-ratio: auto; height: 680px; display: flex; align-items: flex-start; justify-content: center; padding-top: 64px; }
.hero__art--stage .strip-layer { position: absolute; inset: 0; display: flex; }
.hero__art--stage .phone { --s: 1.08; position: relative; z-index: 3; }
.hero__art--stage .chip { z-index: 4; }

/* ---------- Screens showcase ---------- */
.screens { padding: 40px 0 120px; }
.screens__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.screen-card { display: block; }
.screen-card .art { height: 600px; display: flex; align-items: flex-start; justify-content: center; padding-top: 48px; }
.screen-card .phone { --s: .94; position: relative; z-index: 3; transition: transform 1s var(--ease); }
.screen-card:hover .phone { transform: translateY(-10px); }
.screen-card .art--halo { place-items: start center; }
.screen-card .art--halo .halo { position: absolute; width: 140%; left: -20%; top: 12%; }
.screen-card h3 { margin-top: 22px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.screen-card p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); max-width: 36ch; }

.cta__art.art--halo { place-items: center; }
.cta__art.art--halo .halo { position: absolute; width: min(56%, 560px); }

@media (max-width: 980px) {
  .screens__row { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 760px) {
  .hero__art--stage { height: 560px; padding-top: 44px; }
  .hero__art--stage .phone { --s: .9; }
  .screen-card .art { height: 540px; }
  .screen-card .phone { --s: .88; }
}

/* ===================================================================
   v3 layout: image mockups (assets/img/*.webp)
   =================================================================== */
.strip-layer { position: absolute; inset: 0; display: flex; }

/* Hero showcase: three phones over spectrum strips */
.showcase { height: 700px; display: block; }
.sc { position: absolute; z-index: 3; width: 330px; height: auto; top: 70px; left: 50%; filter: drop-shadow(0 40px 50px rgba(0,0,0,.45)); transition: transform 1.2s var(--ease); }
.sc--c { z-index: 4; translate: -50% 0; width: 350px; top: 52px; }
.sc--l { translate: calc(-50% - 270px) 0; rotate: -7deg; top: 110px; }
.sc--r { translate: calc(-50% + 270px) 0; rotate: 7deg; top: 110px; }
.showcase:hover .sc--l { transform: translateX(-14px); }
.showcase:hover .sc--r { transform: translateX(14px); }
.sc-chip { z-index: 5; }
.sc-chip--1 { left: 4%; top: 14%; }
.sc-chip--2 { right: 3.5%; top: 62%; }
.sc-chip--3 { left: 3.5%; bottom: 12%; }

/* Post-type tiles */
.posts { padding: 140px 0 120px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 28px; }
.tile__art { aspect-ratio: 1 / 1; display: grid; place-items: center; transition: transform .9s var(--ease); }
.tile__img { position: relative; z-index: 3; width: 82%; height: auto; transition: transform .9s var(--ease); filter: drop-shadow(0 24px 30px rgba(0,0,0,.28)); }
.tile:hover .tile__art { transform: scale(.985); }
.tile:hover .tile__img { transform: translateY(-8px) scale(1.02); }
.tile h3 { margin-top: 22px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.tile p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }

/* Community + content */
.community { padding: 20px 0 140px; }
.duo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.duo__points { display: grid; gap: 28px; margin-top: 40px; }
.duo__points > div { padding-left: 20px; border-left: 2px solid var(--line-strong); }
.duo__points h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.duo__points p { margin-top: 6px; font-size: 16.5px; color: var(--ink-2); max-width: 38ch; }
.duo__art { height: 640px; }
.duo__art .halo { position: absolute; width: 120%; left: -10%; top: 14%; }
.dv { position: absolute; z-index: 3; width: 300px; height: auto; filter: drop-shadow(0 40px 50px rgba(0,0,0,.5)); }
.dv--back { left: 50%; translate: -88% 0; top: 70px; rotate: -6deg; }
.dv--front { left: 50%; translate: -18% 0; top: 40px; rotate: 4deg; }

@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; gap: 40px; }
  .sc--l { translate: calc(-50% - 210px) 0; }
  .sc--r { translate: calc(-50% + 210px) 0; }
}
@media (max-width: 760px) {
  .showcase { height: 560px; }
  .sc { width: 250px; top: 60px; }
  .sc--c { width: 270px; top: 40px; }
  .sc--l { translate: calc(-50% - 120px) 0; top: 90px; }
  .sc--r { translate: calc(-50% + 120px) 0; top: 90px; }
  .sc-chip--2 { display: none; }
  .posts { padding-top: 96px; }
  .tiles { grid-template-columns: 1fr; gap: 44px; }
  .tile__art { aspect-ratio: 5 / 4; }
  .tile__img { width: 74%; }
  .duo__art { height: 540px; }
  .dv { width: 240px; }
  .community { padding-bottom: 100px; }
}

.tile__img--tall { width: 64%; }
@media (max-width: 760px) { .tile__img--tall { width: 56%; } }

/* Nav: Privacy + Terms stay visible on phones */
@media (max-width: 760px) { .nav .nav__links { display: flex; gap: 16px; margin-left: 4px; } .nav .nav__links a { font-size: 14px; } }

/* ---------- Early-preview notice (login) ---------- */
.notice { margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink); max-width: min(480px, calc(100vw - 32px)); width: 100%; overflow: visible; }
.notice::backdrop { background: rgba(6, 7, 8, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.notice__card {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 28px; padding: 32px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.notice.is-open .notice__card { opacity: 1; transform: none; }
.notice__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #a15c00; background: rgba(255, 179, 71, .16); padding: 6px 12px; border-radius: 999px; }
[data-theme="dark"] .notice__badge { color: #ffc46b; background: rgba(255, 179, 71, .14); }
.notice__dot { width: 8px; height: 8px; border-radius: 99px; background: #ff9f1a; box-shadow: 0 0 0 4px rgba(255, 159, 26, .2); }
.notice h2 { margin-top: 18px; font-size: 26px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 650; }
.notice p { margin-top: 12px; font-size: 16px; color: var(--ink-2); line-height: 1.55; }
.notice__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 28px; flex-wrap: wrap; }
@media (max-width: 480px) { .notice__card { padding: 26px 22px; } .notice__actions .btn { flex: 1; } }

/* CTA ring: heavy layer blur (100px) */
.halo--soft { filter: blur(100px); }
.halo--soft::before, .halo--soft::after { filter: none; }
