/* ============================================================
   D2R Command Center — site styles
   Same palette and type as the program, so the page and the app
   look like one product.
   ============================================================ */

@import url("fonts/fonts.css");

:root {
  --bg:           #08090c;
  --bg-raise:     #0d0f14;
  --bg-card:      #11141a;
  --bg-card-2:    #161a22;
  --line:         rgba(201, 162, 39, .16);
  --line-soft:    rgba(255, 255, 255, .07);

  --gold:         #c9a227;
  --gold-bright:  #eccd6b;
  --gold-dim:     #8a6f1e;
  --gold-glow:    rgba(201, 162, 39, .28);

  --text:         #e8e6e1;
  --text-dim:     #a5a29b;
  --text-faint:   #6f6c66;

  --ok:           #57b36a;
  --warn:         #d8a13a;
  --bad:          #c8553d;

  --font-head: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* A very quiet vignette so the page does not read as flat black. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(201, 162, 39, .10), transparent 70%),
    radial-gradient(700px 400px at 100% 100%, rgba(201, 162, 39, .05), transparent 70%);
  z-index: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .3px;
  margin: 0 0 .5em;
  line-height: 1.2;
}

h1 { font-size: clamp(30px, 4.4vw, 50px); }
h2 { font-size: clamp(24px, 2.9vw, 34px); }
h3 { font-size: 18px; }

p { margin: 0 0 1em; color: var(--text-dim); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  color: var(--gold-bright);
  background: rgba(201, 162, 39, .09);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 5px;
}

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 12, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 6px; }
.brand b { color: var(--gold-bright); font-weight: 600; }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--gold-bright); text-decoration: none; }

@media (max-width: 780px) {
  .nav-links { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(180deg, #e0bc55, #b8912a);
  color: #1a1405;
  box-shadow: 0 6px 22px rgba(201, 162, 39, .22);
}
.btn-gold:hover { box-shadow: 0 9px 28px rgba(201, 162, 39, .34); }

.btn-ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(201, 162, 39, .08); border-color: var(--gold-dim); }

.btn-paypal {
  background: #ffc439;
  color: #10314f;
  box-shadow: 0 6px 22px rgba(255, 196, 57, .18);
}
.btn-paypal:hover { background: #ffd15c; }

.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- hero ---------- */

.hero {
  padding: 76px 0 54px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 15px;
  margin-bottom: 22px;
  background: rgba(201, 162, 39, .05);
}

.hero h1 { margin-bottom: 16px; }
.hero h1 span { color: var(--gold-bright); }

.hero .lede {
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 30px;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- screenshot frame ---------- */

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raise);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.shot img { display: block; width: 100%; height: auto; }

.hero-shot {
  max-width: 1000px;
  margin: 44px auto 0;
}

/* ---------- sections ---------- */

section { padding: 64px 0; position: relative; z-index: 1; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}
.section-head p { margin-bottom: 0; }

/* ---------- feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

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

.feature {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-raise));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--line); transform: translateY(-2px); }

.feature .shot {
  border: none;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  box-shadow: none;
}

.feature-body { padding: 20px 22px 24px; }
.feature-body h3 { color: var(--gold-bright); margin-bottom: 6px; }
.feature-body p { margin: 0; font-size: 14.5px; }

/* ---------- tiers ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.tier.donor {
  border-color: var(--gold-dim);
  background: linear-gradient(180deg, rgba(201, 162, 39, .08), var(--bg-card) 55%);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, .08), 0 18px 50px rgba(0, 0, 0, .4);
}

.tier .price {
  font-family: var(--font-head);
  font-size: 34px;
  color: var(--gold-bright);
  margin: 4px 0 2px;
}
.tier .price small { font-size: 14px; color: var(--text-faint); font-family: var(--font-body); }

.tier ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  font-size: 14.5px;
}
.tier li {
  padding: 7px 0 7px 26px;
  position: relative;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.tier li:last-child { border-bottom: none; }
.tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}
.tier li.off { color: var(--text-faint); }
.tier li.off::before { content: "—"; color: var(--text-faint); }

.tier .btn { margin-top: auto; }

/* ---------- download ---------- */

.download-card {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-raise));
  padding: 30px 32px;
}
.download-card .meta { flex: 1 1 320px; }
.download-card h3 { margin-bottom: 6px; }
.download-card p { margin: 0; font-size: 14.5px; }

.download-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.file-facts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.file-facts span b { color: var(--text-dim); font-weight: 600; }

/* ---------- steps ---------- */

.steps { counter-reset: step; max-width: 820px; margin: 0 auto; }

.step {
  position: relative;
  padding: 0 0 30px 62px;
  border-left: 1px solid var(--line);
  margin-left: 18px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -19px;
  top: -2px;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  font-family: var(--font-head);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin-bottom: 6px; font-size: 17px; }
.step p { margin-bottom: 8px; font-size: 15px; }

/* ---------- callouts ---------- */

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: rgba(201, 162, 39, .05);
  padding: 18px 22px;
  margin: 26px 0;
}
.callout h3 { font-size: 16px; color: var(--gold-bright); margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }

.callout.warn { border-left-color: var(--warn); background: rgba(216, 161, 58, .06); }
.callout.warn h3 { color: var(--warn); }

/* ---------- security table ---------- */

.warn-list { max-width: 820px; margin: 0 auto; }

.warn-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.warn-item:last-child { border-bottom: none; }

.warn-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(201, 162, 39, .09);
  border: 1px solid var(--line);
}
.warn-item h3 { font-size: 16px; margin-bottom: 4px; }
.warn-item p { margin: 0; font-size: 14.5px; }

/* ---------- unlock page ---------- */

.gate {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 34px;
  text-align: center;
}
.gate .lock-ico { font-size: 40px; margin-bottom: 12px; }
.gate input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  text-align: center;
  letter-spacing: 1px;
  margin: 18px 0 12px;
}
.gate input:focus { outline: none; border-color: var(--gold-dim); }

.gate .err {
  color: var(--bad);
  font-size: 13.5px;
  min-height: 20px;
  margin-bottom: 6px;
}

.unlocked-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(87, 179, 106, .12);
  border: 1px solid rgba(87, 179, 106, .35);
  color: #8fd79c;
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 56px;
  font-size: 13.5px;
  color: var(--text-faint);
  position: relative;
  z-index: 1;
}
footer.site .wrap {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
footer.site p { margin: 0; color: var(--text-faint); }

/* ---------- utility ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.muted { color: var(--text-faint); }
.small { font-size: 13.5px; }

hr.rule {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}

@media print {
  body::before, header.site, footer.site, .btn { display: none !important; }
  body { background: #fff; color: #111; }
  .shot { box-shadow: none; }
}
