/* ===== Neon dark theme: nutrition routine for men (variant 6) ===== */

:root {
  --rtn-bg: #0A0E17;
  --rtn-surface: #111827;
  --rtn-surface-2: #172238;
  --rtn-glass: rgba(255, 255, 255, 0.04);
  --rtn-line: rgba(255, 255, 255, 0.10);
  --rtn-tone: #22E4F5;
  --rtn-tone-soft: rgba(34, 228, 245, 0.55);
  --rtn-tone-hover: #9AF8FF;
  --rtn-violet: #A78BFA;
  --rtn-rgb: 34, 228, 245;
  --rtn-ink: #E8F1FF;
  --rtn-muted: #B3C0D4;
  --rtn-overlay: rgba(4, 6, 12, 0.82);
  --rtn-overlay-heavy: rgba(4, 6, 12, 0.93);
  --rtn-gradient: linear-gradient(120deg, #22E4F5 0%, #A78BFA 100%);
  --rtn-radius: 14px;
  --rtn-radius-pill: 999px;
  --rtn-section-y: 10dvh;
  --font-display: 'Oswald', 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-body: 'Lato', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* ===== Animation layer: view transitions ===== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.35s ease both vt-out; }
::view-transition-new(root) { animation: 0.45s ease both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ===== Registered properties for mesh gradient ===== */
@property --mesh-x { syntax: '<percentage>'; inherits: false; initial-value: 20%; }
@property --mesh-y { syntax: '<percentage>'; inherits: false; initial-value: 30%; }

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

body {
  margin: 0;
  background: var(--rtn-bg);
  color: var(--rtn-ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--rtn-ink);
}
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--rtn-muted); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rtn-tone); }

:focus-visible {
  outline: 3px solid var(--rtn-tone-hover);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  background: var(--rtn-tone);
  color: var(--rtn-bg);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus { top: 1rem; }

.tone-word { color: var(--rtn-tone); font-weight: 700; }

.rtn-inner { max-width: 1140px; margin-inline: auto; }

.rtn-section {
  position: relative;
  z-index: 1;
  padding-block: var(--rtn-section-y);
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.rtn-two-col {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 1140px;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .rtn-two-col { grid-template-columns: 1fr 1fr; }
}

/* ===== Header ===== */
.neon-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rtn-bg);
  border-bottom: 1px solid var(--rtn-line);
}

.neon-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--rtn-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
}

.rtn-logo {
  width: 38px;
  height: 38px;
  flex: none;
  color: var(--rtn-tone);
  filter: drop-shadow(0 0 8px var(--rtn-tone));
}

.brand-name { font-size: 1.05rem; line-height: 1.3; }

.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--rtn-tone);
  box-shadow: 0 0 8px var(--rtn-tone);
}

.neon-nav {
  display: flex;
  gap: 1.6rem;
}
.neon-nav a {
  color: var(--rtn-ink);
  text-decoration: none;
  font-weight: 700;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.neon-nav a:hover {
  color: var(--rtn-tone);
  border-bottom-color: var(--rtn-tone);
}

.nav-toggle-input:focus-visible ~ .nav-burger {
  outline: 3px solid var(--rtn-tone-hover);
  outline-offset: 3px;
}

.scroll-meter {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: var(--rtn-gradient);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-meter {
    animation: meter-grow linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes meter-grow { to { transform: scaleX(1); } }

@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .neon-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    gap: 0.9rem;
    background: var(--rtn-surface);
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--rtn-line);
  }
  .nav-toggle-input:checked ~ .neon-nav { display: flex; }
}

/* ===== Buttons ===== */
.neon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 2px solid var(--rtn-tone);
  border-radius: var(--rtn-radius-pill);
  background: transparent;
  color: var(--rtn-tone);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.neon-pill:hover,
.neon-pill:focus-visible {
  background: var(--rtn-tone);
  color: var(--rtn-bg);
  box-shadow: 0 0 20px var(--rtn-tone);
}
.neon-pill-sm {
  min-height: 42px;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}
.is-pulse { animation: neon-pulse 2.8s ease-in-out infinite; }
@keyframes neon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--rtn-rgb), 0); }
  50% { box-shadow: 0 0 22px 2px rgba(var(--rtn-rgb), 0.40); }
}

.rtn-text-link {
  color: var(--rtn-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--rtn-tone);
  text-underline-offset: 6px;
}

/* ===== Hero with mesh gradient (effect 1) ===== */
.rtn-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: clip;
  isolation: isolate;
  padding: 8dvh clamp(1rem, 5vw, 3rem);
  background: var(--rtn-bg) url('img/bg.webp') center / cover no-repeat;
}
.rtn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rtn-overlay);
  z-index: 0;
  pointer-events: none;
}
.mesh-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mesh-x) var(--mesh-y), rgba(var(--rtn-rgb), 0.30), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(167, 139, 250, 0.28), transparent 50%),
    radial-gradient(circle at 15% 90%, rgba(var(--rtn-rgb), 0.18), transparent 45%);
  animation: mesh-drift 24s ease-in-out infinite alternate;
}
@keyframes mesh-drift {
  0% { --mesh-x: 15%; --mesh-y: 25%; }
  100% { --mesh-x: 75%; --mesh-y: 65%; }
}

.rtn-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.rtn-kicker {
  color: var(--rtn-tone);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.rtn-neon-title {
  text-shadow: 0 0 20px var(--rtn-tone-soft), 0 0 60px var(--rtn-tone-soft);
}
.rtn-lead { font-size: 1.15rem; color: var(--rtn-ink); }
.rtn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

/* ===== Marquee strip (effect 2) ===== */
.glow-ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--rtn-surface);
  border-block: 1px solid var(--rtn-line);
}
.glow-ticker-track {
  display: flex;
  width: max-content;
  padding-block: 1rem;
  animation: ticker-run 38s linear infinite;
}
.glow-ticker:hover .glow-ticker-track { animation-play-state: paused; }
.glow-ticker-group {
  display: flex;
  gap: 2.5rem;
  padding-inline-end: 2.5rem;
}
.glow-ticker span {
  color: var(--rtn-tone);
  font-family: var(--font-display);
  font-size: 1.1rem;
  white-space: nowrap;
  text-shadow: 0 0 10px var(--rtn-tone-soft);
}
@keyframes ticker-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Figures ===== */
.neon-figure { margin: 0; }
.neon-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--rtn-radius);
  border: 1px solid rgba(var(--rtn-rgb), 0.25);
  box-shadow: 0 0 40px rgba(var(--rtn-rgb), 0.35);
}
.neon-figure figcaption {
  margin-top: 0.6rem;
  color: var(--rtn-muted);
  font-size: 0.9rem;
}

/* ===== Feature cards ===== */
.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.neon-feature {
  background: var(--rtn-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--rtn-radius);
  padding: 1.5rem;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.neon-feature:hover,
.neon-feature:focus-within {
  border-color: var(--rtn-tone);
  box-shadow: 0 0 25px rgba(var(--rtn-rgb), 0.30);
}
.neon-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.8rem;
  fill: none;
  stroke: var(--rtn-tone);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.neon-feature p { font-size: 0.98rem; }

.neon-num-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.neon-num-list li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--rtn-ink);
}
.neon-dot-sm {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rtn-bg);
  background: var(--rtn-tone);
}
.neon-num-list li:nth-child(2) .neon-dot-sm { background: var(--rtn-violet); }
.neon-num-list li:nth-child(3) .neon-dot-sm { background: var(--rtn-tone-hover); }
.neon-num-list li:nth-child(4) .neon-dot-sm { background: var(--rtn-gradient); }

/* ===== Timeline with neon dots ===== */
.neon-timeline {
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
}
.neon-timeline::before {
  content: "";
  position: absolute;
  inset-block: 1.5rem;
  inset-inline-start: 1.5rem;
  width: 2px;
  background: var(--rtn-gradient);
  opacity: 0.6;
}
.neon-step {
  position: relative;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding-block: 1rem;
}
.neon-dot {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--rtn-tone);
  background: var(--rtn-bg);
  color: var(--rtn-tone);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--rtn-tone);
}
.neon-step h3 { margin-bottom: 0.3em; }

/* ===== Stagger reveal (effect 3, JS) ===== */
.js .neon-stagger {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.js .neon-stagger.is-in {
  opacity: 1;
  transform: none;
}

/* ===== view() reveal for sections (CSS only) ===== */
@supports (animation-timeline: view()) {
  .rtn-reveal {
    animation: rtn-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }
}
@keyframes rtn-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* ===== CTA strip and bands ===== */
.neon-cta-strip {
  position: relative;
  z-index: 1;
  text-align: center;
  background: var(--rtn-bg);
  border-top: 1px solid var(--rtn-line);
  padding-block: var(--rtn-section-y);
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.neon-cta-strip h2 {
  text-shadow: 0 0 18px var(--rtn-tone-soft);
}
.neon-cta-strip p {
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 1.6rem;
}

.rtn-bg-band {
  position: relative;
  z-index: 1;
  padding-block: var(--rtn-section-y);
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  background:
    linear-gradient(var(--rtn-overlay-heavy), var(--rtn-overlay-heavy)),
    url('img/bg2.webp') center / cover no-repeat;
  text-align: center;
  overflow: clip;
}
.rtn-band-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  color: var(--rtn-ink);
  max-width: 800px;
  margin-inline: auto;
}

.rtn-page-hero {
  position: relative;
  z-index: 1;
  padding: 12dvh clamp(1rem, 5vw, 3rem) 6dvh;
  background: var(--rtn-surface);
  border-bottom: 1px solid var(--rtn-line);
}

/* ===== Form ===== */
.neon-form-card {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-inline: auto;
  background: var(--rtn-surface);
  border: 1px solid var(--rtn-line);
  border-radius: var(--rtn-radius);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: 0 0 40px rgba(var(--rtn-rgb), 0.12);
}
.neon-form-card label {
  display: block;
  color: var(--rtn-ink);
  font-weight: 700;
}
.neon-field {
  margin-block: 1.1rem;
}
.neon-field input,
.neon-field textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem 0.2rem;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--rtn-line);
  border-radius: 0;
  color: var(--rtn-ink);
  font: inherit;
}
.neon-field input:focus,
.neon-field textarea:focus {
  outline: none;
  border-bottom-color: var(--rtn-tone);
  box-shadow: 0 2px 0 0 var(--rtn-tone);
}
.neon-field ::placeholder {
  color: var(--rtn-muted);
  opacity: 1;
}
.neon-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1.4rem 0;
}
.neon-consent input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.35rem;
  accent-color: var(--rtn-tone);
}
.neon-consent label {
  font-weight: 400;
  color: var(--rtn-muted);
}
.neon-consent a { color: var(--rtn-tone); }

/* ===== FAQ (all open, CSS only) ===== */
.neon-faq { max-width: 820px; }
.neon-faq details {
  background: var(--rtn-surface);
  border: 1px solid var(--rtn-line);
  border-radius: var(--rtn-radius);
  padding: 1rem 1.25rem;
  margin-block: 0.8rem;
}
.neon-faq summary {
  cursor: pointer;
  color: var(--rtn-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.neon-faq details p { margin: 0.6rem 0 0; }

/* ===== Thank page ===== */
.rtn-thank {
  position: relative;
  z-index: 1;
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 8dvh clamp(1rem, 5vw, 3rem);
  text-align: center;
}
.rtn-thank-figure { width: min(560px, 100%); }
.rtn-thank p { max-width: 560px; }

/* ===== Legal pages ===== */
.rtn-legal {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 10dvh clamp(1rem, 5vw, 3rem);
}
.rtn-legal-wrap {
  max-width: 860px;
  margin-inline: auto;
}
.rtn-legal-wrap h1 { margin-bottom: 0.8em; }
.rtn-cookie-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rtn-line);
  scroll-margin-top: 6rem;
}

/* ===== Footer ===== */
.rtn-footer {
  position: relative;
  z-index: 1;
  background: var(--rtn-surface);
  border-top: 1px solid var(--rtn-line);
  padding: 4dvh clamp(1rem, 5vw, 3rem) 8dvh;
}
.rtn-footer-inner {
  max-width: 1140px;
  margin-inline: auto;
  display: grid;
  gap: 1.2rem;
}
.rtn-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
}
.rtn-footer-links a {
  color: var(--rtn-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rtn-tone);
}
.neon-disclaimer {
  margin: 0;
  padding-inline-start: 0.8rem;
  border-inline-start: 3px solid var(--rtn-tone);
  color: var(--rtn-muted);
  font-size: 0.95rem;
}
.rtn-copy {
  margin: 0;
  color: var(--rtn-muted);
  font-size: 0.9rem;
}

/* ===== Cookie banner (index) ===== */
.neon-cookie-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  background: var(--rtn-surface);
  color: var(--rtn-ink);
  border-top: 2px solid var(--rtn-tone);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}
.neon-cookie-bar[hidden] { display: none; }
.neon-cookie-bar p { margin: 0; color: var(--rtn-ink); }
.neon-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 380px) {
  .brand-name { font-size: 0.95rem; }
  .rtn-actions .neon-pill { width: 100%; }
}

/* ===== Accessibility: reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html { view-transition-name: none; }
}