/* ============================================================
   DocuScan — Design tokens
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* brand */
  --orange: #FF6B08;
  --orange-2: #FF8A3D;
  --orange-soft: #FFE4CC;

  /* light theme */
  --bg: #FBFAF6;
  --bg-alt: #F2EFE8;
  --surface: #FFFFFF;
  --surface-2: #F5F2EC;
  --ink: #14120F;
  --ink-soft: #55524B;
  --line: rgba(20,18,15,0.10);
  --line-strong: rgba(20,18,15,0.16);
  --shadow: 0 20px 60px -20px rgba(20,18,15,0.18);
  --nav-bg: rgba(255,255,255,0.62);
  --footer-bg: #14120F;
  --footer-ink: #F2EFE8;
  --footer-ink-soft: rgba(242,239,232,0.62);

  --font-display: 'Space Grotesk', ui-sans-serif, sans-serif;
  --font-body: 'Inter', ui-sans-serif, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.22,1,.36,1);
}

html[data-theme="dark"]{
  --bg: #0B0A08;
  --bg-alt: #131110;
  --surface: #17140F;
  --surface-2: #1D1914;
  --ink: #F5F2EA;
  --ink-soft: #B4AEA2;
  --line: rgba(245,242,234,0.10);
  --line-strong: rgba(245,242,234,0.18);
  --shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  --nav-bg: rgba(20,17,13,0.55);
  --footer-bg: #060504;
  --footer-ink: #F5F2EA;
  --footer-ink-soft: rgba(245,242,234,0.55);
  --orange-soft: rgba(255,107,8,0.16);
}

/* ============================================================
   Native cross-document page transitions (Chromium)
   ============================================================ */
@view-transition{
  navigation: auto;
}
::view-transition-group(root){
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(.22,1,.36,1);
}
::view-transition-old(root){
  animation: 260ms cubic-bezier(.4,0,1,1) both ds-fade-out;
}
::view-transition-new(root){
  animation: 420ms cubic-bezier(.22,1,.36,1) both ds-fade-in;
}
@keyframes ds-fade-out{
  to{ opacity:0; transform:translateY(-8px) scale(.99); }
}
@keyframes ds-fade-in{
  from{ opacity:0; transform:translateY(10px) scale(.99); }
}
html.theme-switching::view-transition-old(root),
html.theme-switching::view-transition-new(root){
  animation:none;
  mix-blend-mode:normal;
}

/* ============================================================
   Reset
   ============================================================ */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  transition:background .5s var(--ease), color .5s var(--ease);
  overflow-x:hidden;
  position:relative;
}
/* subtle premium grain, sits above bg, below content interaction */
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:2;
  pointer-events:none;
  opacity:0.035;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* custom scrollbar */
::-webkit-scrollbar{ width:11px; height:11px; }
::-webkit-scrollbar-track{ background:var(--bg); }
::-webkit-scrollbar-thumb{ background:var(--line-strong); border-radius:99px; border:3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover{ background:var(--orange); }
html{ scrollbar-color:var(--line-strong) var(--bg); scrollbar-width:thin; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; line-height:1.1; letter-spacing:-0.02em; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }
input,textarea{ font-family:inherit; }

::selection{ background:var(--orange); color:#fff; }

/* defensive responsive fix: grid/flex children default to a content-based
   min-width, which can silently force horizontal overflow on small screens.
   Reset it wherever we lay things out in a grid or row. */
.hero-grid > *,
.hero-stats, .hero-stats > *,
.feature-grid > *,
.quote-grid > *,
.steps > *,
.value-grid > *,
.team-grid > *,
.footer-top > *,
.contact-grid > *,
.legal-shell > *,
.form-row > *,
.split > *,
.nav-shell > *,
.contact-row,
.logo-marquee-track,
.newsletter-form > *{
  min-width:0;
}
h1,h2,h3,h4,p{ overflow-wrap:break-word; word-break:break-word; }

:focus-visible{
  outline:2px solid var(--orange);
  outline-offset:3px;
  border-radius:4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* ============================================================
   Scroll progress bar
   ============================================================ */
.scroll-progress{
  position:fixed;
  top:0; left:0;
  height:3px;
  width:0%;
  background:linear-gradient(90deg, var(--orange), var(--orange-2));
  z-index:200;
  transition:width .1s linear;
  box-shadow:0 0 12px rgba(255,107,8,0.6);
}

/* ============================================================
   Cursor glow (desktop only)
   ============================================================ */
.cursor-glow{
  position:fixed;
  top:0; left:0;
  width:480px; height:480px;
  margin-left:-240px; margin-top:-240px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,107,8,0.10), transparent 70%);
  pointer-events:none;
  z-index:1;
  opacity:0;
  transition:opacity .5s var(--ease);
  will-change:transform;
}
.cursor-glow.active{ opacity:1; }
@media (pointer:coarse), (max-width:880px){
  .cursor-glow{ display:none; }
}

/* ============================================================
   Page loader
   ============================================================ */
.page-loader{
  position:fixed; inset:0;
  z-index:999;
  background:var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:22px;
  transition:opacity .5s var(--ease), visibility .5s var(--ease);
}
.page-loader.hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.loader-mark{
  width:56px; height:56px;
  animation: loader-pulse 1.1s ease-in-out infinite;
}
.loader-mark img{ width:100%; height:100%; }
@keyframes loader-pulse{
  0%,100%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(0.88); opacity:0.7; }
}
.loader-track{
  width:120px; height:3px;
  border-radius:99px;
  background:var(--line-strong);
  overflow:hidden;
}
.loader-fill{
  width:40%; height:100%;
  background:var(--orange);
  border-radius:99px;
  animation: loader-sweep 1.1s ease-in-out infinite;
}
@keyframes loader-sweep{
  0%{ transform:translateX(-100%); }
  100%{ transform:translateX(340%); }
}
.loader-ring{
  position:absolute;
  inset:-10px;
  border-radius:50%;
  border:2px solid transparent;
  border-top-color:var(--orange);
  border-right-color:var(--orange-soft);
  animation:loader-spin .9s linear infinite;
}
@keyframes loader-spin{ to{ transform:rotate(360deg); } }
.loader-mark{ position:relative; }
.page-loader.hidden .loader-mark,
.page-loader.hidden .loader-track{ transform:scale(.92); opacity:0; transition:transform .4s var(--ease), opacity .4s var(--ease); }
@media (prefers-reduced-motion: reduce){
  .loader-ring{ animation:none; }
}

.wrap{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 28px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--orange);
  margin-bottom:18px;
}
.eyebrow::before{
  content:"";
  width:7px; height:7px;
  border-radius:50%;
  background:var(--orange);
  box-shadow:0 0 0 4px var(--orange-soft);
}

.btn{
  --btn-pad-y: 14px;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:var(--btn-pad-y) 26px;
  border-radius:var(--radius-pill);
  font-weight:600;
  font-size:15px;
  border:1px solid transparent;
  overflow:hidden;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  white-space:nowrap;
}
.btn-primary::before{
  content:"";
  position:absolute;
  top:0; left:-60%;
  width:40%; height:100%;
  background:linear-gradient(115deg, transparent, rgba(255,255,255,0.35), transparent);
  transform:skewX(-18deg);
  transition:left .65s cubic-bezier(.22,1,.36,1);
  pointer-events:none;
}
.btn-primary:hover::before{ left:130%; }
.btn-primary{
  background:var(--orange);
  color:#fff;
  box-shadow:0 10px 30px -10px rgba(255,107,8,0.55);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 36px -12px rgba(255,107,8,0.65); }
.btn-primary:active{ transform:translateY(0) scale(.97); box-shadow:0 8px 22px -10px rgba(255,107,8,0.55); }
.magnetic{ transition:transform .25s cubic-bezier(.22,1,.36,1), box-shadow .35s var(--ease), background .3s var(--ease); }
.btn-ghost{
  background:transparent;
  color:var(--ink);
  border-color:var(--line-strong);
}
.btn-ghost:hover{ border-color:var(--orange); color:var(--orange); transform:translateY(-2px); }
.btn-ghost:active{ transform:translateY(0) scale(.97); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.6; cursor:not-allowed; transform:none !important; }

/* press ripple */
.btn-ripple{
  position:absolute;
  border-radius:50%;
  background:currentColor;
  opacity:.28;
  transform:scale(0);
  animation:btn-ripple-anim .55s ease-out forwards;
  pointer-events:none;
}
@keyframes btn-ripple-anim{
  to{ transform:scale(1); opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  .btn-ripple{ display:none; }
}

/* corner-bracket "viewfinder" motif — echoes the logo */
.frame{ position:relative; }
.frame::before,.frame::after,
.frame .fc-a, .frame .fc-b{
  content:"";
  position:absolute;
  width:22px; height:22px;
  border:2.5px solid var(--orange);
  opacity:0;
  transition:opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events:none;
}
.frame::before{ top:-10px; left:-10px; border-right:none; border-bottom:none; border-top-left-radius:8px; }
.frame::after{ bottom:-10px; right:-10px; border-left:none; border-top:none; border-bottom-right-radius:8px; }
.frame.frame-visible::before,.frame.frame-visible::after,
.frame:hover::before,.frame:hover::after{ opacity:1; }
.frame:hover::before{ transform:translate(-4px,-4px); }
.frame:hover::after{ transform:translate(4px,4px); }

/* ============================================================
   Header
   ============================================================ */
.site-header{
  position:fixed;
  top:18px; left:0; right:0;
  z-index:100;
  display:flex;
  justify-content:center;
  padding:0 20px;
}
.nav-shell{
  width:100%;
  max-width:1180px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:10px 12px 10px 18px;
  border-radius:var(--radius-pill);
  border:1px solid var(--line);
  background:var(--nav-bg);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  box-shadow:0 8px 30px -18px rgba(0,0,0,0.25);
  transition:background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.site-header.scrolled .nav-shell{
  box-shadow:0 14px 36px -16px rgba(0,0,0,0.28);
}
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:18px; }
.brand img{ width:34px; height:34px; }
.brand-name b{ color:var(--orange); }

.nav-links{ display:flex; align-items:center; gap:6px; position:relative; }
.nav-links a{
  position:relative;
  z-index:1;
  padding:9px 15px;
  border-radius:var(--radius-pill);
  font-size:14.5px;
  font-weight:500;
  color:var(--ink-soft);
  transition:color .3s var(--ease);
}
.nav-links a:hover{ color:var(--ink); }
.nav-links a.active{ color:var(--ink); }
.nav-pill{
  position:absolute;
  top:0; left:0;
  height:100%;
  border-radius:var(--radius-pill);
  background:var(--surface-2);
  z-index:0;
  opacity:0;
  transition:transform .45s cubic-bezier(.22,1,.36,1), width .45s cubic-bezier(.22,1,.36,1), opacity .3s var(--ease);
}
.nav-pill.ready{ opacity:1; }

.nav-actions{ display:flex; align-items:center; gap:8px; }

.theme-toggle{
  width:38px; height:38px;
  border-radius:50%;
  border:1px solid var(--line-strong);
  background:var(--surface);
  display:flex; align-items:center; justify-content:center;
  color:var(--ink);
  transition:transform .35s var(--ease), border-color .3s var(--ease);
  flex-shrink:0;
  position:relative;
  overflow:hidden;
}
.theme-toggle:hover{ transform:rotate(20deg); border-color:var(--orange); }
.theme-toggle svg{
  width:18px; height:18px;
  position:absolute;
  transition:opacity .4s var(--ease), transform .5s cubic-bezier(.34,1.56,.64,1);
}
.theme-toggle .icon-sun{ opacity:0; transform:rotate(-90deg) scale(.4); }
.theme-toggle .icon-moon{ opacity:1; transform:rotate(0) scale(1); }
html[data-theme="dark"] .theme-toggle .icon-sun{ opacity:1; transform:rotate(0) scale(1); }
html[data-theme="dark"] .theme-toggle .icon-moon{ opacity:0; transform:rotate(90deg) scale(.4); }

.nav-toggle{
  display:none;
  width:38px; height:38px;
  border-radius:50%;
  border:1px solid var(--line-strong);
  background:var(--surface);
  align-items:center; justify-content:center;
  flex-shrink:0;
  transition:border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.nav-toggle:hover{ border-color:var(--orange); }
.nav-toggle:active{ transform:scale(.92); }
.nav-toggle span{ position:relative; width:16px; height:2px; background:var(--ink); display:block; border-radius:2px; transition:background .2s var(--ease) .1s; }
.nav-toggle span::before,.nav-toggle span::after{ content:""; position:absolute; left:0; width:16px; height:2px; border-radius:2px; background:var(--ink); transition:transform .32s var(--ease), top .32s var(--ease); }
.nav-toggle span::before{ top:-5px; }
.nav-toggle span::after{ top:5px; }
.nav-toggle.active span{ background:transparent; }
.nav-toggle.active span::before{ top:0; transform:rotate(45deg); }
.nav-toggle.active span::after{ top:0; transform:rotate(-45deg); }

.mobile-nav{
  position:fixed; inset:0;
  z-index:99;
  background:var(--bg);
  display:grid;
  grid-template-rows:auto 1fr auto;
  padding:118px 32px 40px;
  overflow:hidden;
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.mobile-nav.open{ opacity:1; visibility:visible; transform:translateY(0); }
.mobile-nav-glow{
  position:absolute; top:-160px; right:-140px;
  width:420px; height:420px;
  background:radial-gradient(circle, rgba(255,107,8,0.22), transparent 70%);
  filter:blur(10px);
  pointer-events:none;
  z-index:0;
}
.mobile-nav-label{
  position:relative; z-index:1;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--ink-soft);
}
.mobile-nav-links{
  position:relative; z-index:1;
  display:flex; flex-direction:column;
  justify-content:center;
}
.mobile-nav-links a{
  display:flex; align-items:baseline; gap:16px;
  font-family:var(--font-display); font-size:30px; font-weight:600;
  padding:15px 0;
  border-bottom:1px solid var(--line);
  color:var(--ink);
  opacity:0;
  transform:translateY(14px);
  transition:opacity .4s var(--ease), transform .4s var(--ease), color .25s var(--ease), padding-left .25s var(--ease);
}
.mobile-nav-links a::before{
  content:attr(data-num);
  font-family:var(--font-mono);
  font-size:13px;
  font-weight:400;
  color:var(--orange);
}
.mobile-nav-links a:hover, .mobile-nav-links a:active{ color:var(--orange); padding-left:8px; }
.mobile-nav.open .mobile-nav-links a{ opacity:1; transform:translateY(0); }
.mobile-nav-links a:nth-child(1){ transition-delay:.06s; }
.mobile-nav-links a:nth-child(2){ transition-delay:.11s; }
.mobile-nav-links a:nth-child(3){ transition-delay:.16s; }
.mobile-nav-links a:nth-child(4){ transition-delay:.21s; }
.mobile-nav-links a:nth-child(5){ transition-delay:.26s; }
.mobile-nav-foot{
  position:relative; z-index:1;
  display:flex; flex-direction:column; align-items:center; gap:22px;
  opacity:0; transform:translateY(14px);
  transition:opacity .4s var(--ease) .3s, transform .4s var(--ease) .3s;
}
.mobile-nav.open .mobile-nav-foot{ opacity:1; transform:translateY(0); }
.mobile-nav-foot .btn{ width:100%; max-width:320px; }
.mobile-nav-social{ display:flex; gap:14px; }
.mobile-nav-social a{
  width:40px; height:40px; border-radius:50%;
  border:1px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center;
  color:var(--ink-soft);
  transition:border-color .25s var(--ease), color .25s var(--ease);
}
.mobile-nav-social a:hover{ border-color:var(--orange); color:var(--orange); }
.mobile-nav-social svg{ width:16px; height:16px; }
@media (max-width:380px){
  .mobile-nav{ padding:104px 22px 30px; }
  .mobile-nav-links a{ font-size:25px; padding:12px 0; }
}
@media (max-height:640px){
  .mobile-nav{ padding-top:94px; }
  .mobile-nav-links a{ font-size:24px; padding:10px 0; }
}
@media (prefers-reduced-motion: reduce){
  .mobile-nav-links a, .mobile-nav-foot{ transition:opacity .2s linear; transform:none; }
}

@media (max-width:880px){
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero{
  position:relative;
  min-height:94vh;
  display:flex;
  align-items:center;
  padding:150px 0 96px;
  overflow:hidden;
}
.hero-glow, .hero-glow-2{
  position:absolute;
  pointer-events:none;
  z-index:0;
  will-change:transform;
}
.hero-glow{ top:-220px; right:-160px; width:640px; height:640px; }
.hero-glow-2{ bottom:-260px; left:-200px; width:560px; height:560px; }
.hero-glow::before, .hero-glow-2::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  filter:blur(10px);
  animation:hero-drift 16s ease-in-out infinite;
  will-change:transform;
}
.hero-glow::before{
  background:radial-gradient(circle, rgba(255,107,8,0.28), transparent 70%);
}
.hero-glow-2::before{
  background:radial-gradient(circle, rgba(255,138,61,0.20), transparent 70%);
  animation-duration:20s;
  animation-direction:reverse;
}
@keyframes hero-drift{
  0%,100%{ transform:translate(0,0) scale(1); }
  50%{ transform:translate(-34px,26px) scale(1.06); }
}
@media (prefers-reduced-motion: reduce){
  .hero-glow::before, .hero-glow-2::before{ animation:none; }
}
.hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:64px;
  align-items:center;
  width:100%;
}
.hero h1{
  font-size:clamp(38px, 5vw, 64px);
  font-weight:700;
}
.hero h1 .hl{ color:var(--orange); }
.hero-sub{
  margin-top:22px;
  font-size:18px;
  color:var(--ink-soft);
  max-width:520px;
}
.hero-cta{ display:flex; align-items:center; gap:16px; margin-top:34px; flex-wrap:wrap; }
.hero-cta .link-play{ display:flex; align-items:center; gap:10px; font-weight:600; font-size:14.5px; color:var(--ink); }
.play-dot{
  width:38px; height:38px; border-radius:50%;
  border:1px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center;
  color:var(--ink);
  transition:border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.hero-cta .link-play{ transition:color .3s var(--ease); }
.hero-cta .link-play:hover{ color:var(--orange); }
.hero-cta .link-play:hover .play-dot{ border-color:var(--orange); background:var(--orange-soft); color:var(--orange); transform:scale(1.08); }
.hero-cta .link-play:active .play-dot{ transform:scale(.94); }

.hero-stats{
  display:flex;
  gap:40px;
  margin-top:56px;
  padding-top:28px;
  border-top:1px solid var(--line);
  max-width:540px;
}
.stat b{ display:block; font-family:var(--font-mono); font-size:26px; color:var(--ink); }
.stat span{ font-size:13px; color:var(--ink-soft); }

/* scanner mockup */
.hero-mock-float{
  animation:mock-idle-float 7s ease-in-out infinite;
}
@keyframes mock-idle-float{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-9px); }
}
@media (hover:none), (prefers-reduced-motion: reduce){
  .hero-mock-float{ animation:none; }
}
.scan-mock{
  position:relative;
  border-radius:var(--radius-xl);
  padding:14px;
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.scan-mock::before,.scan-mock::after{
  content:"";
  position:absolute;
  width:26px; height:26px;
  border:3px solid var(--orange);
}
.scan-mock::before{ top:-3px; left:-3px; border-right:none; border-bottom:none; border-top-left-radius:14px; }
.scan-mock::after{ bottom:-3px; right:-3px; border-left:none; border-top:none; border-bottom-right-radius:14px; }
.scan-viewport{
  position:relative;
  border-radius:var(--radius-lg);
  overflow:hidden;
  aspect-ratio:4/5;
  background:var(--bg-alt);
}
.scan-doc-raw, .scan-doc-clean{
  position:absolute; inset:0;
  padding:34px 30px;
  background:var(--surface);
}
.scan-doc-raw{ filter:contrast(0.82) brightness(0.9) blur(0.3px); transform:rotate(-1.4deg) scale(1.02); }
.scan-doc-clean{
  clip-path: inset(0 0 100% 0);
  animation: scan-wipe 6.4s ease-in-out infinite;
  will-change:clip-path;
}
@keyframes scan-wipe{
  0%, 6%{ clip-path: inset(0 0 100% 0); }
  50%{ clip-path: inset(0 0 0% 0); }
  94%, 100%{ clip-path: inset(0 0 100% 0); }
}
@media (prefers-reduced-motion: reduce){
  .scan-doc-clean{ animation:none; clip-path: inset(0 0 40% 0); }
}
.doc-line{ height:9px; border-radius:4px; background:var(--line-strong); margin-bottom:12px; }
.doc-line.w60{ width:60%; }
.doc-line.w80{ width:80%; }
.doc-line.w40{ width:40%; }
.doc-title{ height:16px; width:55%; border-radius:4px; background:var(--ink-soft); opacity:.35; margin-bottom:20px; }
.scan-doc-clean .doc-line{ background:var(--ink-soft); opacity:.22; }
.scan-doc-clean .doc-title{ opacity:.55; }

.scanline{
  position:absolute; left:0; right:0;
  height:3px;
  background:linear-gradient(90deg, transparent, var(--orange), transparent);
  box-shadow:0 0 22px 4px rgba(255,107,8,0.65);
  top:0;
  animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep{
  0%{ top:0%; }
  50%{ top:100%; }
  100%{ top:0%; }
}
.scan-badge{
  position:absolute;
  bottom:14px; left:14px; right:14px;
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px;
  border-radius:var(--radius-md);
  background:var(--nav-bg);
  backdrop-filter:blur(10px);
  border:1px solid var(--line);
  font-family:var(--font-mono);
  font-size:12px;
}
.scan-badge .dot{ width:7px; height:7px; border-radius:50%; background:#28C76F; box-shadow:0 0 0 3px rgba(40,199,111,0.25); display:inline-block; margin-right:6px; }

/* floating badges around the scan mockup */
.hero-badge{
  position:absolute;
  display:flex; align-items:center; gap:8px;
  padding:10px 15px;
  border-radius:var(--radius-pill);
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  font-size:12.5px;
  font-weight:600;
  color:var(--ink);
  z-index:2;
  animation:badge-float 5s ease-in-out infinite;
  will-change:transform;
}
.hero-badge svg{ width:14px; height:14px; color:var(--orange); flex-shrink:0; }
.hero-badge-1{ top:-16px; right:-14px; animation-delay:.2s; }
.hero-badge-2{ bottom:34px; left:-24px; animation-delay:1.4s; }
@keyframes badge-float{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-10px); }
}
@media (prefers-reduced-motion: reduce){ .hero-badge{ animation:none; } }

/* scroll cue */
.scroll-cue{
  position:absolute;
  left:50%; bottom:30px;
  transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:7px;
  color:var(--ink-soft);
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  opacity:0;
  z-index:1;
  animation:cue-fade-in .8s var(--ease) 1.1s forwards, cue-bounce 2.4s ease-in-out 1.9s infinite;
}
.scroll-cue svg{ width:14px; height:14px; }
@keyframes cue-fade-in{ to{ opacity:0.65; } }
@keyframes cue-bounce{
  0%,100%{ transform:translate(-50%,0); }
  50%{ transform:translate(-50%,7px); }
}

@media (max-width:960px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero{ min-height:auto; padding:140px 0 72px; }
  .hero-stats{ gap:26px; }
  .scroll-cue{ display:none; }
}
@media (max-width:640px){
  .hero-badge{ display:none; }
}
@media (max-width:480px){
  .hero{ padding:124px 0 56px; }
  .hero-grid{ gap:44px; }
  .hero-cta{ gap:12px; }
  .hero-stats{ flex-wrap:wrap; row-gap:22px; column-gap:24px; margin-top:40px; }
}

/* ============================================================
   Sections generic
   ============================================================ */
section{ position:relative; }
.section{ padding:110px 0; }
.section-alt{ background:var(--bg-alt); }
.section-head{ max-width:640px; margin-bottom:60px; }
.section-head h2{ font-size:clamp(28px,3.4vw,42px); }
.section-head p{ margin-top:16px; color:var(--ink-soft); font-size:17px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.reveal{
  opacity:0;
  transform:translateY(32px) scale(.98);
  filter:blur(6px);
  transition:opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
}
.reveal.in{ opacity:1; transform:translateY(0) scale(1); filter:blur(0); }

/* hero load-in cascade (plays once, on page load, not scroll) */
.hero-anim{
  opacity:0;
  transform:translateY(26px) scale(.98);
  filter:blur(5px);
  transition:opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease);
}
.hero-anim.in{ opacity:1; transform:translateY(0) scale(1); filter:blur(0); }
.hero-anim-1.in{ transition-delay:.05s; }
.hero-anim-2.in{ transition-delay:.14s; }
.hero-anim-3.in{ transition-delay:.24s; }
.hero-anim-4.in{ transition-delay:.34s; }
.hero-anim-5.in{ transition-delay:.44s; }
.hero-anim-6.in{ transition-delay:.28s; }

/* Feature grid */
.feature-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}
.feature-card{
  padding:32px 26px;
  border-radius:var(--radius-lg);
  background:var(--surface);
  border:1px solid var(--line);
  transition:transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-card:hover{ transform:translateY(-6px); border-color:var(--line-strong); box-shadow:var(--shadow); }
.feature-icon{
  width:46px; height:46px;
  border-radius:12px;
  background:var(--orange-soft);
  color:var(--orange);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
  transition:transform .4s cubic-bezier(.34,1.56,.64,1), background .3s var(--ease);
}
.feature-card:hover .feature-icon{ transform:rotate(-8deg) scale(1.08); }
.feature-icon svg{ width:22px; height:22px; }
.feature-card h3{ font-size:19px; margin-bottom:10px; }
.feature-card p{ color:var(--ink-soft); font-size:15px; }

@media (max-width:920px){ .feature-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .feature-grid{ grid-template-columns:1fr; } }

/* Logo marquee (trust strip) */
.logo-marquee{
  padding:44px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  overflow:hidden;
  position:relative;
}
.logo-marquee::before,.logo-marquee::after{
  content:"";
  position:absolute; top:0; bottom:0;
  width:90px;
  z-index:2;
  pointer-events:none;
}
.logo-marquee::before{ left:0; background:linear-gradient(90deg, var(--bg), transparent); }
.logo-marquee::after{ right:0; background:linear-gradient(270deg, var(--bg), transparent); }
.logo-marquee-track{
  display:flex;
  align-items:center;
  gap:64px;
  width:max-content;
  animation:marquee-scroll 26s linear infinite;
}
.logo-marquee:hover .logo-marquee-track{ animation-play-state:paused; }
.logo-marquee-item{
  font-family:var(--font-display);
  font-weight:700;
  font-size:20px;
  letter-spacing:-0.01em;
  color:var(--ink-soft);
  opacity:.6;
  white-space:nowrap;
  transition:opacity .3s var(--ease), color .3s var(--ease);
}
.logo-marquee-item:hover{ opacity:1; color:var(--ink); }
@keyframes marquee-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .logo-marquee-track{ animation:none; flex-wrap:wrap; }
}

/* How it works */
.steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  border-radius:var(--radius-xl);
  overflow:hidden;
  border:1px solid var(--line);
}
.step{
  padding:44px 34px;
  background:var(--surface);
  border-right:1px solid var(--line);
  position:relative;
}
.step:last-child{ border-right:none; }
.step-num{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--orange);
  margin-bottom:22px;
  display:block;
}
.step h3{ font-size:20px; margin-bottom:10px; }
.step p{ color:var(--ink-soft); font-size:15px; }
@media (max-width:820px){
  .steps{ grid-template-columns:1fr; }
  .step{ border-right:none; border-bottom:1px solid var(--line); }
  .step:last-child{ border-bottom:none; }
}

/* Testimonials */
.quote-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.quote-card{
  padding:30px 28px;
  border-radius:var(--radius-lg);
  background:var(--surface);
  border:1px solid var(--line);
}
.quote-card p{ font-size:15.5px; color:var(--ink); }
.quote-by{ display:flex; align-items:center; gap:12px; margin-top:22px; }
.quote-avatar{
  width:38px; height:38px; border-radius:50%;
  background:var(--orange);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:600; font-size:14px;
}
.quote-by b{ display:block; font-size:14px; }
.quote-by span{ font-size:12.5px; color:var(--ink-soft); }
@media (max-width:920px){ .quote-grid{ grid-template-columns:1fr; } }

/* CTA banner */
.cta-banner{
  border-radius:var(--radius-xl);
  padding:70px 50px;
  background:linear-gradient(135deg, var(--orange), #FF8A3D);
  color:#fff;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.cta-banner h2{ font-size:clamp(26px,3.6vw,40px); color:#fff; }
.cta-banner p{ margin-top:14px; color:rgba(255,255,255,0.88); }
.cta-banner .btn-primary{ background:#fff; color:var(--orange); box-shadow:none; margin-top:28px; }
.cta-banner .btn-primary:hover{ background:#fff; box-shadow:0 14px 34px -10px rgba(0,0,0,0.25); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  background:var(--footer-bg);
  color:var(--footer-ink);
  border-radius:36px 36px 0 0;
  margin-top:60px;
  padding:70px 0 30px;
}
.footer-top{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:40px;
  padding-bottom:50px;
  border-bottom:1px solid rgba(245,242,234,0.10);
}
.footer-brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:19px; margin-bottom:14px; }
.footer-brand img{ width:32px; height:32px; }
.footer-about{ color:var(--footer-ink-soft); font-size:14.5px; max-width:280px; }
.footer-col h4{ font-family:var(--font-body); font-size:13px; letter-spacing:0.06em; text-transform:uppercase; color:var(--footer-ink-soft); margin-bottom:18px; font-weight:600;}
.footer-col a{ display:block; font-size:14.5px; color:var(--footer-ink); opacity:0.82; margin-bottom:13px; transition:opacity .25s, color .25s; }
.footer-col a:hover{ opacity:1; color:var(--orange-2); }
.footer-social{ display:flex; gap:10px; margin-top:6px; }
.footer-social a{
  width:36px; height:36px; border-radius:50%;
  border:1px solid rgba(245,242,234,0.16);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:0;
}
.footer-social svg{ width:16px; height:16px; }

.newsletter-form{ display:flex; gap:8px; margin-top:8px; }
.newsletter-form input{
  flex:1;
  padding:12px 16px;
  border-radius:var(--radius-pill);
  border:1px solid rgba(245,242,234,0.18);
  background:rgba(245,242,234,0.06);
  color:var(--footer-ink);
  font-size:14px;
}
.newsletter-form input::placeholder{ color:var(--footer-ink-soft); }
.newsletter-form button{
  width:42px; height:42px; flex-shrink:0;
  border-radius:50%;
  background:var(--orange);
  color:#fff;
  border:none;
  display:flex; align-items:center; justify-content:center;
}

.footer-bottom{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:26px;
  font-size:13px;
  color:var(--footer-ink-soft);
  flex-wrap:wrap;
  gap:14px;
}
.footer-bottom-links{ display:flex; gap:20px; }

@media (max-width:920px){
  .footer-top{ grid-template-columns:1fr 1fr; }
}
@media (max-width:600px){
  .footer-top{ grid-template-columns:1fr; }
  .site-footer{ border-radius:24px 24px 0 0; padding:50px 0 24px; }
}

/* ============================================================
   Inner pages (About / Contact / Legal)
   ============================================================ */
.page-hero{
  padding:170px 0 70px;
  text-align:center;
}
.page-hero h1{ font-size:clamp(32px,4.6vw,54px); }
.page-hero p{ margin:18px auto 0; max-width:560px; color:var(--ink-soft); font-size:17px; }

.value-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.value-card{ padding:30px; border-radius:var(--radius-lg); border:1px solid var(--line); background:var(--surface); }
.value-card h3{ font-size:18px; margin-bottom:10px; }
.value-card p{ color:var(--ink-soft); font-size:15px; }
@media (max-width:820px){ .value-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .value-grid{ grid-template-columns:1fr; } }

.split{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
@media (max-width:880px){ .split{ grid-template-columns:1fr; } }

.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.team-card{ text-align:center; }
.team-avatar{
  width:100%; aspect-ratio:1;
  border-radius:var(--radius-lg);
  background:var(--surface-2);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:30px;
  color:var(--orange);
  margin-bottom:14px;
  border:1px solid var(--line);
}
.team-card h4{ font-size:15.5px; }
.team-card span{ font-size:13px; color:var(--ink-soft); }
@media (max-width:820px){ .team-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .team-grid{ grid-template-columns:1fr 1fr; gap:14px; } }
@media (max-width:360px){ .team-grid{ grid-template-columns:1fr; } }

/* Contact */
.contact-grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:50px; }
.contact-info-card{
  padding:34px;
  border-radius:var(--radius-lg);
  background:var(--surface);
  border:1px solid var(--line);
  height:fit-content;
}
.contact-info-card h3{ font-size:19px; margin-bottom:20px; }
.contact-row{ display:flex; gap:14px; align-items:flex-start; margin-bottom:22px; }
.contact-row:last-child{ margin-bottom:0; }
.contact-icon{
  width:38px; height:38px; border-radius:10px;
  background:var(--orange-soft); color:var(--orange);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-icon svg{ width:17px; height:17px; }
.contact-row b{ display:block; font-size:14.5px; }
.contact-row span{ font-size:13.5px; color:var(--ink-soft); }

.form-card{
  padding:36px;
  border-radius:var(--radius-lg);
  background:var(--surface);
  border:1px solid var(--line);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13.5px; font-weight:600; margin-bottom:8px; }
.field input, .field textarea, .field select{
  width:100%;
  padding:13px 16px;
  border-radius:var(--radius-md);
  border:1px solid var(--line-strong);
  background:var(--bg);
  color:var(--ink);
  font-size:14.5px;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline:none; border-color:var(--orange); box-shadow:0 0 0 4px var(--orange-soft);
}
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:12.5px; color:var(--ink-soft); margin-top:14px; text-align:center; }
.form-success{
  display:none;
  align-items:center; gap:10px;
  padding:14px 18px;
  border-radius:var(--radius-md);
  background:var(--orange-soft);
  color:var(--orange);
  font-size:14px; font-weight:600;
  margin-bottom:18px;
}
.form-success.show{ display:flex; }
@media (max-width:920px){ .contact-grid{ grid-template-columns:1fr; } }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }

/* FAQ accordion */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; text-align:left;
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 0;
  background:none; border:none;
  font-family:var(--font-display); font-size:17px; font-weight:600;
  color:var(--ink);
}
.faq-q svg{ width:18px; height:18px; flex-shrink:0; transition:transform .35s var(--ease); color:var(--orange); }
.faq-item.open .faq-q svg{ transform:rotate(45deg); }
.faq-a{
  max-height:0; overflow:hidden;
  transition:max-height .4s var(--ease), padding .4s var(--ease);
  color:var(--ink-soft); font-size:15px;
}
.faq-item.open .faq-a{ max-height:220px; padding-bottom:22px; }

/* Legal pages */
.legal-shell{ display:grid; grid-template-columns:280px 1fr; gap:60px; align-items:start; }
.legal-toc{
  position:sticky; top:120px;
  padding:26px;
  border-radius:var(--radius-lg);
  border:1px solid var(--line);
  background:var(--surface);
}
.legal-toc h4{ font-size:12.5px; text-transform:uppercase; letter-spacing:0.06em; color:var(--ink-soft); margin-bottom:14px; }
.legal-toc a{ display:block; font-size:14px; padding:8px 0; color:var(--ink-soft); border-left:2px solid transparent; padding-left:12px; margin-left:-12px; transition:color .2s, border-color .2s; }
.legal-toc a:hover, .legal-toc a.active{ color:var(--orange); border-left-color:var(--orange); }
.legal-updated{ font-family:var(--font-mono); font-size:12px; color:var(--ink-soft); margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }

.legal-content h2{ font-size:24px; margin-top:50px; margin-bottom:16px; scroll-margin-top:120px; }
.legal-content h2:first-child{ margin-top:0; }
.legal-content p{ color:var(--ink-soft); margin-bottom:14px; font-size:15.5px; }
.legal-content ul{ margin-bottom:14px; }
.legal-content li{ color:var(--ink-soft); font-size:15.5px; padding-left:22px; position:relative; margin-bottom:8px; }
.legal-content li::before{ content:""; position:absolute; left:2px; top:9px; width:5px; height:5px; border-radius:50%; background:var(--orange); }
.legal-content strong{ color:var(--ink); }
.legal-content a.inline-link{ color:var(--orange); text-decoration:underline; text-underline-offset:3px; }

@media (max-width:920px){
  .legal-shell{ grid-template-columns:1fr; }
  .legal-toc{ position:static; }
}

/* ============================================================
   Tilt + spotlight card interactions
   ============================================================ */
.tilt-card{
  transform-style:preserve-3d;
  will-change:transform;
  transition:transform .5s cubic-bezier(.22,1,.36,1), border-color .4s var(--ease), box-shadow .4s var(--ease);
}

.spotlight-card{ position:relative; overflow:hidden; }
.spotlight-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(320px circle at var(--sx,50%) var(--sy,50%), rgba(255,107,8,0.12), transparent 65%);
  opacity:0;
  transition:opacity .4s var(--ease);
  pointer-events:none;
}
.spotlight-card:hover::after{ opacity:1; }

/* Back to top */
.to-top{
  position:fixed; right:24px; bottom:24px;
  width:46px; height:46px; border-radius:50%;
  background:var(--ink); color:var(--bg);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  z-index:90;
  border:none;
}
.to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.to-top svg{ width:18px; height:18px; }

/* utility */
.mt-lg{ margin-top:60px; }
.text-center{ text-align:center; }

/* ============================================================
   Small-screen responsive pass (phones)
   ============================================================ */
@media (max-width:600px){
  .site-header{ top:12px; padding:0 14px; }
  .nav-shell{ padding:8px 8px 8px 14px; gap:10px; }
  .brand{ font-size:16px; }
  .brand img{ width:28px; height:28px; }
  .nav-actions .btn{ display:none; }
  .section{ padding:76px 0; }
  .section-head{ margin-bottom:40px; }
  .cta-banner{ padding:44px 24px; }
  .footer-top{ gap:32px; }
  .site-footer{ padding:56px 0 24px; }
  .to-top{ right:16px; bottom:16px; width:42px; height:42px; }
  .page-hero{ padding:120px 0 46px; }
  .contact-info-card, .form-card{ padding:22px; }
  .legal-toc{ padding:20px; }
}

@media (max-width:480px){
  .wrap{ padding:0 18px; }
  .btn{ padding:13px 22px; font-size:14.5px; }
  .eyebrow{ font-size:11.5px; margin-bottom:14px; }
  .hero-sub{ font-size:16.5px; }
  .hero-stats{ margin-top:36px; padding-top:22px; }
  .stat b{ font-size:22px; }
  .feature-card, .quote-card{ padding:26px 22px; }
  .step{ padding:36px 26px; }
  .value-card{ padding:24px; }
  .form-card, .contact-info-card{ padding:18px; }
}

@media (max-width:380px){
  .wrap{ padding:0 16px; }
  .brand-name{ font-size:15px; }
  .brand img{ width:26px; height:26px; }
  .hero h1{ font-size:32px; }
  .hero-sub{ font-size:15.5px; }
  .hero-stats{ column-gap:18px; row-gap:18px; }
  .stat b{ font-size:20px; }
  .stat span{ font-size:12px; }
  .btn{ padding:12px 18px; font-size:14px; }
  .section-head h2{ font-size:26px; }
  .cta-banner{ padding:34px 18px; }
}
