:root {
  --bg: #080b12;
  --surface: #101521;
  --surface-2: #151c2b;
  --line: #253047;
  --text: #f5f7fb;
  --muted: #9da8bd;
  --accent: #8b7cff;
  --accent-2: #4de0c1;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: radial-gradient(circle at 10% -10%, rgba(139,124,255,.18), transparent 32rem),
    radial-gradient(circle at 95% 5%, rgba(77,224,193,.09), transparent 28rem), var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(8,11,18,.86); backdrop-filter: blur(18px);
}
.brand { font-size: .94rem; font-weight: 800; letter-spacing: .16em; }
.brand span { color: var(--accent-2); }
nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.5rem); color: var(--muted); font-size: .88rem; }
nav a:not(.button), .nav-button { padding: .3rem 0; }
.nav-button { border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.nav-button:hover { color: var(--accent-2); }
.inline-form { display: inline; margin: 0; }

.shell { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(3rem, 8vw, 7rem) 0 5rem; }
.hero { max-width: 820px; padding: clamp(2rem, 6vw, 5rem) 0 6rem; }
.eyebrow { color: var(--accent-2); font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.hero h1, .page-heading h1 { margin: .9rem 0 1.1rem; font-size: clamp(2.6rem, 7vw, 5.8rem); line-height: 1.02; letter-spacing: -.055em; }
.hero p, .page-heading p { max-width: 650px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem;
  padding: .78rem 1.15rem; border: 1px solid transparent; border-radius: .75rem;
  background: linear-gradient(135deg, var(--accent), #6a5ee7); color: #fff;
  box-shadow: 0 10px 30px rgba(139,124,255,.23); font-size: .92rem; font-weight: 750;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(139,124,255,.32); filter: brightness(1.06); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button-ghost { border-color: var(--line); background: transparent; box-shadow: none; }
.button-small { min-height: 2.25rem; padding: .48rem .8rem; font-size: .78rem; }
.full { width: 100%; }

.grid-three, .product-grid, .admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature, .metric, .admin-module, .product-card {
  display: flex; flex-direction: column; gap: .45rem; padding: 1.25rem;
  border: 1px solid var(--line); border-radius: 1rem;
  background: linear-gradient(145deg, rgba(21,28,43,.82), rgba(16,21,33,.7)); box-shadow: var(--shadow);
}
.feature b, .metric span, .admin-module b { font-size: .9rem; }
.feature span, .metric small, .admin-module span, .product-card p { color: var(--muted); font-size: .84rem; }
.section { padding-top: 7rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-heading h2 { margin: .4rem 0 0; font-size: clamp(1.7rem, 4vw, 2.7rem); letter-spacing: -.04em; }
.section-heading > a { color: var(--accent-2); font-size: .9rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.steps > div { display: flex; flex-direction: column; gap: .55rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.steps i { color: var(--accent); font-size: .74rem; font-style: normal; font-weight: 800; }
.steps span, .muted { color: var(--muted); }

.page-heading { margin-bottom: 2.2rem; }
.page-heading h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
.notice { margin: 1rem 0; padding: 1rem 1.1rem; border: 1px solid rgba(77,224,193,.25); border-radius: .85rem; background: rgba(77,224,193,.08); color: #c5fff2; font-size: .9rem; }
.notice.warning { border-color: rgba(255,130,150,.28); background: rgba(255,130,150,.08); color: #ffd5dc; }
.empty-state { display: grid; justify-items: center; gap: .8rem; max-width: 670px; margin: 3rem auto; padding: 4rem 1.2rem; border: 1px dashed var(--line); border-radius: 1.2rem; text-align: center; }
.empty-state h1, .empty-state h2 { margin: .2rem 0; font-size: 1.7rem; }
.empty-state p { max-width: 500px; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 1.2rem; background: rgba(139,124,255,.16); color: var(--accent-2); font-weight: 800; }

.auth-card { width: min(100%, 480px); margin: 0 auto; padding: clamp(1.4rem, 5vw, 2.5rem); border: 1px solid var(--line); border-radius: 1.2rem; background: rgba(16,21,33,.88); box-shadow: var(--shadow); }
.auth-card h1 { margin: .5rem 0 .45rem; font-size: 2.2rem; letter-spacing: -.04em; }
.auth-card form, .buy-form { display: grid; gap: 1rem; margin-top: 1.7rem; }
.auth-card label, .buy-form label { display: grid; gap: .4rem; color: var(--muted); font-size: .82rem; }
input { width: 100%; padding: .8rem .85rem; border: 1px solid var(--line); border-radius: .65rem; background: #0b101a; color: var(--text); font: inherit; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-foot { margin: 1.4rem 0 0; color: var(--muted); font-size: .85rem; text-align: center; }
.form-foot a { color: var(--accent-2); }
.metric strong { font-size: 2rem; letter-spacing: -.04em; }
.admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-module { min-height: 100px; }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { min-height: 220px; }
.product-card h2 { margin: .3rem 0; font-size: 1.2rem; }
.product-card strong { margin-top: auto; font-size: 1.3rem; }
.product-card .button { align-self: flex-start; margin-top: .4rem; }
.search-form { display: flex; gap: .7rem; max-width: 620px; margin: 0 0 2rem; }
.search-form input { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.product-detail { max-width: 780px; margin: 0 auto; padding: clamp(1.5rem, 6vw, 3.5rem); border: 1px solid var(--line); border-radius: 1.2rem; background: rgba(16,21,33,.88); box-shadow: var(--shadow); }
.product-detail h1 { margin: .6rem 0 1rem; font-size: clamp(2.2rem, 6vw, 4.2rem); letter-spacing: -.05em; }
.product-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.product-meta div { padding-top: .8rem; border-top: 1px solid var(--line); }
.product-meta span, .product-meta strong { display: block; }
.product-meta span { color: var(--muted); font-size: .78rem; }
.product-meta strong { margin-top: .25rem; font-size: 1.1rem; }
.buy-form { max-width: 300px; }
.footer { display: flex; justify-content: space-between; gap: 1rem; width: min(1160px, calc(100% - 2rem)); margin: 0 auto; padding: 1.5rem 0 2.5rem; border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: .76rem; }

@media (max-width: 760px) {
  .topbar { align-items: flex-start; }
  .topbar nav { gap: .65rem; }
  .topbar nav a:not(.button) { display: none; }
  .shell { padding-top: 3rem; }
  .hero { padding-bottom: 4rem; }
  .grid-three, .steps, .admin-grid, .product-grid { grid-template-columns: 1fr; }
  .section { padding-top: 4rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .product-meta { grid-template-columns: 1fr; }
  .footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .topbar { padding-inline: .85rem; }
  .brand { font-size: .78rem; letter-spacing: .11em; }
  .button-small { padding-inline: .65rem; }
  .shell, .footer { width: min(100% - 1.4rem, 1160px); }
  .hero h1, .page-heading h1 { font-size: clamp(2.15rem, 13vw, 3rem); }
  .search-form { flex-direction: column; }
  .search-form .button { width: 100%; }
  .auth-card, .product-detail { padding: 1.2rem; }
}
