/* Flat Earth hub — dark cosmic theme. Pure CSS, no frameworks. */
:root {
  --bg: #05070f;
  --bg2: #0a0e1d;
  --panel: #0d1326;
  --gold: #e8b84b;
  --gold-dim: #b98f2f;
  --text: #e9ecf5;
  --muted: #a7aec6;
  --line: #22304f;
  --radius: 12px;
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1px 1px at 12% 22%, #fff 100%, transparent 100%),
    radial-gradient(1.5px 1.5px at 68% 8%, #cfd8ff 100%, transparent 100%),
    radial-gradient(1px 1px at 84% 34%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 32% 64%, #cfd8ff 100%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 88%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 6% 78%, #cfd8ff 100%, transparent 100%),
    radial-gradient(1px 1px at 44% 40%, #fff 100%, transparent 100%),
    radial-gradient(2px 2px at 78% 72%, var(--gold) 100%, transparent 100%),
    radial-gradient(1px 1px at 22% 48%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 91% 58%, #cfd8ff 100%, transparent 100%),
    linear-gradient(180deg, #04060c 0%, var(--bg) 30%, var(--bg2) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); }
a:hover { color: #f3cf7a; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 16, 0.92);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: 2px; font-size: 1.05rem; }
.brand .tag { display: block; font-size: 0.62rem; letter-spacing: 4px; color: var(--gold); font-weight: 600; }
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--gold);
  padding: 6px 10px;
  user-select: none;
}
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 32px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer a { color: var(--gold); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 110px 20px 90px;
  overflow: hidden;
  background: url("../images/the-firmament.png") center 30% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,6,12,0.82) 0%, rgba(4,6,12,0.55) 45%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  letter-spacing: 6px;
  margin: 0 0 12px;
  color: #fff;
  text-shadow: 0 0 24px rgba(232,184,75,0.35);
}
.hero .eyebrow { color: var(--gold); letter-spacing: 4px; font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }
.hero p.sub { font-size: 1.15rem; color: #d7dcea; max-width: 640px; margin: 0 auto 30px; }

.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  color: #131007;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 22px rgba(232,184,75,0.25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,184,75,0.4); color: #131007; }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(232,184,75,0.12); color: var(--gold); }

/* ---------- Sections ---------- */
section.block { padding: 56px 0 8px; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  letter-spacing: 3px;
  margin: 0 0 8px;
  color: #fff;
}
.section-head .rule { width: 72px; height: 3px; background: var(--gold); margin: 0 auto 12px; border-radius: 2px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold-dim); }
.card h3 { margin: 0 0 8px; color: var(--gold); letter-spacing: 1px; font-size: 1.08rem; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }
.card .soon { font-size: 0.8rem; color: var(--gold-dim); letter-spacing: 1px; text-transform: uppercase; }
.card a.card-link { text-decoration: none; }
.card a.card-link h3 { color: var(--gold); }

/* ---------- Reels ---------- */
.reel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.reel-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.reel-card:hover { transform: translateY(-3px); border-color: var(--gold-dim); }
.reel-thumb {
  height: 130px;
  background: linear-gradient(135deg, #101a36 0%, #1b2350 60%, #3a2c12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.reel-thumb::after {
  content: "▶";
  font-size: 2.6rem;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232,184,75,0.6);
}
.reel-card .reel-body { padding: 16px 18px; }
.reel-body h3 { margin: 0 0 6px; font-size: 1rem; color: #fff; }
.reel-body p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.reel-body .watch { display: inline-block; margin-top: 10px; font-size: 0.82rem; letter-spacing: 2px; color: var(--gold); font-weight: 700; }

/* ---------- Email capture ---------- */
.signup {
  background: linear-gradient(180deg, rgba(20,27,54,0.9), rgba(10,14,29,0.95));
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  padding: 44px 28px;
  text-align: center;
  margin: 64px auto 0;
  max-width: 720px;
}
.signup h2 { margin: 0 0 8px; letter-spacing: 2px; color: #fff; font-size: 1.7rem; }
.signup h2 .gold { color: var(--gold); }
.signup p.lead { color: var(--muted); margin: 0 auto 24px; max-width: 520px; }
.signup form { display: flex; flex-direction: column; gap: 12px; max-width: 440px; margin: 0 auto; }
.signup input[type="text"], .signup input[type="email"] {
  background: #0a0f20;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 13px 16px;
  font-size: 1rem;
  font-family: var(--font);
}
.signup input:focus { outline: none; border-color: var(--gold); }
.signup .note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

/* ---------- Store ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--gold-dim); }
.product-card .imgbox {
  background: #000;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card .imgbox img { width: 100%; height: 100%; object-fit: contain; }
.product-card .pbody { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 { margin: 0; font-size: 1.02rem; color: #fff; }
.product-card .price { color: var(--gold); font-weight: 800; font-size: 1.05rem; }
.product-card .view { margin-top: auto; padding-top: 10px; }
.product-card .view a {
  display: inline-block;
  text-decoration: none;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.85rem;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  padding: 8px 22px;
}
.product-card .view a:hover { background: rgba(232,184,75,0.12); }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0 10px;
}
.product-detail .imgbox {
  background: #000;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail .imgbox img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 10px; color: #fff; letter-spacing: 1px; }
.product-info .price { font-size: 1.5rem; color: var(--gold); font-weight: 800; margin: 0 0 16px; }
.product-info .price .per { font-size: 0.95rem; color: var(--muted); font-weight: 400; }
.product-info .desc { color: #d7dcea; margin-bottom: 18px; }
.product-info ul.details { list-style: none; padding: 0; margin: 0 0 26px; }
.product-info ul.details li {
  padding: 8px 0 8px 30px;
  position: relative;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.product-info ul.details li::before {
  content: "✦";
  color: var(--gold);
  position: absolute;
  left: 6px;
}
.buy-row { margin: 8px 0 18px; }
.buy-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin: 22px 0 0; }
.breadcrumb a { color: var(--gold); text-decoration: none; }

/* ---------- Thank you / simple pages ---------- */
.simple-page { text-align: center; padding: 70px 20px; max-width: 640px; margin: 0 auto; }
.simple-page h1 { color: #fff; letter-spacing: 2px; }
.simple-page p { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .nav-toggle-label { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 8, 16, 0.98);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .header-inner { position: relative; }
  .hero { padding: 80px 20px 64px; }
}
