/* ============================================================
   C SOLA — Cinematic Landing Page
   Design signature: "the pour" — a liquid-glass warmth instead of
   pure black; amber-garnet primary accent (the color of cola held
   to light), cherry spark as a rare highlight.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Inter:wght@400;500;600;700&family=Cairo:wght@400;600;700;800&display=swap');

:root {
  --font-display: 'Bricolage Grotesque', 'Cairo', system-ui, sans-serif;
  --font-body: 'Inter', 'Cairo', system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms var(--ease);
  --t-base: 420ms var(--ease);
  --t-slow: 900ms var(--ease);

  --container: 1360px;
  --nav-h: 84px;

  /* Flavor accents — cohesive, not literal traffic-light copies */
  --flavor-original: #a63d1f;
  --flavor-cherry: #c21f3d;
  --flavor-lemon: #d9a02b;
  --flavor-orange: #d9691f;
  --flavor-zero: #6b6259;
}

[data-theme='dark'] {
  --bg: #0d0906;
  --bg-2: #140d08;
  --surface: #1b130c;
  --surface-2: #241a10;
  --text: #f5ede2;
  --text-muted: #a89a86;
  --border: rgba(245, 237, 226, 0.1);
  --accent: #c9622c;
  --accent-strong: #e8283f;
  --glow: rgba(201, 98, 44, 0.35);
}

[data-theme='light'] {
  --bg: #ede8df;
  --bg-2: #e4ddd0;
  --surface: #f7f3ea;
  --surface-2: #efe8db;
  --text: #17110a;
  --text-muted: #6b5f50;
  --border: rgba(23, 17, 10, 0.1);
  --accent: #a63d1f;
  --accent-strong: #c21f3d;
  --glow: rgba(166, 61, 31, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  transition: background var(--t-slow), color var(--t-slow);
  -webkit-font-smoothing: antialiased;
}
[dir='rtl'] body { font-family: 'Cairo', var(--font-body); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .container { padding: 0 20px; } }

.skip-link { position: absolute; top: -60px; inset-inline-start: 12px; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 999; transition: top var(--t-fast); }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }

/* film grain — extremely subtle, fixed overlay */
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------------- Loader ---------------- */
.loader { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease); }
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; letter-spacing: -0.02em; opacity: 0; animation: loader-in 1s var(--ease) forwards 0.15s; }
@keyframes loader-in { to { opacity: 1; } }

/* ---------------- Custom cursor (desktop only) ---------------- */
.cursor { position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-strong); pointer-events: none; z-index: 998; transform: translate(-50%, -50%); transition: width var(--t-fast), height var(--t-fast), background var(--t-fast); mix-blend-mode: difference; }
.cursor.is-hover { width: 56px; height: 56px; background: var(--text); display: flex; align-items: center; justify-content: center; }
.cursor__label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bg); opacity: 0; transition: opacity var(--t-fast); }
.cursor.is-hover .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor__label { display: none !important; } }

/* ---------------- Nav ---------------- */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 200; height: var(--nav-h); display: flex; align-items: center; transition: background var(--t-base), border-color var(--t-base), backdrop-filter var(--t-base); border-bottom: 1px solid transparent; }
.nav.is-solid { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); border-color: var(--border); }
.nav__inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__mark { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 40px; }
.nav__link { position: relative; font-size: 0.92rem; font-weight: 500; color: var(--text-muted); }
.nav__link::after { content: ''; position: absolute; bottom: -6px; inset-inline-start: 0; width: 0; height: 1px; background: var(--text); transition: width var(--t-fast); }
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__pill-group { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.nav__pill { padding: 6px 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; color: var(--text-muted); }
.nav__pill.is-active { background: var(--text); color: var(--bg); }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: border-color var(--t-fast), transform var(--t-fast); }
.theme-toggle:hover { border-color: var(--text); transform: rotate(20deg); }
.nav__burger { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--border); border-radius: 50%; }
.nav__burger span { width: 16px; height: 1.5px; background: var(--text); transition: transform var(--t-fast), opacity var(--t-fast); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 190; background: var(--bg); display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 0 32px; transform: translateY(-100%); transition: transform var(--t-base); }
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.mobile-menu__foot { position: absolute; bottom: 40px; inset-inline: 32px; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.85rem; }

/* ---------------- Buttons ---------------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; overflow: hidden; transition: transform var(--t-fast); }
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent-strong) 85%, #fff); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn__arrow { transition: transform var(--t-fast); }
.btn:hover .btn__arrow { transform: translateX(4px); }
[dir='rtl'] .btn:hover .btn__arrow { transform: translateX(-4px) scaleX(-1); }
[dir='rtl'] .btn__arrow { transform: scaleX(-1); }

/* ---------------- Pour gauge (signature element) ---------------- */
.pour-gauge { position: fixed; inset-inline-end: 28px; top: 50%; transform: translateY(-50%); z-index: 150; width: 3px; height: 200px; border-radius: 3px; background: var(--border); overflow: hidden; }
.pour-gauge__fill { position: absolute; bottom: 0; inset-inline: 0; height: 0%; background: var(--accent-strong); transition: height 0.15s linear, background var(--t-base); }
@media (max-width: 900px) { .pour-gauge { display: none; } }

/* ---------------- Hero ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
.hero__atmosphere { position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 80% at 78% 20%, var(--glow) 0%, transparent 60%), radial-gradient(80% 60% at 10% 100%, var(--glow) 0%, transparent 55%); transition: background var(--t-slow); }
.hero__grid { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }
.hero__eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.hero__title { font-family: var(--font-display); font-size: clamp(3.2rem, 8vw, 6.8rem); font-weight: 700; line-height: 0.96; letter-spacing: -0.03em; }
.hero__title span { display: block; overflow: hidden; }
.hero__title span > em { font-style: normal; display: inline-block; color: var(--accent-strong); }
.hero__sub { margin: 28px 0 40px; font-size: 1.15rem; color: var(--text-muted); max-width: 420px; line-height: 1.6; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll-cue { position: absolute; bottom: 36px; inset-inline-start: 32px; display: flex; align-items: center; gap: 10px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.hero__scroll-line { width: 1px; height: 34px; background: var(--text-muted); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; top: -100%; inset-inline: 0; height: 100%; background: var(--accent-strong); animation: scroll-cue 1.8s var(--ease) infinite; }
@keyframes scroll-cue { to { top: 100%; } }

.hero__visual { position: relative; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; }
.can { position: relative; width: 46%; height: 78%; border-radius: 26px; background: linear-gradient(155deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, #000) 100%); box-shadow: 0 60px 100px -30px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.08); overflow: hidden; transition: background var(--t-slow); }
.can::before { content: ''; position: absolute; top: 0; inset-inline-start: 14%; width: 22%; height: 100%; background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%); filter: blur(2px); }
.can__label { position: absolute; inset-inline: 12%; top: 40%; text-align: center; }
.can__label-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: #fff; letter-spacing: -0.02em; }
.can__label-flavor { display: block; margin-top: 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.hero__orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--border); animation: orbit-spin 40s linear infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 4/3; order: -1; margin-top: 20px; }
  .can { height: 90%; }
}

/* ---------------- Marquee ---------------- */
.marquee { border-block: 1px solid var(--border); padding: 26px 0; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee-scroll 26s linear infinite; }
[dir='rtl'] .marquee__track { animation-direction: reverse; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; padding-inline-end: 40px; color: var(--text-muted); white-space: nowrap; }
.marquee__track span:nth-child(odd) { color: var(--text); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- Story ---------------- */
.story { padding: 160px 0; position: relative; }
.story__eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.story__lines { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.story__lines .line { font-size: clamp(2rem, 6vw, 4.2rem); line-height: 1.08; opacity: 0.18; transition: opacity 0.6s var(--ease), color 0.6s var(--ease); }
.story__lines .line.is-visible { opacity: 1; }
.story__lines .line:last-child { color: var(--accent-strong); }
.story__body { max-width: 560px; margin-top: 48px; font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); }

/* ---------------- Flavors ---------------- */
.flavors { padding: 140px 0; background: var(--surface); transition: background var(--t-slow); }
.flavors__head { max-width: 640px; margin-bottom: 64px; }
.flavors__title { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; margin-top: 14px; }
.flavors__layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.flavor-stage { position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.flavor-stage .can { width: 40%; height: 82%; }
.flavor-stage__ring { position: absolute; width: 78%; height: 78%; border-radius: 50%; border: 1px solid var(--border); }

.flavor-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flavor-item { border-top: 1px solid var(--border); }
.flavor-item:last-child { border-bottom: 1px solid var(--border); }
.flavor-item__btn { width: 100%; display: flex; align-items: baseline; justify-content: space-between; padding: 22px 4px; text-align: start; }
.flavor-item__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text-muted); transition: color var(--t-fast); }
.flavor-item[aria-selected='true'] .flavor-item__name { color: var(--flavor-accent, var(--accent-strong)); }
.flavor-item__desc { max-height: 0; overflow: hidden; transition: max-height var(--t-base); font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.flavor-item[aria-selected='true'] .flavor-item__desc { max-height: 80px; padding-bottom: 20px; }
.flavors__hint { margin-top: 20px; font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .flavors__layout { grid-template-columns: 1fr; }
  .flavor-stage { order: -1; }
}

/* ---------------- Quality ---------------- */
.quality { padding: 140px 0; }
.quality__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
.quality__title { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; margin-top: 14px; }
.quality__points { display: flex; flex-direction: column; gap: 40px; }
.quality__point { border-top: 1px solid var(--border); padding-top: 24px; }
.quality__point h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.quality__point p { color: var(--text-muted); line-height: 1.7; max-width: 480px; }
@media (max-width: 900px) { .quality__grid { grid-template-columns: 1fr; } }

/* ---------------- Showcase ---------------- */
.showcase { position: relative; padding: 100px 0 160px; text-align: center; overflow: hidden; }
.showcase__title { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: -0.03em; margin-top: 16px; max-width: 900px; margin-inline: auto; }
.showcase__stage { position: relative; margin-top: 70px; display: flex; justify-content: center; }
.showcase__stage .can { width: 160px; height: 340px; }

/* ---------------- CTA ---------------- */
.final-cta { padding: 160px 0; background: var(--surface-2); text-align: center; transition: background var(--t-slow); }
.final-cta__title { font-family: var(--font-display); font-size: clamp(2.6rem, 8vw, 5.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.final-cta__title em { font-style: normal; color: var(--accent-strong); }
.final-cta .btn { margin-top: 44px; }

/* ---------------- Footer ---------------- */
.footer { padding: 90px 0 34px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--border); }
.footer__mark { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.footer__tagline { margin-top: 14px; color: var(--text-muted); max-width: 260px; line-height: 1.6; font-size: 0.92rem; }
.footer__col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }
.footer__col a, .footer__col button { display: block; padding: 6px 0; font-size: 0.95rem; }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 26px; color: var(--text-muted); font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------------- Reveal utility ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
