@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 --mesh-x { syntax: '<percentage>'; inherits: false; initial-value: 20%; }
@property --mesh-y { syntax: '<percentage>'; inherits: false; initial-value: 30%; }
@property --edge-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --vida-bg: #0D1117;
  --vida-surface: #161E2A;
  --vida-surface-2: #1E2938;
  --vida-tone: #34E0C8;
  --vida-tone-hover: #5CF0DA;
  --vida-ink: #EEF4F8;
  --vida-muted: #A9B6C4;
  --vida-on-tone: #0A1714;
  --vida-warm: #F2B872;
  --vida-violet: #A897FF;
  --vida-coral: #FF8A7A;
  --vida-line: rgba(238, 244, 248, 0.12);
  --vida-field-line: #6B7A8C;
  --vida-gradient: linear-gradient(120deg, #0F4C5C 0%, #17776C 100%);
  --vida-glow-a: rgba(52, 224, 200, 0.35);
  --vida-glow-b: rgba(168, 151, 255, 0.28);
  --vida-glow-c: rgba(242, 184, 114, 0.18);
  --vida-radius: 16px;
  --vida-radius-card: 20px;
  --vida-radius-pill: 999px;
  --vida-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --vida-pad: 10dvh;
  --vida-wrap: 1200px;
  --font-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

@media (max-width: 760px) {
  :root { --vida-pad: 6dvh; }
}

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--vida-tone); }
a:hover { color: var(--vida-tone-hover); }
:focus-visible { outline: 3px solid var(--vida-tone); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  color: var(--vida-ink);
}
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ol, ul { margin: 0; }

.vida-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.vida-wrap {
  max-width: var(--vida-wrap);
  margin-inline: auto;
  padding-inline: 20px;
  width: 100%;
}

.vida-section {
  position: relative;
  overflow: clip;
  padding-block: var(--vida-pad);
}
.vida-section-tight { padding-block: calc(var(--vida-pad) * 0.6); }

.vida-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--vida-tone);
  font-weight: 600;
  margin-bottom: 1rem;
}

.vida-lead {
  font-size: 1.1rem;
  color: var(--vida-muted);
  max-width: 62ch;
}

.vida-head-wrap { max-width: 720px; margin-bottom: 2.5rem; }
.vida-head-center { margin-inline: auto; text-align: center; }

/* ---------- Header ---------- */
.vida-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 20px;
  background: var(--vida-surface);
  border-bottom: 1px solid var(--vida-line);
}

.vida-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--vida-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.vida-brand:hover { color: var(--vida-ink); }

.vida-logo-mark { color: var(--vida-tone); display: inline-flex; }
.vida-logo-mark svg { width: 36px; height: 36px; display: block; }

.vida-menu-switch {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.vida-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 9px;
  border: 1px solid var(--vida-line);
  border-radius: 10px;
}
.vida-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--vida-ink);
  border-radius: 2px;
}
.vida-menu-switch:focus-visible ~ .vida-menu-toggle {
  outline: 3px solid var(--vida-tone);
  outline-offset: 3px;
}

.vida-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.vida-nav-links a {
  color: var(--vida-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.vida-nav-links a:hover,
.vida-nav-links a[aria-current="page"] {
  color: var(--vida-tone);
  border-bottom-color: var(--vida-tone);
}

.vida-scroll-bar {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 0;
  background: var(--vida-tone);
  pointer-events: none;
}
@keyframes progress-grow { to { width: 100%; } }
@supports (animation-timeline: scroll()) {
  .vida-scroll-bar {
    animation: progress-grow linear both;
    animation-timeline: scroll();
  }
}

@media (max-width: 760px) {
  .vida-menu-toggle { display: flex; }
  .vida-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--vida-surface);
    border-bottom: 1px solid var(--vida-line);
    padding: 8px 20px 16px;
  }
  .vida-nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--vida-line);
  }
  #vida-menu-switch:checked ~ .vida-nav-links { display: flex; }
}

/* ---------- Footer ---------- */
.vida-foot {
  background: var(--vida-surface);
  border-top: 1px solid var(--vida-line);
  padding: 2.5rem 0 2rem;
  color: var(--vida-muted);
}
.vida-foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.vida-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
}
.vida-foot-links a {
  color: var(--vida-ink);
  text-decoration: none;
}
.vida-foot-links a:hover { color: var(--vida-tone); }
.vida-disclaimer {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.9rem;
  font-style: italic;
}
.vida-copy { margin: 0; font-size: 0.85rem; }

/* ---------- Buttons ---------- */
.vida-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: var(--vida-radius-pill);
  background: var(--vida-tone);
  color: var(--vida-on-tone);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, scale 0.3s ease;
}
.vida-pill:hover {
  background: var(--vida-tone-hover);
  color: var(--vida-on-tone);
  scale: 1.03;
  box-shadow: 0 8px 24px rgba(52, 224, 200, 0.25);
}
.vida-pill:active { scale: 1; }

.vida-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--vida-radius-pill);
  border: 1px solid var(--vida-ink);
  background: transparent;
  color: var(--vida-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.vida-ghost:hover {
  border-color: var(--vida-tone);
  color: var(--vida-tone);
}

/* ---------- Decorative mesh (hero) ---------- */
@keyframes mesh-drift {
  from { --mesh-x: 12%; --mesh-y: 22%; }
  to { --mesh-x: 78%; --mesh-y: 64%; }
}
.vida-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mesh-x) var(--mesh-y), var(--vida-glow-a), transparent 45%),
    radial-gradient(circle at 85% 15%, var(--vida-glow-b), transparent 42%),
    radial-gradient(circle at 15% 90%, var(--vida-glow-c), transparent 50%);
  animation: mesh-drift 24s ease-in-out infinite alternate;
}

.vida-hero-index {
  position: relative;
  overflow: clip;
  min-height: 88dvh;
  display: flex;
  align-items: center;
  padding-block: 14dvh 10dvh;
  background:
    linear-gradient(110deg, rgba(13, 17, 23, 0.94) 0%, rgba(13, 17, 23, 0.7) 60%, rgba(13, 17, 23, 0.88) 100%),
    url('img/bg.webp') center / cover no-repeat,
    var(--vida-bg);
}

.vida-hero-about {
  position: relative;
  overflow: clip;
  padding-block: 14dvh 8dvh;
  background: var(--vida-bg);
}

.vida-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.vida-hero-copy h1 { margin-bottom: 1rem; }
.vida-hero-copy .vida-lead { margin-bottom: 2rem; }

.vida-reserve-hero { padding-block: 14dvh 4dvh; }

/* ---------- Scroll reveal ---------- */
@supports (animation-timeline: view()) {
  @keyframes vida-slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: none; }
  }
  .vida-reveal {
    animation: vida-slide-up 0.6s linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

/* ---------- Bento grid ---------- */
.vida-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.vida-bento-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--vida-radius-card);
  padding: 2rem;
  background: var(--vida-surface);
  border: 1px solid var(--vida-line);
  box-shadow: var(--vida-shadow);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.3s ease, scale 0.45s ease, box-shadow 0.45s ease;
}
.vida-bento-card:hover {
  scale: 1.02;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.vida-bento-card > * {
  position: relative;
  z-index: 1;
}
.vida-bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(238, 244, 248, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.vida-bento-card:hover::after { opacity: 1; }

.vida-span-2 { grid-column: span 2; }
.vida-span-3 { grid-column: span 3; }
.vida-span-4 { grid-column: span 4; }
.vida-span-6 { grid-column: span 6; }

.vida-bento-lead {
  background: var(--vida-gradient);
  border-color: transparent;
  color: var(--vida-ink);
}
.vida-bento-lead h3,
.vida-bento-lead p { color: var(--vida-ink); }
.vida-bento-lead p { color: rgba(238, 244, 248, 0.9); }
.vida-bento-lead .vida-icon {
  background: rgba(238, 244, 248, 0.16);
  color: var(--vida-ink);
}

.vida-edge::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--edge-angle), var(--vida-tone), transparent 28%, var(--vida-violet), transparent 62%, var(--vida-tone));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  animation: edge-spin 9s linear infinite;
}
@keyframes edge-spin {
  to { --edge-angle: 360deg; }
}

.vida-bento-wide {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.vida-bento-wide > div { flex: 1; }

.vida-word-stat {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--vida-tone);
  margin-bottom: 0.75rem;
}

.vida-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(52, 224, 200, 0.14);
  color: var(--vida-tone);
  margin-bottom: 1rem;
  flex: 0 0 52px;
}
.vida-ico {
  width: 26px;
  height: 26px;
  display: block;
}

/* ---------- Steps ---------- */
.vida-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
  padding: 0;
}
.vida-steps-four { grid-template-columns: repeat(4, 1fr); }

.vida-step {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--vida-radius);
  background: var(--vida-surface-2);
  border: 1px solid var(--vida-line);
}
.vida-step > * { position: relative; z-index: 1; }
.vida-step-num {
  position: absolute !important;
  right: 1rem;
  top: -0.6rem;
  z-index: 0 !important;
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--vida-tone);
  opacity: 0.07;
  pointer-events: none;
}

/* ---------- Photo band ---------- */
.vida-band-photo {
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.84), rgba(13, 17, 23, 0.93)),
    url('img/bg2.webp') center / cover no-repeat,
    var(--vida-bg);
}
.vida-band-inner { position: relative; z-index: 1; max-width: 820px; }

/* ---------- CTA strip ---------- */
.vida-cta-strip {
  background: var(--vida-gradient);
  color: var(--vida-ink);
  border-radius: var(--vida-radius-card);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--vida-shadow);
}
.vida-cta-strip h2 { color: var(--vida-ink); }
.vida-cta-strip p { color: rgba(238, 244, 248, 0.92); max-width: 56ch; margin-inline: auto; }
.vida-cta-strip .vida-pill { margin-top: 0.5rem; }

/* ---------- Split (about) ---------- */
.vida-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.vida-figure {
  margin: 0;
  border-radius: var(--vida-radius-card);
  overflow: hidden;
  box-shadow: var(--vida-shadow);
}
.vida-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- Reserve page ---------- */
.vida-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.vida-plan-card {
  background: var(--vida-surface);
  border: 1px solid var(--vida-line);
  border-radius: var(--vida-radius-card);
  padding: 2rem;
  box-shadow: var(--vida-shadow);
}
.vida-plan-card p { color: var(--vida-muted); }

.vida-badge-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.vida-badge-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--vida-muted);
  font-size: 0.95rem;
}
.vida-badge {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--vida-on-tone);
}
.vida-badge-1 { background: var(--vida-tone); }
.vida-badge-2 { background: var(--vida-warm); }
.vida-badge-3 { background: var(--vida-violet); }
.vida-badge-4 { background: var(--vida-coral); }

.vida-form-wrap {
  max-width: 600px;
  margin-inline: auto;
  background: var(--vida-surface);
  border: 1px solid var(--vida-line);
  border-radius: var(--vida-radius-card);
  padding: 2rem;
  box-shadow: var(--vida-shadow);
}
.vida-form-wrap h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }

.vida-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.vida-field label {
  font-weight: 600;
  font-size: 0.95rem;
}
.vida-field input,
.vida-field textarea {
  font: inherit;
  color: var(--vida-ink);
  background: var(--vida-bg);
  border: 1px solid var(--vida-field-line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}
.vida-field textarea { resize: vertical; min-height: 110px; }

.vida-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--vida-muted);
  margin-bottom: 1.25rem;
}
.vida-check input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 0.3rem;
  accent-color: var(--vida-tone);
}
.vida-check a { color: var(--vida-tone); }

.vida-submit {
  width: 100%;
  font-size: 1rem;
}

.vida-faq {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}
.vida-faq details {
  background: var(--vida-surface);
  border: 1px solid var(--vida-line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.vida-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: var(--vida-ink);
}
.vida-faq summary::-webkit-details-marker { display: none; }
.vida-faq p {
  margin: 0.75rem 0 0;
  color: var(--vida-muted);
}

/* ---------- Thank page ---------- */
.vida-thank {
  min-height: 80dvh;
  display: flex;
  align-items: center;
  padding-block: var(--vida-pad);
}
.vida-thank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.vida-thank-grid .vida-lead { margin-bottom: 1.25rem; }
.vida-thank-grid p { color: var(--vida-muted); }

/* ---------- Legal pages ---------- */
.vida-legal {
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: 10dvh 12dvh;
}
.vida-legal h1 { margin-bottom: 1.5rem; }
.vida-legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.vida-legal section { margin-bottom: 2rem; }
.vida-legal p {
  color: var(--vida-muted);
  max-width: 80ch;
}

/* ---------- Cookie banner ---------- */
.vida-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 20px;
  background: var(--vida-surface-2);
  border-top: 1px solid var(--vida-line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}
.vida-cookie[hidden] { display: none; }
.vida-cookie p {
  margin: 0;
  color: var(--vida-ink);
  font-size: 0.95rem;
}
.vida-cookie a { color: var(--vida-tone); }
.vida-cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.vida-cookie-btn { padding: 10px 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .vida-steps-four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .vida-bento { grid-template-columns: 1fr; }
  .vida-bento > * { grid-column: 1 / -1; }
  .vida-bento-wide { flex-direction: column; gap: 0.5rem; }
  .vida-steps,
  .vida-steps-four,
  .vida-trio { grid-template-columns: 1fr; }
  .vida-split,
  .vida-thank-grid { grid-template-columns: 1fr; gap: 2rem; }
  .vida-cta-strip { padding: 2.25rem 1.25rem; }
  .vida-form-wrap { padding: 1.5rem; }
  .vida-hero-index { min-height: 80dvh; }
  .vida-nav-links { gap: 0; }
  .vida-cookie { padding: 0.9rem 16px; }
}

@media (max-width: 380px) {
  .vida-brand { font-size: 0.95rem; }
  .vida-pill { padding: 13px 22px; }
}

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