/* NutriVanta Pro — site styles */
:root {
  --blue: #3498db;
  --blue-dark: #217dbb;
  --lime: #7ed321;
  --emerald: #2ecc71;
  --emerald-dark: #27ae60;
  --apple-green: #34c759;
  --bg: #e8f4ff;
  --bg-deep: #d3e9fb;
  --ink: #0b1220;
  --muted: #4a5b6a;
  --line: rgba(10, 40, 60, 0.12);
  --card: #ffffff;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 20px 50px rgba(15, 80, 120, 0.15);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Quicksand", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(120% 100% at 50% 0%, #f7fcff 0%, var(--bg) 40%, #dff0ff 100%);
  min-height: 100vh;
}

a {
  color: var(--emerald-dark);
  text-decoration-thickness: 0.04em;
}

a:hover {
  color: var(--blue);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

h1, h2, h3, p {
  margin: 0 0 0.75em;
}

h1 {
  font-size: clamp(1.8rem, 1.1rem + 2.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.02rem;
  margin: 0 0 0.5em;
}

code {
  font-size: 0.92em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.12em 0.35em;
  border-radius: 6px;
}

kbd {
  display: inline-block;
  font-family: inherit;
  font-size: 0.8em;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  padding: 0.1em 0.45em;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.wrap {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand__icon {
  display: block;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(40, 120, 200, 0.25);
}

.brand__pro {
  color: var(--emerald);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35em 0;
  opacity: 0.9;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--emerald);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.4em 0.95em;
  background: linear-gradient(135deg, var(--emerald) 0%, #24b85f 100%);
  color: #fff !important;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(39, 174, 97, 0.35);
}

.nav__cta:hover,
.nav__cta:focus-visible {
  color: #fff;
  filter: brightness(1.04);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.nav-toggle__bar {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  top: 1.6rem;
  height: 2px;
  display: block;
  background: var(--ink);
  border-radius: 1px;
}

.nav-toggle::before { top: 0.8rem; }
.nav-toggle::after  { top: 1.2rem; }

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    inset: 4.25rem 1.25rem auto 1.25em;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
}

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero {
    padding: 3.5rem 0 2.5rem;
  }
}

.hero__grid {
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.lede {
  font-size: 1.08rem;
  max-width: 38ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.2rem 0 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s, color 0.12s;
}

.btn--small {
  min-height: 2.35rem;
  padding: 0 1.05rem;
  font-size: 0.95rem;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  box-shadow: 0 10px 28px rgba(52, 152, 219, 0.4);
}

.btn--primary:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--emerald-dark);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(46, 204, 113, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  padding: 0;
  margin: 0;
}

.pills li {
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(52, 152, 219, 0.2);
  color: var(--muted);
}

.hero__art {
  display: flex;
  justify-content: center;
}

.hero__logo {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(30, 100, 160, 0.2));
  animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Section */
.section {
  padding: 2.5rem 0 3rem;
}

.section__head {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto 2.25rem;
}

.section__head p {
  margin: 0 auto;
  max-width: 46ch;
}

/* Product bento */
.product {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 16%, #fff 100%);
}

.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento__item--wide {
    grid-column: 1 / -1;
  }
}

.bento__item {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 12px 32px rgba(0, 60, 100, 0.08);
  border: 1px solid var(--line);
  transition: transform 0.15s, box-shadow 0.15s;
}

.bento__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 60, 100, 0.12);
}

/* Features */
.features {
  background: linear-gradient(180deg, #fff 0%, var(--bg-deep) 100%);
}

.features__list {
  list-style: none;
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .features__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.features__list li {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.4rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.features__list h3 {
  color: var(--ink);
  margin: 0 0 0.2em;
}

.features__list p {
  font-size: 0.95rem;
  margin: 0;
}

.material-symbols-outlined.features__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #e0f4ff, #d7f5e2);
  color: var(--emerald-dark);
  font-size: 1.4rem;
  font-variation-settings: "FILL" 0, "wght" 500, "opsz" 24;
  margin-bottom: 0.35rem;
}

/* Gallery */
.gallery {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #fff 40%);
}

.frame-strip {
  display: flex;
  gap: 1.1rem;
  padding: 0.5rem 0.25rem 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border-radius: var(--radius-md);
  outline: none;
}

.frame-strip:focus-visible {
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.45);
}

.frame-strip::after {
  content: "";
  flex: 0 0 0.5rem;
}

.frame {
  flex: 0 0 240px;
  max-width: 72vw;
  scroll-snap-align: start;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 500px) {
  .frame {
    flex: 0 0 280px;
  }
}

.frame__bezel {
  position: relative;
  border-radius: 28px;
  padding: 0.4rem;
  background: linear-gradient(160deg, #1a1a1a 0%, #2a2a2a 30%, #101010 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: rise 0.7s ease both;
  animation-delay: var(--a, 0s);
}

.frame__bezel::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 50%;
  width: 28%;
  height: 5px;
  background: #111;
  border-radius: 0 0 4px 4px;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.4;
}

.frame__bezel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: #000;
  cursor: zoom-in;
}

.frame figcaption {
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  color: var(--muted);
  line-height: 1.35;
  min-height: 2.4em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery__hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Video */
.video-box {
  max-width: 720px;
  margin: 0 auto;
}

.video-box__inner {
  position: relative;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 12rem;
  display: grid;
  grid-template-rows: auto auto;
}

.video-box__el {
  display: block;
  width: 100%;
  height: auto;
  min-height: 10rem;
}

.video-box__preview {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.video-box__el.is-hidden {
  display: none !important;
}

.video-box__empty {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(120deg, #0a0f1a, #0e2240 40%, #0a0f1a);
  color: #e2eef9;
  font-size: 0.98rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-box__empty p {
  color: inherit;
  max-width: 32ch;
  margin: 0;
}

.video-box__empty a {
  color: #b9f7cf;
  font-weight: 700;
}

.video-box__empty a:hover {
  color: #ffffff;
}

.video-box__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(120deg, #0a0f1a, #0e2240 40%, #0a0f1a);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-box__downloads .btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.video-box__downloads .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #1b6b9e 0%, #27ae60 100%);
  color: #e8f5ff;
}

.cta h2, .cta p {
  color: inherit;
}

.cta p {
  opacity: 0.9;
  margin: 0;
  max-width: 44ch;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.25rem 0;
  align-items: flex-start;
}

@media (min-width: 800px) {
  .cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  flex-shrink: 0;
}

.cta .btn--primary {
  background: #fff;
  color: #0a4a7a;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.cta .btn--primary:hover {
  filter: none;
  background: #f0f9ff;
}

.cta .btn--ghost {
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.cta .btn--ghost:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Footer */
.site-footer {
  padding: 1.4rem 0 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 10, 20, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 2rem);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.lightbox__close:hover {
  background: #f0f0f0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
