:root {
  --page-bg: #f7f3eb;
  --panel-bg: rgba(255, 252, 246, 0.84);
  --text-primary: #141414;
  --text-secondary: #5d5b57;
  --line: rgba(20, 20, 20, 0.08);
  --accent: #0f1430;
  --accent-soft: #dfe8fb;
  --button-dark: #111111;
  --button-dark-text: #faf8f3;
  --button-light: rgba(255, 255, 255, 0.72);
  --button-light-text: #171717;
  --shadow: 0 28px 90px rgba(20, 20, 20, 0.07);
  --container: min(1440px, calc(100vw - 72px));
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.95), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(230, 238, 255, 0.58), transparent 28%),
    linear-gradient(180deg, #faf7f1 0%, #f5f0e6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: radial-gradient(rgba(116, 106, 92, 0.22) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
}

.page-shell {
  position: relative;
  min-height: 100dvh;
  width: var(--container);
  margin: 0 auto;
  padding: 22px 0 36px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(252, 249, 243, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(15, 20, 48, 0.06);
}

.brand-mark img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}

.brand-word {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 26px;
  min-width: 0;
}

.topnav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.topnav a:hover {
  color: var(--text-primary);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.language-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
  min-width: 54px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.lang-btn.is-active {
  background: #111111;
  color: #f8f4ed;
}

.hero {
  min-height: calc(100dvh - 110px);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(40px, 8vw, 96px) 0 24px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #6f665a;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4.4rem, 7vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.hero-subtitle {
  margin: 24px 0 0;
  max-width: 30rem;
  color: var(--text-secondary);
  font-size: 1.06rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.cta:active {
  transform: translateY(1px) scale(0.99);
}

.cta-primary {
  background: var(--button-dark);
  color: var(--button-dark-text);
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.12);
}

.cta-primary:hover {
  transform: translateY(-1px);
}

.cta-secondary {
  background: var(--button-light);
  color: var(--button-light-text);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.92);
}

.cta-compact {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 0.9rem;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 100%;
  min-width: 0;
}

.visual-frame {
  position: relative;
  width: min(100%, 820px);
  aspect-ratio: 1;
  background: transparent;
  overflow: visible;
  transform: translateX(8%);
}

.logo-static-fallback {
  position: absolute;
  inset: 16%;
  z-index: 0;
  display: grid;
  place-items: center;
  opacity: 1;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.logo-static-fallback img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.logo-fallback-letter {
  display: none;
  place-items: center;
  width: 52%;
  max-width: 240px;
  aspect-ratio: 1;
  border-radius: 16px;
  color: var(--button-dark-text);
  background: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 6rem;
  font-weight: 600;
  line-height: 1;
}

.visual-frame.is-animated .logo-static-fallback {
  opacity: 0;
}

.visual-frame.is-image-error .logo-static-fallback img {
  display: none;
}

.visual-frame.is-image-error .logo-fallback-letter {
  display: grid;
}

#logo-evolution {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 1180px) {
  .page-shell {
    width: min(100vw - 40px, 1440px);
  }

  .topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .topnav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100vw - 28px, 1440px);
    padding-top: 16px;
  }

  .topbar {
    top: 10px;
    gap: 16px;
    padding: 12px 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 28px;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-title {
    font-size: clamp(3.5rem, 12vw, 5.2rem);
  }

  .hero-subtitle {
    max-width: 32rem;
  }

  .hero-visual {
    justify-content: center;
  }

  .visual-frame {
    width: min(100%, 680px);
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100vw - 12px, 1440px);
    padding-inline: 0;
  }

  .topbar {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 12px 12px;
  }

  .brand-word {
    display: none;
  }

  .topbar-actions {
    gap: 8px;
    justify-self: end;
    min-width: 0;
  }

  .language-switch {
    padding: 3px;
  }

  .lang-btn {
    min-width: 52px;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .cta-compact {
    padding-inline: 14px;
  }

  .hero {
    gap: 22px;
    padding-top: 22px;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .hero-title {
    font-size: clamp(2.9rem, 13vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 28px;
  }

  .cta {
    width: 100%;
  }

  .visual-frame {
    width: 100%;
  }
}

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

  .cta,
  .lang-btn,
  .topnav a,
  .logo-static-fallback {
    transition: none;
  }

  #logo-evolution {
    display: none;
  }
}


.is-embedded .topbar {
  display: none;
}

.is-embedded .page-shell {
  width: min(100vw - 40px, 1440px);
  padding-top: 0;
}

.is-embedded .hero {
  min-height: 100dvh;
  padding-top: clamp(24px, 6vw, 56px);
}

@media (max-width: 860px) {
  .is-embedded .page-shell {
    width: min(100vw - 28px, 1440px);
  }
}

@media (max-width: 560px) {
  .is-embedded .page-shell {
    width: min(100vw - 12px, 1440px);
  }

  .is-embedded .hero {
    padding-top: 80px;
  }
}
