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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --accent: #c8ff00;
  --accent-dim: rgba(200, 255, 0, 0.08);
  --accent-glow: rgba(200, 255, 0, 0.15);
  --warm: #ff6b35;
  --border: rgba(255, 255, 255, 0.06);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- NAV --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.7);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease;
}

nav.hidden {
  transform: translateY(-100%);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* --- HERO --- */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-image {
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }

  .hero-text {
    flex: 1;
  }

  .hero-image {
    flex-shrink: 0;
    max-width: 340px;
    aspect-ratio: 3 / 4;
  }
}

@media (min-width: 1024px) {
  .hero-image {
    max-width: 400px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  width: fit-content;
  margin-bottom: 2rem;
  background: var(--bg-card);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  font-weight: 300;
}

.scroll-indicator {
  margin-top: auto;
  padding-top: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* --- STATS BAR --- */
.stats-bar {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- SECTIONS --- */
section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.75;
  font-weight: 300;
}

/* --- SCIENCE SECTION --- */
.science-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.science-header-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
}

.science-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.9);
  transition: filter 0.4s ease;
}

.science-header-image:hover img {
  filter: brightness(1) saturate(1);
}

@media (min-width: 768px) {
  .science-header {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .science-header-text {
    flex: 1;
  }

  .science-header-image {
    flex-shrink: 0;
    width: 320px;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }
}

@media (min-width: 1024px) {
  .science-header-image {
    width: 380px;
  }
}

.science-cards {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

.science-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.science-card:hover {
  border-color: rgba(200, 255, 0, 0.2);
  transform: translateY(-2px);
}

.science-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.science-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
}

@media (min-width: 768px) {
  .science-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* --- TIMELINE / HOW CAFFEINE WORKS --- */
.timeline-section {
  background: var(--bg-secondary);
  padding: 5rem 1.5rem;
  margin: 0;
  max-width: 100%;
}

.timeline-inner {
  max-width: 700px;
  margin: 0 auto;
}

.timeline {
  margin-top: 3rem;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--warm));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-secondary);
  transform: translateX(-4px);
}

.timeline-time {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
}

/* --- BENEFITS --- */
.benefits-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.benefits-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
}

.benefits-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
  transition: filter 0.4s ease;
}

.benefits-image:hover img {
  filter: brightness(1.05);
}

@media (min-width: 768px) {
  .benefits-header {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .benefits-header > div:first-child {
    flex: 1;
  }

  .benefits-image {
    flex-shrink: 0;
    width: 360px;
    border-radius: 20px;
  }
}

.benefits-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.benefit-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.benefit-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(200, 255, 0, 0.12);
  line-height: 1;
  flex-shrink: 0;
  width: 50px;
}

.benefit-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.benefit-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 300;
}

/* --- QUOTE --- */
.quote-section {
  background-color: var(--bg-secondary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 1.5rem;
  max-width: 100%;
  margin: 0;
  text-align: center;
}

.quote-inner {
  max-width: 700px;
  margin: 0 auto;
}

.quote-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.quote-text {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.quote-author {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.quote-author span {
  color: var(--accent);
}

/* --- PROTOCOL --- */
.protocol-cards {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

.protocol-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.3s;
}

.protocol-card:hover {
  border-color: rgba(200, 255, 0, 0.15);
}

.protocol-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.protocol-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.protocol-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 300;
}

@media (min-width: 768px) {
  .protocol-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- NEWSLETTER / CTA --- */
.cta-section {
  padding: 5rem 1.5rem;
  max-width: 100%;
  margin: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-inner .section-title {
  margin-bottom: 1rem;
}

.cta-inner .section-desc {
  margin: 0 auto 2rem;
  text-align: center;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto;
}

.email-form input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.email-form input:focus {
  border-color: var(--accent);
}

.email-form input::placeholder {
  color: var(--text-secondary);
}

.email-form button {
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: 0.01em;
}

.email-form button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .email-form {
    flex-direction: row;
  }

  .email-form input {
    flex: 1;
  }
}

/* --- FOOTER --- */
footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-logo span {
  color: var(--accent);
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* --- ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- GRAIN OVERLAY --- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- COUNTER ANIMATION --- */
.stat-number[data-count] {
  display: inline-block;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
