/* Technovan marketing site — scoped to the public pages (nav, #page-home).
   Dashboard / auth / quotation styles are untouched. */

body {
  --h-card: #1c2126;
  --h-bg: #0b0c0d;
  --h-bg2: #101214;
  --h-surf: #141618;
  --h-line: #24282c;
  --h-line2: #343a40;
  --h-text: #f3f4f1;
  --h-muted: #a0a6ac;
  --h-accent: #c8f04e;
  --h-accent-text: #c8f04e;
  --h-on-accent: #0b0c0d;
  --h-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --h-font: 'Manrope', system-ui, sans-serif;
  --h-font-h: 'Manrope', system-ui, sans-serif;
}
body[data-theme='light'] {
  --h-card: #ffffff;
  --h-bg: #fafaf8;
  --h-bg2: #f2f2ee;
  --h-surf: #ffffff;
  --h-line: #e3e3dd;
  --h-line2: #c9c9c1;
  --h-text: #101214;
  --h-muted: #565c63;
  --h-accent-text: #3d5800;
  --h-shadow: 0 30px 70px rgba(16, 18, 20, 0.14);
}

/* ---------- Navbar (shared with dashboard) ---------- */
body .navbar {
  background: color-mix(in srgb, var(--h-bg) 88%, transparent);
  border-bottom: 1px solid var(--h-line);
}
body .navbar .navbar-inner { max-width: 1240px; margin: 0 auto; height: 68px; }
body .navbar .brand {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font: 800 17px/1 var(--h-font-h); letter-spacing: 0.14em; color: var(--h-text);
}
body .navbar .brand span { color: var(--h-text); background: none; -webkit-text-fill-color: initial; }
body .navbar .brand-logo { width: 32px; height: 32px; }
body .navbar .nav-links { display: flex; gap: 2px; margin-left: auto; margin-right: 8px; }
body .navbar .nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font: 600 14px var(--h-font); color: var(--h-muted); background: none; border: 0; border-radius: 8px;
  text-decoration: none; transition: color 0.2s;
}
body .navbar .nav-link:hover, body .navbar .nav-link.active { color: var(--h-text); background: none; }
body .navbar .btn {
  min-height: 44px; border-radius: 10px; font: 700 14px var(--h-font);
  background: transparent; border: 1px solid var(--h-line2); color: var(--h-text);
}
body .navbar .btn:hover { border-color: var(--h-text); color: var(--h-text); }
body .navbar .btn.btn-primary, body .mobile-nav .btn-primary {
  background: var(--h-accent); color: var(--h-on-accent); border-color: var(--h-accent);
}
body .navbar .btn.btn-primary:hover { filter: brightness(1.06); color: var(--h-on-accent); }
body .navbar .link-quiet {
  background: none; border: 0; min-height: 44px; padding: 0 10px; color: var(--h-muted);
  font: 600 14px var(--h-font);
}
body .navbar .link-quiet:hover { color: var(--h-text); }
body .mobile-nav { background: var(--h-bg); border-bottom: 1px solid var(--h-line); padding: 12px 16px 20px; }
body .mobile-nav .nav-link { display: flex; color: var(--h-text); padding: 0 8px; font-size: 17px; min-height: 52px; border-bottom: 1px solid var(--h-line); border-radius: 0; background: none; }
body .mobile-nav .btn { margin-top: 14px; width: 100%; min-height: 50px; }
body .hamburger span { background: var(--h-text); }
body .hamburger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
@media (max-width: 960px) {
  body .navbar .nav-links { display: none; }
  body .navbar .navbar-inner { padding: 0 16px; }
  body .navbar #navCta { display: none; }
  body .navbar #themeToggleAlt { margin-left: auto; }
}

body[data-theme] .navbar { background: color-mix(in srgb, var(--h-bg) 88%, transparent); border-bottom-color: var(--h-line); }
body[data-theme] .navbar .brand, body[data-theme] .navbar .brand span { color: var(--h-text); }
body[data-theme] .navbar .nav-link { color: var(--h-muted); background: none; }
body[data-theme] .navbar .nav-link:hover { color: var(--h-text); background: none; }
body[data-theme] .navbar .btn { background: transparent; border: 1px solid var(--h-line2); color: var(--h-text); box-shadow: none; }
body[data-theme] .navbar .btn.btn-primary { background: var(--h-accent); border-color: var(--h-accent); color: var(--h-on-accent); box-shadow: none; }
body[data-theme] .mobile-nav { background: var(--h-bg); border-bottom-color: var(--h-line); }
body[data-theme] .mobile-nav .nav-link { color: var(--h-text); background: none; }
body[data-theme] .mobile-nav .btn.btn-primary { background: var(--h-accent); color: var(--h-on-accent); border: 0; }

/* ---------- Home page ---------- */
#page-home { background: var(--h-bg); color: var(--h-text); font-family: var(--h-font); }
#page-home h1, #page-home h2, #page-home h3, #page-home h4 { font-family: var(--h-font-h); letter-spacing: -0.02em; color: var(--h-text); }
#page-home a { color: inherit; text-decoration: none; }
#page-home a.hp-btn.primary { color: var(--h-on-accent); }
#page-home :focus-visible, .navbar :focus-visible, .mobile-nav :focus-visible { outline: 2px solid var(--h-accent-text); outline-offset: 3px; border-radius: 4px; }
body:not([data-theme='light']) #page-home :focus-visible, body:not([data-theme='light']) .navbar :focus-visible { outline-color: var(--h-accent); }
#page-home section[id] { scroll-margin-top: 76px; }
.hp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hp-sec { padding: 112px 0; border-top: 1px solid var(--h-line); }
.hp-sec.alt { background: var(--h-bg2); }
.hp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font: 700 12px var(--h-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--h-accent-text);
}
.hp-eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.hp-h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; font-weight: 800; max-width: 18ch; }
.hp-h2.wide { max-width: 24ch; }
.hp-lead { font-size: 18px; line-height: 1.6; color: var(--h-muted); max-width: 62ch; margin-top: 20px; }
.hp-head { margin-bottom: 56px; }

.hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border-radius: 10px; font: 700 15px var(--h-font); border: 1px solid var(--h-line2); color: var(--h-text);
  background: transparent; cursor: pointer; transition: transform 0.2s, border-color 0.2s, background 0.2s, filter 0.2s;
}
.hp-btn:hover { border-color: var(--h-text); transform: translateY(-1px); }
.hp-btn.primary { background: var(--h-accent); border-color: var(--h-accent); color: var(--h-on-accent); }
.hp-btn.primary:hover { filter: brightness(1.07); }
.hp-btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.hp-link { font-weight: 700; color: var(--h-accent-text) !important; border-bottom: 1px solid transparent; }
.hp-link:hover { border-bottom-color: currentColor; }

/* Hero */
.hp-hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hp-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--h-line) 1px, transparent 1px), linear-gradient(90deg, var(--h-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
}
.hp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hp-hero h1 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.hp-hero h1 em { font-style: normal; color: var(--h-accent-text); }
.hp-hero .sub { font-size: 20px; line-height: 1.55; color: var(--h-text); margin-top: 26px; max-width: 52ch; }
.hp-hero .sub2 { font-size: 16px; line-height: 1.6; color: var(--h-muted); margin-top: 14px; max-width: 52ch; }
.hp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hp-hero-note { margin-top: 22px; font-size: 13px; color: var(--h-muted); }
.hp-shot { position: relative; }
.hp-frame {
  border: 1px solid var(--h-line2); border-radius: 12px; overflow: hidden; background: var(--h-surf); box-shadow: var(--h-shadow);
}
.hp-frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--h-line); background: var(--h-bg2); }
.hp-frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--h-line2); }
.hp-frame-bar span { margin-left: 10px; font-size: 11px; color: var(--h-muted); letter-spacing: 0.04em; }
.hp-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 772; object-fit: cover; }


/* ---------- Hero product frame ---------- */
.hp-shot .hp-frame { position: relative; }
.hp-live { position: absolute; right: 14px; top: 52px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font: 800 11px var(--h-font); letter-spacing: .12em;
  background: var(--h-surf); border: 1px solid var(--h-line2); box-shadow: var(--h-shadow); }
.hp-live::before, .st-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 0 0 rgba(53,208,127,.6); animation: livePulse 2s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px rgba(53,208,127,0); } 100% { box-shadow: 0 0 0 0 rgba(53,208,127,0); } }
.hp-shot-cap { margin-top: 14px; font-size: 13px; color: var(--h-muted); }
.hp-shot-cap a { color: var(--h-accent-text); font-weight: 700; }

/* ---------- Scroll story: From Conversation To Working System ---------- */
.story { --p: 0; --s0: 1; --s1: 1; --s2: 1; --s3: 1; --s4: 1; --s5: 1; --s6: 1; --s7: 1; position: relative; border-top: 1px solid var(--h-line); background: var(--h-bg); }
.story.live-js { height: 620vh; }
.story-pin { position: relative; }
.story:not(.live-js) .st-scene { height: min(540px, 110vw); min-height: 320px; }
.story.live-js .story-pin { position: sticky; top: 68px; height: calc(100vh - 68px); height: calc(100svh - 68px); overflow: hidden; display: flex; align-items: center; }
.story-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 24px; align-items: center; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.story.live-js .story-grid { height: 100%; padding-top: 24px; padding-bottom: 24px; }
.story-copy .hp-h2 { font-size: clamp(28px, 3.2vw, 44px); max-width: 14ch; }
.st-steps { list-style: none; margin-top: 28px; display: grid; gap: 0; border-left: 1px solid var(--h-line2); }
.st-steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; padding: 9px 0 9px 18px; opacity: .38; transition: opacity .35s; }
.st-steps li::before { content: ''; position: absolute; left: -4px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--h-line2); transition: background .3s, transform .3s; }
.st-steps li[aria-current='step'] { opacity: 1; }
.st-steps li[aria-current='step']::before { background: var(--h-accent); transform: scale(1.5); box-shadow: 0 0 0 4px color-mix(in srgb, var(--h-accent) 25%, transparent); }
.st-steps .n { font: 700 12px/1.9 var(--h-font); letter-spacing: .1em; color: var(--h-accent-text); }
.st-steps h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.st-steps p { font-size: 14px; line-height: 1.5; color: var(--h-muted); max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.st-steps li[aria-current='step'] p, .story:not(.live-js) .st-steps p { max-height: 90px; }
.story:not(.live-js) .st-steps li { opacity: 1; }
.st-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--h-line); }
.st-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--h-accent); }
.story:not(.live-js) .st-bar { display: none; }

.st-scene { position: relative; height: 100%; min-height: 420px; perspective: 2000px; }
.st-fit { position: absolute; left: 50%; top: 50%; width: 840px; height: 600px; margin: -300px 0 0 -420px; transform-origin: 50% 50%; }
.stage { --ry: 0deg; --pan: 0px; margin-left: var(--pan); position: absolute; left: 50%; top: 66%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(calc(-35deg + var(--ry))); }
.board { position: absolute; left: -540px; top: -360px; width: 1080px; height: 720px; border-radius: 28px; transform: translateZ(-2px);
  background-image: linear-gradient(var(--h-line) 1px, transparent 1px), linear-gradient(90deg, var(--h-line) 1px, transparent 1px); background-size: 40px 40px; background-color: var(--h-bg2);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); opacity: .9; }

/* generic cuboid: top, front (+y) and left (-x) faces are the visible ones */
.obj, .cub, .zl { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.obj { transform: translate3d(var(--x), var(--y), 0) scale3d(var(--g), var(--g), var(--g)); }
.cub { --ct: var(--h-surf); --cf: color-mix(in srgb, var(--h-surf) 90%, var(--h-text)); --cl: color-mix(in srgb, var(--h-surf) 78%, var(--h-text)); width: 0; height: 0; }
body:not([data-theme='light']) .cub { --ct: #6a737c; --cf: #4d555c; --cl: #383e44; }
body:not([data-theme='light']) .cub.m { --ct: #3b4248; --cf: #2e3338; --cl: #22262a; }
.cub.m { --ct: var(--h-line); --cf: color-mix(in srgb, var(--h-line) 85%, var(--h-text)); --cl: color-mix(in srgb, var(--h-line) 70%, var(--h-text)); }
.cub.k, body:not([data-theme='light']) .cub.k { --ct: #2b3035; --cf: #272b2f; --cl: #181b1e; }
.cub.g, body:not([data-theme='light']) .cub.g { --ct: #c8f04e; --cf: #a3cc2c; --cl: #7fa319; }
.cub i { position: absolute; left: 0; top: 0; transform-origin: 0 0; box-sizing: border-box; border: 1px solid rgba(0,0,0,.1); }
.cub .tp { width: var(--w); height: var(--d); transform: translateZ(var(--h)); background: var(--ct); display: grid; place-items: center; font: 800 9px var(--h-font); letter-spacing: .14em; color: var(--h-text); }
.cub.k .tp, .cub.g .tp { color: inherit; }
.cub.k .tp { color: #c8f04e; }
.cub.g .tp { color: #11160a; }
.cub .tp[data-l]::after { content: attr(data-l); }
.cub .ft { width: var(--w); height: var(--h); transform: translateY(var(--d)) rotateX(90deg); background: var(--cf); }
.cub .fl { width: var(--h); height: var(--d); transform: rotateY(-90deg); background: var(--cl); }
.cub .sd { width: var(--w); height: var(--d); transform: translateZ(.5px); border: 0; box-shadow: 14px 20px 24px rgba(0,0,0,.28); }

/* billboards face the camera */
.bb { position: absolute; left: 0; top: 0; width: max-content; transform-style: preserve-3d; transform-origin: 0 0;
  transform: translate3d(var(--x), var(--y), var(--z, 0px)) rotateZ(calc(35deg - var(--ry))) rotateX(-58deg) translate(-50%, -100%); }
.card { background: var(--h-card); border: 1px solid var(--h-line2); border-radius: 8px; box-shadow: var(--h-shadow); }
.chip { display: inline-flex; gap: 7px; align-items: center; padding: 6px 11px; border-radius: 7px; font: 700 11px var(--h-font); white-space: nowrap;
  background: var(--h-card); border: 1px solid var(--h-line2); box-shadow: 0 8px 20px rgba(0,0,0,.18); transform: scale(var(--g)); transform-origin: 50% 100%; }
.chip b { color: var(--h-accent-text); letter-spacing: .08em; }
.head3 { width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5a6168, #1b1e21); }
.ring { position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; border-radius: 50%; border: 1px dashed var(--h-text); opacity: .35; transform: translateZ(1px); }
.bub { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; background: var(--h-accent); color: #11160a; font: 800 14px var(--h-font); }
.doc { width: 70px; padding: 10px 10px 12px; display: grid; gap: 7px; }
.doc .h { height: 5px; width: 60%; border-radius: 3px; background: var(--h-text); opacity: .8; }
.doc .r { display: flex; gap: 6px; align-items: center; }
.doc .r::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--h-accent); flex: none; }
.doc .r::after { content: ''; height: 4px; flex: 1; border-radius: 2px; background: var(--h-line2); }
.wf { width: 96px; padding: 8px; display: grid; gap: 6px; }
.wf .t { height: 8px; border-radius: 3px; background: var(--h-line2); }
.wf .row { display: grid; grid-template-columns: 26px 1fr; gap: 6px; }
.wf .sb { height: 40px; border-radius: 4px; background: var(--h-bg2); border: 1px dashed var(--h-line2); }
.wf .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.wf .grid i { height: 17px; border-radius: 3px; background: var(--h-bg2); border: 1px dashed var(--h-line2); }
.wf .btn { height: 10px; width: 40%; border-radius: 3px; background: var(--h-accent); }
.prod { width: 270px; overflow: visible; border-radius: 10px; opacity: clamp(0, calc((var(--s7) - .08) * 4), 1); }
.prod .hp-frame { border-radius: 10px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.prod .hp-frame img { aspect-ratio: 1400 / 790; }
.st-live { position: absolute; right: -8px; top: -14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 800 11px var(--h-font); letter-spacing: .12em;
  background: var(--h-surf); color: var(--h-text); border: 1px solid var(--h-line2); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.status { padding: 8px 16px; border-radius: 8px; font: 800 12px var(--h-font); letter-spacing: .14em; background: var(--h-text); color: var(--h-bg); white-space: nowrap;
  opacity: clamp(0, calc((var(--s7) - .7) * 3.4), 1); }
.status em { font-style: normal; color: #c8f04e; }
body[data-theme='light'] .status em { color: #a6e000; }

.wire { position: absolute; left: 0; top: 0; width: var(--L); height: 3px; margin-top: -1.5px; transform-origin: 0 50%;
  transform: translate3d(var(--sx), var(--sy), 1px) rotateZ(var(--a)) scaleX(var(--g));
  background: repeating-linear-gradient(90deg, var(--h-text) 0 6px, transparent 6px 12px); opacity: .45; }
.wire i { position: absolute; top: -3px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--h-accent); box-shadow: 0 0 10px var(--h-accent); animation: flow 2.2s linear infinite; }
@keyframes flow { from { left: 0; } to { left: calc(100% - 9px); } }
.coreglow { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; transform: scale(var(--s5)); transform-origin: 50% 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--h-accent) 55%, transparent), transparent 68%); animation: glow 3s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .55; } }
.zl { transform: translateZ(calc(var(--zz) + (1 - var(--gg)) * 36px)) scale3d(var(--gg), var(--gg), var(--gg)); }
.story.paused * { animation-play-state: paused !important; }

@media (max-width: 1080px) { .story-grid { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); } }
@media (max-width: 860px) {
  .story.live-js { height: 520vh; }
  .story-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 0; align-content: stretch; }
  .story.live-js .story-grid { padding: 8px 0 16px; }
  .st-scene { order: -1; min-height: 0; }
  .story-copy .hp-eyebrow, .story-copy .hp-h2 { display: none; }
  .story:not(.live-js) .story-copy .hp-eyebrow, .story:not(.live-js) .story-copy .hp-h2 { display: block; }
  .story.live-js .st-steps { margin-top: 0; border-left: 0; }
  .story.live-js .st-steps li { display: none; padding-left: 0; }
  .story.live-js .st-steps li[aria-current='step'] { display: grid; }
  .story.live-js .st-steps li::before { display: none; }
  .story .tagchip, .story .dec { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wire i, .coreglow, .hp-live::before, .st-live::before { animation: none; }
}

/* Trust */
.hp-trust { padding: 96px 0; }
.hp-caps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--h-line); border-radius: 12px; overflow: hidden; margin-top: 48px; }
.hp-caps li { list-style: none; padding: 22px 24px; font-weight: 700; font-size: 15px; border-right: 1px solid var(--h-line); border-bottom: 1px solid var(--h-line); display: flex; gap: 12px; align-items: center; background: var(--h-surf); }
.hp-caps li:nth-child(4n) { border-right: 0; }
.hp-caps li:nth-last-child(-n+4) { border-bottom: 0; }
.hp-caps li::before { content: ''; width: 6px; height: 6px; background: var(--h-accent); flex: none; }
.hp-trust-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }

/* Proof of life */
.hp-proof { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--h-line2); }
.hp-proof > div { padding: 32px 32px 36px 0; border-right: 1px solid var(--h-line); }
.hp-proof > div + div { padding-left: 32px; }
.hp-proof > div:last-child { border-right: 0; }
.hp-proof .n { font: 700 12px var(--h-font); letter-spacing: 0.12em; color: var(--h-accent-text); }
.hp-proof h3 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 10px; text-transform: uppercase; }
.hp-proof p { font-size: 17px; line-height: 1.5; color: var(--h-muted); max-width: 26ch; }
.hp-proof-line { margin: 8px 0 0; padding: 24px 0 8px; font-size: 19px; font-weight: 700; border-top: 1px solid var(--h-line); }
.hp-proof-line em { font-style: normal; color: var(--h-accent-text); }
.hp-trust .hp-caps { margin-top: 32px; }
@media (max-width: 900px) {
  .hp-proof { grid-template-columns: minmax(0, 1fr); }
  .hp-proof > div, .hp-proof > div + div { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--h-line); }
}

/* Problems */
.hp-problems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--h-line); border: 1px solid var(--h-line); border-radius: 12px; overflow: hidden; }
.hp-problems div { background: var(--h-surf); padding: 28px 24px; min-height: 150px; }
.hp-problems .n { font: 700 12px var(--h-font); color: var(--h-accent-text); letter-spacing: 0.12em; }
.hp-problems h3 { font-size: 18px; margin: 14px 0 8px; font-weight: 700; letter-spacing: -0.01em; }
.hp-problems p { font-size: 14px; color: var(--h-muted); line-height: 1.55; }
.hp-pull { margin-top: 56px; font-size: clamp(24px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; max-width: 22ch; }
.hp-pull em { font-style: normal; color: var(--h-accent-text); }

/* Services */
.hp-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-card {
  background: var(--h-surf); border: 1px solid var(--h-line); border-radius: 12px; padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.hp-card:hover { border-color: var(--h-line2); transform: translateY(-3px); }
.hp-card .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--h-line2); color: var(--h-accent-text); margin-bottom: 22px; }
.hp-card .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hp-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.hp-card p { font-size: 15px; line-height: 1.6; color: var(--h-muted); }

/* Solutions */
.hp-sol { border-top: 1px solid var(--h-line); }
.hp-sol-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--h-line); transition: padding 0.25s; }
.hp-sol-row:hover { padding-left: 10px; }
.hp-sol-row .n { font: 700 13px var(--h-font); color: var(--h-accent-text); letter-spacing: 0.1em; }
.hp-sol-row h3 { font-size: 22px; font-weight: 700; }
.hp-sol-row p { font-size: 15px; color: var(--h-muted); line-height: 1.55; }
.hp-sol-row a { font-weight: 700; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; color: var(--h-accent-text); white-space: nowrap; }

/* Case studies */
.hp-cases { display: grid; gap: 28px; }
.hp-case { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border: 1px solid var(--h-line); border-radius: 14px; overflow: hidden; background: var(--h-surf); transition: border-color 0.25s; }
.hp-case:hover { border-color: var(--h-line2); }
.hp-case:nth-child(even) .hp-case-media { order: 2; }
.hp-case-media { position: relative; background: var(--h-bg2); overflow: hidden; min-height: 280px; }
.hp-case-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.hp-case:hover .hp-case-media img { transform: scale(1.03); }
.hp-case-body { padding: 40px 40px 36px; display: flex; flex-direction: column; }
.hp-case-ind { font: 700 11px var(--h-font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-accent-text); }
.hp-case h3 { font-size: 26px; font-weight: 800; margin: 10px 0 20px; }
.hp-case dl { display: grid; gap: 14px; }
.hp-case dt { font: 700 11px var(--h-font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--h-muted); margin-bottom: 3px; }
.hp-case dd { font-size: 15px; line-height: 1.55; }
.hp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; list-style: none; }
.hp-tags li { font-size: 12px; font-weight: 600; padding: 6px 10px; border: 1px solid var(--h-line2); border-radius: 6px; color: var(--h-muted); }
.hp-cases-note { margin-top: 28px; font-size: 14px; color: var(--h-muted); }

/* Why */
.hp-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--h-line); border-left: 1px solid var(--h-line); }
.hp-why div { padding: 36px 32px 40px; border-right: 1px solid var(--h-line); border-bottom: 1px solid var(--h-line); }
.hp-why h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.hp-why p { font-size: 15px; line-height: 1.6; color: var(--h-muted); }

/* Process */
.hp-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; list-style: none; position: relative; counter-reset: s; }
.hp-steps::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--h-line2); }
.hp-steps::after { content: ''; position: absolute; left: 0; top: 7px; height: 1px; width: 100%; background: var(--h-accent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.3,.6,.2,1); }
.hp-steps.in::after { transform: scaleX(1); }
.hp-steps li { position: relative; padding: 36px 20px 0 0; }
.hp-steps li::before { content: ''; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--h-bg); border: 2px solid var(--h-accent-text); z-index: 1; }
.hp-steps .n { font: 700 12px var(--h-font); letter-spacing: 0.12em; color: var(--h-accent-text); }
.hp-steps h3 { font-size: 20px; font-weight: 700; margin: 8px 0 8px; }
.hp-steps p { font-size: 14px; line-height: 1.6; color: var(--h-muted); }

/* Existing system */
.hp-existing { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hp-existing h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; font-weight: 800; }
.hp-existing h2 em { font-style: normal; color: var(--h-accent-text); display: block; }
.hp-issues { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; list-style: none; }
.hp-issues li { padding: 15px 0; border-bottom: 1px solid var(--h-line); font-size: 15px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.hp-issues li::before { content: '→'; color: var(--h-accent-text); font-weight: 800; }

/* Technology */
.hp-tech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-tech > div { border: 1px solid var(--h-line); border-radius: 12px; padding: 26px 26px 28px; background: var(--h-surf); }
.hp-tech h3 { font: 700 12px var(--h-font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-muted); margin-bottom: 16px; }
.hp-tech p { font-size: 17px; font-weight: 600; line-height: 1.7; }

/* FAQ */
.hp-faq { max-width: 860px; border-top: 1px solid var(--h-line); }
.hp-faq details { border-bottom: 1px solid var(--h-line); }
.hp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 0; min-height: 44px; font: 700 18px var(--h-font); }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { content: '+'; font-size: 26px; font-weight: 400; color: var(--h-accent-text); transition: transform 0.25s; flex: none; }
.hp-faq details[open] summary::after { transform: rotate(45deg); }
.hp-faq details p { padding: 0 48px 26px 0; color: var(--h-muted); font-size: 16px; line-height: 1.65; }

/* Final CTA + form */
.hp-final { background: var(--h-bg2); }
.hp-final-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.hp-final h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; font-weight: 800; }
.hp-reassure { margin-top: 28px; font-size: 14px; color: var(--h-muted); }
.hp-direct { margin-top: 36px; display: grid; gap: 4px; font-size: 15px; }
.hp-direct a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.hp-direct a:hover { color: var(--h-accent-text); }
.hp-form { background: var(--h-surf); border: 1px solid var(--h-line2); border-radius: 14px; padding: 36px; display: grid; gap: 18px; box-shadow: var(--h-shadow); }
.hp-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-form label { display: block; margin: 0 0 8px; font: 600 13px var(--h-font); color: var(--h-text); }
.hp-form input, .hp-form select, .hp-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 500 15px var(--h-font); color: var(--h-text);
  background: var(--h-bg); border: 1px solid var(--h-line2); border-radius: 8px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.hp-form textarea { min-height: 120px; resize: vertical; }
.hp-form input:focus, .hp-form select:focus, .hp-form textarea:focus { border-color: var(--h-accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--h-accent) 28%, transparent); }
.hp-form .opt { color: var(--h-muted); font-weight: 500; }
.hp-form-msg { font-size: 14px; min-height: 20px; }
.hp-form-msg.ok { color: var(--h-accent-text); font-weight: 700; }
.hp-form-msg.bad { color: #e5604d; font-weight: 600; }
.hp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.hp-foot { border-top: 1px solid var(--h-line); padding: 64px 0 28px; background: var(--h-bg); }
.hp-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.hp-foot h4 { font: 700 12px var(--h-font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-muted); margin-bottom: 16px; }
.hp-foot a { display: flex; align-items: center; min-height: 36px; font-size: 15px; color: var(--h-text); }
.hp-foot a:hover { color: var(--h-accent-text); }
.hp-foot p { font-size: 14px; color: var(--h-muted); line-height: 1.6; max-width: 34ch; margin-top: 14px; }
.hp-foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--h-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--h-muted); }

/* Motion */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.hp-hero .hero-in { animation: heroIn 0.9s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hp-hero .hero-in { animation: none; }
  .hp-steps::after { transform: scaleX(1); transition: none; }
  .hp-card, .hp-btn, .hp-sol-row, .hp-case-media img { transition: none; }
  html { scroll-behavior: auto !important; }
}

/* Responsive */
@media (max-width: 1080px) {
  .hp-problems { grid-template-columns: repeat(2, 1fr); }
  .hp-services, .hp-tech { grid-template-columns: repeat(2, 1fr); }
  .hp-why { grid-template-columns: repeat(2, 1fr); }
  .hp-steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .hp-steps::before, .hp-steps::after { display: none; }
  .hp-steps li::before { display: none; }
  .hp-steps li { padding-top: 0; border-top: 1px solid var(--h-line2); padding-top: 18px; }
}
@media (max-width: 900px) {
  .hp-sec { padding: 80px 0; }
  .hp-hero { padding: 48px 0 72px; }
  .hp-hero-grid, .hp-existing, .hp-final-grid, .hp-trust-split { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hp-shot { margin-bottom: 36px; }
  .hp-caps { grid-template-columns: repeat(2, 1fr); }
  .hp-caps li:nth-child(4n) { border-right: 1px solid var(--h-line); }
  .hp-caps li:nth-child(2n) { border-right: 0; }
  .hp-caps li:nth-last-child(-n+4) { border-bottom: 1px solid var(--h-line); }
  .hp-caps li:nth-last-child(-n+2) { border-bottom: 0; }
  .hp-case { grid-template-columns: minmax(0, 1fr); }
  .hp-case:nth-child(even) .hp-case-media { order: 0; }
  .hp-case-media { min-height: 0; aspect-ratio: 16 / 9; }
  .hp-case-body { padding: 28px 24px; }
  .hp-sol-row { grid-template-columns: 40px 1fr; gap: 6px 16px; }
  .hp-sol-row p, .hp-sol-row a { grid-column: 2; }
  .hp-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hp-wrap { padding: 0 16px; }
  .hp-sec { padding: 64px 0; }
  .hp-head { margin-bottom: 36px; }
  .hp-hero .sub { font-size: 18px; }
  .hp-cta-row .hp-btn { width: 100%; }
  .hp-problems, .hp-services, .hp-tech, .hp-why, .hp-issues { grid-template-columns: 1fr; }
  .hp-steps { grid-template-columns: 1fr; row-gap: 0; border-left: 1px solid var(--h-line2); margin-left: 7px; }
  .hp-steps li { border-top: 0; padding: 0 0 32px 28px; }
  .hp-steps li::before { display: block; left: -8px; top: 2px; }
  .hp-form { padding: 24px 18px; }
  .hp-form .two { grid-template-columns: 1fr; }
  .hp-faq summary { font-size: 16px; }
  .hp-faq details p { padding-right: 0; }
  .hp-foot-grid { grid-template-columns: 1fr; }
  .hp-caps li { padding: 18px 16px; font-size: 14px; }
}
