:root {
  --bg: #f3f1ef;
  --bg-elevated: #faf9f7;
  --ink: #141210;
  --ink-2: #3d3834;
  --ink-3: #6f675f;
  --line: rgba(20, 18, 16, 0.1);
  --accent: #9a3d55;
  --accent-soft: rgba(154, 61, 85, 0.12);
  --font-display: "Newsreader", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 50;
  background: #fff;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
}

.shell {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding-block: 1.35rem;
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-link {
  display: none;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.header-link:hover {
  color: var(--ink);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(250, 249, 247, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  overflow: hidden;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.48rem 0.7rem;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.hero {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: start;
  overflow: clip;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(243, 241, 239, 0.92) 0%, rgba(243, 241, 239, 0.55) 42%, rgba(243, 241, 239, 0.18) 100%),
    radial-gradient(ellipse 70% 55% at 78% 35%, rgba(154, 61, 85, 0.16), transparent 60%),
    radial-gradient(ellipse 45% 40% at 18% 80%, rgba(40, 30, 28, 0.07), transparent 55%),
    linear-gradient(160deg, #f7f4f1 0%, #ebe4df 48%, #ddd2cb 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-media {
  position: absolute;
  z-index: -1;
  top: 1.5rem;
  right: max(-2rem, calc((100% - var(--max)) / 2 - 1rem));
  bottom: auto;
  left: auto;
  width: min(46vw, 420px);
  display: grid;
  place-items: center;
  animation: drift 11s var(--ease) infinite;
}

.hero-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(20, 18, 16, 0.12));
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 5.25rem 0 2.75rem;
  width: min(100% - (var(--gutter) * 2), 34rem);
  margin-left: max(var(--gutter), calc((100% - var(--max)) / 2));
  animation: enter 1s var(--ease) both;
}

.hero-brand {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.hero-title {
  margin: 0 0 0.65rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.hero-lead {
  margin: 0 0 1.35rem;
  max-width: 32ch;
  color: var(--ink-2);
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    transform 180ms var(--ease),
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: rgba(20, 18, 16, 0.28);
  background: rgba(255, 255, 255, 0.35);
}

.section {
  padding: clamp(4.5rem, 9vw, 6.5rem) 0;
}

.section .shell > h2 {
  margin: 0 0 0.75rem;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-intro {
  margin: 0 0 2.75rem;
  max-width: 38ch;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-grid li {
  padding: 1.6rem 1.4rem 1.6rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
}

.feature-grid li:nth-child(odd) {
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}

.feature-grid li:nth-child(even) {
  padding-left: 2rem;
}

.feature-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-3);
  letter-spacing: -0.02em;
}

.feature-grid h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-grid p {
  margin: 0;
  color: var(--ink-2);
  max-width: 34ch;
}

.panel {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.panel .shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}

.panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 10ch;
}

.panel-copy p {
  margin: 0 0 1rem;
  color: var(--ink-2);
  max-width: 42ch;
}

.panel-copy p:last-child {
  margin-bottom: 0;
}

.panel-copy a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.panel-copy a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note-block {
  max-width: 46rem;
}

.note-block p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.cta-band .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.035em;
  font-weight: 600;
}

.cta-band p {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.95rem;
}

.site-footer {
  padding: 3rem 0 3.5rem;
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--ink-3);
  font-size: 0.92rem;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-footer a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-body {
  background:
    radial-gradient(ellipse 50% 30% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--bg);
  min-height: 100svh;
}

.page-body .site-header {
  position: relative;
}

.page {
  padding: 2.5rem 0 4.5rem;
  width: min(100% - (var(--gutter) * 2), 680px);
  margin-inline: auto;
}

.page h1 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1.05;
}

.page-meta {
  margin: 0 0 2rem;
  color: var(--ink-3);
  font-size: 0.9rem;
}

.page h2 {
  margin: 2.1rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.page p,
.page li {
  color: var(--ink-2);
}

.page ul {
  padding-left: 1.15rem;
}

.page a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

.page a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-1.2%, 1.6%, 0);
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 860px) {
  .header-link {
    display: inline;
  }
}

@media (max-width: 860px) {
  .hero-media {
    top: 3.5rem;
    right: -1.5rem;
    width: min(52vw, 240px);
    opacity: 0.45;
  }

  .hero-content {
    width: min(100% - (var(--gutter) * 2), 34rem);
    margin-left: var(--gutter);
    padding-top: 4.75rem;
    padding-bottom: 2.25rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid li:nth-child(odd),
  .feature-grid li:nth-child(even) {
    padding: 1.4rem 0;
    border-right: 0;
  }

  .panel .shell {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
