:root {
  --ink: #26302c;
  --ink-soft: #56615c;
  --paper: #f4f2ed;
  --paper-bright: #fbfaf7;
  --gunmetal: #2e3532;
  --canvas: #202623;
  --line: #d6d8d2;
  --line-dark: #4b5651;
  --accent: #ff715b;
  --accent-dark: #d95142;
  --wine: #8b2635;
  --cloud: #cbd2d0;
  --shell: min(1180px, calc(100vw - 48px));
  --radius: 5px;
  font-family: "Segoe UI Variable Display", "Aptos Display", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); }
body, button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--gunmetal); background: var(--accent); }
.section-shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 12px; top: 12px; padding: 9px 12px; color: white; background: var(--wine); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(46, 53, 50, .12);
  background: rgba(244, 242, 237, .94);
  backdrop-filter: blur(14px);
  transition: box-shadow .2s ease, background .2s ease;
}

.site-header.scrolled { background: rgba(251, 250, 247, .97); box-shadow: 0 10px 32px rgba(46, 53, 50, .08); }
.site-brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 13px; font-weight: 780; letter-spacing: -.02em; text-transform: uppercase; }
.site-brand img { width: 36px; height: 36px; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 29px; color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.site-nav > a { position: relative; padding-block: 8px; }
.site-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 2px; background: var(--accent); transition: right .18s ease; }
.site-nav > a:hover::after, .site-nav > a:focus-visible::after { right: 0; }
.nav-cta { padding: 10px 13px !important; border: 1px solid var(--gunmetal); color: white; background: var(--gunmetal); transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.nav-cta:hover { border-color: var(--accent); background: var(--accent-dark); transform: translateY(-1px); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); background: transparent; }
.nav-toggle span { display: block; height: 1px; margin: 5px 0; background: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(480px, 1.22fr); align-items: center; gap: clamp(42px, 6vw, 92px); min-height: calc(100vh - 68px); padding-block: clamp(72px, 10vw, 132px); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--wine); font-size: 10px; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: var(--accent); }
.eyebrow.light { color: var(--cloud); }
.hero h1, .section-heading h2, .privacy-grid h2, .final-cta h2, .case-hero h1 { margin: 0; font-weight: 650; letter-spacing: -.055em; line-height: .98; }
.hero h1 { max-width: 580px; font-size: clamp(54px, 7vw, 94px); }
.hero h1 em { color: var(--accent-dark); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero-lede { max-width: 590px; margin: 28px 0 0; color: var(--ink-soft); font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.button-link { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 11px 17px; border: 1px solid var(--gunmetal); font-size: 12px; font-weight: 760; transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease; }
.button-link:hover { transform: translateY(-2px); }
.button-link.primary { color: white; background: var(--gunmetal); }
.button-link.primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.button-link.secondary { color: var(--ink); background: transparent; }
.button-link.secondary:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--paper-bright); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 48px 0 0; padding: 0; list-style: none; background: var(--line); }
.hero-facts li { min-width: 0; padding: 13px 10px; background: var(--paper); }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { font-size: 10px; text-transform: uppercase; letter-spacing: .045em; }
.hero-facts span { margin-top: 4px; color: var(--ink-soft); font-size: 9px; line-height: 1.35; }

.hero-visual { position: relative; width: 58vw; margin: 0 -12vw 0 0; }
.screen-frame { overflow: hidden; border: 1px solid #424c47; border-radius: var(--radius); background: var(--canvas); box-shadow: 0 34px 90px rgba(32, 38, 35, .25); }
.screen-frame-hero { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); transform-origin: left center; }
.screen-bar { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-bottom: 1px solid #424c47; color: var(--cloud); background: var(--gunmetal); }
.screen-bar span { width: 5px; height: 5px; background: var(--line-dark); }
.screen-bar span:first-child { background: var(--accent); }
.screen-bar b { margin-left: 8px; font-size: 8px; font-weight: 600; }
.screen-frame img { width: 100%; height: auto; }
.hero-visual figcaption, .case-screenshot figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 9px; letter-spacing: .035em; text-align: right; }

.signal-strip { border-block: 1px solid var(--line-dark); color: var(--cloud); background: var(--gunmetal); }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.signal-grid p { display: flex; align-items: center; gap: 12px; min-height: 72px; margin: 0; padding: 0 18px; border-right: 1px solid var(--line-dark); font-size: 11px; font-weight: 650; letter-spacing: .02em; }
.signal-grid p:first-child { border-left: 1px solid var(--line-dark); }
.signal-grid span { color: var(--accent); font-family: Consolas, monospace; font-size: 9px; }

.intro-block, .process-section { padding-block: clamp(88px, 12vw, 156px); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); column-gap: 70px; align-items: end; margin-bottom: 55px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { max-width: 760px; font-size: clamp(38px, 5vw, 68px); }
.section-heading > p:last-child { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.section-heading.inverse { color: white; }
.section-heading.inverse > p:last-child { color: var(--cloud); }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-card { display: grid; grid-template-columns: 46px 1fr; gap: 22px; min-height: 215px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(251, 250, 247, .35); transition: background .2s ease, transform .2s ease; }
.feature-card:hover { position: relative; z-index: 2; background: var(--paper-bright); transform: translateY(-3px); }
.feature-number { color: var(--accent-dark); font-family: Consolas, monospace; font-size: 10px; }
.feature-card h3 { margin: 0 0 11px; font-size: 20px; letter-spacing: -.025em; }
.feature-card p { max-width: 470px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.feature-wide { grid-column: span 2; grid-template-columns: 46px minmax(0, 650px); min-height: 180px; }

.use-cases { padding-block: clamp(88px, 11vw, 144px); color: white; background: var(--canvas); }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line-dark); background: var(--line-dark); }
.case-card { overflow: hidden; background: var(--gunmetal); transition: background .2s ease; }
.case-card picture { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--canvas); }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; }
.case-card > div { min-height: 190px; padding: 24px; }
.case-card span { color: var(--accent); font-size: 9px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.case-card h3 { max-width: 470px; margin: 15px 0 22px; font-size: clamp(22px, 3vw, 33px); line-height: 1.12; letter-spacing: -.035em; }
.case-card p { margin: 0; color: var(--cloud); font-size: 11px; font-weight: 650; }
.case-card b { display: inline-block; margin-left: 5px; color: var(--accent); transition: transform .18s ease; }
.case-card:hover { background: #36403b; }
.case-card:hover img { transform: scale(1.025); opacity: .9; }
.case-card:hover b { transform: translateX(4px); }

.process-section .section-heading { grid-template-columns: 1fr; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.process-list li { min-height: 270px; padding: 22px 20px; border-right: 1px solid var(--line); }
.process-list li:first-child { border-left: 1px solid var(--line); }
.process-list > li > span { color: var(--accent-dark); font-family: Consolas, monospace; font-size: 10px; }
.process-list h3 { margin: 86px 0 10px; font-size: 17px; letter-spacing: -.02em; }
.process-list p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }

.privacy-section { padding-block: clamp(80px, 10vw, 132px); color: white; background: var(--wine); }
.privacy-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(48px, 9vw, 140px); align-items: start; }
.privacy-grid h2 { max-width: 700px; font-size: clamp(42px, 6vw, 76px); }
.privacy-copy { padding-top: 34px; border-top: 1px solid rgba(255,255,255,.38); }
.privacy-copy p { margin: 0 0 20px; color: #f2dddf; font-size: 15px; line-height: 1.72; }
.privacy-copy a { display: inline-flex; gap: 18px; margin-top: 15px; padding-bottom: 5px; border-bottom: 1px solid var(--accent); color: white; font-size: 12px; font-weight: 760; }

.final-cta { display: flex; flex-direction: column; align-items: center; padding-block: clamp(100px, 13vw, 170px); text-align: center; }
.final-cta > img { margin-bottom: 28px; }
.final-cta .eyebrow { justify-content: center; }
.final-cta h2 { font-size: clamp(45px, 7vw, 82px); }
.final-cta > p:not(.eyebrow) { margin: 20px 0 30px; color: var(--ink-soft); font-size: 17px; }

.site-footer { padding-block: 38px; border-top: 1px solid var(--line); background: var(--paper-bright); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 36px; }
.footer-brand img { width: 30px; height: 30px; }
.site-footer nav { display: flex; gap: 22px; color: var(--ink-soft); font-size: 10px; font-weight: 650; }
.site-footer nav a:hover { color: var(--accent-dark); }
.site-footer p { margin: 0; color: var(--ink-soft); font-size: 9px; }

/* Use-case pages */
.case-main { min-height: 100vh; }
.case-hero { padding-block: clamp(74px, 10vw, 128px) 68px; }
.breadcrumbs { display: flex; gap: 8px; margin: 0 0 38px; color: var(--ink-soft); font-size: 10px; }
.breadcrumbs a:hover { color: var(--accent-dark); }
.case-hero-grid { display: grid; grid-template-columns: minmax(320px, .75fr) minmax(500px, 1.25fr); gap: clamp(45px, 7vw, 100px); align-items: center; }
.case-hero h1 { max-width: 650px; font-size: clamp(48px, 6.5vw, 86px); }
.case-hero-copy > p:last-of-type { max-width: 580px; margin: 28px 0 0; color: var(--ink-soft); font-size: 19px; line-height: 1.58; }
.case-hero .hero-actions { margin-top: 30px; }
.case-screenshot { margin: 0; }
.case-screenshot .screen-frame { box-shadow: 0 28px 74px rgba(32, 38, 35, .22); }
.case-detail { padding-block: 92px; background: var(--paper-bright); }
.case-detail-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(50px, 9vw, 130px); }
.case-detail h2, .case-sections h2 { margin: 0; font-size: clamp(34px, 4.3vw, 56px); line-height: 1.05; letter-spacing: -.045em; }
.case-detail-copy > p { margin: 0 0 20px; color: var(--ink-soft); font-size: 15px; line-height: 1.72; }
.case-checklist { display: grid; gap: 1px; margin: 34px 0 0; padding: 0; background: var(--line); list-style: none; }
.case-checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 13px; background: var(--paper-bright); font-size: 12px; line-height: 1.45; }
.case-checklist li::before { content: "↗"; color: var(--accent-dark); font-weight: 800; }
.case-sections { padding-block: 100px; }
.case-sections > h2 { max-width: 720px; margin-bottom: 48px; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.workflow-grid article { min-height: 245px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-grid span { color: var(--accent-dark); font-family: Consolas, monospace; font-size: 9px; }
.workflow-grid h3 { margin: 62px 0 10px; font-size: 18px; }
.workflow-grid p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.62; }
.case-next { padding-block: 75px; color: white; background: var(--gunmetal); }
.case-next-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.case-next h2 { margin: 0; font-size: clamp(32px, 5vw, 58px); letter-spacing: -.045em; }
.case-next p { margin: 10px 0 0; color: var(--cloud); }
.case-next .button-link { border-color: var(--accent); color: var(--gunmetal); background: var(--accent); }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 940px) {
  :root { --shell: min(100% - 34px, 760px); }
  .hero, .case-hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero { padding-top: 84px; }
  .hero-visual { width: 94vw; margin: 10px -14vw 0 6vw; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .signal-grid, .process-list { grid-template-columns: repeat(2, 1fr); }
  .signal-grid p:nth-child(3) { border-left: 1px solid var(--line-dark); border-top: 1px solid var(--line-dark); }
  .signal-grid p:nth-child(4) { border-top: 1px solid var(--line-dark); }
  .process-list li:nth-child(3) { border-left: 1px solid var(--line); }
  .case-detail-grid { grid-template-columns: 1fr; }
  .case-hero-grid .case-screenshot { width: 94vw; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-grid p { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100vw - 28px); }
  .site-header { min-height: 60px; padding-inline: 14px; }
  .site-brand span { font-size: 11px; }
  .nav-toggle { display: block; justify-self: end; }
  .site-nav { position: absolute; left: 0; right: 0; top: 60px; display: none; align-items: stretch; gap: 0; padding: 8px 14px 14px; border-bottom: 1px solid var(--line); background: var(--paper-bright); box-shadow: 0 20px 40px rgba(46,53,50,.12); }
  .site-nav.open { display: grid; }
  .site-nav > a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 8px; border-bottom: 1px solid var(--gunmetal); text-align: center; }
  .hero { padding-block: 64px 78px; }
  .hero h1 { font-size: clamp(49px, 15vw, 67px); }
  .hero-lede { font-size: 17px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-visual { width: 112vw; margin: 0 -22vw 0 2vw; }
  .screen-frame-hero { transform: none; }
  .signal-grid, .feature-grid, .case-grid, .process-list, .privacy-grid, .workflow-grid { grid-template-columns: 1fr; }
  .signal-grid p, .signal-grid p:nth-child(3) { border-left: 1px solid var(--line-dark); border-top: 1px solid var(--line-dark); }
  .signal-grid p:first-child { border-top: 0; }
  .feature-wide { grid-column: span 1; }
  .feature-card { min-height: 190px; padding: 22px 18px; }
  .process-list li, .process-list li:nth-child(3) { min-height: 210px; border-left: 1px solid var(--line); }
  .process-list h3 { margin-top: 48px; }
  .case-hero { padding-top: 54px; }
  .case-hero-grid .case-screenshot { width: 108vw; }
  .case-next-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer nav { display: grid; grid-template-columns: repeat(2, 1fr); }
}

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