:root {
  --bg: #0a0a0a;
  --bg-elev: #131316;
  --bg-elev2: #1c1c20;
  --fg: #f4f4f5;
  --fg-dim: #a1a1aa;
  --fg-muted: #71717a;
  --accent: #e11d48;
  --accent-hover: #f43f5e;
  --border: #27272a;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(800px 600px at 50% -200px, rgba(225,29,72,0.18) 0%, transparent 60%),
    radial-gradient(600px 600px at 90% 30%, rgba(225,29,72,0.06) 0%, transparent 60%),
    var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent-hover); text-decoration: underline; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.hero {
  padding: clamp(48px, 9vw, 88px) 24px 16px;
  text-align: center;
}
.hero__inner { max-width: var(--max); margin: 0 auto; }
.hero__title {
  font-size: clamp(2.75rem, 9vw, 5rem);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  font-weight: 900;
  background: linear-gradient(180deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__tagline {
  color: var(--fg-dim);
  font-size: 1.1rem;
  margin: 0;
  max-width: 480px;
  margin-inline: auto;
}

.main {
  max-width: var(--max);
  width: 100%;
  margin: 16px auto 60px;
  padding: 0 24px;
  flex: 1;
}

.section { margin: 36px 0; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin: 0;
  letter-spacing: -0.02em;
}
.section__sub { margin: 0; color: var(--fg-dim); font-size: 0.9rem; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow);
}
.product:hover {
  transform: translateY(-2px);
  border-color: #3f1d2a;
}
.product__cover-wrap {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--bg-elev2) 0%, var(--bg-elev) 100%);
  position: relative;
  overflow: hidden;
}
.product__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product__cover--missing {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--fg-muted);
}
.product__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product__name {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
  /* clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.product__price {
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.product__buy {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.product__buy:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.product__buy[aria-disabled="true"] {
  background: var(--bg-elev2);
  color: var(--fg-muted);
  cursor: not-allowed;
}

.product__skeleton {
  background: linear-gradient(90deg, var(--bg-elev) 0%, #1f1f24 50%, var(--bg-elev) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card--gate { background: linear-gradient(135deg, var(--bg-elev2) 0%, var(--bg-elev) 100%); }
.card--muted { background: transparent; border-style: dashed; box-shadow: none; padding: 16px 22px; }
.card__eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}
.card__title { margin: 0 0 6px; font-size: 1.35rem; }
.card__desc { margin: 0 0 16px; color: var(--fg-dim); }
.card__desc.small { font-size: 0.9rem; margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-elev2);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover, .btn:focus-visible {
  background: #25252a;
  border-color: #3f3f46;
  text-decoration: none;
  color: var(--fg);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.gate { display: flex; gap: 8px; flex-wrap: wrap; }
.gate input[type="email"] {
  flex: 1 1 220px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
}
.gate input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.gate .btn { flex: 0 0 auto; }
.gate__status {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--fg-dim);
  min-height: 1.25em;
}
.gate__status[data-state="error"] { color: #fda4af; }
.gate__status[data-state="ok"] { color: #86efac; }

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.links a {
  display: block;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
}
.links a:hover { border-color: #3f3f46; background: var(--bg-elev2); color: var(--fg); }
.links--empty {
  color: var(--fg-muted);
  font-size: 0.9rem;
  font-style: italic;
  grid-column: 1 / -1;
}

.empty { text-align: center; color: var(--fg-muted); padding: 30px; }

.hero__cta[hidden] { display: none; }
.hero__cta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 14px 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(225,29,72,0.6);
  transition: transform 0.06s ease, background 0.15s ease;
}
.hero__cta:hover { background: var(--accent-hover); }
.hero__cta:active { transform: translateY(1px); }

.modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--fg);
  max-width: 100%;
}
.modal::backdrop {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal[open] { animation: modalIn 0.25s ease both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal__inner {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 28px 22px;
  width: min(440px, 92vw);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent; border: 0;
  color: var(--fg-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}
.modal__close:hover { color: var(--fg); background: var(--bg-elev2); }
.modal__title {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.modal__desc { margin: 0 0 6px; color: var(--fg-dim); }
.modal__submit { width: 100%; }
.modal__legal { margin: 6px 0 0; font-size: 0.78rem; color: var(--fg-muted); }
.modal input[type="email"] {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  width: 100%;
}
.modal input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.footer {
  text-align: center;
  padding: 24px;
  color: var(--fg-muted);
  font-size: 0.85rem;
}

body[data-loaded="true"] .section {
  animation: slidein 0.4s ease both;
}
.section:nth-of-type(1) { animation-delay: 0.04s; }
.section:nth-of-type(2) { animation-delay: 0.08s; }
.section:nth-of-type(3) { animation-delay: 0.12s; }
.section:nth-of-type(4) { animation-delay: 0.16s; }
@keyframes slidein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  body[data-loaded="true"] .section { animation: none; }
}
