/* HardAC — MLSAC.net style (zinc monochrome, pill nav) */
:root {
  --bg: #09090b;
  --bg-elevated: #121212;
  --surface: rgba(255, 255, 255, 0.02);
  --surface-hover: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #fafafa;
  --muted: #a1a1aa;
  --faint: #71717a;
  --btn-fg: #09090b;
  --btn-bg: #d4d4d8;
  --btn-bg-hover: #e4e4e7;
  --ok: #4ade80;
  --danger: #f87171;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 9999px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", monospace;
  --max: 72rem;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.hidden { display: none !important; }

/* noise + subtle gradient */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 50% -20%, rgba(255, 255, 255, 0.06), transparent 60%),
    var(--bg);
}

/* fixed pill header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: .75rem 1rem;
}
.header-wrap { max-width: 64rem; margin: 0 auto; }
.pill-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .5rem .35rem .35rem;
  border-radius: var(--radius-pill);
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .75rem;
  border-radius: .75rem;
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: -0.02em;
}
.nav-brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav-divider {
  display: none;
  width: 2px;
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  margin: 0 .15rem;
}
.nav-links {
  display: none;
  align-items: center;
  gap: .125rem;
  margin-left: .15rem;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .75rem;
  border-radius: .75rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-link.active { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.nav-link svg { opacity: .6; width: 14px; height: 14px; }
.nav-link.active svg { opacity: 1; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .7rem;
  border-radius: .75rem;
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  font-size: .8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.lang-menu {
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  min-width: 7rem;
  padding: .25rem;
  border-radius: .75rem;
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  display: none;
}
.lang-menu.open { display: block; }
.lang-menu button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: .5rem .65rem;
  border-radius: .5rem;
  font-size: .8125rem;
  color: var(--muted);
  cursor: pointer;
}
.lang-menu button:hover,
.lang-menu button.active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lang-wrap { position: relative; }
.nav-divider-sm {
  display: none;
  width: 2px;
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 .25rem;
}
.btn-auth {
  display: none;
  align-items: center;
  gap: .35rem;
  padding: .4rem .75rem;
  border-radius: .75rem;
  font-size: .8125rem;
  font-weight: 500;
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  transition: border-color .2s, color .2s;
}
.btn-auth:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.burger:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: .75rem;
  margin-top: .5rem;
  border-radius: 1rem;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid var(--line);
}
.mobile-nav.open { display: flex; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-divider, .nav-divider-sm { display: block; }
  .btn-auth { display: inline-flex; }
  .burger { display: none; }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: 0 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  transition: background .2s, opacity .2s, border-color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-ghost {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.btn-ghost:hover { opacity: .85; }
.btn-sm { min-height: 2.25rem; padding: 0 .85rem; font-size: .8125rem; font-weight: 600; }
.btn-block { width: 100%; }

/* hero */
.page-main { position: relative; z-index: 1; padding-top: var(--nav-h); }
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 3rem;
  text-align: center;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 56rem; }
.hero-section h1 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.gradient-line {
  background: linear-gradient(to right, #fff, #e4e4e7, #a1a1aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0;
}

/* platforms */
.platforms-section { padding: 3rem 1rem; }
.platforms-row {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.platform-pills span {
  padding: .5rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  color: #e4e4e7;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.platform-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* sections */
.section { padding: 5rem 1rem; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: .75rem;
}
.section-head p { color: var(--muted); font-size: 1rem; }

/* stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card {
  text-align: center;
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  transition: transform .35s, background .35s;
}
.stat-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.04); }
.stat-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
}
.stat-card:hover .stat-icon { color: #e4e4e7; border-color: rgba(255, 255, 255, 0.1); }
.stat-value {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  background: linear-gradient(to bottom right, #fff, #e4e4e7, #71717a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .35rem;
}
.stat-value .suffix { font-size: 1.75rem; color: #52525b; }
.stat-title { font-size: 1rem; font-weight: 500; color: #e4e4e7; margin-bottom: .2rem; }
.stat-desc { font-size: .75rem; color: var(--faint); }

/* how it works */
.how-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .how-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .how-card-main { grid-row: span 2; }
}
.how-card {
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  transition: transform .35s, background .35s;
}
.how-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.04); }
.how-card-main { padding: 2.5rem 2rem; }
@media (min-width: 768px) { .how-card-main { padding: 3rem; } }
.how-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  display: grid;
  place-items: center;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
}
.how-card-sm .how-icon { width: 3rem; height: 3rem; margin-bottom: 1rem; }
.how-card-sm .how-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.how-card-sm .how-head .how-icon { margin-bottom: 0; }
.how-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e4e4e7;
  margin-bottom: .75rem;
  letter-spacing: -0.02em;
}
.how-card-main h3 { font-size: 1.5rem; }
@media (min-width: 768px) { .how-card-main h3 { font-size: 1.875rem; } }
.how-card p { color: var(--faint); font-size: .9375rem; line-height: 1.65; }
.how-card-main p { font-size: 1rem; }

/* pricing */
.pricing-grid {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.price-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.75rem;
}
.price-card.featured {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.price-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .2rem .55rem;
  border-radius: var(--radius-pill);
  background: #e4e4e7;
  color: #09090b;
}
.price-card h3 { color: var(--muted); font-size: 1rem; margin-bottom: .35rem; }
.price-amount {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-amount small { font-size: 1rem; color: var(--muted); font-weight: 500; margin-left: .15rem; }
.price-desc { color: var(--muted); margin: .85rem 0 1.25rem; font-size: .9rem; }
.price-list { list-style: none; display: grid; gap: .55rem; margin-bottom: 1.5rem; }
.price-list li {
  color: var(--muted);
  font-size: .875rem;
  padding-left: 1.1rem;
  position: relative;
}
.price-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a1a1aa;
  position: absolute;
  left: 0;
  top: .55rem;
}
.pricing-loading {
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}
.spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #e4e4e7;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 1rem 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand img { width: 150px; height: auto; border-radius: .5rem; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: .875rem; max-width: 18rem; line-height: 1.6; }
.footer-col h4 { font-size: .875rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .5rem; }
.footer-col a { color: var(--muted); font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.footer-social a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-bottom p { color: var(--muted); font-size: .875rem; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .75rem;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
  background: rgba(74, 222, 128, 0.1);
  color: #86efac;
}
.status-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--ok);
}

/* auth */
.auth-page {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3rem;
}
.auth-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  padding: 2rem;
  animation: authIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-card h1 {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: .25rem 0 .5rem;
}
.auth-card .sub { color: var(--muted); margin-bottom: 1.4rem; font-size: .9rem; }
.field { display: grid; gap: .4rem; margin-bottom: .9rem; }
.field label { font-size: .8125rem; color: var(--muted); }
.field input {
  width: 100%;
  min-height: 2.75rem;
  border-radius: .65rem;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.35);
  padding: 0 .9rem;
  outline: none;
  transition: border-color .2s;
}
.field input:focus { border-color: rgba(255, 255, 255, 0.28); }
.form-error { color: var(--danger); font-size: .85rem; min-height: 1.2rem; margin: .35rem 0 .75rem; }
.auth-switch { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.auth-switch a { color: #e4e4e7; text-decoration: underline; text-underline-offset: 2px; }

/* dashboard */
.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - var(--nav-h) - 2rem);
  margin: 1rem auto 2rem;
  max-width: var(--max);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.app-side {
  border-right: 1px solid var(--line);
  padding: 1.25rem 1rem;
  background: rgba(0, 0, 0, 0.2);
}
.app-side .side-label {
  color: var(--faint);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}
.app-side nav { display: grid; gap: .2rem; }
.side-link {
  border: 0;
  background: transparent;
  text-align: left;
  padding: .65rem .75rem;
  border-radius: .65rem;
  color: var(--muted);
  font-size: .875rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.side-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.side-link.active { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid var(--line); }
.app-main { padding: 1.5rem 1.35rem 2rem; }
.app-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.app-top h1 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.app-top p { color: var(--muted); font-size: .875rem; margin-top: .2rem; }
.grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.box {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}
.box h2 { font-size: .95rem; font-weight: 600; margin-bottom: .85rem; }
.kv { display: grid; gap: .5rem; }
.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .875rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.kv-row:last-child { border-bottom: 0; }
.kv-row span { color: var(--muted); }
.badge {
  display: inline-flex;
  padding: .15rem .5rem;
  border-radius: var(--radius-pill);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-free { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.badge-premium { background: rgba(255, 255, 255, 0.12); color: #e4e4e7; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
th {
  color: var(--faint);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(0, 0, 0, 0.25);
}
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.mono { font-family: var(--mono); font-size: .8rem; }
.linkish { background: none; border: 0; color: #e4e4e7; cursor: pointer; padding: 0; text-decoration: underline; }
.warn-box {
  border: 1px solid rgba(250, 204, 21, 0.25);
  background: rgba(250, 204, 21, 0.08);
  color: #fde68a;
  border-radius: .65rem;
  padding: .75rem 1rem;
  font-size: .85rem;
  margin: .75rem 0;
}
.code-box {
  border: 1px solid var(--line);
  background: #0a0a0b;
  border-radius: .65rem;
  padding: 1rem;
  font-family: var(--mono);
  font-size: .75rem;
  white-space: pre-wrap;
  word-break: break-all;
  color: #d4d4d8;
  max-height: 260px;
  overflow: auto;
}
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: #18181b;
  border: 1px solid var(--line-strong);
  padding: .75rem 1rem;
  border-radius: .65rem;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  font-size: .875rem;
}

@keyframes authIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.app-panel {
  animation: panelIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.side-link {
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.side-link:hover { transform: translateX(2px); }

@media (max-width: 900px) {
  .grid-2, .app-shell { grid-template-columns: 1fr; }
  .app-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .app-shell { margin-left: 1rem; margin-right: 1rem; }
}

/* === Animations === */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #09090b;
  color: #fff;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-spin {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: #fff;
  animation: spin 0.75s linear infinite;
}
.loader-phrase {
  margin-top: 1.25rem;
  min-width: 16rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #d4d4d8;
}
.loader-phrase.phrase-in {
  animation: phraseIn 0.28s ease-out;
}
@keyframes phraseIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.site-header {
  transition: padding 0.35s ease;
}
.site-header.is-scrolled .pill-nav {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-inner {
  animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(32px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.hero-glow {
  transition: transform 0.35s ease-out;
  will-change: transform;
}

.platform-pills span {
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s;
}
.platform-pills span:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.btn, .nav-link, .price-card, .stat-card, .how-card {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}
.btn:active { transform: translateY(0) scale(0.98); }

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.pill-nav {
  transition: box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-inner { opacity: 1; transform: none; animation: none; transition: none; }
  .loader-spin { animation-duration: 1.2s; }
}
