/* ============ RoForge — forge storefront theme ============ */
:root {
  --bg: #0c0e12;
  --bg-2: #0f1217;
  --panel: #14181f;
  --panel-2: #181d26;
  --line: #232a35;
  --text: #e7eaf0;
  --muted: #98a2b3;
  --muted-2: #6c7585;

  /* RoForge signature: molten ember */
  --ember: #ff7a2f;
  --ember-2: #ffb547;
  --ember-3: #ff4d4d;
  --forge: linear-gradient(135deg, #ffb547 0%, #ff7a2f 50%, #ff4d4d 100%);

  /* per-product accent (overridden inline) */
  --accent: #ff7a2f;
  --accent-2: #ffb547;
  --grad: var(--forge);

  --radius: 16px;
  --maxw: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
/* ambient forge glow + faint grid */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(820px 520px at 78% -6%, rgba(255,122,47,.16), transparent 60%),
    radial-gradient(680px 520px at 6% 8%, rgba(255,77,77,.10), transparent 55%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(12,14,18,.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800;
  font-size: 19px; letter-spacing: .2px; }
.brand .mark { width: 30px; height: 30px; }
.brand b { background: var(--forge); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--muted); padding: 8px 14px; border-radius: 9px;
  font-weight: 500; font-size: 14.5px; }
.nav-links a:hover { color: var(--text); background: var(--panel); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform .12s, border-color .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: #38414f; background: var(--panel-2); }
.btn.primary {
  background: var(--grad); border: none; color: #1a0c02; font-weight: 800;
  box-shadow: 0 10px 30px -10px var(--accent);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.big { padding: 16px 30px; font-size: 16.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------------- hero ---------------- */
.hero { padding: 96px 0 70px; text-align: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  font-weight: 600; color: var(--ember-2); border: 1px solid rgba(255,181,71,.3);
  background: rgba(255,122,47,.08); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember);
  box-shadow: 0 0 10px var(--ember); }
.hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.04; font-weight: 850;
  letter-spacing: -1.5px; margin-bottom: 20px; }
.hero h1 .grad { background: var(--forge); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 620px;
  margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- section ---------------- */
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800;
  letter-spacing: -.6px; }
.section-head p { color: var(--muted); margin-top: 10px; }

/* ---------------- product grid ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad); opacity: .9;
}
.card .glow {
  position: absolute; width: 220px; height: 220px; right: -60px; top: -60px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%);
  filter: blur(8px); pointer-events: none;
}
.card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.app-icon {
  width: 58px; height: 58px; border-radius: 15px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 22px -8px var(--accent);
}
.app-icon img { width: 36px; height: 36px; object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.card h3 { font-size: 21px; font-weight: 800; }
.card .tagline { color: var(--muted); font-size: 13.5px; }
.card .desc { color: var(--muted); font-size: 14.5px; margin: 6px 0 20px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-size: 24px; font-weight: 850; }
.price small { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.pill {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.pill.soon { color: var(--ember-2); border-color: rgba(255,181,71,.35);
  background: rgba(255,181,71,.08); }
.card.soon { opacity: .72; }
.card.soon:hover { transform: none; }

/* ---------------- product page ---------------- */
.product-hero { display: grid; grid-template-columns: 1fr 360px; gap: 40px;
  padding: 56px 0 30px; align-items: start; }
.product-main .app-icon { width: 76px; height: 76px; border-radius: 19px; }
.product-main .app-icon img { width: 48px; height: 48px; }
.product-title-row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.product-main h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 850;
  letter-spacing: -1px; }
.product-main .tagline { color: var(--muted); font-size: 17px; }
.meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 24px; }
.meta { font-size: 13px; color: var(--muted); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 9px; background: var(--panel); }
.meta b { color: var(--text); }
.summary { font-size: 16.5px; color: #c4ccd8; max-width: 620px; margin-bottom: 30px; }
.features { display: grid; gap: 12px; }
.feature { display: flex; gap: 13px; align-items: flex-start; font-size: 15px;
  color: #cfd6e1; }
.feature .check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; display: grid;
  place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent); font-size: 13px; font-weight: 800; margin-top: 1px;
}

/* buy box */
.buybox { position: sticky; top: 84px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  overflow: hidden; }
.buybox::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad); }
.buybox .price { font-size: 40px; margin-bottom: 4px; }
.buybox .once { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted);
  margin-bottom: 7px; letter-spacing: .2px; }
.field input { width: 100%; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 11px; padding: 13px 14px; color: var(--text); font-size: 15px; outline: none; }
.field input:focus { border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.buybox .btn { width: 100%; }
.assurances { margin-top: 18px; display: grid; gap: 9px; }
.assurances div { font-size: 13px; color: var(--muted); display: flex; gap: 9px;
  align-items: center; }
.assurances .ic { color: var(--accent); }

/* ---------------- why / features strip ---------------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why .card { padding: 24px; }
.why .card::before { display: none; }
.why h4 { font-size: 17px; font-weight: 750; margin: 12px 0 7px; }
.why p { color: var(--muted); font-size: 14px; }
.why .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,122,47,.12); color: var(--ember-2); font-size: 20px; }

/* ---------------- success ---------------- */
.success-wrap { max-width: 620px; margin: 0 auto; padding: 70px 24px; text-align: center; }
.success-badge { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 24px;
  display: grid; place-items: center; font-size: 34px; background: var(--forge);
  color: #1a0c02; box-shadow: 0 14px 40px -12px var(--ember); }
.success-wrap h1 { font-size: 34px; font-weight: 850; letter-spacing: -.8px; }
.success-wrap > p { color: var(--muted); margin: 12px 0 30px; font-size: 16px; }
.license-box { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; text-align: left; margin-bottom: 22px; }
.license-box .lbl { font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.license-key { display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px dashed var(--line); border-radius: 11px;
  padding: 14px 16px; }
.license-key code { font-family: "SF Mono", "Consolas", monospace; font-size: 18px;
  font-weight: 700; letter-spacing: 1px; color: var(--ember-2); flex: 1; }
.copy-btn { background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 8px 12px; font-size: 13px; cursor: pointer; font-weight: 600; }
.copy-btn:hover { border-color: var(--accent); }
.test-banner { background: rgba(255,181,71,.1); border: 1px solid rgba(255,181,71,.35);
  color: var(--ember-2); border-radius: 11px; padding: 11px 14px; font-size: 13.5px;
  font-weight: 600; margin-bottom: 22px; }
.steps { text-align: left; color: var(--muted); font-size: 14.5px; margin-top: 26px;
  display: grid; gap: 10px; }
.steps b { color: var(--text); }

/* ---------------- footer ---------------- */
.footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 36px 0; }
.footer-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 13.5px; }
.footer .brand { font-size: 16px; }
.footer .sp { margin-left: auto; }

/* ---------------- toast / loading ---------------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 20px; font-weight: 600; box-shadow: 0 12px 40px rgba(0,0,0,.5);
  z-index: 100; animation: tin .25s ease; }
.toast.err { border-color: var(--ember-3); color: #ffb3b3; }
@keyframes tin { from { opacity: 0; transform: translate(-50%, 12px); } }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.25);
  border-top-color: #1a0c02; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-load { text-align: center; color: var(--muted); padding: 80px 0; }

@media (max-width: 820px) {
  .product-hero { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .why { grid-template-columns: 1fr; }
}
