:root {
  color-scheme: dark;
  --bg: #090d12;
  --bg-soft: #0f151d;
  --surface: rgba(18, 25, 34, 0.88);
  --surface-solid: #121922;
  --surface-raised: #18222d;
  --line: rgba(170, 190, 205, 0.16);
  --line-strong: rgba(170, 190, 205, 0.3);
  --text: #f4f7fb;
  --muted: #9daab8;
  --quiet: #74808d;
  --primary: #31d0aa;
  --primary-strong: #72f2ce;
  --gold: #f2b84b;
  --danger: #ff6b6b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --speed: 180ms;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

img, svg, video, canvas {
  max-width: 100%;
}

h1, h2, h3, p, a, button, input, textarea, select, dd, dt, li, span, strong {
  overflow-wrap: anywhere;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-padding-top: 96px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(49, 208, 170, 0.08), transparent 32%),
    radial-gradient(circle at 84% 12%, rgba(242, 184, 75, 0.12), transparent 28%),
    linear-gradient(180deg, #0b1017 0%, #090d12 48%, #0d1218 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 70%);
  pointer-events: none;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 18, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(49, 208, 170, 0.42);
  border-radius: var(--radius);
  color: #07120f;
  background: linear-gradient(135deg, var(--primary-strong), var(--gold));
  box-shadow: 0 0 32px rgba(49, 208, 170, 0.18);
  font-weight: 950;
}

.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: 0; }
.brand small { color: var(--muted); }

.main-nav, .session-actions, .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.main-nav { justify-content: center; }

.main-nav button {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 11px;
  color: var(--muted);
  background: transparent;
  font-weight: 760;
  transition: color var(--speed) ease, background var(--speed) ease, border-color var(--speed) ease, transform var(--speed) ease;
}

.main-nav button:hover,
.main-nav button.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.main-nav button.active::after {
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

.nav-count {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  place-items: center;
  border-radius: 999px;
  margin-left: 4px;
  color: #06120f;
  background: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
}

.session-actions { justify-content: flex-end; }
.session-chip {
  max-width: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  font-weight: 850;
  transition: transform var(--speed) ease, border-color var(--speed) ease, background var(--speed) ease, box-shadow var(--speed) ease;
}

.button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.button.is-loading::after {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.primary {
  border-color: transparent;
  color: #06120f;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  box-shadow: 0 14px 34px rgba(49, 208, 170, 0.18);
}

.primary:hover {
  box-shadow: 0 18px 46px rgba(49, 208, 170, 0.26);
}

.secondary { color: var(--text); }
.danger {
  border-color: rgba(255, 107, 107, 0.42);
  color: #fff;
  background: rgba(255, 107, 107, 0.16);
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
  min-width: 0;
}

.route {
  display: none;
  min-width: 0;
  scroll-margin-top: 96px;
  animation: none;
}

.route.active { display: block; }

@keyframes routeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 22px;
  align-items: stretch;
  min-width: 0;
}

.hero-copy, .trust-panel, .panel, .info-block, .empty-state, .product-card, .stats article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24, 34, 45, 0.9), rgba(14, 20, 28, 0.9));
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  padding: clamp(28px, 6vw, 64px);
}

.hero-copy::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(49, 208, 170, 0.18);
  border-radius: 50%;
  content: "";
  background:
    linear-gradient(135deg, rgba(49, 208, 170, 0.18), rgba(242, 184, 75, 0.10)),
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,0.06) 14px 15px);
  transform: rotate(-18deg);
  animation: floatSignal 8s ease-in-out infinite;
}

@keyframes floatSignal {
  0%, 100% { transform: translateY(0) rotate(-18deg); }
  50% { transform: translateY(-14px) rotate(-14deg); }
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero-copy h1, .section-head h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5.45rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: min(760px, 100%);
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 920;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust-panel, .panel, .info-block, .empty-state {
  padding: 24px;
}

.trust-panel {
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(180deg, rgba(31, 43, 55, 0.92), rgba(16, 24, 33, 0.92)),
    radial-gradient(circle at 40% 0%, rgba(242, 184, 75, 0.12), transparent 42%);
}

.trust-panel h2, .panel h2, .info-block h2, .empty-state h2 {
  margin-top: 0;
  letter-spacing: 0;
}

.trust-panel dl { display: grid; gap: 14px; margin: 0; }
.trust-panel div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.trust-panel dt { color: var(--muted); }
.trust-panel dd { margin: 0; color: var(--text); font-weight: 900; text-align: right; }

.content-grid, .two-col, .admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.feature-strip span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(255,255,255,0.045);
  text-align: center;
  font-weight: 850;
}

.steps {
  display: grid;
  gap: 12px;
  padding-left: 22px;
  color: var(--muted);
}

.section-head {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-head > * {
  min-width: 0;
}

.section-head p, .panel p, .info-block p, .empty-state p { color: var(--muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.product-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  border-color: rgba(49, 208, 170, 0.42);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-raised);
  filter: saturate(1.06) contrast(1.02);
  transition: transform 260ms ease, filter 260ms ease;
}

.product-card:hover img {
  filter: saturate(1.16) contrast(1.05);
  transform: scale(1.025);
}

.product-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-card h2 { margin: 0; font-size: 1.1rem; }

.product-facts {
  display: grid;
  gap: 6px;
  color: var(--quiet);
  font-size: 0.88rem;
}

.product-facts span::before {
  color: var(--primary);
  content: "• ";
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid rgba(49, 208, 170, 0.22);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--primary-strong);
  background: rgba(49, 208, 170, 0.10);
  font-weight: 900;
  font-size: 0.82rem;
}

.price { color: var(--gold); font-weight: 920; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stats article {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.stats article::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

.stats span { display: block; color: var(--quiet); font-size: 0.9rem; }
.stats strong { color: var(--text); font-size: 1.35rem; }

.form-grid { display: grid; gap: 14px; }

.form-grid > * {
  min-width: 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--text);
  background: rgba(8, 12, 17, 0.78);
  outline: none;
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease, background var(--speed) ease;
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(49, 208, 170, 0.64);
  background: rgba(8, 12, 17, 0.95);
  box-shadow: 0 0 0 4px rgba(49, 208, 170, 0.10);
}

textarea { resize: vertical; }
.narrow { max-width: 700px; }

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color var(--speed) ease, background var(--speed) ease;
}

.list-item:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.list-item header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.list-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.list-actions input, .list-actions select { width: min(100%, 240px); }
.muted { color: var(--muted); }
.warning { border-color: rgba(242, 184, 75, 0.35); background: rgba(242, 184, 75, 0.08); }
.optional { color: var(--quiet); font-weight: 500; }

.checkout-layout {
  align-items: start;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.checkout-total span { color: var(--muted); }
.checkout-total strong { color: var(--gold); font-size: 1.35rem; }

.notice-box {
  border: 1px solid rgba(242, 184, 75, 0.35);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(242, 184, 75, 0.08);
}

.notice-box p {
  margin-bottom: 0;
}

.cart-line .list-actions {
  align-items: center;
}

.quantity-chip {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255,255,255,0.04);
  font-weight: 950;
}

.compact-list {
  margin-top: 12px;
}

.compact-list .list-item {
  padding: 10px;
}

.admin-wide {
  grid-column: 1 / -1;
}

.product-admin-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.product-admin-form .span-2 {
  grid-column: span 2;
}

.skeleton-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(180deg, rgba(24, 34, 45, 0.9), rgba(14, 20, 28, 0.9));
  box-shadow: var(--shadow);
}

.skeleton-card span,
.skeleton-card b,
.skeleton-card em {
  display: block;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  background-size: 220% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}

.skeleton-card span { height: 140px; }
.skeleton-card b { height: 22px; width: 70%; }
.skeleton-card em { height: 42px; width: 45%; }

@keyframes shimmer {
  to { background-position: -220% 0; }
}

dialog {
  width: min(450px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text);
  background: linear-gradient(180deg, #17202b, #101720);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(4px);
}

.dialog-close { display: flex; justify-content: end; }
.dialog-close button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 1.6rem;
}

.auth-page.active {
  display: grid;
  min-height: calc(100dvh - 92px);
  place-items: center;
  padding: clamp(18px, 5vw, 54px) 16px;
  background:
    radial-gradient(circle at 50% 35%, rgba(66, 206, 118, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(2, 14, 11, 0.94), rgba(3, 17, 13, 0.98));
}

.auth-card {
  width: min(360px, 100%);
  border: 1px solid rgba(66, 206, 118, 0.18);
  border-radius: 8px;
  padding: clamp(16px, 4vw, 24px);
  color: #f7fbf8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(4, 18, 14, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.auth-brand {
  margin-bottom: 14px;
  text-align: center;
}

.auth-brand h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 6vw, 2.15rem);
  line-height: 1.05;
}

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

.auth-tabs button {
  min-height: 42px;
  border: 1px solid rgba(66, 206, 118, 0.18);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
}

.auth-tabs .active {
  color: #06120f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
}

.auth-card .form-grid {
  gap: 10px;
}

.auth-card label {
  gap: 5px;
  color: rgba(247, 251, 248, 0.76);
  font-size: 0.78rem;
}

.auth-card input {
  min-height: 44px;
  border-radius: 8px;
  color: #07130e;
  background: rgba(255, 255, 255, 0.94);
}

.auth-card .button {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
}

.auth-card .muted {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(420px, calc(100% - 36px));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  background: #151f2a;
  box-shadow: var(--shadow);
  animation: toastIn 220ms ease both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }

@media (max-width: 980px) {
  html {
    scroll-padding-top: 178px;
  }

  .route {
    scroll-margin-top: 178px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 12px clamp(12px, 3vw, 22px);
    overflow: hidden;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    max-width: 100%;
    flex-wrap: nowrap;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .session-actions {
    justify-content: flex-end;
  }

  .session-chip {
    max-width: 180px;
  }

  .hero-shell, .content-grid, .two-col, .admin-grid {
    grid-template-columns: 1fr;
  }

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

  .stats, .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-admin-form { grid-template-columns: 1fr 1fr; }
  .product-admin-form .span-2 { grid-column: span 2; }

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

  .section-head { align-items: stretch; flex-direction: column; }
}

@media (max-width: 720px) {
  main {
    width: min(1200px, calc(100% - 24px));
    padding-top: 20px;
  }

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

  .brand small {
    font-size: 0.78rem;
  }

  .session-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 6px;
    justify-content: flex-start;
  }

  .main-nav {
    grid-row: 3;
  }

  .session-chip {
    max-width: min(210px, 48vw);
    padding: 7px 9px;
    font-size: 0.86rem;
  }

  .session-actions .button {
    min-height: 38px;
    padding: 0 12px;
  }

  .main-nav button {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.92rem;
  }

  .hero-copy, .trust-panel, .panel, .info-block, .empty-state {
    padding: 18px;
  }

  .hero-copy {
    padding-top: 24px;
  }

  .hero-copy::after {
    right: -120px;
    bottom: -150px;
    width: 280px;
    height: 280px;
    opacity: 0.58;
  }

  .hero-copy h1, .section-head h1 {
    font-size: clamp(1.9rem, 8.6vw, 2.85rem);
    line-height: 1.06;
  }

  .hero-copy h1,
  .hero-copy .lead {
    max-width: calc(100% - 12px);
  }

  .hero-copy .lead {
    max-width: min(32ch, calc(100% - 12px));
  }

  .lead {
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-actions,
  .section-head,
  .list-actions,
  .cart-line .list-actions {
    align-items: stretch;
  }

  .hero-actions .button,
  .checkout-layout .button,
  .form-grid > .button,
  .section-head > .button,
  .list-actions .button {
    width: 100%;
  }

  .product-grid, .product-admin-form, .product-admin-form .span-2 {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .product-card-body {
    padding: 14px;
  }

  .stats, .feature-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stats article, .feature-strip span {
    padding: 14px;
  }

  .stats strong {
    font-size: 1.15rem;
  }

  .trust-panel div,
  .checkout-total,
  .meta-row {
    align-items: flex-start;
  }

  .trust-panel div,
  .checkout-total {
    flex-direction: column;
    gap: 4px;
  }

  .trust-panel dd {
    text-align: left;
  }

  .list-item {
    padding: 12px;
  }

  .list-item header {
    flex-direction: column;
    gap: 5px;
  }

  .list-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .list-actions input,
  .list-actions select {
    width: 100%;
    min-width: 0;
  }

  .quantity-chip {
    width: 100%;
  }

  dialog {
    width: min(450px, calc(100% - 20px));
    padding: 18px;
  }

  .toast {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
  }
}

@media (max-width: 400px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .session-actions {
    justify-content: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .session-actions .button {
    width: auto;
  }

  .session-chip {
    max-width: none;
  }

  .stats, .feature-strip {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) {
  .button:hover,
  .main-nav button:hover,
  .product-card:hover,
  .product-card:hover img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Reference-style finance theme */
:root {
  --bg: #03120f;
  --bg-soft: #061b15;
  --surface: rgba(5, 35, 26, 0.82);
  --surface-solid: #061b15;
  --surface-raised: #08261d;
  --line: rgba(69, 209, 124, 0.18);
  --line-strong: rgba(69, 209, 124, 0.42);
  --text: #f7fbf8;
  --muted: #b9c9c1;
  --quiet: #789489;
  --primary: #42ce76;
  --primary-strong: #66e28f;
  --gold: #e3b84f;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --radius: 12px;
}

html {
  background: #020d0a;
  scroll-padding-top: 154px;
}

body {
  background:
    linear-gradient(180deg, #020b09 0%, #041511 52%, #020b09 100%);
}

body::before {
  background-image:
    linear-gradient(rgba(69, 209, 124, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 209, 124, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent 78%);
}

.topbar {
  grid-template-columns: auto auto;
  grid-template-areas:
    "brand menu"
    "nav nav"
    "session session";
  gap: 0;
  padding: 20px clamp(18px, 4vw, 34px) 0;
  border-bottom: 1px solid rgba(69, 209, 124, 0.12);
  background: rgba(1, 14, 11, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.brand {
  grid-area: brand;
  gap: 12px;
  padding-bottom: 18px;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 42px;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 0;
  color: var(--primary);
  background: transparent;
  box-shadow: none;
}

.brand-mark span {
  display: block;
  width: 8px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #66e28f, #27b85e);
}

.brand-mark span:nth-child(1) { height: 16px; }
.brand-mark span:nth-child(2) { height: 25px; }
.brand-mark span:nth-child(3) { height: 34px; }

.brand-mark::after {
  position: absolute;
  left: 8px;
  top: 3px;
  width: 28px;
  height: 19px;
  border-top: 5px solid var(--primary);
  border-right: 5px solid var(--primary);
  content: "";
  transform: skew(-18deg) rotate(-18deg);
  transform-origin: right top;
}

.brand strong {
  color: #f7fbf8;
  font-size: clamp(1.14rem, 2vw, 1.35rem);
  font-weight: 950;
  line-height: 0.96;
}

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

.brand small {
  margin-top: 3px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.26em;
}

.menu-toggle {
  grid-area: menu;
  display: inline-grid;
  width: 44px;
  height: 44px;
  justify-self: end;
  align-self: start;
  place-items: center;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  position: relative;
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: #f7fbf8;
  box-shadow: 0 8px 0 #f7fbf8, 0 -8px 0 #f7fbf8;
}

.menu-toggle span + span {
  display: none;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: none;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(3px);
}

.nav-scrim.open {
  display: block;
}

body.nav-locked {
  overflow-x: hidden;
}

.topbar.nav-open .menu-toggle {
  position: relative;
  z-index: 61;
}

.topbar.nav-open {
  z-index: 80;
  overflow: visible;
}

.topbar.nav-open .menu-toggle span {
  box-shadow: none;
  transform: rotate(45deg);
}

.topbar.nav-open .menu-toggle span::after {
  position: absolute;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  content: "";
  background: #f7fbf8;
  transform: rotate(90deg);
}

.topbar.nav-open .main-nav,
.main-nav.open,
html.nav-open #main-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  display: grid;
  width: min(82vw, 340px);
  height: 100dvh;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 6px;
  margin: 0;
  border-left: 1px solid rgba(69, 209, 124, 0.24);
  border-top: 0;
  padding: 92px 24px 24px;
  background:
    radial-gradient(circle at 70% 12%, rgba(66, 206, 118, 0.14), transparent 30%),
    linear-gradient(180deg, #061610, #03100c);
  box-shadow: -30px 0 70px rgba(0, 0, 0, 0.44);
  max-height: 100dvh;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.topbar.nav-open .main-nav button,
.main-nav.open button,
html.nav-open #main-nav button {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(69, 209, 124, 0.16);
  border-radius: 10px;
  padding: 0 14px;
  text-align: left;
  background: rgba(62, 207, 106, 0.055);
}

.topbar.nav-open .main-nav button.active::after,
.main-nav.open button.active::after,
html.nav-open #main-nav button.active::after {
  right: auto;
  bottom: 12px;
  left: 14px;
  width: 44px;
}

.main-nav {
  grid-area: nav;
  display: grid;
  grid-template-columns: max-content;
  justify-content: start;
  gap: clamp(22px, 6vw, 74px);
  width: calc(100% + 2 * clamp(18px, 4vw, 34px));
  max-width: none;
  margin-inline: calc(-1 * clamp(18px, 4vw, 34px));
  overflow-x: auto;
  padding: 14px clamp(18px, 4vw, 34px) 0;
  border-top: 1px solid rgba(69, 209, 124, 0.06);
  scrollbar-width: none;
}

.main-nav:not(.open) button:not([data-route="home"]) {
  display: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav button {
  min-height: 48px;
  padding: 0 2px 13px;
  border: 0;
  border-radius: 0;
  color: rgba(247, 251, 248, 0.86);
  background: transparent;
  font-size: clamp(0.92rem, 2.1vw, 1.08rem);
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  touch-action: manipulation;
}

.dashboard-tabs button {
  cursor: pointer;
  touch-action: manipulation;
}

.main-nav button:hover,
.main-nav button.active {
  color: var(--primary);
  border-color: transparent;
  background: transparent;
  transform: none;
}

.main-nav button.active::after {
  right: -8px;
  bottom: 0;
  left: -8px;
  height: 3px;
  background: var(--primary);
  box-shadow: 0 0 16px rgba(66, 206, 118, 0.68);
}

.session-actions {
  grid-area: session;
  display: none;
}

main {
  width: min(100%, 1180px);
  padding: 0 0 56px;
}

.route {
  scroll-margin-top: 154px;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  grid-template-areas:
    "copy art"
    "card card";
  gap: 18px 10px;
  min-height: 630px;
  overflow: hidden;
  padding: clamp(34px, 6vw, 64px) clamp(22px, 4.5vw, 54px) 24px;
  background:
    radial-gradient(circle at 76% 40%, rgba(66, 206, 118, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(1, 15, 12, 0.98) 0%, rgba(3, 24, 18, 0.86) 48%, rgba(4, 24, 18, 0.42) 100%);
}

.hero-shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(1, 13, 10, 0.38), transparent 62%),
    radial-gradient(circle at 94% 30%, rgba(66, 206, 118, 0.18), transparent 28%);
  pointer-events: none;
}

.hero-copy {
  grid-area: copy;
  position: relative;
  z-index: 2;
  align-self: center;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-copy::after {
  display: none;
}

.hero-copy h1 {
  max-width: 640px;
  color: #f7fbf8;
  font-size: clamp(3rem, 7.4vw, 5.7rem);
  line-height: 1.02;
  font-weight: 950;
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.55);
}

.hero-copy h1 span {
  display: block;
  color: var(--primary);
}

.eyebrow {
  color: var(--primary);
  font-size: clamp(0.83rem, 1.6vw, 1rem);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.lead {
  max-width: 500px;
  color: rgba(239, 248, 242, 0.84);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
  line-height: 1.56;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.58);
}

.hero-actions {
  display: grid;
  width: min(100%, 340px);
  gap: 14px;
  margin-top: 26px;
}

.button {
  min-height: 56px;
  border-radius: 10px;
  font-size: 1rem;
}

.primary {
  color: #f7fbf8;
  background: linear-gradient(135deg, #56dc84, #35bd66);
  box-shadow: 0 18px 36px rgba(45, 196, 102, 0.22);
}

.secondary {
  border-color: rgba(66, 206, 118, 0.42);
  color: #f7fbf8;
  background: rgba(1, 17, 13, 0.42);
}

.call-button::before,
.login-button::before,
.register-button::before {
  margin-right: 10px;
  font-weight: 950;
}

.call-button::before { content: "☎"; }
.login-button::before { content: "▣"; }
.register-button::before { content: "✚"; }

.hero-art {
  grid-area: art;
  position: relative;
  z-index: 1;
  align-self: center;
  min-height: 460px;
}

.hero-art img {
  position: absolute;
  right: -10%;
  bottom: -4%;
  width: min(780px, 112%);
  max-width: none;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.44));
}

.trust-panel {
  grid-area: card;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(180px, 240px);
  align-items: center;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(66, 206, 118, 0.28);
  border-radius: 12px;
  background: rgba(4, 38, 27, 0.74);
  box-shadow: inset 0 0 0 1px rgba(66, 206, 118, 0.05), var(--shadow);
}

.register-icon {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(66, 206, 118, 0.17);
  border-radius: 50%;
  background: url("/assets/user-plus-icon.svg") center / contain no-repeat;
  box-shadow: inset 0 0 20px rgba(66, 206, 118, 0.04);
}

.trust-panel h2 {
  margin: 0 0 7px;
  color: #f7fbf8;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
}

.trust-panel p {
  max-width: 460px;
  margin: 0;
  color: rgba(239, 248, 242, 0.78);
  line-height: 1.55;
}

.register-button {
  width: 100%;
}

.register-button::after {
  margin-left: 14px;
  content: "›";
  font-size: 1.8rem;
  line-height: 0;
}

.trust-features {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(66, 206, 118, 0.13);
  padding-top: 22px;
}

.trust-features span {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(239, 248, 242, 0.75);
  font-weight: 900;
}

.trust-features span + span {
  border-left: 1px solid rgba(66, 206, 118, 0.15);
}

.trust-features span::before {
  color: var(--primary);
  font-size: 1.35rem;
}

.trust-features span:nth-child(1)::before { content: "▱"; }
.trust-features span:nth-child(2)::before { content: "◕"; }
.trust-features span:nth-child(3)::before { content: "✹"; }

.content-grid,
.feature-strip {
  width: min(1120px, calc(100% - 44px));
  margin-inline: auto;
}

.panel,
.info-block,
.empty-state,
.product-card,
.stats article,
.skeleton-card {
  border-color: rgba(66, 206, 118, 0.18);
  background: linear-gradient(180deg, rgba(5, 34, 25, 0.88), rgba(2, 18, 14, 0.92));
}

.product-card:hover {
  border-color: rgba(66, 206, 118, 0.56);
}

@media (min-width: 981px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav menu";
    padding-bottom: 0;
  }

  .brand {
    padding-bottom: 18px;
  }

  .main-nav {
    width: auto;
    margin-inline: 0;
    padding: 0;
    border-top: 0;
    justify-content: center;
  }

  .session-actions {
    display: none;
  }

  .landing-only .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 520px);
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 170px;
  }

  .route {
    scroll-margin-top: 170px;
  }

  .topbar {
    padding-top: 20px;
  }

  main {
    width: 100%;
  }

  .hero-shell {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "card";
    min-height: auto;
    padding: 36px 22px 24px;
  }

  .hero-art {
    position: absolute;
    inset: 116px 0 auto 28%;
    z-index: 0;
    min-height: 430px;
    opacity: 0.78;
    pointer-events: none;
  }

  .hero-art img {
    right: -46%;
    bottom: auto;
    width: 680px;
  }

  .hero-copy {
    z-index: 1;
  }

  .hero-copy h1 {
    max-width: 92%;
    font-size: clamp(2.75rem, 13.2vw, 4.15rem);
  }

  .hero-copy .lead {
    max-width: min(34ch, 78%);
    font-size: 1.05rem;
  }

  .hero-actions {
    width: min(100%, 330px);
  }

  .trust-panel {
    grid-template-columns: 74px minmax(0, 1fr);
    margin-top: 18px;
    padding: 24px;
  }

  .register-button {
    grid-column: 1 / -1;
  }

  .trust-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trust-features span + span {
    border-left: 0;
    border-top: 1px solid rgba(66, 206, 118, 0.15);
    padding-top: 12px;
  }
}

@media (min-width: 561px) and (max-width: 760px) {
  .trust-panel {
    grid-template-columns: 78px minmax(0, 1fr) minmax(180px, 230px);
  }

  .register-button {
    grid-column: auto;
  }

  .trust-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .trust-features span + span {
    border-top: 0;
    border-left: 1px solid rgba(66, 206, 118, 0.15);
    padding-top: 0;
  }
}

@media (max-width: 430px) {
  .brand-mark {
    width: 38px;
    height: 36px;
  }

  .brand strong {
    font-size: 1.06rem;
  }

  .main-nav {
    grid-template-columns: repeat(5, max-content);
    gap: 28px;
  }

  .hero-shell {
    padding-inline: 18px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 10.35vw, 2.75rem);
  }

  .hero-copy .lead {
    max-width: 86%;
  }
}

/* Dashboard-only investment flow */
.main-nav {
  grid-template-columns: repeat(3, max-content);
}

.landing-only {
  grid-template-areas: "copy art";
  min-height: calc(100vh - 146px);
}

.landing-only .hero-copy {
  align-self: center;
}

.compact-lead {
  max-width: 430px;
  font-weight: 800;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  width: auto;
}

.dashboard-head,
.dashboard,
#admin,
.public-section {
  width: min(1120px, calc(100% - 44px));
  margin-inline: auto;
}

.public-section {
  margin-top: 28px;
}

.public-section.two-col {
  align-items: stretch;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.feature-list span {
  min-height: 52px;
  border: 1px solid rgba(66, 206, 118, 0.18);
  border-radius: var(--radius);
  padding: 13px;
  color: rgba(239, 248, 242, 0.82);
  background: rgba(66, 206, 118, 0.065);
  font-weight: 850;
}

.faq-list details {
  border: 1px solid rgba(66, 206, 118, 0.14);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(1, 17, 13, 0.36);
}

.faq-list details + details {
  margin-top: 10px;
}

.faq-list summary {
  cursor: pointer;
  color: #f7fbf8;
  font-weight: 900;
}

.faq-list details p {
  margin-bottom: 0;
}

.dashboard-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.dashboard-tabs button {
  min-height: 48px;
  border: 1px solid rgba(66, 206, 118, 0.22);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(5, 34, 25, 0.66);
  font-weight: 900;
}

.dashboard-tabs button.active {
  color: #06120f;
  border-color: transparent;
  background: linear-gradient(135deg, #66e28f, #42ce76);
}

.dashboard-panel {
  display: none;
}

.dashboard-panel.active {
  display: grid;
  gap: 18px;
}

.compact-head {
  margin-bottom: 0;
}

.referral-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: center;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.level-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.level-tabs button {
  min-height: 70px;
  border: 1px solid rgba(66, 206, 118, 0.22);
  border-radius: 8px;
  color: rgba(247, 251, 248, 0.78);
  background:
    radial-gradient(circle at 72% 18%, rgba(66, 206, 118, 0.14), transparent 34%),
    rgba(5, 34, 25, 0.72);
  font-weight: 900;
  cursor: pointer;
}

.level-tabs button.active {
  color: #06120f;
  border-color: transparent;
  background: linear-gradient(135deg, #66e28f, #42ce76);
}

.investment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.investment-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(66, 206, 118, 0.2);
  border-radius: var(--radius);
  padding: 14px;
  background:
    radial-gradient(circle at 70% 0%, rgba(66, 206, 118, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(5, 34, 25, 0.9), rgba(2, 18, 14, 0.94));
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.investment-card:hover {
  border-color: rgba(66, 206, 118, 0.52);
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.46);
  transform: translateY(-3px);
}

.investment-card img,
.plan-fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 3px);
  object-fit: cover;
  background:
    radial-gradient(circle at 60% 40%, rgba(66, 206, 118, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(66, 206, 118, 0.12), rgba(227, 184, 79, 0.16));
}

.investment-card h3 {
  margin: 10px 0 6px;
}

.investment-card strong {
  color: var(--primary);
  font-size: 1.3rem;
}

.mini-stats {
  margin: 18px 0 0;
}

.mini-stats article {
  min-height: 96px;
}

.admin-grid .list {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

#guest-account {
  width: min(720px, calc(100% - 44px));
  margin: 0 auto;
}

@media (max-width: 980px) {
  .main-nav {
    grid-template-columns: repeat(3, max-content);
  }

  .landing-only {
    min-height: auto;
  }

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

  .referral-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dashboard-head,
  .dashboard,
  #admin,
  .public-section {
    width: min(1120px, calc(100% - 24px));
  }

  .dashboard-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-tabs button:last-child {
    grid-column: 1 / -1;
  }

  .copy-row {
    grid-template-columns: 1fr;
  }

  .level-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .investment-grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .landing-only .hero-copy .lead {
    max-width: min(32ch, 100%);
  }

  .landing-only .hero-copy h1 {
    max-width: min(10ch, 100%);
    font-size: clamp(2.4rem, 13vw, 3.35rem);
  }

  .dashboard-head h1,
  .section-head h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.08;
  }
}

@media (max-width: 430px) {
  .main-nav {
    grid-template-columns: repeat(3, max-content);
  }

  .landing-only .hero-copy h1 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }
}

/* Imported homepage design */
.home-page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 64px;
  overflow-x: hidden;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  min-height: calc(100vh - 146px);
  padding: clamp(34px, 6vw, 72px) clamp(8px, 2vw, 24px) 20px;
}

.home-copy {
  min-width: 0;
  max-width: 100%;
}

.home-eyebrow {
  margin: 0 0 14px;
  color: #5ee085;
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-copy h1 {
  margin: 0;
  color: #f2f5f3;
  font-size: clamp(2.7rem, 5vw, 3.75rem);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.48);
}

.home-copy h1 span {
  color: #5ee085;
}

.home-copy p {
  width: min(48ch, 100%);
  margin: 22px 0 0;
  color: #a9b8ae;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.7;
  overflow-wrap: normal;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.home-btn,
.home-register {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 24px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.home-btn svg,
.home-register svg,
.home-trust-row svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.home-btn:hover,
.home-register:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.home-btn-solid,
.home-register {
  color: #06180d;
  background: linear-gradient(180deg, #4fdc7f 0%, #2fae5c 100%);
  box-shadow: 0 10px 24px -8px rgba(63, 207, 106, 0.55);
}

.home-btn-outline {
  color: #f2f5f3;
  border-color: #1e5c39;
  background: rgba(62, 207, 106, 0.06);
}

.home-graphic {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.home-graphic::before {
  position: absolute;
  top: 10%;
  right: 5%;
  z-index: -1;
  width: 72%;
  height: 60%;
  content: "";
  background: radial-gradient(closest-side, rgba(62, 207, 106, 0.18), transparent 70%);
  filter: blur(10px);
}

.home-graphic img {
  width: min(100%, 560px);
  height: auto;
  filter: brightness(0.94) saturate(1.08);
  mask-image: radial-gradient(75% 75% at 55% 48%, #000 55%, transparent 88%);
}

.home-start-card,
.home-section article,
.home-section {
  border: 1px solid #1c3527;
  border-radius: 22px;
  background: linear-gradient(180deg, #0f2318 0%, #0b1c13 100%);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
}

.home-start-card {
  margin: 18px clamp(8px, 2vw, 24px) 0;
  padding: clamp(22px, 4vw, 38px);
}

.home-start-top {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.home-start-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid #1e5c39;
  border-radius: 50%;
  color: #3ecf6a;
  background: rgba(62, 207, 106, 0.12);
}

.home-start-icon svg {
  width: 28px;
  height: 28px;
}

.home-start-card h2,
.home-section h2 {
  margin: 0 0 7px;
  color: #f2f5f3;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
}

.home-start-card p,
.home-section p {
  margin: 0;
  color: #a9b8ae;
  line-height: 1.62;
}

.home-register {
  min-width: 210px;
}

.home-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #1c3527;
  margin-top: 24px;
  padding-top: 20px;
}

.home-trust-row span {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #a9b8ae;
  font-weight: 850;
}

.home-trust-row span + span {
  border-left: 1px solid #1c3527;
}

.home-trust-row svg {
  color: #3ecf6a;
}

.home-section {
  margin: 28px clamp(8px, 2vw, 24px) 0;
  padding: clamp(22px, 4vw, 34px);
}

.home-section-head {
  max-width: 720px;
  margin-bottom: 20px;
}

.home-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.home-info-grid article {
  padding: clamp(22px, 4vw, 30px);
}

.home-call-inline {
  width: max-content;
  margin-top: 20px;
}

@media (max-width: 860px) {
  .home-page {
    width: min(100%, 680px);
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px 22px 10px;
    overflow: hidden;
  }

  .home-graphic {
    order: -1;
  }

  .home-graphic img {
    width: min(100%, 340px);
  }

  .home-copy h1 {
    font-size: clamp(2.1rem, 10.5vw, 3.4rem);
  }

  .home-copy p {
    width: min(31ch, 100%);
  }

  .home-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .home-start-top,
  .home-info-grid {
    grid-template-columns: 1fr;
  }

  .home-start-icon {
    width: 56px;
    height: 56px;
  }

  .home-register,
  .home-call-inline {
    width: 100%;
  }

  .home-trust-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-trust-row span {
    justify-content: flex-start;
  }

  .home-trust-row span + span {
    border-left: 0;
    border-top: 1px solid #1c3527;
    padding-top: 12px;
  }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .home-copy h1 {
    font-size: clamp(3rem, 5vw, 3.75rem);
  }
}

/* Keep this override last: the mobile drawer must own vertical touch scroll. */
@media (max-width: 980px) {
  body.nav-locked {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .topbar.nav-open .main-nav,
  .main-nav.open,
  html.nav-open #main-nav {
    position: fixed !important;
    inset: 0 0 0 auto !important;
    z-index: 80 !important;
    display: flex !important;
    width: min(86vw, 360px) !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 92px 22px max(34px, env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .topbar.nav-open .main-nav button,
  .main-nav.open button,
  html.nav-open #main-nav button {
    position: relative !important;
    z-index: 2 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 54px !important;
    white-space: normal !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
}
