:root {
  --bg: #0d0907;
  --bg-elevated: rgba(255, 255, 255, 0.04);
  --bg-elevated-strong: rgba(255, 255, 255, 0.07);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f4efe8;
  --muted: rgba(244, 239, 232, 0.72);
  --soft: rgba(244, 239, 232, 0.5);
  --accent: #f5efe7;
  --accent-ink: #15110f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  --hero-width: min(1180px, calc(100vw - 48px));
  --section-width: min(1120px, calc(100vw - 48px));
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --hero-title-size: 60px;
  --hero-body-size: 15px;
  --section-title-size: 38px;
  --body-text-size: 15px;
}

body[data-theme="graphite"] {
  --bg: #111315;
  --bg-elevated: rgba(255, 255, 255, 0.045);
  --bg-elevated-strong: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f1f5f8;
  --muted: rgba(241, 245, 248, 0.74);
  --soft: rgba(241, 245, 248, 0.5);
  --accent: #f1f5f8;
  --accent-ink: #0f1215;
}

body[data-theme="frost"] {
  --bg: #f3f5f7;
  --bg-elevated: rgba(255, 255, 255, 0.65);
  --bg-elevated-strong: rgba(255, 255, 255, 0.82);
  --panel-border: rgba(17, 23, 29, 0.08);
  --text: #13181d;
  --muted: rgba(19, 24, 29, 0.75);
  --soft: rgba(19, 24, 29, 0.48);
  --accent: #0f141a;
  --accent-ink: #f5f7f9;
  --shadow: 0 24px 60px rgba(15, 20, 26, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 198, 151, 0.1), transparent 22%),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body.panel-open {
  overflow: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 8px 8px;
  mask-image: radial-gradient(circle at center, black, transparent 88%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--hero-width);
  margin: 0 auto;
  padding: 22px 0;
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-bubble {
  width: 20px;
  height: 16px;
  border-radius: 6px;
  background: var(--accent-ink);
  position: relative;
}

.brand-bubble::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 4px;
  width: 7px;
  height: 7px;
  background: var(--accent-ink);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.brand-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.site-nav {
  display: inline-flex;
  gap: 26px;
}

.site-nav a,
.ghost-button,
.solid-button {
  font: inherit;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.ghost-button,
.solid-button {
  appearance: none;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--text);
  background: var(--bg-elevated);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.solid-button {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

.ghost-button:hover,
.solid-button:hover,
.store-button:hover {
  transform: translateY(-1px);
}

.section {
  width: var(--section-width);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 64px;
  min-height: calc(100vh - 90px);
  padding: 48px 0 32px;
}

.eyebrow,
.panel-kicker,
.mini-label,
.control-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--soft);
}

.hero h1,
.feature-panel h2,
.editorial-copy h2,
.cta-band h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 {
  margin: 0.3rem 0 1rem;
  font-size: clamp(2.65rem, 4.7vw, 54px);
  max-width: 11ch;
}

.hero-description {
  color: var(--muted);
  font-size: var(--hero-body-size);
  line-height: 1.65;
  max-width: 58ch;
}

.feature-panel p,
.editorial-copy p,
.cta-band p {
  color: var(--muted);
  font-size: var(--body-text-size);
  line-height: 1.7;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.store-button {
  min-width: 220px;
  text-decoration: none;
  border-radius: 22px;
  padding: 16px 18px 17px;
  border: 1px solid var(--panel-border);
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  background: var(--bg-elevated);
  color: inherit;
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.primary-store {
  background: var(--accent);
  color: var(--accent-ink);
}

.secondary-store {
  background: var(--bg-elevated-strong);
}

.store-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.68;
}

.store-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.hero-points li::before {
  content: "•";
  color: var(--text);
  margin-right: 10px;
}

.hero-visual {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.32;
}

.orb-left {
  top: 90px;
  left: 18px;
  background: linear-gradient(135deg, rgba(255, 187, 146, 0.42), transparent);
}

.orb-right {
  bottom: 84px;
  right: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
}

.hero-stage {
  position: relative;
  width: min(560px, 100%);
  min-height: 700px;
}

.hero-stage-image {
  display: grid;
  place-items: center;
}

.hero-halo {
  position: absolute;
  inset: 80px 60px 100px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 187, 146, 0.18), transparent 32%),
    radial-gradient(circle at 50% 56%, rgba(255, 255, 255, 0.1), transparent 58%);
  filter: blur(22px);
}

.hero-device-image {
  width: 100%;
  display: block;
  filter: none;
  border-radius: 46px;
}

.hero-device-shell {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 12px;
  border-radius: 58px;
  background: linear-gradient(180deg, #17181b, #0d0d10);
  border: 1px solid rgba(10, 12, 16, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24);
}

body[data-theme="frost"] .hero-halo,
body[data-theme="frost"] .orb {
  display: none;
}

body[data-theme="frost"] .hero-device-shell {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.feature-panel,
.stack-card,
.stat-card,
.cta-band {
  background: var(--bg-elevated);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.feature-grid,
.editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 130px 0 0;
}

.feature-panel,
.cta-band {
  border-radius: var(--radius-xl);
  padding: 34px;
}

.feature-panel h2,
.editorial-copy h2,
.cta-band h2 {
  margin: 10px 0 16px;
  font-size: clamp(1.8rem, 2.9vw, 34px);
}

.feature-stack {
  display: grid;
  gap: 18px;
}

.stack-card {
  border-radius: 26px;
  padding: 26px 24px;
}

.stack-title {
  margin: 0 0 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
}

.stack-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: var(--body-text-size);
}

.editorial-copy {
  align-self: center;
}

.statement {
  padding: 138px 0 8px;
  text-align: center;
}

.statement h2 {
  margin: 12px auto 18px;
  max-width: 12ch;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.15rem, 4.8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.statement p:last-child {
  margin: 0 auto;
  max-width: 60ch;
  color: var(--muted);
  font-size: var(--body-text-size);
  line-height: 1.8;
}

.editorial-preview {
  min-height: 820px;
  display: grid;
  place-items: center;
}

.creator-workflow-stage {
  position: relative;
  width: min(760px, 100%);
  display: grid;
  place-items: center;
}

.creator-workflow-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 32px 64px rgba(15, 20, 26, 0.12));
}

.cta-band {
  margin-top: 130px;
  margin-bottom: 70px;
  text-align: center;
}

.cta-band p {
  margin-left: auto;
  margin-right: auto;
}

.cta-band .hero-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 56px;
  color: var(--soft);
}

.site-footer__brand,
.site-footer__links a {
  color: inherit;
  text-decoration: none;
}

.site-footer__credit {
  margin: 0;
  color: var(--soft);
  font-size: 0.94rem;
}

.site-footer__brand {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
}

.site-footer__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer__links a:hover,
.site-footer__brand:hover {
  color: var(--text);
}

.control-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(460px, 100vw);
  height: 100vh;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(100%);
  transition: transform 240ms ease;
  display: flex;
  flex-direction: column;
}

body[data-theme="frost"] .control-panel {
  background: rgba(247, 249, 250, 0.94);
}

body.panel-open .control-panel {
  transform: translateX(0);
}

.control-panel__header,
.control-panel__body {
  padding: 24px;
}

.control-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--panel-border);
}

.control-panel__header h3 {
  margin: 4px 0 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem;
}

.control-panel__body {
  overflow-y: auto;
  display: grid;
  gap: 16px;
}

.control-panel label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.control-panel input,
.control-panel textarea,
.control-panel select {
  width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  resize: vertical;
}

.control-panel input[type="range"] {
  padding: 0;
  background: transparent;
  border: 0;
}

body[data-theme="frost"] .control-panel input,
body[data-theme="frost"] .control-panel textarea,
body[data-theme="frost"] .control-panel select {
  background: rgba(17, 23, 29, 0.04);
}

.control-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  z-index: 70;
}

body.panel-open .panel-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  transition-delay: 80ms;
}

.reveal-scale {
  transform: scale(0.96);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

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

  .hero,
  .feature-grid,
  .editorial {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 26px;
  }

  .hero h1 {
    max-width: 12ch;
  }

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

  .hero-stage {
    min-height: 620px;
  }

  .statement {
    padding-top: 110px;
  }

  .editorial-preview {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --hero-width: min(100vw - 24px, 1180px);
    --section-width: min(100vw - 24px, 1120px);
  }

  .site-header {
    padding: 16px 0;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .brand-bubble {
    width: 17px;
    height: 14px;
  }

  .brand-text {
    font-size: 0.98rem;
  }

  .hero {
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 8.6vw, 2.9rem);
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .eyebrow,
  .panel-kicker,
  .control-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.17em;
  }

  .hero-description,
  .feature-panel p,
  .editorial-copy p,
  .cta-band p,
  .statement p:last-child,
  .stack-card p:last-child {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .feature-panel h2,
  .editorial-copy h2,
  .cta-band h2 {
    font-size: clamp(1.6rem, 6.8vw, 2.05rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
  }

  .statement h2 {
    font-size: clamp(1.7rem, 7.4vw, 2.4rem);
    letter-spacing: -0.035em;
  }

  .hero-stage {
    min-height: 520px;
  }

  .hero-device-image {
    width: min(320px, 100%);
  }

  .statement {
    padding-top: 90px;
  }

  .statement h2 {
    max-width: 11ch;
  }

  .creator-workflow-stage {
    width: min(100%, 520px);
  }

  .feature-panel,
  .stack-card,
  .cta-band,
  .stat-card {
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 44px;
  }

  .site-footer__links {
    gap: 14px;
  }

  .store-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .store-title {
    font-size: 0.94rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }

  .store-button {
    width: 100%;
    min-width: 0;
    padding: 14px 14px 15px;
    border-radius: 20px;
  }

  .hero-points {
    gap: 10px;
    font-size: 0.94rem;
  }
}
