:root {
  --ink: #0a0b0c;
  --ink-2: #111315;
  --ink-3: #171a1d;
  --paper: #f1ede4;
  --paper-2: #e3dccd;
  --white: #faf8f3;
  --text: #f5f1e8;
  --muted: #a4a9ad;
  --muted-dark: #62666a;
  --gold: #c7a24c;
  --gold-hi: #e3c77f;
  --gold-deep: #7a5e22;
  --green: #77927b;
  --line: rgba(255, 255, 255, .12);
  --line-dark: rgba(10, 11, 12, .14);
  --max: 1240px;
  --header: 72px;
  --radius: 24px;
  --shadow: 0 28px 90px rgba(0, 0, 0, .34);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 18px); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, blockquote { margin-top: 0; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: clamp(82px, 9vw, 132px) 0; border-top: 1px solid var(--line); }
.section.light { background: var(--paper); color: var(--ink-2); border-color: var(--line-dark); }
.section.soft { background: #0e1012; }
.section[id] { scroll-margin-top: calc(var(--header) + 18px); }

.skip-link {
  position: fixed; z-index: 1000; left: 12px; top: 12px;
  transform: translateY(-150%); padding: 10px 14px; border-radius: 9px;
  background: var(--gold); color: var(--ink); font-weight: 800;
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: flex; align-items: center; gap: 11px; margin: 0 0 18px;
  color: var(--gold-hi); font-size: .79rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.light .eyebrow { color: var(--gold-deep); }

.site-header {
  position: fixed; z-index: 100; inset: 0 0 auto;
  background: rgba(10, 11, 12, .82); border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px) saturate(130%);
}
.navbar { height: var(--header); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.04rem; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; color: var(--gold); }
.brand strong { color: var(--gold); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: clamp(18px, 2.1vw, 30px); }
.nav-links a { color: #c7c9cb; font-size: .91rem; font-weight: 700; transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); }
.nav-links .nav-cta { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--white); }
.lang-switch { display: flex; align-items: center; gap: 7px; color: #777d82; font-size: .82rem; font-weight: 850; }
.lang-switch button { border: 0; padding: 5px 1px; background: none; color: inherit; cursor: pointer; font-weight: inherit; }
.lang-switch button[aria-pressed="true"] { color: var(--gold-hi); }
.menu-button { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; }
.menu-button span:not(.sr-only) { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .2s ease; }
.nav-open .menu-button span:nth-of-type(1) { transform: translateY(3px) rotate(45deg); }
.nav-open .menu-button span:nth-of-type(2) { transform: translateY(-3px) rotate(-45deg); }

.hero {
  position: relative; min-height: 100svh; padding: calc(var(--header) + 74px) 0 78px;
  display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 77% 18%, rgba(199, 162, 76, .14), transparent 29%),
    linear-gradient(180deg, #0c0d0e 0%, var(--ink) 100%);
}
.hero::after {
  content: ""; position: absolute; right: -250px; top: 90px; width: 650px; aspect-ratio: 1;
  border: 1px solid rgba(199, 162, 76, .12); border-radius: 50%;
  box-shadow: 0 0 0 100px rgba(199, 162, 76, .016), 0 0 0 200px rgba(199, 162, 76, .01);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); gap: clamp(48px, 7vw, 88px); align-items: center; }
.hero h1 { margin: 0 0 28px; max-width: 760px; font-size: clamp(3.25rem, 6.4vw, 6.1rem); line-height: .95; font-weight: 550; letter-spacing: -.068em; }
.hero h1 em { display: block; color: var(--gold-hi); font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-style: normal; letter-spacing: -.052em; }
.hero-lead { max-width: 720px; margin-bottom: 36px; color: #c4c7ca; font-size: clamp(1.12rem, 1.25vw, 1.28rem); line-height: 1.72; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 54px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: .95rem; font-weight: 800; transition: transform .22s var(--ease), background .22s ease, border-color .22s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: var(--ink-2); }
.button-primary:hover { background: var(--gold-hi); }
.button-secondary { border-color: var(--line); background: rgba(255, 255, 255, .025); }
.button-secondary:hover { border-color: rgba(255, 255, 255, .28); }
.proof-strip { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 11px 24px; color: #959a9f; font-size: .76rem; font-weight: 700; letter-spacing: .085em; text-transform: uppercase; }
.proof-strip span::before { content: "•"; color: var(--gold); margin-right: 8px; }

.workflow-demo { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018)); box-shadow: var(--shadow); }
.workflow-demo::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255, 255, 255, .045); border-radius: 21px; pointer-events: none; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; color: #9aa0a5; font-size: .74rem; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(119, 146, 123, .12); }
.demo-case { padding: 18px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; background: rgba(4, 5, 6, .48); }
.demo-case-top { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.demo-case small, .demo-stage small { display: block; color: #92989d; font-size: .70rem; font-weight: 750; letter-spacing: .10em; text-transform: uppercase; }
.demo-case strong { display: block; margin-top: 6px; font-size: 1.08rem; line-height: 1.4; }
.demo-badge { flex: 0 0 auto; padding: 6px 10px; border: 1px solid rgba(199, 162, 76, .35); border-radius: 999px; color: var(--gold-hi); font-size: .68rem; font-weight: 750; }
.demo-inputs { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.demo-inputs span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #bcc0c3; font-size: .69rem; }
.demo-connector { height: 25px; display: grid; place-items: center; }
.demo-connector::before { content: ""; width: 1px; height: 100%; background: linear-gradient(var(--gold), rgba(199, 162, 76, .15)); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-stage { min-height: 108px; padding: 16px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 15px; background: rgba(4, 5, 6, .48); display: flex; flex-direction: column; justify-content: flex-end; }
.demo-stage strong { display: block; margin-top: 6px; font-size: .98rem; line-height: 1.42; }
.demo-stage.control { border-color: rgba(199, 162, 76, .42); background: rgba(199, 162, 76, .075); }
.demo-stage.challenge { grid-column: 1 / -1; min-height: 84px; flex-direction: row; align-items: end; justify-content: space-between; gap: 20px; }
.challenge-mark { color: var(--gold-hi); font-family: Georgia, serif; font-size: 1.6rem; line-height: 1; }
.demo-output { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 17px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 15px; background: rgba(4, 5, 6, .48); }
.demo-output small { display: block; color: #92989d; font-size: .70rem; font-weight: 750; letter-spacing: .10em; text-transform: uppercase; }
.demo-output strong { display: block; margin-top: 5px; font-size: 1.02rem; line-height: 1.4; }
.trace-chip { flex: 0 0 auto; padding: 6px 10px; border: 1px solid rgba(199, 162, 76, .35); border-radius: 999px; color: var(--gold-hi); font-size: .69rem; }

.split-heading { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(42px, 7vw, 96px); align-items: end; }
h2 { margin-bottom: 0; font-size: clamp(2.35rem, 4.45vw, 4.35rem); line-height: 1.02; font-weight: 560; letter-spacing: -.052em; }
.split-heading > p, .section-intro > p:last-child, .tech-intro > p { margin: 0; color: var(--muted-dark); font-size: 1.06rem; line-height: 1.78; }
.section:not(.light) .section-intro > p:last-child { color: var(--muted); }

.problem-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line-dark); }
.problem-card { padding: 31px 31px 31px 0; }
.problem-card + .problem-card { padding-left: 31px; border-left: 1px solid var(--line-dark); }
.problem-index { color: var(--gold-deep); font-size: .78rem; font-weight: 850; }
.problem-card h3 { margin: 37px 0 12px; font-size: 1.23rem; line-height: 1.35; }
.problem-card p { margin: 0; color: var(--muted-dark); font-size: 1rem; line-height: 1.72; }

.section-intro { max-width: 820px; margin-bottom: 54px; }
.section-intro h2 { margin-bottom: 23px; }
.capability-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.capability-card { grid-column: span 4; min-height: 310px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); display: flex; flex-direction: column; transition: transform .25s var(--ease), border-color .25s ease, background .25s ease; }
.capability-card:hover { transform: translateY(-5px); border-color: rgba(199, 162, 76, .34); background: var(--ink-3); }
.capability-card.featured { grid-column: span 8; min-height: 350px; background: linear-gradient(120deg, rgba(199, 162, 76, .135), rgba(17, 19, 21, .84)); }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.card-code { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(199, 162, 76, .38); border-radius: 12px; color: var(--gold-hi); font-size: .75rem; font-weight: 850; }
.card-status { color: var(--gold-hi); font-size: .72rem; font-weight: 800; letter-spacing: .10em; text-transform: uppercase; }
.capability-card h3 { margin: auto 0 12px; font-size: 1.42rem; line-height: 1.3; }
.capability-card.featured h3 { font-size: 1.86rem; }
.capability-card p { margin: 0; color: #b6babd; font-size: 1rem; line-height: 1.7; }
.feature-list { margin: 21px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.feature-list li { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: #c0c3c6; font-size: .73rem; }

.workflow-list { border-top: 1px solid var(--line); }
.workflow-step { display: grid; grid-template-columns: 76px minmax(240px, 1.05fr) minmax(260px, .95fr); gap: clamp(22px, 3.6vw, 44px); align-items: center; padding: 35px 0; border-bottom: 1px solid var(--line); }
.step-num { color: var(--gold); font-size: .82rem; font-weight: 850; }
.step-label { margin: 0 0 8px; color: var(--gold-hi); font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.workflow-step h3 { margin: 0; font-size: 1.52rem; line-height: 1.32; font-weight: 580; }
.workflow-step > p { margin: 0; color: #b4b8bb; font-size: 1rem; line-height: 1.72; }

.value-layout { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); gap: clamp(48px, 7vw, 84px); align-items: start; }
.value-copy { position: sticky; top: calc(var(--header) + 38px); }
.value-copy h2 { margin-bottom: 22px; }
.value-copy > p:last-child { color: #b4b8bb; font-size: 1.06rem; line-height: 1.78; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value-card { min-height: 244px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .025); }
.value-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(199, 162, 76, .38); border-radius: 50%; color: var(--gold-hi); font-family: Georgia, serif; }
.value-card h3 { margin: 48px 0 11px; font-size: 1.26rem; }
.value-card p { margin: 0; color: #b4b8bb; font-size: 1rem; line-height: 1.7; }

.tech-head { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(42px, 7vw, 84px); align-items: end; margin-bottom: 54px; }
.tech-intro > p { margin: 0; }
.stack-map { display: grid; grid-template-columns: 1fr 46px 1.16fr 46px 1fr; align-items: center; padding: 28px; border: 1px solid var(--line-dark); border-radius: 27px; background: var(--paper-2); }
.stack-column { display: grid; gap: 10px; }
.stack-label { margin-bottom: 4px; color: var(--gold-deep); font-size: .74rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.stack-block { min-height: 94px; padding: 17px; border: 1px solid rgba(10, 11, 12, .14); border-radius: 14px; background: rgba(255, 255, 255, .45); }
.stack-block strong { display: block; font-size: .94rem; line-height: 1.4; }
.stack-block small { display: block; margin-top: 7px; color: var(--muted-dark); font-size: .80rem; line-height: 1.55; }
.stack-block.accent { border-color: #9c792a; background: rgba(199, 162, 76, .16); }
.stack-block.dark { border-color: var(--ink-2); background: var(--ink-2); color: var(--text); }
.stack-block.dark small { color: #adb1b4; }
.stack-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stack-arrow { text-align: center; color: var(--gold-deep); font-size: 1.3rem; }
.advanced-note { margin-top: 26px; padding: 21px 24px; border-left: 3px solid var(--gold); background: rgba(199, 162, 76, .09); color: #4f5356; font-size: 1rem; line-height: 1.7; }
.advanced-note strong { color: var(--ink-2); }
.details-list { margin-top: 26px; }
details { border-top: 1px solid var(--line-dark); }
details:last-child { border-bottom: 1px solid var(--line-dark); }
summary { list-style: none; cursor: pointer; padding: 23px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 1.04rem; line-height: 1.45; font-weight: 780; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold-deep); font-size: 1.4rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { max-width: 880px; margin: 0; padding: 0 0 26px; color: var(--muted-dark); font-size: 1rem; line-height: 1.75; }

.principle { padding: clamp(94px, 10vw, 145px) 0; background: var(--gold); color: var(--ink-2); }
.principle .eyebrow { justify-content: center; color: rgba(17, 19, 21, .65); }
.principle blockquote { max-width: 1050px; margin: 0 auto; text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 5.8vw, 5.4rem); line-height: 1; letter-spacing: -.047em; }

.contact-section { padding: clamp(82px, 9vw, 120px) 0 128px; }
.contact-card { padding: clamp(30px, 4vw, 52px); border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 92% 10%, rgba(199, 162, 76, .15), transparent 30%), var(--ink-2); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: end; }
.contact-card h2 { max-width: 880px; margin-bottom: 21px; }
.contact-card p { max-width: 780px; margin: 0; color: #b4b8bb; font-size: 1.06rem; line-height: 1.76; }
.contact-card .button { justify-self: end; white-space: nowrap; }

.site-footer { padding: 46px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 40px; }
.footer-copy p, .footer-meta p { margin: 14px 0 0; color: #92979b; font-size: .86rem; }
.footer-links, .footer-meta { display: flex; flex-direction: column; gap: 10px; color: #b2b6b9; font-size: .92rem; }
.footer-meta { text-align: right; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

@supports (content-visibility: auto) {
  .section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
}

@media (max-width: 1060px) {
  .nav-links {
    position: fixed; inset: var(--header) 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 20px 24px; background: rgba(10, 11, 12, .985); border-bottom: 1px solid var(--line);
    transform: translateY(-130%); visibility: hidden; transition: transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav-links { transform: none; visibility: visible; }
  .nav-links a { padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 1.06rem; }
  .nav-links .nav-cta { padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-button { display: block; }
  .lang-switch { margin-left: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .workflow-demo { max-width: 760px; }
  .split-heading, .tech-head { grid-template-columns: 1fr; gap: 27px; }
  .capability-card { grid-column: span 6; }
  .capability-card.featured { grid-column: span 12; }
  .value-layout { grid-template-columns: 1fr; }
  .value-copy { position: static; }
  .stack-map { grid-template-columns: 1fr; gap: 12px; }
  .stack-arrow { transform: rotate(90deg); }
  .contact-card { grid-template-columns: 1fr; gap: 34px; }
  .contact-card .button { justify-self: start; }
}

@media (max-width: 760px) {
  :root { --header: 68px; }
  body { font-size: 16.5px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero { min-height: auto; padding: calc(var(--header) + 52px) 0 68px; }
  .hero h1 { font-size: clamp(2.78rem, 13.2vw, 4.45rem); line-height: .98; }
  .actions { flex-direction: column; }
  .button { width: 100%; min-height: 56px; font-size: 1rem; }
  .proof-strip { display: grid; gap: 9px; font-size: .78rem; line-height: 1.45; }
  .workflow-demo { padding: 16px; border-radius: 22px; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-stage.challenge { grid-column: auto; }
  .demo-stage.challenge { flex-direction: column; align-items: flex-start; justify-content: end; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { padding: 27px 0; }
  .problem-card + .problem-card { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .problem-card h3 { margin-top: 24px; }
  .capability-card, .capability-card.featured { grid-column: span 12; min-height: 285px; }
  .workflow-step { grid-template-columns: 44px 1fr; gap: 18px 13px; }
  .workflow-step > p { grid-column: 2; }
  .value-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 220px; }
  .stack-split { grid-template-columns: 1fr; }
  .principle blockquote { font-size: clamp(2.55rem, 12vw, 4.2rem); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 760px) {
  .demo-inputs span, .feature-list li { font-size: .75rem; }
  .workflow-step h3 { font-size: 1.38rem; }
  .workflow-step > p { font-size: 1rem; }
  .problem-card p, .capability-card p, .value-card p, details p { line-height: 1.68; }
}

@media (max-width: 440px) {
  .lang-switch span { display: none; }
  .brand-mark { width: 31px; height: 31px; }
  .workflow-demo { margin-inline: -2px; }
  .demo-head { align-items: flex-start; }
  .demo-output { flex-direction: column; align-items: flex-start; }
}

@media (hover: none) {
  .button:hover, .capability-card:hover { transform: none; }
}

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