:root {
  --bg: #f5f1e9;
  --surface: #fbf8f2;
  --surface-strong: #eee9df;
  --text: #2e2f31;
  --text-soft: #6d6b68;
  --gold: #d3a538;
  --gold-deep: #aa7d17;
  --line: rgba(46, 47, 49, 0.16);
  --shadow: 0 24px 70px rgba(46, 47, 49, 0.08);
  --header-bg: rgba(245, 241, 233, 0.82);
  --radius-sm: 18px;
  --radius-md: 32px;
  --radius-lg: 56px;
  --container: 1180px;
  --header-height: 88px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #262729;
  --surface: #2e3032;
  --surface-strong: #353739;
  --text: #f2ede4;
  --text-soft: #bbb6ae;
  --gold: #e0b54b;
  --gold-deep: #f0c969;
  --line: rgba(242, 237, 228, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --header-bg: rgba(38, 39, 41, 0.84);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); overflow-x: clip; }
#page-top { position: absolute; inset: 0 auto auto 0; width: 1px; height: 1px; pointer-events: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  transition: background-color .35s ease, color .35s ease;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--gold); color: #242424; }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding: 128px 0; position: relative; }
.section-muted { background: var(--surface); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-height);
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color .25s ease, box-shadow .25s ease, background-color .35s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 35px rgba(0,0,0,.04); }
.header-inner { height: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; font-weight: 760; letter-spacing: -0.04em; white-space: nowrap; }
.brand-full { font-size: 20px; }
.brand-compact { display: none; font-size: 22px; align-items: center; isolation: isolate; }
.brand-compact-underlined { position: relative; display: inline-block; z-index: 0; isolation: isolate; }
.brand-compact-underlined::after {
  content: "";
  position: absolute;
  left: -3%; right: -5%; bottom: -5px;
  height: 7px;
  background: var(--gold);
  border-radius: 70% 35% 60% 40%;
  transform: rotate(-1.4deg) skewX(-8deg);
  clip-path: polygon(0 42%, 8% 26%, 20% 34%, 35% 22%, 51% 35%, 67% 19%, 82% 31%, 100% 38%, 99% 68%, 81% 63%, 64% 75%, 47% 63%, 29% 75%, 12% 65%, 0 61%);
  z-index: -1;
  opacity: .96;
}
.brand-underlined { position: relative; display: inline-block; z-index: 0; margin-inline-start: .24em; isolation: isolate; }
.brand-underlined::after {
  content: "";
  position: absolute;
  left: -2%; right: -3%; bottom: -7px;
  height: 9px;
  background: var(--gold);
  border-radius: 70% 35% 60% 40%;
  transform: rotate(-1.2deg) skewX(-8deg);
  clip-path: polygon(0 42%, 7% 28%, 17% 32%, 31% 22%, 45% 34%, 60% 18%, 74% 30%, 88% 21%, 100% 39%, 99% 69%, 82% 64%, 68% 76%, 53% 62%, 37% 75%, 21% 65%, 8% 73%, 0 59%);
  z-index: -1;
  opacity: .95;
}

.site-nav { justify-self: center; display: flex; gap: 32px; align-items: center; }
.site-nav a { position: relative; text-decoration: none; font-size: 15px; font-weight: 650; color: var(--text-soft); transition: color .2s ease, background-color .2s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
html[data-design="a"] .site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -8px;
  height: 2px;
  background: var(--gold);
  transition: right .25s ease;
}
html[data-design="a"] .site-nav a:hover::after,
html[data-design="a"] .site-nav a.active::after { right: 0; }
html[data-design="b"] .site-nav a { padding: 7px 0; }
html[data-design="b"] .site-nav a.active { color: var(--gold-deep); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { border: 1px solid var(--line); background: transparent; min-height: 42px; border-radius: 999px; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.icon-button:hover { transform: translateY(-1px); background: var(--surface); }
.language-toggle { display: flex; align-items: center; gap: 5px; padding: 0 14px; font-size: 12px; font-weight: 750; }
.language-toggle .language-other { opacity: .42; }
.theme-toggle { width: 42px; display: grid; place-items: center; font-size: 21px; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: inline; }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 11px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--text); transition: transform .2s ease, opacity .2s ease; }

.hero { min-height: 100svh; display: grid; align-items: center; padding-top: calc(var(--header-height) + 64px); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: 5%; border: 1px solid var(--line); border-radius: 50%; opacity: .65; }
.hero::after { content: ""; position: absolute; width: 330px; height: 330px; left: -180px; bottom: -80px; border: 1px solid var(--line); border-radius: 50%; opacity: .6; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); align-items: center; gap: clamp(64px, 9vw, 132px); position: relative; z-index: 1; }
.eyebrow { margin: 0 0 22px; color: var(--gold-deep); font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(58px, 7vw, 108px); line-height: .98; letter-spacing: -0.07em; font-weight: 760; max-width: 820px; }
.hero h1 span { display: block; }
.accent-word { position: relative; width: fit-content; }
.accent-word::after {
  content: ""; position: absolute; left: 1%; right: -3%; bottom: -9px; height: 14px; background: var(--gold); opacity: .93;
  clip-path: polygon(0 42%, 7% 26%, 16% 33%, 28% 20%, 41% 31%, 52% 17%, 65% 30%, 77% 21%, 89% 29%, 100% 20%, 99% 70%, 88% 61%, 74% 76%, 61% 63%, 49% 76%, 36% 64%, 23% 73%, 11% 64%, 0 72%);
  z-index: -1; transform: rotate(-.8deg);
}
.hero-lead { max-width: 680px; margin: 40px 0 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.55; color: var(--text-soft); }
.hero-actions { margin-top: 42px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--text); color: var(--bg); box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--text); font-weight: 720; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.hero-visual { justify-self: stretch; }
.numbers-panel {
  position: relative; min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center;
}
.numbers-panel::before { content: ""; position: absolute; inset: 34px; border: 1px solid var(--line); border-radius: 40px; }
.numbers-panel p { margin: 0; text-align: center; font-size: clamp(34px, 4vw, 56px); line-height: 1.03; letter-spacing: -0.06em; font-weight: 560; z-index: 2; }
.numbers-panel p strong { position: relative; display: inline-block; font-weight: 780; isolation: isolate; }
.numbers-panel p strong::after {
  content: ""; position: absolute; left: -3%; right: -5%; bottom: -12px; height: 12px; background: var(--gold); z-index: -1; transform: rotate(-1.5deg);
  clip-path: polygon(0 42%, 8% 30%, 21% 36%, 36% 25%, 50% 39%, 65% 22%, 79% 35%, 92% 25%, 100% 44%, 99% 65%, 83% 61%, 68% 75%, 52% 62%, 37% 73%, 21% 63%, 7% 72%, 0 61%);
}
.metric { position: absolute; color: var(--text-soft); opacity: .36; font-weight: 800; letter-spacing: -0.05em; }
.metric-a { top: 54px; left: 65px; font-size: 74px; }
.metric-b { top: 50px; right: 62px; font-size: 52px; color: var(--gold); opacity: .9; }
.metric-c { bottom: 55px; right: 58px; font-size: 34px; }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 26px; height: 44px; border: 1px solid var(--line); border-radius: 999px; display: grid; justify-items: center; padding-top: 9px; }
.scroll-cue span { width: 4px; height: 8px; background: var(--gold); border-radius: 999px; animation: scrollCue 1.8s ease-in-out infinite; }
@keyframes scrollCue { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(14px); opacity: 0; } }

.split-layout { display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr); gap: clamp(56px, 10vw, 150px); }
.section-index { margin: 0 0 15px; color: var(--gold-deep); font-size: 13px; font-weight: 850; letter-spacing: .18em; }
.section-heading h2 { margin: 0; font-size: clamp(44px, 5.5vw, 78px); line-height: 1; letter-spacing: -0.06em; }
.heading-mark { position: relative; display: inline-block; isolation: isolate; transition: color .32s ease; }
html[data-design="a"] .heading-mark::after {
  content: ""; position: absolute; left: -1%; right: -4%; bottom: -14px; height: 13px; background: var(--gold); z-index: -1; opacity: 0; transform: rotate(-1.3deg) scaleX(0); transform-origin: left center; transition: transform .42s cubic-bezier(.2,.75,.2,1), opacity .22s ease;
  clip-path: polygon(0 41%, 7% 26%, 18% 33%, 31% 22%, 45% 35%, 59% 19%, 72% 31%, 87% 21%, 100% 38%, 99% 66%, 85% 62%, 70% 75%, 56% 64%, 40% 76%, 24% 64%, 10% 73%, 0 61%);
}
html[data-design="a"] section.is-active .heading-mark::after { opacity: 1; transform: rotate(-1.3deg) scaleX(1); }
html[data-design="b"] .heading-mark { color: var(--text); }
html[data-design="b"] section.is-active .heading-mark { color: var(--gold-deep); }
.section-content { max-width: 720px; }
.section-content p { margin-top: 0; color: var(--text-soft); }
.section-content .lead, .lead { color: var(--text); font-size: clamp(26px, 3vw, 42px); line-height: 1.28; letter-spacing: -0.04em; font-weight: 640; }
.values { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.values span { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; }

.section-heading-row { display: flex; justify-content: space-between; gap: 80px; align-items: end; }
.heading-intro { max-width: 520px; margin: 0 0 4px; color: var(--text-soft); font-size: 19px; }
.service-grid { margin-top: 78px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 290px; padding: 42px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .25s ease, transform .25s ease; }
.service-card:hover { background: var(--surface); transform: translateY(-3px); }
.card-number { color: var(--gold-deep); font-size: 13px; font-weight: 850; letter-spacing: .12em; }
.service-card h3 { margin: 48px 0 18px; font-size: clamp(25px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.04em; }
.service-card p { margin: 0; max-width: 440px; color: var(--text-soft); }

.statement-section { overflow: hidden; }
.statement-section::before { content: "#"; position: absolute; right: -30px; top: 50%; transform: translateY(-52%); font-size: 420px; line-height: 1; font-weight: 900; color: var(--gold); opacity: .08; }
.statement { min-height: 380px; display: grid; place-items: center; text-align: center; }
.statement p { margin: 0; max-width: 1040px; font-size: clamp(38px, 5.4vw, 76px); line-height: 1.16; letter-spacing: -0.055em; font-weight: 650; }

.pricing-layout { align-items: start; }
.pricing-box { margin-top: 44px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-strong); display: grid; gap: 8px; }
.pricing-box span { color: var(--text-soft); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.pricing-box strong { font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.04em; }
.pricing-box .text-link { width: fit-content; margin-top: 18px; }

.contact-section { padding-bottom: 150px; }
.contact-grid { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(0, 1.05fr); gap: clamp(60px, 10vw, 150px); align-items: start; }
.contact-lead { max-width: 520px; margin-top: 42px; font-size: clamp(28px, 4vw, 48px); line-height: 1.2; letter-spacing: -0.045em; }
.contact-card { border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.contact-row > span { color: var(--text-soft); font-size: 14px; font-weight: 750; }
.contact-row a, .contact-row p { margin: 0; font-size: clamp(18px, 2.5vw, 27px); line-height: 1.35; letter-spacing: -0.03em; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contact-company p { font-size: 17px; color: var(--text-soft); }
.contact-company strong { color: var(--text); }

.site-footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; }
.footer-brand { justify-self: start; font-size: 16px; }
.footer-inner p { margin: 0; color: var(--text-soft); font-size: 13px; text-align: center; }
.footer-credit { color: var(--text-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease; }
.footer-credit:hover { color: var(--text); }
.back-to-top { justify-self: end; color: var(--text-soft); font-size: 14px; }

.demo-switcher { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--line); background: var(--header-bg); backdrop-filter: blur(14px); border-radius: 999px; box-shadow: var(--shadow); }
.demo-switcher > span { padding: 0 8px; color: var(--text-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.demo-switcher button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-weight: 800; }
.demo-switcher button.active { background: var(--gold); color: #242424; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  :root { --header-height: 76px; }
  .container { width: min(calc(100% - 36px), var(--container)); }
  .header-inner { grid-template-columns: auto 1fr auto auto; gap: 10px; }
  .brand-full { display: none; }
  .brand-compact { display: inline-flex; }
  .brand { grid-column: 1; grid-row: 1; align-self: center; position: relative; z-index: 130; }
  .header-actions { grid-column: 3; grid-row: 1; align-self: center; justify-self: end; position: relative; z-index: 130; }
  .menu-toggle { display: block; grid-column: 4; grid-row: 1; align-self: center; justify-self: end; position: relative; z-index: 130; }
  .site-nav {
    position: fixed; top: var(--header-height); right: 0; bottom: 0; left: 0; width: 100vw; min-width: 100vw; height: calc(100svh - var(--header-height)); min-height: 0; z-index: 120; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: 40px 36px 90px; overflow-y: auto; overflow-x: hidden; background: var(--bg); opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(100%, 0, 0); transition: transform .3s ease, opacity .2s ease, visibility 0s linear .3s, background-color .35s ease;
  }
  .site-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate3d(0, 0, 0); transition-delay: 0s; }
  .site-nav a { font-size: clamp(30px, 8vw, 52px); color: var(--text); letter-spacing: -0.04em; }
  html[data-design="b"] .site-nav a { padding: 7px 0; }
  .menu-open .menu-toggle span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-of-type(3) { opacity: 0; }
  .menu-open .menu-toggle span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 680px; width: 100%; }
  .numbers-panel { min-height: 430px; }
  .split-layout, .contact-grid { grid-template-columns: 1fr; }
  .section-heading-row { align-items: start; flex-direction: column; gap: 42px; }
  .section-content { max-width: none; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner p { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 90px 0; }
  .header-inner { gap: 5px; }
  .header-actions { gap: 4px; }
  .icon-button { min-height: 38px; }
  .language-toggle { padding: 0 9px; }
  .theme-toggle { width: 38px; }
  .menu-toggle { width: 40px; height: 40px; padding: 9px; }
  .site-nav { padding-inline: 24px; }
  .hero { padding-top: calc(var(--header-height) + 40px); }
  .hero h1 { font-size: clamp(52px, 17vw, 74px); }
  .hero-lead { margin-top: 34px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .numbers-panel { min-height: 350px; border-radius: 38px; }
  .numbers-panel::before { inset: 22px; border-radius: 28px; }
  .metric-a { top: 34px; left: 38px; font-size: 54px; }
  .metric-b { top: 34px; right: 35px; }
  .metric-c { bottom: 34px; right: 34px; font-size: 27px; }
  .scroll-cue { display: none; }
  .section-heading h2 { font-size: clamp(44px, 15vw, 66px); }
  .service-grid { grid-template-columns: 1fr; margin-top: 56px; }
  .service-card { min-height: 250px; padding: 32px 28px; }
  .service-card h3 { margin-top: 36px; }
  .contact-row { grid-template-columns: 1fr; gap: 7px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand, .back-to-top { justify-self: start; }
  .footer-inner p { grid-column: auto; grid-row: auto; }
  .demo-switcher { right: 10px; bottom: 10px; }
}
