/* ============================================================
   ONE9 NUTRITION — styles
   Palette: near-black + brand lime green + product red
   ============================================================ */

:root {
  --bg:        #0a0a0b;
  --bg-2:      #101012;
  --bg-3:      #17171a;
  --line:      rgba(255,255,255,.10);
  --text:      #f4f4f5;
  --muted:     #9a9aa2;
  --green:     #50c028;  /* sampled from the ONE9 logo */
  --green-2:   #6fdf3a;
  --red:       #e51f28;
  --red-2:     #ff3b43;
  --radius:    16px;
  --maxw:      1200px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(92%, var(--maxw)); margin-inline: auto; }

.text-green { color: var(--green); }
.text-red   { color: var(--red-2); }

/* ---------- Headings & shared ---------- */
.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-weight: 600;
  font-size: .82rem;
  color: var(--green);
  margin-bottom: .6rem;
}

.section-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.02em;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  text-transform: uppercase;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-sub { color: var(--muted); }

section { padding: clamp(4rem, 9vw, 7rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  --pad: .95em 1.6em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: var(--pad);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { --pad: .6em 1.15em; font-size: .95rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--green);
  color: #06210a;
  box-shadow: 0 8px 30px -8px rgba(92,196,42,.7);
}
.btn--primary:hover { background: var(--green-2); transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(92,196,42,.85); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.28);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ---------- Top marquee bar ---------- */
.topbar {
  background: var(--red);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.2);
}
.topbar__track {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  white-space: nowrap;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: .14em;
  font-size: .8rem;
  padding: .5rem 0;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.topbar .dot { opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,11,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
.header.scrolled { background: rgba(10,10,11,.94); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(80,192,40,.45));
}
.brand__text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: .12em;
  font-size: 1.15rem;
}
.brand__text b { color: var(--green); font-weight: 700; }

.nav { display: flex; gap: 2rem; }
.nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: .06em;
  font-size: 1.02rem;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--green); transition: width .25s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: .8rem; }
.auth-greeting {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; letter-spacing: .04em; font-size: 1rem;
  color: var(--green); white-space: nowrap;
}
.auth-btn { cursor: pointer; }

/* ---------- Auth modal ---------- */
.auth-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.2rem; }
.auth-modal[hidden] { display: none; }
.auth-modal__backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.72);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s var(--ease);
}
.auth-modal.open .auth-modal__backdrop { opacity: 1; }
.auth-modal__card {
  position: relative; z-index: 1; width: min(420px, 100%);
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 2.2rem 1.8rem 1.8rem;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
  transform: translateY(16px) scale(.98); opacity: 0;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
  text-align: center;
  max-height: calc(100dvh - 2.4rem);
  overflow-y: auto;
}
.auth-modal.open .auth-modal__card { transform: none; opacity: 1; }
.auth-modal__close {
  position: absolute; top: .7rem; right: .9rem; background: none; border: 0;
  color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: color .2s;
}
.auth-modal__close:hover { color: var(--text); }
.auth-modal__logo { height: 54px; width: auto; margin: 0 auto .6rem; }
.auth-modal__card h3 {
  font-family: 'Archivo', sans-serif; font-weight: 800; text-transform: uppercase;
  letter-spacing: -.01em; font-size: 1.5rem;
}
.auth-modal__sub { color: var(--muted); font-size: .92rem; margin: .3rem 0 1.4rem; }
.auth-google { display: inline-flex; gap: .6rem; background: #fff; color: #1f1f1f; border: 0; }
.auth-google:hover { background: #f1f1f1; color: #1f1f1f; }
.auth-sep { display: flex; align-items: center; gap: .8rem; color: var(--muted); margin: 1.1rem 0; font-size: .8rem; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-modal .field { text-align: left; margin-bottom: .9rem; }
.auth-error { color: var(--red-2); font-size: .86rem; min-height: 1.1em; margin: .2rem 0 .8rem; text-align: left; }
.auth-switch { margin-top: 1.1rem; font-size: .9rem; color: var(--muted); }
.auth-switch button {
  background: none; border: 0; color: var(--green); font: inherit; font-weight: 600;
  cursor: pointer; padding: 0 .1em; text-decoration: underline; text-underline-offset: 3px;
}

.nav-toggle { display: none; background: none; border: 0; width: 30px; height: 24px; position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2.5px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 6%; filter: grayscale(.15) contrast(1.05); }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 15% 40%, rgba(10,10,11,.94) 0%, rgba(10,10,11,.72) 45%, rgba(10,10,11,.35) 100%),
    linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,.2) 40%, var(--bg) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 6rem 0; max-width: 680px; }
.hero__title {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 10.5vw, 6.6rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.025em;
  text-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.hero__tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  letter-spacing: .04em;
  margin-top: .4rem;
}
.hero__lead { color: #d7d7db; font-size: 1.08rem; max-width: 42ch; margin: 1.2rem 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__stats { display: flex; gap: 2.4rem; margin-top: 2.8rem; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats b { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--green); line-height: 1; letter-spacing: -.02em; }
.hero__stats span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: .3rem; }

/* ---------- Stat strip ---------- */
.statstrip { background: var(--red); padding: 1.6rem 0; }
.statstrip__grid { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.stat { text-align: center; flex: 1 1 auto; color: #fff; }
.stat b { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.3rem); display: block; line-height: 1; letter-spacing: -.02em; }
.stat span { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; opacity: .92; }

/* ---------- Product feature ---------- */
.product { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.product__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.product__media {
  position: relative;
  background: radial-gradient(60% 60% at 50% 45%, rgba(229,31,40,.28), transparent 70%);
  border-radius: var(--radius);
  overflow: hidden;
}
.product__media img { width: 100%; border-radius: var(--radius); }
.badge {
  position: absolute; top: 18px; left: 18px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: .1em;
  font-size: .82rem; padding: .4em .9em; border-radius: 999px; text-transform: uppercase;
}
.badge--veg { background: var(--green); color: #06210a; }

.product__content p { color: var(--muted); }
.product__content .section-title { margin-bottom: 1rem; }

.ticks { list-style: none; margin: 1.5rem 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: #d7d7db; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.3rem; height: 1.3rem; display: grid; place-items: center;
  background: rgba(92,196,42,.18); color: var(--green); border-radius: 50%;
  font-size: .8rem; font-weight: 700;
}
.product__meta { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin: 1.8rem 0; }
.product__meta span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.product__meta b { font-family: 'Barlow Condensed', sans-serif; font-size: 1.15rem; }
.product__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Flavors ---------- */
.flavors { background: var(--bg-2); }
.flavor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.flavor-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.flavor-card:hover { transform: translateY(-8px); border-color: rgba(92,196,42,.5); box-shadow: 0 24px 50px -24px rgba(0,0,0,.9); }
.flavor-card__img { aspect-ratio: 4/5; background: #000; overflow: hidden; }
.flavor-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.flavor-card:hover .flavor-card__img img { transform: scale(1.06); }
.flavor-card__body { padding: 1.3rem 1.3rem 1.5rem; }
.flavor-card__body h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.35rem; letter-spacing: .02em; margin-bottom: .3rem; }
.flavor-card__body p { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.link-arrow { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green); }
.link-arrow span { transition: transform .2s var(--ease); display: inline-block; }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- Testimonials ---------- */
.testimonials { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--bg); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.testi-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.testi-card:hover { transform: translateY(-6px); border-color: rgba(92,196,42,.5); }
.testi-card__media { position: relative; aspect-ratio: 16/9; background: #000; }
.testi-card__media iframe,
.testi-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.testi-card__link { position: absolute; inset: 0; display: grid; place-items: center; }
.testi-card__link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.testi-card__play {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem; color: #06210a;
  background: var(--green); box-shadow: 0 8px 24px -6px rgba(0,0,0,.7);
}
.testi-card__body { padding: 1.4rem; }
.testi__stars { color: var(--green-2); letter-spacing: .12em; font-size: .95rem; margin-bottom: .7rem; }
.testi__quote { color: #d7d7db; font-size: .98rem; line-height: 1.65; margin-bottom: 1.1rem; }
.testi__quote::before { content: "\201C"; color: var(--green); font-weight: 800; margin-right: .1rem; }
.testi__who { display: flex; align-items: center; gap: .7rem; }
.testi__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.testi__who b { font-family: 'Barlow Condensed', sans-serif; font-size: 1.05rem; letter-spacing: .02em; display: block; }
.testi__who span { color: var(--muted); font-size: .8rem; }

/* ---------- Why ONE9 ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.why-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform .3s var(--ease), border-color .3s;
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(229,31,40,.5); }
.why-card__icon {
  width: 54px; height: 54px; margin-bottom: 1.2rem;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(92,196,42,.12);
  border: 1px solid rgba(92,196,42,.28);
  color: var(--green);
}
.why-card__icon svg { width: 27px; height: 27px; }
.why-card h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; margin-bottom: .5rem; }
.why-card p { color: var(--muted); font-size: .95rem; }

/* ---------- About ---------- */
.about { background: var(--bg-2); }
.about__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__logo {
  background:
    radial-gradient(70% 70% at 50% 45%, rgba(80,192,40,.16), transparent 70%),
    var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  display: grid; place-items: center;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
}
.about__content p { color: var(--muted); margin-bottom: 1rem; }
.about__content strong { color: var(--text); }
.about__content .btn { margin-top: .8rem; }

/* ---------- Instagram CTA ---------- */
.insta { background: linear-gradient(120deg, #1a0c0d, var(--bg-2)); }
.insta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(229,31,40,.22), transparent 60%),
    var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(2rem, 5vw, 3.2rem);
}
.insta__inner p { color: var(--muted); margin-top: .6rem; }
.insta__inner b { color: var(--green); }

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info > p { color: var(--muted); margin-bottom: 1.5rem; }
.contact__list { list-style: none; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; gap: 1rem; align-items: center; }
.contact__ic {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  background: rgba(92,196,42,.1); border: 1px solid rgba(92,196,42,.24);
  border-radius: 12px; color: var(--green);
}
.contact__ic svg { width: 21px; height: 21px; }
.contact__list b { display: block; font-family: 'Barlow Condensed', sans-serif; letter-spacing: .06em; font-size: 1.05rem; }
.contact__list a { color: var(--muted); transition: color .2s; }
.contact__list a:hover { color: var(--green); }

.contact__form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8em 1em;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem; /* 16px — prevents iOS zoom-in on focus */
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(92,196,42,.18);
}
.field textarea { resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer__brand p { color: var(--muted); font-family: 'Barlow Condensed', sans-serif; letter-spacing: .1em; margin-top: .5rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__nav a, .footer__social a {
  font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); transition: color .2s;
}
.footer__nav a:hover, .footer__social a:hover { color: var(--green); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.5rem;
  font-size: .82rem; color: var(--muted);
}
.footer__bottom .disclaimer { opacity: .7; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 44px -20px rgba(0,0,0,.9);
    padding: .5rem 0 1rem;
    transform: translateY(-140%);
    transition: transform .35s var(--ease);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .9rem 6vw; font-size: 1.15rem; }
  .nav a::after { display: none; }
  .nav-toggle { display: block; }
  .header__order { display: none; }
  .auth-greeting { display: none; }

  .product__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .about__inner { gap: 2rem; }
  .flavor-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__media img { object-position: 58% 6%; }

  /* tighter vertical rhythm on phones */
  section { padding: clamp(3rem, 8vw, 4.75rem) 0; }
  .hero { min-height: auto; }
  .hero__inner { padding: 4.75rem 0 3.5rem; }
  .brand__text { font-size: 1.05rem; }
  .section-head { margin-bottom: 2.2rem; }
}

@media (max-width: 520px) {
  .flavor-grid, .why-grid, .testi-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.5rem; }
  .statstrip__grid { gap: 1rem 1.5rem; }
  .stat { flex-basis: 27%; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
