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

:root {
  --primary: #daff10;
  --primary-soft: rgba(218, 255, 16, 0.12);
  --primary-border: rgba(218, 255, 16, 0.28);
  --bg: #060605;
  --panel: #0e0e0d;
  --panel-2: #151513;
  --text: #f4f4ed;
  --muted: #909087;
  --line: rgba(255, 255, 255, 0.08);
  --danger: #ff6257;
  --ok: #43ff93;
  --font-display: "Barlow Condensed", Arial, sans-serif;
  --font-body: "Barlow", Arial, sans-serif;
  --font-mono: "Space Mono", Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #090908;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

input:focus {
  border-color: var(--primary);
  outline: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 6, 5, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand span { color: var(--text); }

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

button.header-cta {
  border: 0;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
  min-height: 100vh;
  padding: 132px clamp(20px, 5vw, 72px) 44px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(218, 255, 16, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(218, 255, 16, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: min(48vw, 560px);
  aspect-ratio: 1;
  right: -12vw;
  top: 10vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218, 255, 16, 0.14), transparent 68%);
  pointer-events: none;
}

.hero-content, .app-preview, .hero-stats { position: relative; z-index: 1; }

.eyebrow, .label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 7px 14px;
  border: 1px solid var(--primary-border);
  background: var(--primary-soft);
  margin-bottom: 26px;
}

.label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--primary);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 0.98;
  text-transform: uppercase;
}

h1 {
  max-width: 920px;
  font-size: clamp(58px, 9vw, 128px);
  font-weight: 900;
}

h1 span, .cta h2 span { color: var(--primary); }

.hero-copy {
  max-width: 560px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 300;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--primary); color: var(--bg); }
.button-secondary { border-color: rgba(255, 255, 255, 0.22); color: var(--text); }
.button-secondary:hover { border-color: var(--primary); color: var(--primary); }

.app-preview {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.phone-shell {
  width: min(100%, 360px);
  aspect-ratio: 0.55;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 34px;
  padding: 14px;
  background: linear-gradient(145deg, #20201b, #080808 70%);
  box-shadow: 0 28px 90px rgba(0,0,0,0.45), 0 0 60px rgba(218,255,16,0.08);
}

.phone-top {
  width: 92px;
  height: 6px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: calc(100% - 16px);
  border-radius: 24px;
  padding: 22px;
  background: #0a0a09;
  overflow: hidden;
}

.screen-head, .balance-card, .metric-list div {
  border: 1px solid var(--line);
  background: var(--panel);
}

.screen-head {
  display: flex;
  justify-content: space-between;
  padding: 13px 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.screen-head strong { color: var(--ok); }

.balance-card { padding: 18px; }
.balance-card span, .metric-list span { color: var(--muted); font-size: 13px; }
.balance-card strong { display: block; margin-top: 4px; color: var(--text); font-size: 28px; }

.chart-bars {
  display: flex;
  align-items: end;
  gap: 10px;
  flex: 1;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(218,255,16,0.08), transparent);
}

.chart-bars i {
  flex: 1;
  min-width: 14px;
  background: linear-gradient(180deg, var(--primary), rgba(218,255,16,0.18));
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-list div { padding: 12px 10px; }
.metric-list strong { display: block; color: var(--primary); font-size: 15px; }

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
  gap: 1px;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-stats div {
  padding: 24px;
  background: rgba(14,14,13,0.8);
}

.hero-stats strong {
  display: block;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 32px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--panel);
  white-space: nowrap;
}

.ticker div {
  display: inline-flex;
  animation: ticker 28s linear infinite;
}

.ticker span {
  padding: 14px 36px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--primary);
  vertical-align: middle;
}

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

.section {
  padding: clamp(76px, 10vw, 120px) clamp(20px, 5vw, 72px);
}

.section-dark {
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2, .split-heading h2, .section-title, .cta h2 {
  margin-top: 16px;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
}

.section-heading p:not(.label), .split-heading > p, .section-copy, .cta p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.market-grid, .features-grid, .pricing-grid {
  display: grid;
  gap: 1px;
  margin-top: 58px;
  border: 1px solid var(--line);
  background: var(--line);
}

.market-grid { grid-template-columns: repeat(4, 1fr); }
.features-grid { grid-template-columns: repeat(3, 1fr); }
.pricing-grid { grid-template-columns: repeat(3, 1fr); }

.info-card, .feature-card, .pricing-card, .step {
  background: var(--panel);
  padding: clamp(28px, 4vw, 42px);
}

.info-card strong {
  display: block;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.info-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.7fr);
  align-items: end;
  gap: 48px;
}

.feature-card {
  min-height: 260px;
  transition: background 180ms ease;
}

.feature-card:hover { background: var(--panel-2); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border: 1px solid var(--primary-border);
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.feature-card h3, .step h3, .pricing-card h3 {
  font-size: 25px;
  font-weight: 800;
}

.feature-card p, .step p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 58px;
  background: var(--line);
}

.step span {
  display: block;
  color: rgba(218,255,16,0.14);
  font-family: var(--font-mono);
  font-size: 78px;
  font-weight: 700;
  line-height: 1;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.pricing-card.featured {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  background: var(--panel-2);
}

.badge {
  position: absolute;
  top: 0;
  right: 28px;
  padding: 5px 12px;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-card strong {
  display: block;
  margin-top: 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}

.pricing-card > span { color: var(--muted); font-size: 14px; }

.pricing-card ul {
  flex: 1;
  margin: 32px 0;
  list-style: none;
}

.pricing-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.pricing-card li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--primary);
}

.faq-list {
  max-width: 820px;
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item button {
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.faq-item button::after {
  content: "+";
  float: right;
  color: var(--primary);
}

.faq-item.open button::after { content: "−"; }

.faq-item p {
  display: none;
  max-width: 650px;
  padding: 0 0 24px;
  color: var(--muted);
}

.faq-item.open p { display: block; }

.cta {
  display: grid;
  justify-items: center;
  padding: clamp(84px, 11vw, 132px) 20px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(218,255,16,0.12), transparent 62%),
    var(--bg);
}

.cta h2 {
  max-width: 820px;
  font-size: clamp(48px, 8vw, 96px);
}

.cta small {
  margin-top: 22px;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  padding: 54px clamp(20px, 5vw, 72px) 34px;
  border-top: 1px solid var(--line);
  background: #040403;
}

.site-footer p {
  max-width: 420px;
  margin-top: 16px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-content: start;
  justify-content: end;
  color: var(--muted);
}

.legal {
  grid-column: 1 / -1;
  max-width: none;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

.auth-page,
.dashboard-page {
  min-height: 100vh;
}

.auth-header,
.dashboard-header {
  position: sticky;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: clamp(32px, 6vw, 92px);
  min-height: calc(100vh - 72px);
  padding: clamp(52px, 7vw, 96px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(218,255,16,0.06), transparent 48%),
    var(--bg);
}

.auth-copy h1 {
  max-width: 720px;
  font-size: clamp(52px, 8vw, 106px);
}

.auth-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 19px;
}

.auth-card,
.dashboard-panel,
.metric-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.auth-card {
  padding: clamp(22px, 4vw, 34px);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 24px;
  background: var(--line);
}

.auth-tabs button {
  min-height: 48px;
  border: 0;
  background: #090908;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-tabs button.active {
  background: var(--primary);
  color: var(--bg);
}

.auth-form {
  display: none;
  gap: 16px;
}

.auth-form.active,
.compact-form {
  display: grid;
}

.auth-form label,
.compact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form .button,
.compact-form .button {
  width: 100%;
  margin-top: 8px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.google-auth-slot {
  display: grid;
  min-height: 44px;
}

.google-auth-slot > div,
.google-auth-slot iframe {
  width: 100% !important;
}

.google-fallback {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #090908;
  color: var(--muted);
  cursor: not-allowed;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-message {
  min-height: 24px;
  margin-top: 18px;
  color: var(--muted);
}

.form-message[data-type="error"] { color: var(--danger); }
.form-message[data-type="success"] { color: var(--ok); }

.dashboard-shell {
  display: grid;
  gap: 24px;
  padding: clamp(30px, 5vw, 56px) clamp(20px, 5vw, 72px) 72px;
}

.dashboard-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
}

.dashboard-hero h1 {
  margin-top: 12px;
  font-size: clamp(42px, 7vw, 88px);
}

.dashboard-grid {
  display: grid;
  gap: 16px;
}

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-columns {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.metric-card {
  min-height: 138px;
  padding: 24px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}

.dashboard-panel {
  padding: clamp(20px, 3vw, 30px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  font-size: 30px;
}

.compact-form {
  gap: 14px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--text);
}

.status-pill {
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
  padding: 4px 10px;
  border: 1px solid var(--primary-border);
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
}

.dashboard-message {
  position: sticky;
  bottom: 18px;
  justify-self: end;
  min-width: min(100%, 320px);
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(6, 6, 5, 0.92);
  backdrop-filter: blur(14px);
}

.admin-panel[hidden],
[data-admin-link][hidden] {
  display: none;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-bottom: 22px;
  background: var(--line);
}

.admin-tabs button {
  flex: 1;
  min-width: 160px;
  min-height: 48px;
  border: 0;
  background: #090908;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-tabs button.active {
  background: var(--primary);
  color: var(--bg);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: grid;
  gap: 22px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #090908;
}

.league-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sync-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  align-self: end;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-self: end;
}

.form-actions .button {
  min-height: 48px;
  padding-inline: 18px;
  white-space: nowrap;
}

.admin-force-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-force-actions .button {
  min-height: 48px;
  padding-inline: 18px;
  border-color: var(--primary);
  background: #000;
  color: var(--primary);
}

.admin-force-actions .button:hover,
.admin-force-actions .button:focus-visible,
.admin-force-actions .button[aria-pressed="true"] {
  border-color: #000;
  background: var(--primary);
  color: #000;
}

.admin-force-actions .button:disabled {
  border-color: #000;
  background: var(--primary);
  color: #000;
  opacity: 1;
  cursor: wait;
  transform: none;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-action {
  min-height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.small-action:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.small-action.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.muted-copy {
  color: var(--muted);
  font-size: 14px;
}

.admin-log {
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  background: #050505;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: pre-wrap;
}

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .app-preview { justify-content: flex-start; }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-shell,
  .two-columns { grid-template-columns: 1fr; }
  .admin-form,
  .league-form,
  .sync-form { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle { display: block; }
  .header-cta { display: none; }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: grid;
    justify-items: stretch;
    gap: 0;
    padding: 14px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(6,6,5,0.98);
    transform: translateY(-140%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms ease;
  }

  .menu-open .site-nav {
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

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

  .split-heading, .pricing-grid, .steps, .site-footer {
    grid-template-columns: 1fr;
  }

  .pricing-card { min-height: auto; }
  .site-footer nav { justify-content: start; }
  .dashboard-nav {
    position: static;
    display: none;
  }
  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .brand { font-size: 18px; }
  h1 { font-size: clamp(50px, 16vw, 74px); }
  .button { width: 100%; }
  .app-preview { display: none; }
  .hero-stats, .market-grid, .features-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .hero-stats div { padding: 20px; }
  .section-heading h2, .split-heading h2, .section-title { font-size: clamp(36px, 12vw, 54px); }
  .faq-item button { font-size: 19px; }
  .auth-shell { padding-top: 40px; }
  .auth-card { padding: 18px; }
  .metric-card { min-height: 118px; }
  .dashboard-header .header-cta { display: inline-flex; }
}

@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;
  }
}
