/* =========================================================
   GoldLot — Premium dark trader theme
   Pure CSS · No framework
   ========================================================= */

:root {
  /* Palette */
  --bg:         #0a0a0c;
  --bg-elev:   #131318;
  --bg-elev-2: #1a1a20;
  --line:       #26262e;
  --line-strong:#3a3a44;

  --text:       #f4f4f5;
  --text-muted: #9a9aa3;
  --text-dim:   #6c6c75;

  --gold:       #e0b643;
  --gold-soft:  #b4922f;
  --gold-glow:  rgba(224,182,67,0.15);

  --good:       #4ade80;
  --good-soft:  rgba(74,222,128,0.12);
  --bad:        #f87171;
  --bad-soft:   rgba(248,113,113,0.12);
  --warn:       #fbbf24;

  /* Radii / shadows */
  --radius:     14px;
  --radius-sm:  10px;
  --shadow-lg:  0 30px 60px -30px rgba(0,0,0,0.7), 0 10px 25px -15px rgba(0,0,0,0.5);
  --shadow-glow:0 0 0 1px rgba(224,182,67,0.3), 0 20px 50px -20px rgba(224,182,67,0.25);

  /* Fonts */
  --font-display: "Bricolage Grotesque", "Times New Roman", serif;
  --font-body:    "Manrope", -apple-system, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain / noise background using SVG data URI */
body {
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(224,182,67,0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(224,182,67,0.04), transparent 70%),
    linear-gradient(180deg, #0a0a0c 0%, #08080a 100%);
  background-attachment: fixed;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: #f5cf5e; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.muted      { color: var(--text-muted); }
.small      { font-size: 0.875rem; }
.mono       { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid rgba(224,182,67,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10,10,12,0.7);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: conic-gradient(from 210deg, var(--gold), #f5cf5e, var(--gold-soft), var(--gold));
  box-shadow: 0 0 0 1px rgba(224,182,67,0.35), 0 6px 18px -6px rgba(224,182,67,0.6);
}
.logo-text { color: var(--text); }
.main-nav { display: flex; gap: 26px; }
.main-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
}
.main-nav a:hover { color: var(--text); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 50% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero h1 { max-width: 920px; }
.hero .subtitle {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--text-muted);
  max-width: 720px;
  margin-top: 18px;
}
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
}
.hero-stats span {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =========================================================
   Ad slots
   ========================================================= */
.ad-slot {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 24px;
}
.ad-slot::after {
  content: "";
  display: block;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,0.015) 10px 20px);
  min-height: 120px;
}
.ad-slot--top::after { min-height: 100px; }
.ad-slot--mid::after { min-height: 250px; }
.ad-slot--bot::after { min-height: 120px; }
.ad-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* =========================================================
   Calculator
   ========================================================= */
.calculator-section {
  padding: 40px 0 70px;
}
.calc-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .calc-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
  }
}
.calc-card {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.calc-card h2 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.calc-inputs .muted { margin-top: 0; margin-bottom: 18px; }

.field { margin-bottom: 18px; display: block; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.field input,
.field select {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field select {
  font-family: var(--font-body);
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field input:focus,
.field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: var(--bg-elev);
}
.help-text {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 8px 0 0;
  line-height: 1.45;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #f0c553 0%, var(--gold) 50%, var(--gold-soft) 100%);
  color: #1a1208;
  flex: 1 0 auto;
  box-shadow: 0 8px 25px -10px rgba(224,182,67,0.55);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--bg-elev-2);
}

/* Results */
.calc-results h2 { margin-bottom: 16px; }
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.result-block {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.result-block.highlight {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(224,182,67,0.08) 0%, rgba(224,182,67,0.02) 100%);
  border-color: rgba(224,182,67,0.35);
  position: relative;
  overflow: hidden;
}
.result-block.highlight::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}
.result-block.good { background: var(--good-soft); border-color: rgba(74,222,128,0.25); }
.result-block.bad  { background: var(--bad-soft);  border-color: rgba(248,113,113,0.25); }
.result-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.result-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  position: relative;
  z-index: 1;
}
.result-block.highlight .result-value { color: var(--gold); font-size: 2rem; }
.result-block.good .result-value { color: var(--good); }
.result-block.bad  .result-value { color: var(--bad); }
.result-hint {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.warning {
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.3);
  color: var(--warn);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 14px;
}
.warning.hidden { display: none; }

.disclaimer-mini {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

/* =========================================================
   Content sections
   ========================================================= */
.content-section {
  padding: 60px 0;
}
.content-section.alt-bg {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.content-section p { color: var(--text-muted); max-width: 760px; }

.formula {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text);
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 18px 0 22px;
}

.steps {
  padding-left: 22px;
  color: var(--text-muted);
}
.steps li {
  margin-bottom: 10px;
  line-height: 1.6;
}
.steps strong { color: var(--text); font-weight: 600; }

/* Examples table */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  margin-top: 18px;
  background: var(--bg-elev);
}
.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}
.ref-table th,
.ref-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.ref-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  background: var(--bg-elev-2);
}
.ref-table tr:last-child td { border-bottom: none; }
.ref-table tr:hover td { background: rgba(255,255,255,0.015); }

/* Mistakes list */
.mistakes {
  list-style: none;
  padding: 0;
  margin-top: 18px;
}
.mistakes li {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--bad);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.mistakes li strong { color: var(--text); }

/* FAQ */
details {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color .2s ease;
}
details[open] { border-color: var(--line-strong); }
summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 30px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform .2s ease;
}
details[open] summary::after { content: "−"; }
details p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Disclaimer section */
.disclaimer-section {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.disclaimer-section p { color: var(--text-muted); }
.disclaimer-section strong { color: var(--warn); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 50px 0 40px;
  border-top: 1px solid var(--line);
  background: #07070a;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
  }
  .footer-grid .copyright { text-align: right; }
}
.site-footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer nav a:hover { color: var(--gold); }

/* =========================================================
   Legal pages (privacy/terms/disclaimer/contact)
   ========================================================= */
.legal-page main {
  padding: 60px 0;
  max-width: 760px;
  margin: 0 auto;
}
.legal-page main h2 {
  font-size: 1.3rem;
  margin-top: 32px;
  color: var(--text);
}
.legal-page main p,
.legal-page main li {
  color: var(--text-muted);
}
.legal-page main ul { padding-left: 22px; }
.legal-page .updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* =========================================================
   Mobile tuning
   ========================================================= */
@media (max-width: 640px) {
  .hero { padding: 60px 0 40px; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 1.3rem; }
  .calc-card { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .result-block.highlight { grid-column: span 1; }
  .main-nav { gap: 16px; font-size: 0.85rem; }
  .header-inner { padding: 14px 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
