/* ============================================
   AEROPILL - Retro-Futuristic Pharma
   Palette: cream / cobalt blue / burnt orange / medical green
   Fonts: Playfair Display (serif) + JetBrains Mono
   ============================================ */

:root {
  --cream: #f5f1e8;
  --cream-light: #faf8f2;
  --paper: #e8e4d9;
  --cobalt: #1a2a6c;
  --cobalt-dark: #0f1a4a;
  --orange: #c85a2e;
  --orange-light: #e07a4e;
  --green: #2d7a4e;
  --green-light: #3a9c66;
  --green-pale: #e8f3ed;
  --ink: #1a1a2e;
  --line: #d0c9b8;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain overlay */
.grain {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: var(--cream);
  border-bottom: 2px solid var(--cobalt);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--cobalt);
}

.nav-logo {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--cobalt);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 8px 18px;
  background: var(--cobalt);
  color: var(--cream) !important;
  border-radius: 2px;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--green);
  color: var(--cream) !important;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 60px 100px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,90,46,0.08) 0%, transparent 60%);
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cobalt);
  margin-bottom: 28px;
}

.hero-title .accent {
  color: var(--orange);
  font-style: italic;
}
.hero-title .accent-green {
  color: var(--green);
  font-style: italic;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--cobalt);
  color: var(--cream);
  border: 2px solid var(--cobalt);
}

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

.btn-secondary {
  background: transparent;
  color: var(--cobalt);
  border: 2px solid var(--cobalt);
}

.btn-secondary:hover {
  background: var(--cobalt);
  color: var(--cream);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 12px;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 15px;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: contrast(1.05) saturate(1.1);
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  left: -30px;
  background: var(--cream);
  border: 2px solid var(--cobalt);
  border-radius: 4px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 6px 6px 0 var(--cobalt);
}

.badge-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-cross {
  width: 12px;
  height: 12px;
}

.badge-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--cobalt);
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  background: var(--cobalt);
  overflow: hidden;
  padding: 14px 0;
  border-top: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.1em;
  padding-right: 20px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 0 40px;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--cobalt);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.section-header.light .section-title {
  color: var(--cream);
}

.section-header.light .section-lead {
  color: rgba(245,241,232,0.8);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how {
  padding: 100px 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.how-card {
  background: var(--cream-light);
  border: 2px solid var(--cobalt);
  border-radius: 4px;
  padding: 36px 30px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.how-card:hover {
  transform: translateY(-6px);
  box-shadow: 8px 8px 0 var(--cobalt);
}

.how-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.how-icon svg {
  width: 100%;
  height: 100%;
}

.how-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--cobalt);
  margin: 8px 0 16px;
}

.how-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

/* ============================================
   PRODUCTS (Zigzag Layout)
   ============================================ */
.products {
  padding: 100px 60px;
  background: var(--paper);
}

.product-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.product-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  border: 2px solid var(--cobalt);
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-light);
  transition: box-shadow 0.3s;
}

.product-row:hover {
  box-shadow: 8px 8px 0 var(--cobalt);
}

.product-row-2 {
  grid-template-columns: 2fr 1fr;
}

.product-image-col {
  display: flex;
  align-items: stretch;
}

.product-color-block {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 30px;
}

.product-alt-label {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.product-info-col {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding: 4px 12px;
  background: var(--paper);
  border-radius: 100px;
  align-self: flex-start;
  margin-bottom: 16px;
}

.product-tag-accent {
  background: var(--green);
  color: var(--cream);
}

.product-name {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--cobalt);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.product-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 24px;
}

.product-specs {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  opacity: 0.6;
}

.spec-val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cobalt);
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.product-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--orange);
}

.price-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  opacity: 0.5;
}

/* ============================================
   STATS (Dark Section)
   ============================================ */
.stats {
  padding: 100px 60px 80px;
  background: var(--cobalt);
  position: relative;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 60px;
  position: relative;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  border: 1.5px solid rgba(245,241,232,0.2);
  border-radius: 4px;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream);
  opacity: 0.7;
}

.stats-illustration {
  max-width: 500px;
  margin: 0 auto;
}

.stats-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: brightness(0.9) saturate(1.1);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 100px 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial {
  background: var(--cream-light);
  border: 2px solid var(--cobalt);
  border-radius: 4px;
  padding: 36px 30px;
  position: relative;
  transition: transform 0.3s;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--cobalt);
}

.testimonial p {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cobalt);
  margin-bottom: 24px;
  font-weight: 400;
}

.testimonial cite {
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  font-weight: 600;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 100px 60px;
  background: var(--paper);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 2px solid var(--cobalt);
  border-radius: 4px;
  margin-bottom: 12px;
  background: var(--cream-light);
  overflow: hidden;
}

.faq-item summary {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cobalt);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 400;
  color: var(--green);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--cream);
}

.faq-item p {
  padding: 0 24px 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

/* ============================================
   ORDER CTA
   ============================================ */
.order {
  padding: 100px 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.order-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--cobalt);
  border-radius: 8px;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

.order-inner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(200,90,46,0.15) 0%, transparent 70%);
}

.order-text {
  position: relative;
  z-index: 1;
}

.order-text .section-title {
  color: var(--cream);
}

.order-text .section-lead {
  color: rgba(245,241,232,0.8);
  margin-bottom: 32px;
}

#orderBtn {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

#orderBtn:hover {
  background: var(--cream);
  color: var(--green);
  border-color: var(--cream);
}

.order-fine {
  margin-top: 16px;
  font-size: 11px;
  color: rgba(245,241,232,0.5);
  line-height: 1.5;
  max-width: 400px;
}

.order-visual {
  position: relative;
  z-index: 1;
}

.order-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: brightness(1.05);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  padding: 60px 60px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--cream);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-light);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.7;
  margin-bottom: 8px;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--green-light);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(245,241,232,0.15);
}

.footer-bottom p {
  font-size: 11px;
  color: rgba(245,241,232,0.4);
  line-height: 1.6;
}

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .nav { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding: 40px 24px 60px;
    gap: 40px;
  }
  .hero-badge { left: 10px; }

  .how, .products, .stats, .testimonials, .faq, .order {
    padding: 60px 24px;
  }

  .how-grid, .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .product-row, .product-row-2 {
    grid-template-columns: 1fr;
  }

  .product-color-block {
    min-height: 120px;
  }

  .product-info-col {
    padding: 28px 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-inner {
    grid-template-columns: 1fr;
    padding: 40px 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-header {
    padding: 0 20px;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .product-specs {
    flex-wrap: wrap;
  }
  .product-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
