:root,
[data-theme='light'] {
  --bg: #f5f4f1;
  --surface: #fbfbf8;
  --surface-2: #ffffff;
  --ink: #101112;
  --muted: #62666a;
  --faint: #a7a9aa;
  --line: #d8d7d3;
  --line-strong: #9da1a3;
  --inverse: #f6f5f2;
  --shadow: 0 28px 80px rgba(16, 17, 18, 0.12);
  --soft-shadow: 0 12px 36px rgba(16, 17, 18, 0.08);
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Satoshi', Inter, system-ui, sans-serif;
  --font-sans-display: 'Cabinet Grotesk', 'Satoshi', Inter, system-ui, sans-serif;
  --radius: 28px;
  --radius-sm: 16px;
  --speed: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --content: 1180px;
}

[data-theme='dark'] {
  --bg: #101112;
  --surface: #171819;
  --surface-2: #1e2021;
  --ink: #f6f5f2;
  --muted: #b9bbbd;
  --faint: #777b7e;
  --line: #323538;
  --line-strong: #85898c;
  --inverse: #101112;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  --soft-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

[hidden] {
  display: none !important;
}

html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  padding-inline: clamp(14px, 2.2vw, 32px);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, color-mix(in oklab, var(--line-strong) 24%, transparent), transparent 26rem),
    radial-gradient(circle at 84% 4%, color-mix(in oklab, var(--faint) 20%, transparent), transparent 30rem),
    linear-gradient(90deg, color-mix(in oklab, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in oklab, var(--ink) 4%, transparent) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 72px 72px, 72px 72px, auto;
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.38;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

[data-theme='dark'] .grain {
  mix-blend-mode: screen;
  opacity: 0.14;
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in oklab, var(--line-strong) 34%, transparent), transparent 64%);
  transition: opacity var(--speed);
}

.shell {
  width: min(100%, var(--content));
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: 116px;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  color: var(--inverse);
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  padding-block: 14px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 10px 10px 14px;
  border: 1px solid color-mix(in oklab, var(--line) 88%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 78%, transparent);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.75rem + 0.55vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--speed);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.button-dark {
  color: var(--inverse);
  background: var(--ink);
  border: 1px solid var(--ink);
}

.button-dark:hover,
.button-light:hover,
.button-ghost:hover,
.button-outline-light:hover {
  transform: translateY(-2px);
}

.button-ghost {
  color: var(--ink);
  background: color-mix(in oklab, var(--surface-2) 62%, transparent);
  border: 1px solid var(--line);
}

.button-light {
  color: #101112;
  background: #f6f5f2;
  border: 1px solid #f6f5f2;
}

.button-outline-light {
  color: #f6f5f2;
  background: transparent;
  border: 1px solid rgba(246, 245, 242, 0.28);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 6vw, 80px);
  min-height: calc(100dvh - 96px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 112px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 22px;
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 78%, transparent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.065em;
}

h1 {
  max-width: 11.5ch;
  font-size: clamp(3.8rem, 8.2vw, 7.8rem);
  line-height: 0.88;
  font-weight: 700;
}

.hero-lede {
  max-width: 670px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.4vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions,
.smb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 680px;
  margin-top: 36px;
}

.hero-proof span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 800;
}

.hero-proof strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero-visual {
  position: relative;
  min-height: 430px;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in oklab, var(--line-strong) 24%, transparent), transparent 22rem),
    color-mix(in oklab, var(--surface) 84%, transparent);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.hero-logo-card {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 18px);
  width: min(100%, 560px);
  margin-inline: auto;
  padding: clamp(18px, 3vw, 28px);
  color: #101112;
  background: #f5f4f1;
  filter: drop-shadow(0 22px 42px rgba(16, 17, 18, 0.1));
}

.hero-logo-card img {
  width: clamp(54px, 7vw, 82px);
  height: clamp(54px, 7vw, 82px);
}

.hero-logo-card strong,
.hero-logo-card small {
  display: block;
}

.hero-logo-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.3vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero-logo-card strong span {
  font-weight: 900;
}

.hero-logo-card small {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 3px solid #101112;
  color: #62666a;
  font-family: var(--font-body);
  font-size: clamp(0.62rem, 0.8vw, 0.78rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.decision-orb {
  position: absolute;
  inset: 13% 8% auto auto;
  width: min(72vw, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.92;
  transform: translateZ(34px);
}

.ring,
.cross,
.dot {
  position: absolute;
  inset: 0;
  margin: auto;
}

.ring {
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.ring-one {
  width: 100%;
  height: 100%;
  animation: breathe 5s ease-in-out infinite;
}

.ring-two {
  width: 68%;
  height: 68%;
  border-color: var(--line);
}

.ring-three {
  width: 34%;
  height: 34%;
  border-color: color-mix(in oklab, var(--ink) 28%, transparent);
}

.cross-x {
  width: 100%;
  height: 2px;
  background: var(--line-strong);
}

.cross-y {
  width: 2px;
  height: 100%;
  background: var(--line-strong);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}

.hero-panel {
  position: absolute;
  right: 28px;
  bottom: 20px;
  z-index: 4;
  width: min(82%, 330px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in oklab, var(--surface-2) 86%, transparent);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.panel-label {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 800;
}

.panel-row strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.panel-meter {
  height: 8px;
  margin: 14px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.panel-meter span {
  display: block;
  width: var(--meter);
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  animation: fillMeter 1.2s ease both;
}

.ticker {
  width: calc(100% + 64px);
  margin-left: -32px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 76%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.ticker span {
  padding: 18px 28px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  padding-block: clamp(74px, 10vw, 136px);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2,
.smb-copy h2,
.contact-card h2 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 6vw, 6.4rem);
  line-height: 0.9;
  font-weight: 700;
}

.section-head p,
.smb-copy p,
.contact-card p {
  max-width: 690px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.55;
}

.diagnostic-grid {
  display: grid;
  gap: 18px;
}

.control-board,
.score-card,
.offer-tabs,
.studio,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  box-shadow: var(--soft-shadow);
}

.control-board {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 38px);
}

.control-board label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input[type='range'] {
  width: 100%;
  accent-color: var(--ink);
}

.score-card {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 5vw, 48px);
}

.score-number {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 11rem);
  line-height: 0.82;
  letter-spacing: -0.08em;
  font-variant-numeric: tabular-nums;
}

.score-card p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}

.offer-tabs {
  padding: clamp(16px, 2vw, 22px);
}

.tab-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-list button {
  padding: 14px 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-weight: 900;
  text-align: left;
}

.tab-list button[aria-selected='true'] {
  color: var(--inverse);
  background: var(--ink);
  border-color: var(--ink);
}

.tab-panel {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 5vw, 56px);
  min-height: 360px;
  border-radius: calc(var(--radius) - 8px);
  background:
    radial-gradient(circle at 88% 24%, color-mix(in oklab, var(--line-strong) 26%, transparent), transparent 20rem),
    var(--surface-2);
}

.tab-panel h3 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  line-height: 0.92;
}

.tab-panel p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.tab-panel ul {
  display: grid;
  gap: 10px;
  align-content: end;
  color: var(--muted);
  font-weight: 900;
}

.tab-panel li {
  padding-block: 12px;
  border-top: 1px solid var(--line);
}

.smb-section {
  width: calc(100% + 64px);
  margin-left: -32px;
  padding-inline: 32px;
  color: #f6f5f2;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.12), transparent 30rem),
    #101112;
}

.smb-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.smb-section .eyebrow {
  color: #d6d7d8;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.smb-copy h2,
.smb-copy p {
  color: #f6f5f2;
}

.smb-copy p {
  color: #c2c4c6;
}

.smb-stack {
  display: grid;
  gap: 14px;
}

.smb-stack article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.smb-stack span {
  color: #aeb2b4;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.smb-stack h3 {
  margin-top: 12px;
  color: #f6f5f2;
  font-family: var(--font-sans-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.smb-stack p {
  margin-top: 8px;
  color: #c2c4c6;
}

.studio {
  display: grid;
  overflow: hidden;
  min-height: 560px;
}

.studio-sidebar {
  display: flex;
  gap: 8px;
  padding: 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.studio-item {
  padding: 12px 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-weight: 900;
  white-space: nowrap;
}

.studio-item.active {
  color: var(--inverse);
  background: var(--ink);
  border-color: var(--ink);
}

.studio-screen {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 42px);
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screen-top strong {
  color: var(--ink);
}

.matrix {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(180deg, var(--line) 1px, transparent 1px),
    radial-gradient(circle at 68% 34%, color-mix(in oklab, var(--line-strong) 28%, transparent), transparent 13rem),
    var(--surface-2);
  background-size: 25% 100%, 100% 25%, auto, auto;
}

.matrix::before,
.matrix::after {
  content: '';
  position: absolute;
  background: var(--line-strong);
}

.matrix::before {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
}

.matrix::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
}

.matrix span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 8px color-mix(in oklab, var(--ink) 10%, transparent);
  transform: translate(-50%, -50%);
}

.studio-screen p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.method-grid {
  display: grid;
  gap: 32px;
}

.method-steps {
  display: grid;
  gap: 14px;
}

.method-steps article {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.method-steps span {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.method-steps p {
  margin-top: 8px;
  color: var(--muted);
}

.contact-card {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 5vw, 56px);
}

.contact-card img {
  width: 88px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-block: 34px 62px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 800;
}

.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes breathe {
  50% {
    transform: scale(0.94);
    opacity: 0.62;
  }
}

@keyframes fillMeter {
  from {
    width: 0;
  }
}

@media (min-width: 760px) {
  .nav-links {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-proof {
    grid-template-columns: repeat(3, 1fr);
  }

  .diagnostic-grid,
  .smb-grid,
  .method-grid,
  .contact-card {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  }

  .tab-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .tab-list button {
    text-align: center;
  }

  .tab-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.55fr);
  }

  .studio {
    grid-template-columns: 220px 1fr;
  }

  .studio-sidebar {
    display: grid;
    align-content: start;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

@media (max-width: 759px) {
  body {
    padding-inline: 14px;
  }

  .smb-section {
    width: calc(100% + 28px);
    margin-left: -14px;
    padding-inline: 14px;
  }

  .brand span {
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .mode-toggle {
    width: 38px;
    height: 38px;
  }

  .hero-visual {
    min-height: 430px;
  }

  h1 {
    max-width: 8.5ch;
    font-size: clamp(3.65rem, 17vw, 5.2rem);
  }

  .decision-orb {
    inset: 22% -16% auto auto;
  }

  .nav {
    gap: 10px;
    padding: 8px 8px 8px 10px;
  }

  .button {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .ring-one {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
