/* Vittel Hub - clean animations, no emojis, no bottle slide */
:root {
  --bg: #0d0e12;
  --bg-alt: #13141a;
  --surface: #1a1b24;
  --surface-hover: #22232e;
  --border: #2c2d3a;
  --text: #eaeaf2;
  --text-muted: #9a9bb0;
  --accent: #fff;
  --primary: #ff4757;
  --primary-soft: rgba(255, 71, 87, 0.18);
  --primary-glow: rgba(255, 71, 87, 0.35);
  --green: #2ed573;
  --green-soft: rgba(46, 213, 115, 0.18);
  --teal: #00d2d3;
  --teal-soft: rgba(0, 210, 211, 0.12);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --reveal-duration: 0.6s;
  --reveal-stagger: 70ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

a:hover {
  color: var(--primary);
}

/* ----- Reveal: clean fade + slide, one by one ----- */
.reveal-section .reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
}

.reveal-section.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Header (circular nav pills) ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 14, 18, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease-out);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.25s var(--ease-spring);
}

.logo-link:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-full);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 0.5rem;
}

.nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

/* ----- Hero: bottle + content, same reveal ----- */
.hero {
  min-height: 100vh;
  padding: 6rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.hero-bottle {
  flex-shrink: 0;
}

.hero-bottle img {
  display: block;
  height: clamp(200px, 38vh, 340px);
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.reduce-motion .hero-bottle img {
  animation: none;
}

.hero-content {
  max-width: 560px;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
}

.hero-desc {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    opacity 0.25s var(--ease-in-out),
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-in-out);
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px var(--primary-soft);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px var(--primary-glow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.btn-secondary:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge {
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s;
}

.badge-status {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

.hero-disclaimer {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.9;
}

/* ----- Code block (rounded, copy button) ----- */
.code-block-wrap {
  margin-top: 1rem;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-filename {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.code-copy {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.code-copy:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.code-copy.copied {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}

.code-copy-small {
  background: var(--surface-hover) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
}

.code-copy-small:hover {
  background: var(--primary-soft) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.code-copy-small.copied {
  background: var(--green-soft) !important;
  border-color: var(--green) !important;
  color: var(--green) !important;
}

/* Reduced motion */
.reduce-motion .reveal-section .reveal-item,
.reduce-motion .reveal-section.is-visible .reveal-item {
  transition-duration: 0.01ms !important;
}
.reduce-motion .reveal-section.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.code-block {
  margin: 0;
  padding: 1rem 1.25rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.code-block-wrap:hover .code-block {
  border-color: var(--border);
  box-shadow: 0 0 0 1px var(--border);
}

.code-block.small {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  border-radius: var(--radius-md);
}

.code-block code {
  color: inherit;
}

/* ----- Sections ----- */
.section {
  padding: 4rem 1.5rem;
  background: var(--bg);
}

.section-dark {
  background: var(--bg-alt);
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--accent);
}

.section-lead {
  margin: 0 0 2rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.section-note {
  margin: 2rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: var(--radius-md);
}

/* ----- Feature grid (circular cards) ----- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.25s var(--ease-in-out),
    background 0.25s var(--ease-in-out),
    box-shadow 0.35s var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  background: var(--surface-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.feature-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ----- Preset grid (rounded cards) ----- */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.preset-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.25s var(--ease-in-out),
    box-shadow 0.35s var(--ease-out);
}

.preset-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px var(--primary-soft);
}

.preset-cat {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.65rem;
  background: var(--primary-soft);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.preset-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
}

.preset-desc {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.preset-card .code-block {
  margin-top: 0;
}

/* ----- Steps (circular numbers) ----- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #e84393);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--primary-soft);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-in-out);
}

.step:hover .step-num {
  transform: scale(1.05);
  box-shadow: 0 6px 24px var(--primary-glow);
}

.step-content {
  flex: 1;
}

.step-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.step-content p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.step-content .code-block {
  margin: 0;
  border-radius: var(--radius-md);
}

/* ----- FAQ (rounded items) ----- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s var(--ease-in-out), background 0.25s var(--ease-in-out);
}

.faq-item:hover {
  border-color: var(--border);
  background: var(--surface-hover);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-q {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.faq-a {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----- Footer ----- */
.site-footer {
  padding: 2.5rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.footer-credit {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .nav {
    gap: 0.25rem;
  }

  .nav a {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .hero {
    flex-direction: column;
    padding-top: 5rem;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .code-copy {
    top: 0.5rem;
    right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .hero-bottle img {
    height: 160px;
  }
}
