@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; } }

@property --nut-x1 { syntax: '<percentage>'; inherits: false; initial-value: 15%; }
@property --nut-y1 { syntax: '<percentage>'; inherits: false; initial-value: 20%; }
@property --nut-x2 { syntax: '<percentage>'; inherits: false; initial-value: 80%; }
@property --nut-y2 { syntax: '<percentage>'; inherits: false; initial-value: 30%; }
@property --nut-x3 { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@property --nut-y3 { syntax: '<percentage>'; inherits: false; initial-value: 85%; }

:root {
  --nut-bg: #0D1117;
  --nut-surface: #161D27;
  --nut-surface-alt: #1C2633;
  --nut-tone: #2EC4B6;
  --nut-tone-hover: #5EE6D6;
  --nut-ink: #F2F7F8;
  --nut-ink-soft: #B9C6CE;
  --nut-line: rgba(46, 196, 182, 0.22);
  --nut-gradient: linear-gradient(135deg, #17505A 0%, #1F7A74 100%);
  --nut-header: linear-gradient(90deg, #0F2E33 0%, #17505A 100%);
  --nut-warm: #E9B949;
  --nut-rose: #F28B82;
  --nut-sky: #7CB8FF;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  margin: 0;
  background: var(--nut-bg);
  color: var(--nut-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--nut-ink);
}
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--nut-tone-hover); }
[id] { scroll-margin-top: 90px; }
:focus-visible { outline: 3px solid var(--nut-tone-hover); outline-offset: 3px; }
[hidden] { display: none !important; }

.nut-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--nut-tone);
  color: #0D1117;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
}
.nut-skip:focus { left: 12px; }

.nut-wrap-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nut-block-pad { padding: 10dvh 0; position: relative; overflow: clip; }
.nut-inner { position: relative; z-index: 1; }

/* Header */
.nut-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nut-header);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7);
}
.nut-head-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nut-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.nut-brand-text { letter-spacing: 0.01em; }
.nut-menu-check { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.nut-burger { display: flex; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.nut-burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }
.nut-menu-check:focus-visible ~ .nut-burger { outline: 3px solid var(--nut-tone-hover); outline-offset: 3px; }
.nut-nav-wrap {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--nut-header);
  padding: 8px 20px 18px;
  gap: 4px;
  box-shadow: 0 18px 24px -14px rgba(0, 0, 0, 0.7);
}
.nut-menu-check:checked ~ .nut-nav-wrap { display: flex; }
.nut-nav-link {
  color: #fff;
  text-decoration: none;
  padding: 12px 4px;
  position: relative;
  font-weight: 500;
}
.nut-nav-link::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 6px;
  height: 2px;
  background: var(--nut-tone-hover);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nut-nav-link:hover::after,
.nut-nav-link[aria-current="page"]::after { opacity: 1; }
.nut-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--nut-tone-hover);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .nut-progress { animation: nut-grow linear both; animation-timeline: scroll(root); }
}
@keyframes nut-grow { to { transform: scaleX(1); } }

@media (min-width: 860px) {
  .nut-burger { display: none; }
  .nut-nav-wrap {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    gap: 24px;
    box-shadow: none;
  }
}

/* Hero + mesh */
.nut-hero-stage {
  position: relative;
  overflow: clip;
  min-height: 82dvh;
  display: flex;
  align-items: center;
  padding: 12dvh 0 10dvh;
  isolation: isolate;
}
.nut-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('img/bg.webp') center / cover no-repeat;
}
.nut-hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.6) 0%, rgba(13, 17, 23, 0.92) 100%);
}
.nut-hero-art.nut-art-alt {
  background: url('img/bg3.webp') center / cover no-repeat;
}
.nut-mesh {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--nut-x1) var(--nut-y1), rgba(46, 196, 182, 0.38), transparent 45%),
    radial-gradient(circle at var(--nut-x2) var(--nut-y2), rgba(233, 185, 73, 0.22), transparent 42%),
    radial-gradient(circle at var(--nut-x3) var(--nut-y3), rgba(124, 184, 255, 0.22), transparent 48%);
  animation: nut-drift 24s ease-in-out infinite alternate;
}
@keyframes nut-drift {
  0% { --nut-x1: 15%; --nut-y1: 20%; --nut-x2: 80%; --nut-y2: 30%; --nut-x3: 50%; --nut-y3: 85%; }
  100% { --nut-x1: 35%; --nut-y1: 55%; --nut-x2: 65%; --nut-y2: 70%; --nut-x3: 20%; --nut-y3: 40%; }
}
.nut-hero-copy { max-width: 760px; }
.nut-page-hero {
  position: relative;
  overflow: clip;
  padding: 12dvh 0 8dvh;
  background: linear-gradient(180deg, #121A24 0%, var(--nut-bg) 100%);
}
.nut-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nut-tone-hover);
  margin-bottom: 12px;
}
.nut-lead { font-size: 1.15rem; color: var(--nut-ink-soft); max-width: 640px; }
.nut-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Buttons */
.nut-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  background: var(--nut-tone);
  color: #0D1117;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.nut-cta-btn:hover {
  background: var(--nut-tone-hover);
  box-shadow: 0 0 0 4px rgba(94, 230, 214, 0.22);
}
.nut-cta-btn--ghost {
  background: transparent;
  color: var(--nut-ink);
  border-color: var(--nut-line);
}
.nut-cta-btn--ghost:hover {
  background: rgba(46, 196, 182, 0.1);
  color: #fff;
}

/* Ticker */
.nut-ticker {
  overflow: clip;
  background: var(--nut-surface);
  border-top: 1px solid var(--nut-line);
  border-bottom: 1px solid var(--nut-line);
  position: relative;
}
.nut-ticker-track { display: flex; width: max-content; animation: nut-ticker 40s linear infinite; }
.nut-ticker:hover .nut-ticker-track { animation-play-state: paused; }
.nut-ticker-group { display: flex; flex-shrink: 0; }
.nut-ticker-group span {
  position: relative;
  padding: 18px 34px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--nut-tone-hover);
}
.nut-ticker-group span::after {
  content: '•';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nut-ink-soft);
}
@keyframes nut-ticker { to { transform: translateX(-50%); } }

/* Section heads and background */
.nut-head { max-width: 720px; margin-bottom: 6dvh; }
.nut-head p { color: var(--nut-ink-soft); }
.nut-bg-photo { background: url('img/bg2.webp') center / cover no-repeat; }
.nut-bg-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.9) 0%, rgba(13, 17, 23, 0.84) 100%);
}

@supports (animation-timeline: view()) {
  .nut-rise { animation: nut-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; }
}
@keyframes nut-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* Tiles */
.nut-tile {
  background: var(--nut-surface);
  border: 1px solid var(--nut-line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.7), 0 6px 14px rgba(0, 0, 0, 0.4);
}
.nut-tile p { color: var(--nut-ink-soft); margin: 0; }
.nut-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--nut-gradient);
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px -6px rgba(31, 122, 116, 0.6);
  transition: background 0.45s ease;
}
.nut-ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.nut-scroll-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 18px;
}
.nut-scroll-track > .nut-tile { flex: 0 0 84%; scroll-snap-align: start; }
@media (min-width: 860px) {
  .nut-scroll-track { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .nut-scroll-track > .nut-tile { flex: none; }
}

.nut-feat-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .nut-feat-grid { grid-template-columns: repeat(2, 1fr); }
}
.nut-feat:hover {
  background: var(--nut-gradient);
  color: #fff;
  border-color: transparent;
}
.nut-feat:hover h3 { color: #fff; }
.nut-feat:hover p { color: #E4F3F2; }
.nut-feat:hover .nut-ring { background: rgba(255, 255, 255, 0.18); }

/* Steps */
.nut-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; position: relative; }
.nut-step { position: relative; z-index: 1; text-align: center; }
.nut-step p { color: var(--nut-ink-soft); }
.nut-node {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: var(--nut-tone);
  color: #0D1117;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 0 0 6px var(--nut-bg);
}
@media (min-width: 860px) {
  .nut-steps { grid-template-columns: repeat(3, 1fr); }
  .nut-steps--four { grid-template-columns: repeat(4, 1fr); }
  .nut-steps::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 16%;
    right: 16%;
    height: 3px;
    background: var(--nut-tone);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
  }
  .nut-steps--four::before { left: 12%; right: 12%; }
}

/* CTA strips */
.nut-cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  background: var(--nut-gradient);
  color: #fff;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 16px;
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.7);
}
.nut-cta-strip h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 2rem); }
.nut-cta-strip p { color: #E4F3F2; margin: 0; max-width: 560px; }
.nut-cta-dark {
  display: inline-flex;
  padding: 14px 26px;
  border-radius: 14px;
  background: #0D1117;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nut-cta-dark:hover {
  background: #1C2633;
  box-shadow: 0 0 0 4px rgba(94, 230, 214, 0.25);
}

/* About */
.nut-split-img { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) {
  .nut-split-img { grid-template-columns: 2fr 3fr; }
}
.nut-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--nut-line);
}
.nut-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.nut-principles { display: grid; gap: 20px; }
@media (min-width: 700px) {
  .nut-principles { grid-template-columns: repeat(2, 1fr); }
}
.nut-cards-3 { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .nut-cards-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Forms */
.nut-split { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .nut-split { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .nut-sticky-side { position: sticky; top: 96px; }
}
.nut-form-panel {
  background: var(--nut-surface);
  border: 1px solid var(--nut-line);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.7);
}
.nut-field { display: grid; gap: 8px; margin-bottom: 18px; }
.nut-field label { font-weight: 600; }
.nut-field input,
.nut-field textarea {
  width: 100%;
  background: #0F141B;
  color: var(--nut-ink);
  border: 1.5px solid #3A4856;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
}
.nut-field ::placeholder { color: #8FA0AD; opacity: 1; }
.nut-field input:focus,
.nut-field textarea:focus {
  border-color: var(--nut-tone);
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.25);
}
.nut-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 6px 0 22px;
  color: var(--nut-ink-soft);
  font-size: 0.95rem;
}
.nut-consent input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; accent-color: var(--nut-tone); }
.nut-submit { width: 100%; justify-content: center; }

/* Lists and FAQ */
.nut-dot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.nut-dot-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--nut-ink-soft); }
.nut-dot {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0D1117;
}
.nut-dot.c1 { background: var(--nut-tone); }
.nut-dot.c2 { background: var(--nut-warm); }
.nut-dot.c3 { background: var(--nut-rose); }
.nut-dot.c4 { background: var(--nut-sky); }
.nut-faq { display: grid; gap: 12px; }
.nut-faq details {
  background: var(--nut-surface);
  border: 1px solid var(--nut-line);
  border-radius: 14px;
  padding: 18px 22px;
}
.nut-faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  list-style: none;
  color: var(--nut-ink);
}
.nut-faq summary::-webkit-details-marker { display: none; }
.nut-faq details p { color: var(--nut-ink-soft); margin: 12px 0 0; }

/* Thanks */
.nut-thanks {
  position: relative;
  overflow: clip;
  min-height: 72dvh;
  display: flex;
  align-items: center;
  padding: 12dvh 0;
  isolation: isolate;
}
.nut-thanks .nut-wrap-inner { text-align: center; }
.nut-thanks .nut-hero-copy { margin: 0 auto; }
.nut-thanks .nut-lead { margin: 0 auto 28px; }

/* Legal */
.nut-legal-page { min-height: 100vh; padding: 12dvh 0 10dvh; }
.nut-legal { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.nut-legal h2 { margin-top: 1.6em; font-size: 1.5rem; }
.nut-legal p { color: var(--nut-ink-soft); }

/* Footer */
.nut-foot { background: #080B10; color: #B9C6CE; padding: 44px 0 28px; border-top: 1px solid var(--nut-line); }
.nut-foot-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; gap: 22px; }
.nut-foot .nut-brand { color: #F2F7F8; }
.nut-foot-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.nut-foot-links a { color: var(--nut-tone-hover); }
.nut-disclaimer { font-size: 0.9rem; margin: 0; max-width: 720px; }
.nut-copy { font-size: 0.85rem; margin: 0; color: #B9C6CE; }

/* Cookie banner (static, no motion) */
.nut-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 40px);
  background: #0F141B;
  color: var(--nut-ink);
  border-top: 2px solid var(--nut-tone);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}
.nut-cookie p { margin: 0; max-width: 720px; color: var(--nut-ink-soft); font-size: 0.95rem; }
.nut-cookie a { color: var(--nut-tone-hover); }
.nut-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.nut-cookie-accept {
  background: var(--nut-tone);
  color: #0D1117;
  border: 0;
  border-radius: 12px;
  padding: 11px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nut-cookie-accept:hover { background: var(--nut-tone-hover); }
.nut-cookie-decline {
  background: transparent;
  color: var(--nut-ink);
  border: 1.5px solid var(--nut-ink-soft);
  border-radius: 12px;
  padding: 11px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nut-cookie-decline:hover { border-color: var(--nut-ink); }

/* Stagger reveal (only when JS adds .js to html) */
.js .nut-stagger {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.45s ease, color 0.45s ease;
}
.js .nut-stagger.is-in { opacity: 1; transform: none; }

@media (max-width: 380px) {
  .nut-brand-text { font-size: 0.95rem; }
}

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