/* ============================================================
   ENDLESS POTENTIAL — styles.css
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

/* --- CSS Custom Properties --------------------------------- */
:root {
  --bg:           #0A0A0A;
  --bg-elevated:  #111111;
  --gold:         #D4AF37;
  --gold-hover:   #E0BC44;
  --white:        #F5F5F5;
  --text-muted:   #A0A0A0;
  --border-soft:  rgba(212, 175, 55, 0.18);
  --border-strong:#D4AF37;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Montserrat', sans-serif;

  --radius:       2px;
  --max-w:        1200px;
  --rule-h:       2px;
}

/* --- Layout Utilities -------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.gold-rule {
  border: none;
  border-top: var(--rule-h) solid var(--gold);
  margin: 80px 0;
  opacity: 1;
}

/* --- Typography -------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

/* --- Focus States ------------------------------------------ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
#hero {
  min-height: 85vh;
  max-height: 900px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-subhead {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  color: var(--white);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  background-color: var(--gold);
  color: #0A0A0A;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 20px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
  min-width: 280px;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--gold-hover);
}

.social-proof {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pdf-cover-wrap {
  transform: perspective(1200px) rotateY(-6deg);
  box-shadow: 0 0 80px rgba(212, 175, 55, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 340px;
  width: 100%;
}

.pdf-cover-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   SECTION 2 — BRIDGE
   ============================================================ */
#bridge {
  padding: 96px 0;
  text-align: center;
}

.bridge-quote {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  font-style: italic;
  color: #D0D0D0;
  max-width: 720px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.bridge-attribution {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ============================================================
   SECTION 3 — PAID PRODUCTS
   ============================================================ */
#products {
  padding: 96px 0;
}

.products-header {
  margin-bottom: 56px;
}

.products-header .eyebrow {
  margin-bottom: 12px;
}

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.0;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
  position: relative;
}

.card:hover {
  border-color: var(--border-strong);
}

.card-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 32px;
}

.card-price {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.1;
}

.card-subhead {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.card-bullets {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-bullets li {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.card-bullets li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 17px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
  min-width: 200px;
  text-align: center;
  width: 100%;
}

.btn-secondary:hover {
  background-color: var(--gold);
  color: #0A0A0A;
}

.card .btn-primary {
  width: 100%;
}

/* Recommended ribbon */
.ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 8px;
  border-radius: var(--radius);
  background-color: rgba(10, 10, 10, 0.85);
}

/* Bundle anchor */
.bundle-anchor {
  text-align: center;
  margin-top: 32px;
}

.bundle-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  padding-bottom: 2px;
}

.bundle-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ============================================================
   SECTION 4 — COOPERATION
   ============================================================ */
#cooperation {
  padding: 96px 0;
  text-align: center;
}

.cooperation-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.email-link {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.2s ease;
  display: inline-block;
}

.email-link:hover {
  border-bottom-color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer-top {
  padding: 64px 0;
  background-color: var(--bg);
  border-top: var(--rule-h) solid var(--gold);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

/* Impressum */
#impressum {
  background-color: var(--bg-elevated);
  padding: 64px 0;
}

.impressum-h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}

.impressum-body {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
  white-space: pre-line;
}

.impressum-body a {
  color: var(--gold);
}

.impressum-body a:hover {
  text-decoration: underline;
}

/* Copyright */
.copyright {
  background-color: var(--bg-elevated);
  padding: 24px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
#sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--gold);
  padding: 12px 16px;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

#sticky-cta.visible {
  transform: translateY(0);
}

#sticky-cta .btn-primary {
  width: 100%;
  min-width: unset;
  font-size: 16px;
  padding: 16px;
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  #hero            { padding: 64px 0; }
  #bridge          { padding: 80px 0; }
  #products        { padding: 80px 0; }
  #cooperation     { padding: 80px 0; }
  .gold-rule       { margin: 64px 0; }
  .hero-inner      { gap: 40px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Show sticky CTA container — JS controls visibility */
  #sticky-cta { display: block; }

  /* --- Hero ------------------------------------------------ */
  /* Content-driven height — no artificial min-height padding */
  #hero {
    min-height: auto;
    max-height: none;
    padding: 40px 0 32px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-text {
    order: 1;
    margin-bottom: 32px;
  }

  .hero-visual {
    order: 2;
    margin-bottom: 0; /* hero padding handles bottom space */
  }

  .pdf-cover-wrap {
    max-width: 240px;
    transform: none;
    margin: 0 auto;
  }

  .btn-primary {
    width: 100%;
    min-width: unset;
  }

  /* --- Eyebrow labels: tighter tracking to avoid ugly wraps */
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.07em;
  }

  /* --- Social proof: fits on one line */
  .social-proof {
    font-size: 10px;
    letter-spacing: 0.04em;
    text-align: center;
    width: 100%;
  }

  /* --- Gold rules: tighter margin so sections feel connected */
  .gold-rule { margin: 28px 0; }

  /* --- Bridge --------------------------------------------- */
  #bridge { padding: 48px 0; }

  /* --- Products ------------------------------------------- */
  #products { padding: 52px 0; }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .products-header { margin-bottom: 32px; }

  /* Show full cover without cropping on mobile */
  .card-cover {
    aspect-ratio: auto;
    height: auto;
    object-fit: initial;
    width: 100%;
  }

  /* --- Cooperation ---------------------------------------- */
  #cooperation { padding: 52px 0; }

  /* Long email: scale down and allow word-break */
  .email-link {
    font-size: clamp(14px, 4vw, 22px);
    letter-spacing: 0.02em;
    word-break: break-all;
  }

  /* --- Footer --------------------------------------------- */
  #footer-top { padding: 40px 0; }

  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }

  .footer-links {
    align-items: flex-start;
  }

  /* --- Impressum ------------------------------------------ */
  #impressum { padding: 40px 0; }
}
