:root {
  --bg: #f6f1e8;
  --bg-deep: #efe7d8;
  --bg-ink: #161310;
  --bg-panel: #fffaf2;
  --ink: #1a1612;
  --ink-soft: #5c5449;
  --ink-mute: #8a8174;
  --line: rgba(22, 19, 16, 0.1);
  --bronze: #a67c52;
  --bronze-deep: #8b6740;
  --sand: #d8c4a4;
  --white: #fffdf8;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--bg-ink);
  color: var(--white);
}

.skip:focus {
  top: 16px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(246, 241, 232, 0.78);
  backdrop-filter: blur(16px);
  transition: border-color 0.3s var(--ease);
}

.header.is-scrolled {
  border-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.04em;
  font-size: 15px;
  font-weight: 600;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--ink-soft);
  font-size: 14px;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang button {
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.lang button.is-on {
  background: var(--bg-ink);
  color: var(--white);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
}

.menu-btn span {
  top: 19px;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--bg-ink);
  color: var(--white);
}

.btn-line {
  border: 1px solid var(--ink);
  background: transparent;
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.kicker {
  margin: 0 0 18px;
  color: var(--bronze-deep);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}

.hero h1,
.page-hero h1,
.cta-block h2,
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(56px, 8vw, 96px);
}

.lede {
  max-width: 480px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.meta-row strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.meta-row span {
  color: var(--ink-mute);
  font-size: 13px;
}

.stage {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  margin-left: auto;
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #0b0b0b;
  box-shadow: 0 28px 80px rgba(22, 19, 16, 0.22);
}

.stage-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.stage-ring:nth-child(2) {
  inset: 8%;
}

.stage-disk {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #f3e6cf 0%, #d8c09a 42%, #c4a574 78%, #a88858 100%);
  box-shadow:
    inset 0 20px 50px rgba(255, 248, 232, 0.35),
    inset 0 -30px 40px rgba(90, 64, 32, 0.16);
  overflow: hidden;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.tracks {
  position: absolute;
  inset: 0;
}

.tracks path {
  fill: none;
  stroke: rgba(88, 62, 28, 0.28);
  stroke-width: 1.1;
  stroke-linecap: round;
}

.ball {
  position: absolute;
  top: 28%;
  left: 58%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c9c4bb 38%, #6d6860);
  box-shadow: 0 4px 10px rgba(40, 28, 12, 0.25);
  animation: wander 16s ease-in-out infinite;
}

@keyframes wander {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-70px, 80px); }
  50% { transform: translate(-120px, 20px); }
  75% { transform: translate(-30px, 110px); }
  100% { transform: translate(0, 0); }
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-deep);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2,
.cta-block h2,
.page-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
}

.section-head p {
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.card-num {
  color: var(--bronze);
  font-family: var(--serif);
  font-size: 28px;
}

.card h3 {
  margin: 48px 0 12px;
  font-size: 22px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: end;
}

.phone {
  margin: 0;
  text-align: center;
}

.phone-frame {
  width: min(100%, 280px);
  margin: 0 auto;
  padding: 11px;
  border-radius: 38px;
  background: #1a1612;
  box-shadow: 0 26px 60px rgba(22, 19, 16, 0.16);
}

.phone-frame img {
  width: 100%;
  display: block;
  border-radius: 28px;
  background: #eef3f8;
}

.phone.is-lead {
  transform: translateY(-18px);
}

.phone figcaption {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.step strong {
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--bronze-deep);
}

.step h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

.compat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.compat-list {
  display: grid;
  gap: 18px;
}

.compat-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.compat-item b {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink-mute);
}

.quote {
  padding: 36px;
  background: var(--bg-ink);
  color: var(--white);
}

.quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
}

.quote span {
  display: block;
  margin-top: 20px;
  color: var(--sand);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-block {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.cta-block p {
  max-width: 420px;
  margin: 16px 0 0;
  color: var(--ink-soft);
}

/* Legal / inner pages */
.page-hero {
  padding: 72px 0 36px;
}

.page-hero p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.legal {
  max-width: 760px;
  padding-bottom: 96px;
}

.legal h2 {
  margin: 40px 0 12px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
}

.legal h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 20px;
}

.faq {
  display: grid;
  gap: 12px;
  margin: 32px 0 48px;
}

.faq details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.contact-box {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--bg-ink);
  color: var(--white);
}

.contact-box p {
  margin: 8px 0 0;
  color: var(--sand);
}

.contact-box a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-box .btn {
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Footer */
.footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a,
.footer-copy {
  color: var(--ink-mute);
  font-size: 13px;
}

.footer-copy {
  margin: 28px 0 0;
}

/* Mobile */
@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    padding: 8px 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .hero-grid,
  .features,
  .steps,
  .compat,
  .cta-block,
  .footer-top,
  .contact-box {
    grid-template-columns: 1fr;
    display: block;
  }

  .phones {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 16px;
    -webkit-overflow-scrolling: touch;
  }

  .phone {
    flex: 0 0 72%;
    scroll-snap-align: center;
  }

  .phone.is-lead {
    transform: none;
  }

  .hero,
  .section {
    padding: 64px 0;
  }

  .stage {
    margin: 36px auto 0;
  }

  .card,
  .step,
  .quote,
  .contact-box {
    margin-top: 16px;
  }

  .cta-block .btn {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ball {
    animation: none;
  }
}
