:root {
  --paper: #f7f5ef;
  --paper-strong: #ffffff;
  --paper-soft: #ede8de;
  --paper-blue: #e7ecfa;
  --ink: #10203e;
  --ink-soft: #44557b;
  --navy: #010e24;
  --navy-deep: #07142b;
  --surface: #13213d;
  --surface-raised: #1b2944;
  --surface-active: #24314d;
  --text-on-dark: #d6e3ff;
  --muted-on-dark: #9eb1da;
  --primary: #1a44c2;
  --primary-light: #b7c4ff;
  --secondary: #fdc003;
  --secondary-soft: #f3d77d;
  --tertiary: #54c7fc;
  --shadow-soft: 0 24px 60px rgba(27, 44, 86, 0.12);
  --shadow-deep: 0 30px 80px rgba(3, 12, 28, 0.38);
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-pill: 999px;
  --content-max: 1180px;
  --ease: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.fredoka {
  font-family: "Fredoka", sans-serif;
}

.page-shell {
  position: relative;
  overflow: clip;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(26, 68, 194, 0.12), transparent 20%),
    radial-gradient(circle at 88% 11%, rgba(253, 192, 3, 0.16), transparent 18%),
    linear-gradient(180deg, #fbfaf6 0%, var(--paper) 28%, #f4efe4 58%, #f7f5ef 100%);
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%23000000' fill-opacity='.045'%3E%3Ccircle cx='22' cy='36' r='1.2'/%3E%3Ccircle cx='108' cy='20' r='1'/%3E%3Ccircle cx='70' cy='90' r='1.2'/%3E%3Ccircle cx='150' cy='118' r='1.05'/%3E%3Ccircle cx='36' cy='146' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  pointer-events: none;
  animation: drift 16s ease-in-out infinite;
}

.ambient-blue {
  top: 8rem;
  left: -4rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(84, 199, 252, 0.22), rgba(84, 199, 252, 0) 68%);
}

.ambient-gold {
  right: -5rem;
  top: 24rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(253, 192, 3, 0.22), rgba(253, 192, 3, 0) 68%);
  animation-delay: -5s;
}

.ambient-mist {
  left: 48%;
  top: 34rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(183, 196, 255, 0.2), rgba(183, 196, 255, 0) 70%);
  animation-delay: -9s;
}

.site-header,
.section,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(var(--content-max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 3.4rem;
  padding: 0 1.1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  font-size: clamp(1.95rem, 3vw, 2.7rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-pill,
.header-link,
.sheet-pill,
.device-points,
.mini-pill,
.tray-pill,
.sheet-cta,
.arena-cta,
.button {
  border-radius: var(--radius-pill);
}

.status-pill,
.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.status-pill {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  color: var(--ink-soft);
}

.header-link {
  color: var(--ink);
  background: rgba(231, 236, 250, 0.8);
  transition: transform var(--ease), background var(--ease);
}

.header-link:hover {
  transform: translateY(-2px);
  background: rgba(183, 196, 255, 0.9);
}

.section {
  margin-top: 1.75rem;
}

.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 1.15rem 0 0.5rem;
}

.hero-light {
  position: relative;
}

.hero-light::before,
.hero-light::after {
  content: "";
  position: absolute;
  border-radius: 44% 56% 62% 38% / 39% 39% 61% 61%;
  pointer-events: none;
  z-index: 0;
}

.hero-light::before {
  right: -5rem;
  top: 3rem;
  width: 18rem;
  height: 12rem;
  background: rgba(253, 192, 3, 0.14);
}

.hero-light::after {
  left: -3rem;
  bottom: 2rem;
  width: 14rem;
  height: 11rem;
  background: rgba(183, 196, 255, 0.22);
}

.hero-copy,
.hero-object {
  position: relative;
  z-index: 1;
}

.eyebrow,
.panel-label,
.stat-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #56688e;
}

.eyebrow::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(26, 68, 194, 0.22);
}

.eyebrow-dark {
  color: var(--primary-light);
}

.eyebrow-dark::before {
  background: var(--secondary);
  box-shadow: 0 0 18px rgba(253, 192, 3, 0.3);
}

.hero h1,
.section-title {
  margin: 0;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 9ch;
  font-size: clamp(3.1rem, 7vw, 5.45rem);
  font-weight: 600;
  line-height: 0.92;
  margin-top: 1rem;
}

.hero-body,
.section-copy,
.proof-value,
.sheet-copy,
.sheet-card p:last-child,
.detail-card p:last-child,
.device-copy,
.closing-card p:last-child {
  line-height: 1.78;
}

.hero-body {
  max-width: 31rem;
  margin: 1.1rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.inline-link {
  font-weight: 700;
  color: var(--primary);
}

.hero-actions,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.45rem;
  padding: 0.95rem 1.45rem;
  border: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #335dd8 0%, #1a44c2 100%);
  box-shadow: 0 18px 45px rgba(26, 68, 194, 0.24);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.button-accent {
  color: #1f1700;
  background: linear-gradient(135deg, #ffd446 0%, #fdc003 100%);
  box-shadow: 0 18px 42px rgba(253, 192, 3, 0.28);
}

.proof-rail {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.8rem;
}

.proof-card,
.closing-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  box-shadow: var(--shadow-soft);
}

.proof-card {
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.78);
}

.proof-card-offset {
  background: rgba(231, 236, 250, 0.88);
}

.proof-label {
  margin: 0;
  color: #62739a;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.proof-value {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: var(--ink);
}

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

.hero-stage {
  position: relative;
  padding: 1.3rem;
  overflow: hidden;
  border-radius: 2.5rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(231, 236, 250, 0.88));
  box-shadow: var(--shadow-soft);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at top left, rgba(183, 196, 255, 0.45), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 245, 239, 0.94));
}

.hero-sheet {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  border-radius: 2rem;
  background: rgba(247, 245, 239, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sheet-topline,
.sheet-stats,
.mastery-header,
.mastery-meta,
.device-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-pill,
.sheet-meta {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sheet-pill {
  color: #ffffff;
  background: linear-gradient(135deg, #335dd8 0%, #1a44c2 100%);
}

.sheet-meta {
  color: #6f7f9f;
}

.sheet-feature {
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at top right, rgba(255, 235, 166, 0.45), transparent 30%),
    linear-gradient(180deg, #fff6d0 0%, #f6edd0 100%);
}

.panel-label {
  color: inherit;
  opacity: 0.72;
}

.sheet-feature h2,
.arena-hero-card h3,
.device-card h4,
.mastery-card h4 {
  margin: 0.7rem 0 0;
  line-height: 0.96;
  font-weight: 600;
}

.sheet-feature h2 {
  max-width: 10ch;
  font-size: clamp(2rem, 4vw, 3rem);
}

.sheet-copy {
  max-width: 22rem;
  margin: 0.7rem 0 0;
  color: rgba(16, 32, 62, 0.8);
  font-size: 0.98rem;
}

.sheet-stats {
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
}

.sheet-stats > div {
  display: grid;
  gap: 0.28rem;
}

.sheet-stats strong,
.arena-meta-grid strong {
  font-size: 1rem;
}

.sheet-cta,
.arena-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.35rem;
  padding: 0 1.35rem;
  background: rgba(16, 32, 62, 0.1);
  font-weight: 800;
}

.sheet-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.sheet-card {
  padding: 1.15rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.72);
}

.sheet-card h3 {
  margin: 0.65rem 0 0;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 0.96;
}

.sheet-card p:last-child {
  margin: 0.5rem 0 0;
  color: #516384;
}

.sheet-card-accent {
  background: linear-gradient(180deg, rgba(231, 236, 250, 0.94), rgba(218, 226, 247, 0.92));
}

.detail-card,
.device-card,
.mastery-card,
.site-footer {
  position: relative;
  overflow: hidden;
  border-radius: 1.7rem;
}

.section-heading {
  max-width: 48rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 0.98;
  margin-top: 0.9rem;
}

.section-copy {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--ink-soft);
}

.origin-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.25rem 0 0;
}

.origin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.preview-section {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 2.6rem;
  color: var(--text-on-dark);
  background:
    radial-gradient(circle at 18% 18%, rgba(84, 199, 252, 0.14), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(253, 192, 3, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(7, 20, 43, 0.98), rgba(1, 14, 36, 0.98));
  box-shadow: var(--shadow-deep);
}

.section-title-dark,
.section-copy-dark {
  color: var(--text-on-dark);
}

.section-copy-dark {
  color: var(--muted-on-dark);
}

.detail-stack {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.detail-card {
  padding: 1.15rem;
  background: linear-gradient(180deg, rgba(27, 41, 68, 0.96), rgba(13, 27, 54, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.detail-card p:last-child {
  margin: 0.55rem 0 0;
  color: var(--muted-on-dark);
}

.preview-device-wrap {
  display: grid;
  justify-items: center;
}

.device {
  position: relative;
  width: min(100%, 25rem);
  padding: 0.85rem;
  border-radius: 2.8rem;
  background:
    linear-gradient(145deg, rgba(183, 196, 255, 0.32), rgba(36, 49, 77, 0.9) 24%, rgba(8, 16, 34, 0.96) 74%),
    #061226;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.device::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.55rem;
  width: 6.6rem;
  height: 0.35rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(8, 16, 34, 0.94);
}

.device-screen {
  min-height: 41rem;
  padding: 1.35rem;
  border-radius: 2.15rem;
  background:
    radial-gradient(circle at top, rgba(26, 68, 194, 0.42), transparent 35%),
    linear-gradient(180deg, rgba(5, 18, 41, 0.98), rgba(3, 14, 36, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device-topbar {
  color: #8da0c8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.device-points {
  min-height: 2.05rem;
  padding: 0.4rem 0.8rem;
  color: var(--text-on-dark);
  background: rgba(19, 33, 61, 0.82);
}

.arena-hero-card,
.device-card,
.mastery-card {
  background: linear-gradient(180deg, rgba(19, 33, 61, 0.96), rgba(10, 22, 46, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.24);
}

.arena-hero-card {
  margin-top: 1.5rem;
  padding: 1.45rem;
  border-radius: 2rem;
  color: #1e1703;
  background:
    radial-gradient(circle at top left, rgba(255, 239, 166, 0.44), transparent 34%),
    linear-gradient(180deg, #f7c607 0%, #f2b603 100%);
  box-shadow:
    0 22px 56px rgba(253, 192, 3, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.arena-hero-card h3 {
  max-width: 10ch;
  font-size: clamp(2rem, 6vw, 2.7rem);
}

.arena-copy {
  margin: 0.65rem 0 0;
  color: rgba(16, 32, 62, 0.8);
  line-height: 1.55;
}

.arena-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.arena-meta-grid > div {
  display: grid;
  gap: 0.3rem;
}

.arena-cta {
  min-height: 3.1rem;
  color: #1f1700;
  background: rgba(0, 0, 0, 0.12);
}

.device-subgrid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.device-card {
  padding: 1.2rem;
}

.device-card h4,
.mastery-card h4 {
  color: #ffffff;
}

.device-card h4 {
  font-size: 1.8rem;
}

.device-copy {
  margin: 0.55rem 0 0;
  color: var(--muted-on-dark);
  font-size: 0.92rem;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  margin-top: 1rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #041122;
  background: var(--secondary);
}

.mini-pill-cyan {
  color: var(--tertiary);
  background: rgba(84, 199, 252, 0.14);
}

.column-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.column-bars span {
  display: block;
  width: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #d6e3ff, #6e86ff);
}

.gold-bar {
  background: linear-gradient(180deg, #ffe38e, #fdc003) !important;
}

.mastery-card {
  margin-top: 1rem;
  padding: 1.25rem;
}

.mastery-rows {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.mastery-row {
  display: grid;
  gap: 0.42rem;
}

.mastery-meta {
  color: var(--text-on-dark);
  font-size: 0.9rem;
}

.track {
  height: 0.72rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(7, 19, 42, 0.9);
}

.fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.fill-lilac {
  background: #a7b0ff;
}

.fill-cyan {
  background: #62ccff;
}

.fill-gold {
  background: var(--secondary);
}

.device-tray {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.42rem;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 1.8rem;
  background: rgba(19, 33, 61, 0.94);
}

.tray-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  color: #7184aa;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tray-active {
  color: var(--secondary);
  background: rgba(253, 192, 3, 0.14);
}

.closing-section {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: 0.8rem 0 3rem;
}

.closing-card {
  max-width: 24rem;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, 0.78);
}

.closing-card p:last-child {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
}

.site-footer {
  margin: 0 auto 1.2rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.site-footer p {
  margin: 0;
  color: #5c6b8d;
  text-align: center;
  font-size: 0.92rem;
}

.site-footer span {
  color: var(--ink);
  font-weight: 700;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0.8rem, -0.7rem, 0) scale(1.04);
  }
}

@media (min-width: 700px) {
  .proof-rail,
  .sheet-grid,
  .device-subgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closing-section {
    grid-template-columns: minmax(0, 1.2fr) auto;
  }
}

@media (min-width: 960px) {
  .site-header {
    padding-top: 1.6rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.92fr);
    gap: 3.25rem;
    padding-top: 2rem;
  }

  .proof-card-offset {
    transform: translateX(1.25rem);
  }

  .hero-object {
    padding: 0.5rem 1rem 0 0;
  }

  .preview-section {
    grid-template-columns: minmax(0, 0.92fr) minmax(22rem, 0.85fr);
    align-items: center;
    padding: 2.3rem;
  }
}

@media (max-width: 699px) {
  .site-header {
    align-items: flex-start;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-end;
  }

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

  .hero-object {
    padding-top: 0.5rem;
  }

  .preview-section {
    width: min(var(--content-max), calc(100% - 1rem));
    padding: 1.4rem;
    border-radius: 2.2rem;
  }

  .device-screen {
    min-height: 38rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
