:root {
  --ot-blue: #00aff0;
  --ot-blue-dark: #008ccf;
  --ot-cyan: #20c7ff;
  --ot-ink: #102536;
  --ot-text: #163044;
  --ot-muted: #2f4a5e;
  --ot-bg: #c5d3e0;
  --ot-bg-alt: #b7c7d6;
  --ot-surface: #dce6ef;
  --ot-card: #ffffff;
  --ot-white: #ffffff;
  --ot-steel: #4a6780;
  --ot-steel-mid: #5b7a93;
  --ot-steel-deep: #3a5368;
  --ot-border: rgba(16, 37, 54, 0.14);
  --ot-border-strong: rgba(16, 37, 54, 0.22);
  --ot-glow: rgba(0, 175, 240, 0.28);
  --ot-shadow: 0 18px 40px rgba(22, 48, 71, 0.12);
  --ot-header-bg: rgba(197, 211, 224, 0.38);
  --ot-header-scrolled: rgba(214, 224, 234, 0.9);
  --ot-nav-mobile-bg: rgba(232, 238, 245, 0.96);
  --ot-hero-a: #d7e2ec;
  --ot-hero-b: #c5d3e0;
  --ot-hero-c: #b7c7d6;
  --ot-grid-line: rgba(22, 48, 71, 0.07);
  --ot-circuit: rgba(0, 140, 207, 0.28);
  --ot-logo-stage: #ffffff;
  --ot-soft: #dff3fb;
  --ot-soft-strong: #e7f6fc;
  --ot-badge-free-bg: #d9f3e6;
  --ot-badge-free-fg: #146246;
  --ot-badge-paid-bg: #d7f1fb;
  --ot-badge-paid-fg: #0b5f82;
  --ot-support-bg: #e7f3f9;
  --ot-footer-bg: #5c758c;
  --ot-footer-text: #e4eef5;
  --ot-footer-muted: #c5d6e2;
  --ot-footer-base: #b4c7d4;
  --ot-cta-text: #063047;
  --ot-cta-copy: #13425a;
  --ot-primary-ink: #063047;
  --ot-ghost-hover: rgba(255, 255, 255, 0.45);
  --ot-toggle-track: #8aa3b8;
  --ot-toggle-thumb: #ffffff;
  --ot-radius: 18px;
  --ot-header: 72px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}

html[data-theme="dark"] {
  --ot-ink: #f4f8fc;
  --ot-text: #d5e2ee;
  --ot-muted: #9cb0c3;
  --ot-bg: #101926;
  --ot-bg-alt: #162232;
  --ot-surface: #15202e;
  --ot-card: #1b2a3b;
  --ot-white: #223347;
  --ot-border: rgba(232, 242, 250, 0.1);
  --ot-border-strong: rgba(232, 242, 250, 0.18);
  --ot-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --ot-header-bg: rgba(16, 25, 38, 0.42);
  --ot-header-scrolled: rgba(16, 25, 38, 0.9);
  --ot-nav-mobile-bg: rgba(21, 32, 46, 0.96);
  --ot-hero-a: #182636;
  --ot-hero-b: #101926;
  --ot-hero-c: #1a2c3d;
  --ot-grid-line: rgba(232, 242, 250, 0.06);
  --ot-circuit: rgba(32, 199, 255, 0.28);
  --ot-logo-stage: #223347;
  --ot-soft: #1a3548;
  --ot-soft-strong: #1d3a4e;
  --ot-badge-free-bg: #16382c;
  --ot-badge-free-fg: #7dffb2;
  --ot-badge-paid-bg: #163646;
  --ot-badge-paid-fg: #7ad4f5;
  --ot-support-bg: #1a3548;
  --ot-footer-bg: #0c141d;
  --ot-footer-text: #e4eef5;
  --ot-footer-muted: #b7c8d6;
  --ot-footer-base: #9aafc0;
  --ot-cta-text: #063047;
  --ot-cta-copy: #13425a;
  --ot-primary-ink: #063047;
  --ot-ghost-hover: rgba(255, 255, 255, 0.08);
  --ot-toggle-track: #00aff0;
  --ot-toggle-thumb: #063047;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ot-header) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ot-text);
  background: var(--ot-bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ot-ink);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--ot-white);
  color: var(--ot-ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.container.narrow {
  width: min(760px, calc(100% - 40px));
}

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.section-sub {
  margin-top: 12px;
  color: var(--ot-muted);
  font-size: 1.05rem;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.95rem/1 var(--font);
  padding: 12px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.chip:focus-visible,
.react-btn:focus-visible,
.theme-toggle:focus-visible,
.nav-desktop a:focus-visible,
.nav-mobile a:focus-visible,
.brand:focus-visible,
.footer-grid a:focus-visible,
.footer-grid button:focus-visible {
  outline: 3px solid var(--ot-cyan);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--ot-cyan), var(--ot-blue));
  color: var(--ot-primary-ink);
  box-shadow: 0 8px 20px rgba(0, 175, 240, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #43d2ff, var(--ot-blue-dark));
}

.btn-secondary {
  background: var(--ot-white);
  border-color: var(--ot-border-strong);
  color: var(--ot-ink);
}

.btn-secondary:hover {
  border-color: var(--ot-blue);
  color: var(--ot-blue-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ot-ink);
}

.btn-ghost:hover {
  background: var(--ot-ghost-hover);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(6, 48, 71, 0.16);
  color: #063047;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.48);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.86rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--ot-header);
  background: var(--ot-header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--ot-header-scrolled);
  border-bottom-color: var(--ot-border);
  box-shadow: 0 8px 24px rgba(22, 48, 71, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--ot-header);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img,
.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ot-ink);
}

.nav-desktop {
  display: flex;
  gap: 22px;
  margin-left: 8px;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--ot-text);
  font-weight: 600;
  font-size: 0.94rem;
}

.nav-desktop a:hover {
  color: var(--ot-blue-dark);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 64px;
  height: 32px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--ot-toggle-track);
  box-shadow: inset 0 0 0 1px var(--ot-border-strong);
}

.theme-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}

.theme-icon.moon {
  fill: rgba(255, 255, 255, 0.35);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ot-toggle-thumb);
  box-shadow: 0 2px 8px rgba(16, 37, 54, 0.22);
  transition: transform 0.22s ease;
}

.theme-toggle[aria-checked="true"] .theme-toggle-thumb {
  transform: translateX(32px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ot-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px 20px 20px;
  background: var(--ot-nav-mobile-bg);
  border-bottom: 1px solid var(--ot-border);
}

.nav-mobile[hidden] {
  display: none !important;
}

.nav-mobile a,
.nav-mobile button {
  font: 600 1rem/1.2 var(--font);
  text-align: left;
  text-decoration: none;
  color: var(--ot-ink);
  background: none;
  border: 0;
  padding: 12px 8px;
}

.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 28%, rgba(32, 199, 255, 0.28), transparent 26%),
    radial-gradient(circle at 18% 80%, rgba(0, 140, 207, 0.12), transparent 30%),
    linear-gradient(160deg, var(--ot-hero-a) 0%, var(--ot-hero-b) 52%, var(--ot-hero-c) 100%);
  color: var(--ot-text);
  margin-top: calc(-1 * var(--ot-header));
  padding: calc(var(--ot-header) + 28px) 0 72px;
}

.hero-layout {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  color: var(--ot-ink);
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

.lede {
  margin: 18px 0 26px;
  max-width: 560px;
  font-size: 1.12rem;
  color: var(--ot-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-line {
  margin-top: 22px;
  color: var(--ot-muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.logo-stage {
  width: min(360px, 82%);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 36px;
  background: var(--ot-logo-stage);
  box-shadow: 0 0 0 1px rgba(0, 175, 240, 0.22), 0 24px 50px rgba(18, 40, 58, 0.16);
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
}

.discover,
.how,
.feed {
  background: var(--ot-surface);
}

.categories,
.rules {
  background: var(--ot-bg);
}

.creator-grid,
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.creator-card,
.rule-card,
.post-card,
.step-card,
.cat-card {
  background: var(--ot-card);
  border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius);
  box-shadow: 0 10px 28px rgba(22, 48, 71, 0.06);
}

.creator-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.creator-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #f7fcff;
  background: linear-gradient(145deg, var(--a1), var(--a2));
  flex-shrink: 0;
}

.creator-id {
  flex: 1;
  min-width: 0;
}

.creator-id h3 {
  font-size: 1.1rem;
}

.creator-id p,
.creator-cats,
.creator-meta {
  color: var(--ot-muted);
  font-size: 0.88rem;
}

.badge {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-free {
  background: var(--ot-badge-free-bg);
  color: var(--ot-badge-free-fg);
}

.badge-paid {
  background: var(--ot-badge-paid-bg);
  color: var(--ot-badge-paid-fg);
}

.creator-cats {
  margin: 14px 0 8px;
  font-weight: 600;
}

.creator-bio {
  flex: 1;
  font-size: 1rem;
}

.creator-meta {
  display: flex;
  gap: 16px;
  margin: 16px 0;
}

.creator-meta strong {
  color: var(--ot-ink);
}

.creator-actions {
  display: flex;
  gap: 8px;
}

.creator-actions .btn {
  flex: 1;
}

.follow-btn.is-following {
  background: var(--ot-white);
  color: var(--ot-blue-dark);
  border-color: var(--ot-blue);
  box-shadow: none;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.chip {
  border: 1px solid var(--ot-border-strong);
  background: var(--ot-card);
  color: var(--ot-text);
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 0.88rem/1 var(--font);
  cursor: pointer;
}

.chip.is-active,
.chip:hover {
  background: var(--ot-soft);
  border-color: var(--ot-blue);
  color: var(--ot-blue-dark);
}

.category-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cat-card {
  list-style: none;
  padding: 22px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.cat-card.is-dim {
  opacity: 0.38;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 175, 240, 0.45);
  box-shadow: 0 16px 30px rgba(0, 140, 207, 0.12);
}

.cat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ot-soft);
  color: var(--ot-blue-dark);
}

.cat-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat-card h3 {
  font-size: 1rem;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  position: relative;
}

.step-card {
  padding: 28px 24px;
  position: relative;
  z-index: 1;
}

.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ot-blue-dark);
  background: var(--ot-soft);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--ot-muted);
}

.rule-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.rule-card h3 {
  margin: 8px 0 12px;
  font-size: 1.7rem;
}

.rule-card p,
.rule-card li {
  color: var(--ot-muted);
}

.rule-card ul {
  margin: 18px 0 24px;
  padding-left: 18px;
}

.rule-card li + li {
  margin-top: 8px;
}

.rule-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.post-card {
  padding: 26px;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-head h3 {
  font-size: 1.05rem;
}

.post-head p {
  color: var(--ot-muted);
  font-size: 0.86rem;
}

.post-head .badge {
  margin-left: auto;
}

.post-card h4 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.post-body {
  color: var(--ot-muted);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.post-tags span {
  background: var(--ot-soft);
  color: var(--ot-blue-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-art {
  margin: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ot-border);
}

.project-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.art-bg { fill: #4e6d86; }
.art-rack { fill: #3d586d; stroke: #9ec8dc; stroke-width: 1.2; }
.art-unit { fill: #2f4658; }
.art-unit.u1 { fill: #35566c; }
.led { fill: #6f8899; }
.led.on { fill: #20c7ff; }
.led.dim { fill: #7dffb2; }
.art-line { fill: none; stroke: #9be3ff; stroke-width: 2; }
.node { fill: #e8f8ff; }
.art-label { fill: #e8f4fb; font-family: var(--mono); font-size: 14px; }
.art-label.faint { fill: #b7c9d6; }

.post-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.react-btn {
  border: 1px solid var(--ot-border);
  background: var(--ot-white);
  color: var(--ot-text);
  border-radius: 999px;
  padding: 8px 12px;
  font: 600 0.86rem/1 var(--font);
  cursor: pointer;
}

.react-btn.is-on,
.react-btn:hover {
  border-color: var(--ot-blue);
  color: var(--ot-blue-dark);
  background: var(--ot-soft-strong);
}

.support-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ot-support-bg);
}

.support-row p {
  font-size: 0.92rem;
  color: var(--ot-muted);
}

.support-row strong {
  color: var(--ot-ink);
}

.cta-band {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(160deg, var(--ot-cyan), var(--ot-blue) 46%, var(--ot-blue-dark));
  color: var(--ot-cta-text);
  padding: 96px 0;
}

.cta-inner {
  text-align: center;
  max-width: 760px;
}

.cta-band h2 {
  color: var(--ot-cta-text);
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.cta-copy,
.cta-emphasis {
  margin: 18px auto 0;
  max-width: 640px;
  color: var(--ot-cta-copy);
  font-size: 1.08rem;
}

.cta-emphasis {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ot-cta-text);
  margin-bottom: 28px;
}

.cta-inner .hero-ctas {
  justify-content: center;
}

.cta-band .btn-primary {
  background: #063047;
  color: #e8f7ff;
  box-shadow: 0 10px 24px rgba(6, 48, 71, 0.2);
}

.cta-band .btn-primary:hover {
  background: #0a3d5a;
}

.site-footer {
  background: var(--ot-footer-bg);
  color: var(--ot-footer-text);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
}

.footer-brand p {
  margin-top: 12px;
  max-width: 280px;
}

.site-footer .brand-name,
.site-footer h2 {
  color: #f4fbff;
}

.site-footer h2 {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.site-footer a,
.site-footer button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ot-footer-muted);
  font: 500 0.94rem/1.4 var(--font);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.site-footer a:hover,
.site-footer button:hover {
  color: #9be3ff;
}

.footer-base {
  width: min(1160px, calc(100% - 40px));
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ot-footer-base);
  font-size: 0.9rem;
}

.ot-dialog {
  border: 0;
  border-radius: 20px;
  padding: 0;
  width: min(420px, calc(100% - 32px));
  background: var(--ot-card);
  color: var(--ot-text);
  box-shadow: var(--ot-shadow);
}

.ot-dialog::backdrop {
  background: rgba(30, 48, 64, 0.46);
}

.ot-dialog form {
  padding: 28px;
}

.ot-dialog h2 {
  margin-bottom: 10px;
}

.ot-dialog p {
  color: var(--ot-muted);
  margin-bottom: 20px;
}

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

@media (max-width: 1100px) {
  .hero-layout,
  .footer-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .header-actions .btn-primary {
    padding: 10px 14px;
    font-size: 0.84rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-mobile {
    display: flex;
  }

  .hero-layout,
  .creator-grid,
  .rules-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-visual {
    min-height: 0;
    order: -1;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-ctas,
  .trust-line {
    justify-content: center;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .logo-stage {
    width: min(220px, 58%);
  }

  .support-row {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 560px) {
  .container,
  .container.narrow,
  .hero-layout,
  .footer-base {
    width: calc(100% - 28px);
  }

  .header-inner {
    width: calc(100% - 20px);
  }

  .header-inner .brand-name {
    display: none;
  }

  .theme-toggle-track {
    width: 56px;
    height: 28px;
  }

  .theme-toggle-thumb {
    width: 22px;
    height: 22px;
  }

  .theme-toggle[aria-checked="true"] .theme-toggle-thumb {
    transform: translateX(28px);
  }

  .hero {
    padding: 20px 0 48px;
  }

  .hero-visual {
    min-height: 0;
  }

  .creator-actions,
  .hero-ctas {
    flex-direction: column;
  }

  .post-card h4 {
    font-size: 1.15rem;
  }
}

@media (min-width: 1920px) {
  .container,
  .header-inner,
  .hero-layout,
  .footer-base {
    width: min(1280px, calc(100% - 80px));
  }
}

@media (min-width: 2560px) {
  .container,
  .header-inner,
  .hero-layout,
  .footer-base {
    width: min(1400px, calc(100% - 120px));
  }

  .hero h1 {
    font-size: 4.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .js-reveal .reveal,
  .btn,
  .cat-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .theme-toggle-thumb {
    transition: none !important;
  }
}
