:root {
  color-scheme: dark;
  --ink: #170b10;
  --ink-2: #241017;
  --cream: #f5ead8;
  --paper: #e9dcc8;
  --paper-2: #d7c6ad;
  --brass: #c5a05e;
  --ruby: #7b1d32;
  --sage: #778067;
  --line-light: rgba(245, 234, 216, 0.18);
  --line-dark: rgba(23, 11, 16, 0.16);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ink); }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.site { overflow: clip; background: var(--ink); }
.container { width: min(100% - 32px, 1160px); margin: 0 auto; }

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 64px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 180ms ease, border-color 180ms ease;
}

.topbar.is-scrolled {
  background: rgba(23, 11, 16, 0.84);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
}

.brand__seal {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(197, 160, 94, 0.72);
  border-radius: 50%;
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
}

.brand__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.topbar__actions { display: flex; align-items: center; gap: 8px; }

.countdown,
.lang-button {
  min-height: 42px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: rgba(23, 11, 16, 0.48);
  color: var(--cream);
}

.countdown {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 700;
}

.lang-button {
  min-width: 48px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 760;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 50%;
  transform: scale(1.02);
  animation: heroBreathe 16s ease-in-out infinite alternate;
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(10, 6, 7, 0.35) 0%, rgba(10, 6, 7, 0.18) 44%, rgba(23, 11, 16, 0.96) 100%),
    linear-gradient(90deg, rgba(10, 6, 7, 0.74), rgba(10, 6, 7, 0.08) 72%);
}

.hero__content {
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
  padding: 118px 0 38px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow--dark { color: #765928; }

.display,
.section-title,
.final-cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.04;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.display {
  max-width: 780px;
  font-size: 3.35rem;
}

.hero__text {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(245, 234, 216, 0.86);
  font-size: 1rem;
  line-height: 1.7;
}

.hero__actions {
  width: min(100%, 520px);
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.button {
  min-height: 50px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-weight: 760;
  line-height: 1.2;
}

.button--primary { background: var(--cream); color: var(--ink); }
.button--secondary { border-color: var(--line-light); background: rgba(23, 11, 16, 0.34); color: var(--cream); }

.hero__stats {
  width: min(100%, 620px);
  margin-top: 26px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line-light);
}

.hero__stats strong,
.hero__stats span { display: block; }
.hero__stats strong {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--paper);
  font-size: 1.55rem;
  font-weight: 400;
}
.hero__stats span {
  margin-top: 2px;
  color: rgba(245, 234, 216, 0.66);
  font-size: 0.72rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.section { padding: 82px 0; }
.section--paper { background: var(--cream); color: var(--ink); }
.section--dark { background: linear-gradient(180deg, var(--ink), var(--ink-2)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: 34px;
  align-items: start;
}

.section-title { max-width: 680px; font-size: 2.7rem; color: var(--ink); }
.section-title--light { color: var(--paper); }
.body-copy { max-width: 540px; color: rgba(23, 11, 16, 0.7); line-height: 1.75; }

.quiz {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff8ed;
  box-shadow: 0 20px 50px rgba(23, 11, 16, 0.14);
}

.quiz__progress {
  color: #765928;
  font-weight: 760;
  font-size: 0.78rem;
}

.quiz h3 {
  margin: 10px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.15;
}

.quiz__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quiz-option {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 11, 16, 0.18);
  border-radius: 8px;
  background: #f3e7d4;
  color: var(--ink);
  cursor: pointer;
  text-align: start;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.quiz-option.is-selected {
  border-color: var(--ruby);
  background: #ead5c2;
}

.match-result {
  min-height: 92px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: var(--ink);
  color: rgba(245, 234, 216, 0.82);
  line-height: 1.55;
}

.match-result strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 24px;
  align-items: end;
}

.section-head__note {
  margin: 0;
  color: rgba(245, 234, 216, 0.62);
  line-height: 1.65;
}

.estate-list {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.estate-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: rgba(245, 234, 216, 0.045);
}

.estate-card__image {
  min-height: 210px;
  border-radius: 8px;
  background-image: linear-gradient(180deg, rgba(123, 29, 50, 0.12), rgba(23, 11, 16, 0.42)), url("./assets/bottles-velvet.png");
  background-size: cover;
  background-position: center;
}

.estate-card:nth-child(3n + 2) .estate-card__image { background-position: 48% 38%; }
.estate-card:nth-child(3n) .estate-card__image { background-position: 54% 64%; }

.estate-card__rank {
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 780;
}

.estate-card h3 {
  margin: 8px 0 4px;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.estate-card__region,
.estate-card__desc {
  margin: 0;
  color: rgba(245, 234, 216, 0.64);
  line-height: 1.55;
}

.estate-card__desc { margin-top: 12px; }

.estate-card__meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 9px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  color: rgba(245, 234, 216, 0.82);
  font-size: 0.74rem;
  line-height: 1.1;
}

.estate-card__foot {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.estate-card__price {
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.small-button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-weight: 720;
}

.tasting {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.tasting img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  border-radius: 8px;
}

.ritual-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ritual-grid article {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff8ed;
}

.ritual-grid span {
  color: #765928;
  font-weight: 800;
  font-size: 0.76rem;
}

.ritual-grid h3 {
  margin: 8px 0 5px;
  font-size: 1rem;
}

.ritual-grid p {
  margin: 0;
  color: rgba(23, 11, 16, 0.68);
  line-height: 1.55;
}

.final-cta {
  padding: 82px 0 104px;
  background:
    linear-gradient(180deg, rgba(23, 11, 16, 0.16), rgba(23, 11, 16, 0.96)),
    url("./assets/bottles-velvet.png") center / cover;
}

.final-cta__inner {
  max-width: 760px;
}

.final-cta h2 {
  color: var(--paper);
  font-size: 2.55rem;
}

.lead-form {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.lead-form input {
  min-height: 52px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: rgba(23, 11, 16, 0.72);
  color: var(--cream);
}

.form-note {
  margin: 12px 0 0;
  color: rgba(245, 234, 216, 0.68);
}

.footer {
  padding: 28px 0 calc(86px + var(--safe-bottom));
  background: #0f070a;
  color: rgba(245, 234, 216, 0.68);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer__inner span:first-child {
  color: var(--cream);
  font-weight: 800;
  text-transform: uppercase;
}

.sticky-cta {
  position: fixed;
  z-index: 35;
  left: 16px;
  right: 16px;
  bottom: calc(14px + var(--safe-bottom));
}

.sticky-cta .button {
  width: 100%;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.panel-scrim {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.language-panel {
  position: fixed;
  z-index: 80;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(82svh, 640px);
  padding: 10px 16px calc(18px + var(--safe-bottom));
  border-top: 1px solid var(--line-light);
  border-radius: 8px 8px 0 0;
  background: rgba(23, 11, 16, 0.98);
  box-shadow: 0 -28px 72px rgba(0, 0, 0, 0.45);
}

.language-panel__handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 8px;
  background: rgba(245, 234, 216, 0.26);
}

.language-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.language-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-size: 1.4rem;
}

.language-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.language-option {
  min-height: 50px;
  padding: 0 12px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  text-align: start;
  line-height: 1.2;
}

.language-option[aria-selected="true"] {
  border-color: var(--brass);
  color: var(--brass);
  background: rgba(197, 160, 94, 0.12);
}

html.lang-de .display,
html.lang-fr .display,
html.lang-es .display,
html.lang-pt .display {
  max-width: 860px;
  font-size: 2.85rem;
  line-height: 1.08;
}

html.lang-de .section-title,
html.lang-fr .section-title,
html.lang-es .section-title,
html.lang-pt .section-title {
  font-size: 2.25rem;
  line-height: 1.1;
}

@keyframes heroBreathe {
  from { transform: scale(1.02); }
  to { transform: scale(1.07); }
}

@media (min-width: 720px) {
  .countdown { display: inline-flex; }
  .brand__name { font-size: 0.82rem; }
  .hero__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-cta { left: auto; right: 22px; width: 280px; }
  .footer { padding-bottom: 32px; }
}

@media (min-width: 980px) {
  .display { font-size: 5.4rem; }
  .section-title { font-size: 3.35rem; }
  .hero__content { padding-bottom: 58px; }
  .estate-list { gap: 18px; }
}

@media (max-width: 860px) {
  .split,
  .section-head,
  .tasting {
    grid-template-columns: 1fr;
  }
  .estate-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar { padding-inline: 12px; }
  .brand__name { max-width: 132px; }
  .display { font-size: 3rem; }
  .section-title,
  .final-cta h2 { font-size: 2.25rem; }
  html.lang-de .display,
  html.lang-fr .display,
  html.lang-es .display,
  html.lang-pt .display { font-size: 2.35rem; }
  html.lang-de .section-title,
  html.lang-fr .section-title,
  html.lang-es .section-title,
  html.lang-pt .section-title { font-size: 2rem; }
  .hero__stats { gap: 8px; }
  .hero__stats span { font-size: 0.66rem; }
  .quiz__options,
  .ritual-grid,
  .lead-form {
    grid-template-columns: 1fr;
  }
  .estate-card {
    grid-template-columns: 1fr;
  }
  .estate-card__image {
    min-height: 230px;
  }
  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
