/* BLUVIA home — light-only landing built on the shared design tokens. */

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: var(--bv-s-0);
  overflow-x: hidden;
  background: var(--bv-canvas);
  color: var(--bv-ink-2);
  font-family: var(--bv-font-sans);
  font-size: var(--bv-fs-body);
  line-height: var(--bv-lh-body);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.glow {
  display: none;
}

.container {
  width: var(--bv-full);
  max-width: calc(var(--bv-measure) + var(--bv-booking-w));
  margin: var(--bv-s-0) auto;
  padding: var(--bv-s-0) var(--bv-s-6);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bv-s-6);
  min-height: var(--bv-s-22);
  border-bottom: var(--bv-bw) solid var(--bv-line);
}

.logo {
  font-family: var(--bv-font-serif);
  font-size: var(--bv-fs-h4);
  font-weight: var(--bv-fw-regular);
  letter-spacing: var(--bv-ls-eyebrow-wide);
  color: var(--bv-ink);
}

.header-right,
.lang-toggle,
.accedi-btn {
  display: flex;
  align-items: center;
}

.header-right {
  gap: var(--bv-s-3);
}

.lang-toggle {
  border: var(--bv-bw) solid var(--bv-line-strong);
  border-radius: var(--bv-r-pill);
  overflow: hidden;
  background: var(--bv-surface);
}

.lang-btn {
  min-width: var(--bv-tap);
  min-height: var(--bv-tap);
  padding: var(--bv-s-0) var(--bv-s-3);
  border: var(--bv-s-0) solid transparent;
  background: transparent;
  color: var(--bv-ink-3);
  font-family: var(--bv-font-mono);
  font-size: var(--bv-fs-eyebrow-sm);
  font-weight: var(--bv-fw-medium);
  cursor: pointer;
}

.lang-btn.active {
  background: var(--bv-ink);
  color: var(--bv-on-ink);
}

.accedi-wrap {
  position: relative;
}

.accedi-btn {
  justify-content: center;
  gap: var(--bv-s-2);
  min-height: var(--bv-tap);
  padding: var(--bv-s-0) var(--bv-s-4);
  border: var(--bv-bw) solid var(--bv-line-ink);
  border-radius: var(--bv-r-md);
  background: var(--bv-surface);
  color: var(--bv-ink);
  font-size: var(--bv-fs-meta);
  font-weight: var(--bv-fw-semibold);
  cursor: pointer;
  transition: background var(--bv-dur-fast) var(--bv-ease);
}

.accedi-btn:hover {
  background: var(--bv-surface-sunk);
}

.access-chevron {
  display: inline-block;
  transition: transform var(--bv-dur-fast) var(--bv-ease);
}

.accedi-btn.open .access-chevron {
  transform: rotate(180deg);
}

.accedi-menu {
  position: absolute;
  top: calc(var(--bv-full) + var(--bv-s-2));
  right: var(--bv-s-0);
  z-index: 2;
  min-width: var(--bv-grid-min);
  overflow: hidden;
  visibility: hidden;
  opacity: var(--bv-s-0);
  transform: translateY(calc(var(--bv-s-2) * -1));
  border: var(--bv-bw) solid var(--bv-line-strong);
  border-radius: var(--bv-r-md);
  background: var(--bv-surface);
  box-shadow: var(--bv-shadow-soft);
  pointer-events: none;
  transition: opacity var(--bv-dur-fast) var(--bv-ease), transform var(--bv-dur-fast) var(--bv-ease);
}

.accedi-menu.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(var(--bv-s-0));
  pointer-events: auto;
}

.accedi-menu a {
  display: block;
  min-height: var(--bv-tap);
  padding: var(--bv-s-4);
  border-bottom: var(--bv-bw) solid var(--bv-line);
  color: var(--bv-ink);
  font-size: var(--bv-fs-body-sm);
  font-weight: var(--bv-fw-semibold);
  text-decoration: none;
}

.accedi-menu a:last-child {
  border-bottom: var(--bv-s-0) solid transparent;
}

.accedi-menu a:hover {
  background: var(--bv-surface-sunk);
}

.accedi-menu .sub {
  display: block;
  margin-top: var(--bv-s-1);
  color: var(--bv-ink-3);
  font-size: var(--bv-fs-meta);
  font-weight: var(--bv-fw-regular);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--bv-s-24) var(--bv-s-0) var(--bv-s-22);
  text-align: center;
}

.hero-label,
.hero-sub-label,
.section-label {
  font-family: var(--bv-font-mono);
  font-size: var(--bv-fs-eyebrow);
  font-weight: var(--bv-fw-medium);
  letter-spacing: var(--bv-ls-mono);
  text-transform: uppercase;
  color: var(--bv-ink-3);
}

.hero-title {
  margin: var(--bv-s-3) var(--bv-s-0) var(--bv-s-0);
  font-family: var(--bv-font-serif);
  font-size: var(--bv-fs-display);
  font-weight: var(--bv-fw-regular);
  line-height: var(--bv-lh-tight);
  letter-spacing: var(--bv-ls-display);
  color: var(--bv-ink);
}

.hero-tagline {
  margin-bottom: var(--bv-s-4);
  font-family: var(--bv-font-serif);
  font-size: var(--bv-fs-h4);
  font-style: italic;
  color: var(--bv-ink-2);
}

.hero-sub-label {
  margin-bottom: var(--bv-s-6);
}

.hero-headline {
  max-width: var(--bv-measure);
  margin: var(--bv-s-0) auto var(--bv-s-3);
  font-size: var(--bv-fs-lead);
  font-weight: var(--bv-fw-semibold);
  line-height: var(--bv-lh-snug);
  color: var(--bv-ink);
}

.hero-description {
  max-width: var(--bv-measure-sm);
  margin: var(--bv-s-0) auto var(--bv-s-8);
  color: var(--bv-ink-2);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: var(--bv-s-3);
  width: var(--bv-full);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--bv-cta-h);
  padding: var(--bv-s-0) var(--bv-s-6);
  border: var(--bv-bw) solid var(--bv-line-ink);
  border-radius: var(--bv-r-md);
  font-size: var(--bv-fs-body-sm);
  font-weight: var(--bv-fw-bold);
  color: var(--bv-ink);
  text-decoration: none;
  transition: background var(--bv-dur-fast) var(--bv-ease), color var(--bv-dur-fast) var(--bv-ease);
}

.btn-solid {
  border-color: var(--bv-coral);
  background: var(--bv-coral);
  color: var(--bv-on-coral);
  font-size: var(--bv-fs-lead);
}

.btn-solid:hover {
  border-color: var(--bv-coral-hover);
  background: var(--bv-coral-hover);
}

.btn-ghost {
  background: var(--bv-surface);
}

.btn-ghost:hover {
  background: var(--bv-surface-sunk);
}

.cards-section,
.steps-grid,
.benefits-grid {
  display: grid;
  gap: var(--bv-s-6);
}

.cards-section {
  grid-template-columns: repeat(2, minmax(var(--bv-s-0), var(--bv-col-text)));
  margin-bottom: var(--bv-s-24);
}

.card,
.step-card,
.benefit-card {
  background: var(--bv-surface);
  border: var(--bv-bw) solid var(--bv-line-strong);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--bv-s-4);
  padding: var(--bv-s-8);
  border-radius: var(--bv-r-lg);
}

.card .btn {
  margin-top: auto;
}

.card-title,
.benefit-title,
.premium-title {
  font-family: var(--bv-font-serif);
  font-weight: var(--bv-fw-regular);
  line-height: var(--bv-lh-title);
  color: var(--bv-ink);
}

.card-title {
  font-size: var(--bv-fs-h3);
}

.card-text,
.step-text,
.benefit-text,
.premium-text {
  margin: var(--bv-s-0);
  color: var(--bv-ink-2);
}

.section-header {
  max-width: var(--bv-measure);
  margin: var(--bv-s-0) auto var(--bv-s-10);
  text-align: center;
}

.section-title {
  margin-top: var(--bv-s-2);
  font-family: var(--bv-font-serif);
  font-size: var(--bv-fs-h2);
  line-height: var(--bv-lh-title);
  color: var(--bv-ink);
}

.how-section,
.benefits-section {
  margin-bottom: var(--bv-s-24);
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(var(--bv-s-0), var(--bv-col-text)));
}

.step-card,
.benefit-card {
  padding: var(--bv-s-6);
  border-radius: var(--bv-r-md);
}

.step-number {
  margin-bottom: var(--bv-s-3);
  font-family: var(--bv-font-mono);
  font-size: var(--bv-fs-h4);
  color: var(--bv-ink-3);
}

.step-title {
  margin-bottom: var(--bv-s-2);
  font-size: var(--bv-fs-meta);
  font-weight: var(--bv-fw-bold);
  letter-spacing: var(--bv-ls-eyebrow);
  text-transform: uppercase;
  color: var(--bv-ink);
}

.benefits-grid {
  grid-template-columns: repeat(3, minmax(var(--bv-s-0), var(--bv-col-text)));
}

.benefit-card {
  border-top-color: var(--bv-ink);
}

.benefit-title {
  margin-bottom: var(--bv-s-3);
  font-size: var(--bv-fs-h4);
}

.premium-block {
  max-width: var(--bv-measure);
  margin: var(--bv-s-0) auto var(--bv-s-24);
  padding: var(--bv-s-10) var(--bv-s-0);
  border-top: var(--bv-bw) solid var(--bv-line-ink);
  border-bottom: var(--bv-bw) solid var(--bv-line);
  text-align: center;
}

.premium-title {
  margin-bottom: var(--bv-s-4);
  font-size: var(--bv-fs-h3);
  font-style: italic;
}

.footer {
  padding: var(--bv-s-10) var(--bv-s-0) var(--bv-s-14);
  border-top: var(--bv-bw) solid var(--bv-line);
  text-align: center;
}

.footer-brand,
.footer-meta {
  color: var(--bv-ink-3);
  font-size: var(--bv-fs-meta);
}

.footer-brand {
  margin-bottom: var(--bv-s-2);
}

.footer-brand a,
.footer-legal a {
  color: var(--bv-ink);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--bv-s-4);
  margin-top: var(--bv-s-4);
}

.footer-legal a {
  min-height: var(--bv-tap);
  display: inline-flex;
  align-items: center;
  font-size: var(--bv-fs-meta);
  text-decoration: underline;
  text-underline-offset: var(--bv-s-1);
}

.reveal-target.reveal-pending {
  opacity: var(--bv-s-0);
  transform: translateY(var(--bv-s-4));
}

.reveal-target.reveal {
  animation: home-reveal var(--bv-dur-fast) var(--bv-ease) forwards;
}

.reveal-delay-1 { animation-delay: var(--bv-dur-fast); }
.reveal-delay-2 { animation-delay: var(--bv-dur); }
.reveal-delay-3 { animation-delay: calc(var(--bv-dur) + var(--bv-dur-fast)); }

@keyframes home-reveal {
  from { opacity: var(--bv-s-0); transform: translateY(var(--bv-s-4)); }
  to { opacity: 1; transform: translateY(var(--bv-s-0)); }
}

[data-en] {
  display: none;
}

html[lang="en"] [data-it] {
  display: none;
}

html[lang="en"] [data-en] {
  display: inline;
}

html[lang="en"] span[data-en],
html[lang="en"] div[data-en],
html[lang="en"] p[data-en] {
  display: block;
}

.lang-btn:focus-visible,
.accedi-btn:focus-visible,
.accedi-menu a:focus-visible,
.btn:focus-visible,
.footer a:focus-visible {
  outline: var(--bv-bw-focus) solid var(--bv-focus);
  outline-offset: var(--bv-s-1);
}

@media (max-width: 860px) {
  .steps-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(var(--bv-s-0), var(--bv-col-text)));
  }
}

@media (max-width: 600px) {
  .container {
    padding: var(--bv-s-0) var(--bv-s-4);
  }

  .header {
    align-items: flex-start;
    padding: var(--bv-s-4) var(--bv-s-0);
  }

  .header-right {
    align-items: flex-end;
    flex-direction: column;
  }

  .accedi-menu {
    min-width: calc(100vw - var(--bv-s-8));
  }

  .hero {
    padding: var(--bv-s-16) var(--bv-s-0) var(--bv-s-14);
  }

  .hero-title {
    font-size: var(--bv-fs-h1);
  }

  .hero-ctas,
  .footer-legal {
    flex-direction: column;
  }

  .hero-ctas .btn,
  .card .btn {
    width: var(--bv-full);
  }

  .cards-section,
  .steps-grid,
  .benefits-grid {
    grid-template-columns: minmax(var(--bv-s-0), var(--bv-col-text));
  }

  .section-title {
    font-size: var(--bv-fs-h3);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-target.reveal-pending,
  .reveal-target.reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
