/* ==========================================================================
   PeakFuel — Panxo-style Landing Page
   Reinweiß, Strukturlinien, Inter, massive Typografie
   ========================================================================== */

:root {
  --white:    #ffffff;
  --bg:       #ffffff;
  --sand:     #f5f0eb;
  --surface:  #f8f9fa;
  --line:     #e5e5e5;
  --black:    #111111;
  --body:     #444444;
  --muted:    #888888;
  --orange:   #e8752a;
  --orange-h: #d46822;
  --cta-bg:   #eef6ff;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-hero: clamp(3rem, 6vw + 1rem, 5rem);

  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --frame:     75rem;
  --radius:    0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --dur:       0.25s;
  --ease:      cubic-bezier(.33,1,.68,1);
}


/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--black); text-decoration: none; transition: color var(--dur); }
a:hover { color: var(--orange); }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; color: var(--black); }
p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* ── Frame ─────────────────────────────────────────── */
.frame {
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  padding-inline: var(--space-6);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}


/* ── Tag ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  margin: 0 0 var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
}


/* ── Split ─────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding: var(--space-16) 0;
}
.split h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.split-right p {
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
  color: var(--body);
  max-width: 28rem;
}


/* ── Statement (centered) ──────────────────────────── */
.statement {
  text-align: center;
  padding: var(--space-20) 0;
  max-width: 44rem;
  margin-inline: auto;
}
.statement h2 {
  font-size: clamp(1.75rem, 3.5vw + 0.5rem, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}
.statement-sub {
  font-size: var(--text-lg);
  color: var(--body);
  max-width: 36rem;
  margin-inline: auto;
}


/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.3;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-dark:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}
.btn-outline-dark:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}


/* ══════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: transform .3s var(--ease);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.header-inner {
  display: flex;
  align-items: center;
  padding-block: 0.5rem;
  gap: var(--space-8);
}

.logo img { height: 4.5rem; width: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: var(--space-8); list-style: none; margin: 0; padding: 0; }
.nav a  { font-size: var(--text-sm); font-weight: 400; color: var(--black); }
.nav a:hover { color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: var(--space-2); background: none; border: none;
  cursor: pointer; color: var(--black);
}
.nav-toggle span { display: block; width: 1.25rem; height: 2px; background: currentColor; }
.nav-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }


/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.s-hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.s-hero .frame {
  position: relative;
  z-index: 1;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}
.hero-left h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-desc {
  margin-bottom: var(--space-8);
  font-size: var(--text-lg);
  color: var(--body);
  max-width: 26rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.hero-image img {
  width: 100%;
  display: block;
}


/* ══════════════════════════════════════════════════════
   STATS
   ══════════════════════════════════════════════════════ */
.s-stats {
  border-bottom: 1px solid var(--line);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: var(--space-10) var(--space-6);
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }

.stat-num {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1;
}
.stat-desc {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
}


/* ══════════════════════════════════════════════════════
   SECTIONS + TINTED
   ══════════════════════════════════════════════════════ */
.s-section {
  border-bottom: 1px solid var(--line);
}
.s-tinted {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}


/* ══════════════════════════════════════════════════════
   FEATURE TABS
   ══════════════════════════════════════════════════════ */
.ftabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-16);
}

.ftabs-list {
  display: flex;
  flex-direction: column;
}

.ftab {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-6) 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--muted);
  transition: color var(--dur);
}
.ftab:first-child { border-top: 1px solid var(--line); }

.ftab svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--muted);
  transition: color var(--dur);
}
.ftab-title {
  font-size: var(--text-lg);
  font-weight: 500;
  flex: 1;
  color: inherit;
}
.ftab-desc {
  flex-basis: 100%;
  padding-left: 2rem;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--body);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s var(--ease), opacity .3s var(--ease), margin .3s var(--ease);
}

.ftab.is-active {
  color: var(--black);
}
.ftab.is-active svg {
  color: var(--orange);
}
.ftab.is-active .ftab-title {
  font-weight: 600;
}
.ftab.is-active .ftab-desc {
  max-height: 8rem;
  opacity: 1;
  margin-top: var(--space-3);
}

.ftabs-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 4/3;
}
.ftabs-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.ftabs-panel.is-active {
  opacity: 1;
}
.ftabs-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-placeholder {
  width: 100%;
  height: 100%;
}
.panel-placeholder--warm { background: linear-gradient(135deg, #f0ebe4, #e8ddd0); }
.panel-placeholder--cool { background: linear-gradient(135deg, #e4eaf0, #d0d8e2); }


/* ══════════════════════════════════════════════════════
   AUDIENCE
   ══════════════════════════════════════════════════════ */
.audience-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: var(--space-16);
}
.acard {
  padding: var(--space-8);
  border-right: 1px solid var(--line);
}
.acard:last-child { border-right: none; }

.acard-icon {
  margin-bottom: var(--space-4);
  color: var(--muted);
}
.acard h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.acard p {
  font-size: var(--text-sm);
  color: var(--body);
}

.science-icon {
  margin-bottom: var(--space-4);
  color: var(--muted);
}


/* ══════════════════════════════════════════════════════
   CTA
   ══════════════════════════════════════════════════════ */
.s-cta {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--line);
}
.cta-card {
  background: var(--cta-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-20) var(--space-12);
  text-align: center;
}
.cta-card h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.cta-card > p {
  font-size: var(--text-lg);
  color: var(--body);
  max-width: 30rem;
  margin: 0 auto var(--space-8);
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}


/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}
.site-footer .frame {
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
.footer-logo {
  height: 5rem;
  width: auto;
}
.footer-tagline {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--muted);
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.footer-col a { color: var(--black); }
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.footer-bottom p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--muted);
}


/* ══════════════════════════════════════════════════════
   REVEAL
   ══════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}


/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .hero-top {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
  }
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
  .ftabs {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .footer-grid {
    grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
  }
}

@media (max-width: 767px) {
  .nav,
  .header-actions { display: none; }
  .nav-toggle     { display: flex; margin-left: auto; }

  .nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: var(--space-6);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
  }
  .nav.is-open ul {
    flex-direction: column;
    gap: var(--space-4);
  }

  .logo img { height: 2.75rem; }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }

  .ftabs-visual {
    aspect-ratio: 16/10;
    order: -1;
  }

  .audience-row {
    grid-template-columns: 1fr;
  }
  .acard {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .acard:last-child { border-bottom: none; }

  .cta-card {
    padding: var(--space-12) var(--space-6);
  }
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-actions .btn { width: 100%; max-width: 18rem; }
}

@media (min-width: 1024px) {
  .logo img { height: 4.5rem; }
}
