/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --bg-deep:       #07051a;
  --bg-mid:        #0f0d2e;
  --bg-section:    #11103a;
  --accent-orange: #ff6a00;
  --accent-red:    #c0392b;
  --accent-amber:  #e8a020;
  --gold-frame:    #c8900a;
  --gold-glow:     rgba(200, 144, 10, 0.35);
  --text-light:    #e8e0ff;
  --text-muted:    #9b93c4;
  --text-white:    #ffffff;
  --border-frame:  1px solid var(--gold-frame);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Circuit-board SVG background texture ── */
.circuit-bg {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,106,0,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(96,30,220,0.08) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23c8900a' stroke-opacity='0.08' stroke-width='0.6'%3E%3Crect x='10' y='10' width='60' height='60'/%3E%3Cline x1='10' y1='40' x2='0' y2='40'/%3E%3Cline x1='70' y1='40' x2='80' y2='40'/%3E%3Cline x1='40' y1='10' x2='40' y2='0'/%3E%3Cline x1='40' y1='70' x2='40' y2='80'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Ccircle cx='70' cy='10' r='2'/%3E%3Ccircle cx='10' cy='70' r='2'/%3E%3Ccircle cx='70' cy='70' r='2'/%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ── Gradient headline text ── */
.headline-gradient {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, var(--accent-orange) 0%, #e85d04 50%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
}

/* ── Gold-framed content box ── */
.framed-box {
  border: var(--border-frame);
  border-radius: 4px;
  box-shadow:
    0 0 18px var(--gold-glow),
    inset 0 0 30px rgba(200,144,10,0.04);
  padding: 2.5rem 2rem;
  background: rgba(15, 13, 46, 0.75);
  backdrop-filter: blur(4px);
  position: relative;
}

/* corner accents */
.framed-box::before,
.framed-box::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent-orange);
  border-style: solid;
}
.framed-box::before { top: -2px; left: -2px; border-width: 3px 0 0 3px; }
.framed-box::after  { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; }

/* ── Section wrapper ── */
.section {
  padding: 5rem 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.section-wide {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Divider ── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-frame), transparent);
  opacity: 0.5;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--text-white); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--accent-amber); }

p { font-size: clamp(1rem, 2vw, 1.1rem); color: var(--text-light); margin-bottom: 1.2rem; }

p:last-child { margin-bottom: 0; }

/* ── CTA Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 0 24px rgba(255,106,0,0.45),
    0 4px 15px rgba(192,57,43,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 36px rgba(255,106,0,0.65),
    0 8px 24px rgba(192,57,43,0.55);
}

.btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-orange);
  background: transparent;
  border: 1px solid var(--accent-orange);
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(255,106,0,0.2);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255,106,0,0.12);
  box-shadow: 0 0 24px rgba(255,106,0,0.4);
  color: var(--text-white);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 1.5rem;
}

#hero .hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 6rem 0 4rem;
  position: relative;
  z-index: 1;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(255,106,0,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(96,30,220,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-light);
  max-width: 600px;
  margin: 1.5rem 0 0;
  font-style: italic;
  opacity: 0.85;
}

/* ── Feature list ── */
.feature-list {
  list-style: none;
  margin: 1.5rem 0;
}

.feature-list li {
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  color: var(--text-light);
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(200,144,10,0.1);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-size: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ── Two-column contrast ── */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contrast-col {
  padding: 1.5rem;
  border-radius: 4px;
}

.contrast-col.drift {
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.25);
}

.contrast-col.discipline {
  background: rgba(255,106,0,0.08);
  border: 1px solid rgba(255,106,0,0.3);
}

.contrast-col h3 { margin-bottom: 0.75rem; }

.contrast-col.drift h3 { color: #c0392b; }
.contrast-col.discipline h3 { color: var(--accent-orange); }

.contrast-col ul {
  list-style: none;
  font-size: 0.97rem;
  color: var(--text-muted);
}

.contrast-col ul li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
}

.contrast-col.drift ul li::before { content: '✕'; position: absolute; left: 0; color: #c0392b; }
.contrast-col.discipline ul li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-orange); }

/* ── Book section ── */
.book-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}

.book-cover {
  width: 220px;
  border: 2px solid var(--gold-frame);
  border-radius: 4px;
  box-shadow:
    0 0 30px var(--gold-glow),
    8px 8px 0 rgba(200,144,10,0.15);
  display: block;
}

.book-cover-placeholder {
  width: 220px;
  height: 320px;
  border: 2px solid var(--gold-frame);
  border-radius: 4px;
  background: rgba(200,144,10,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  color: var(--gold-frame);
  text-align: center;
  padding: 1rem;
  box-shadow: 0 0 30px var(--gold-glow);
}

/* ── Author bio ── */
.author-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

.author-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid var(--gold-frame);
  box-shadow: 0 0 20px var(--gold-glow);
  object-fit: cover;
}

.author-avatar-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid var(--gold-frame);
  box-shadow: 0 0 20px var(--gold-glow);
  background: rgba(200,144,10,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(200,144,10,0.2);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--accent-amber);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .contrast-grid { grid-template-columns: 1fr; }
  .book-section   { grid-template-columns: 1fr; }
  .book-cover, .book-cover-placeholder { width: 100%; max-width: 260px; margin: 0 auto; }
  .author-section { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .framed-box { padding: 1.75rem 1.25rem; }
}
