/* UltrazExcel home page v2 (2 Oct 2026). Brand palette kept: #7762F5 purple, #F4F0FF lavender, black.
   Contrast (WCAG, computed): headings #F4F0FF 16.5:1, body #B4B1C4 8.8:1, labels #9C99AC 6.6:1 on #14131c;
   white on button #6650E8 5.42:1; black on #7762F5 4.85:1; #7762F5 text only at >= 24px. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("assets/fonts-v2/manrope-latin.20261002.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("assets/fonts-v2/instrumentserif-italic-latin.20261002.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("assets/fonts-v2/jetbrainsmono-latin.20261002.woff2") format("woff2"); }

:root {
  --bg: #000000;
  --bg-2: #07060c;
  --card: rgba(20, 19, 28, 0.92);
  --card-solid: #14131c;
  --line: rgba(244, 240, 255, 0.09);
  --line-2: rgba(244, 240, 255, 0.16);
  --head: #F4F0FF;
  --text: #B4B1C4;
  --muted: #9C99AC;
  --brand: #7762F5;
  --brand-btn: #6650E8;
  --brand-soft: rgba(119, 98, 245, 0.16);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 18px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--head); margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
h1 em, h2 em { color: var(--brand); }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--head); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--head); color: #000;
  padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 15.5px; }
.btn-primary { background: var(--brand-btn); color: #fff; box-shadow: 0 8px 30px rgba(119,98,245,.35); }
.btn-primary:hover { box-shadow: 0 10px 40px rgba(119,98,245,.5); }
.btn-ghost { background: rgba(20,19,28,.9); color: var(--head); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: rgba(244,240,255,.3); }
.btn-dark { background: #000; color: #fff; }

/* Labels */
.label { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--muted);
  letter-spacing: .02em; margin-bottom: 18px; }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.label-dark { color: #000; }
.label-dark::before { background: #000; box-shadow: none; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(0,0,0,.82);
  border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.brand img { width: 172px; height: auto; }
.nav-links { display: flex; gap: 6px; margin-inline: auto; padding: 5px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(20,19,28,.6); }
.nav-links a { display: block; padding: 10px 18px; border-radius: 999px; font-size: 16px; color: var(--text); text-decoration: none; }
.nav-links a:hover { color: var(--head); background: rgba(244,240,255,.06); }
.nav-toggle { display: none; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 30px 80px rgba(0,0,0,.45); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; min-height: min(860px, 100vh); display: flex; align-items: center;
  background: radial-gradient(60% 70% at 78% 45%, rgba(119,98,245,.22), transparent 70%); }
/* Fixed full-viewport ribbon canvas (home-v2.js); everything else paints above it */
.bgflow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* starfield: two tiles of different sizes so the pattern does not visibly repeat; the second one twinkles */
/* fixed to the viewport (not page-tall) so the twinkling layer stays screen-sized; above the opaque canvas */
main::before, main::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
main::before { background-size: 613px 613px; background-image:
    radial-gradient(circle at 463px 573px, rgba(244,240,255,0.43) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 462px 520px, rgba(244,240,255,0.26) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 524px 487px, rgba(244,240,255,0.44) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 96px 457px, rgba(244,240,255,0.23) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 42px 609px, rgba(244,240,255,0.49) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 161px 15px, rgba(244,240,255,0.22) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 36px 194px, rgba(244,240,255,0.38) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 475px 334px, rgba(244,240,255,0.45) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 531px 239px, rgba(244,240,255,0.35) 0 0.9px, transparent 1.7px); }
main::after { background-size: 877px 877px; opacity: .7; background-image:
    radial-gradient(circle at 798px 296px, rgba(244,240,255,0.23) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 606px 314px, rgba(244,240,255,0.36) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 133px 743px, rgba(244,240,255,0.55) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 226px 635px, rgba(244,240,255,0.21) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 87px 727px, rgba(244,240,255,0.21) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 642px 751px, rgba(244,240,255,0.43) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 210px 801px, rgba(244,240,255,0.52) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 176px 635px, rgba(244,240,255,0.68) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 579px 778px, rgba(244,240,255,0.49) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 288px 676px, rgba(244,240,255,0.37) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 833px 485px, rgba(244,240,255,0.57) 0 1.4px, transparent 2.2px); }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
/* twinkle only when the pause control works (JS on) and the visitor has not paused it */
.motion-ok:not(.motion-paused) main::after { animation: twinkle 7s ease-in-out infinite alternate; }

/* pause / play control for the background animation (WCAG 2.2.2) */
.motion-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--head);
  background: rgba(20,19,28,.85); border: 1px solid var(--line-2); }
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { border-color: rgba(244,240,255,.35); }
.motion-toggle i { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.motion-toggle[aria-pressed="true"] i { width: 0; height: 0; border-style: solid; border-color: transparent;
  border-left: 12px solid currentColor; border-width: 7px 0 7px 12px; margin-left: 3px; }
main, .footer { position: relative; }
main { isolation: isolate; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.scrim { position: relative; isolation: isolate; }
.scrim::before { content: ""; position: absolute; inset: -60px -80px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(7,6,12,.94), rgba(7,6,12,.75) 60%, transparent); }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2);
  border-radius: 8px; background: rgba(20,19,28,.85); margin-bottom: 26px; }
.tag-logo img { width: 84px; height: auto; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.08; letter-spacing: -0.035em; max-width: 12ch; }
.hero h1 em { display: inline-block; padding-right: .06em; }
.lead { margin-top: 22px; font-size: clamp(16px, 1.4vw, 18px); color: var(--text); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero flow card (illustration only: feature names, no figures) */
.flow { margin: 0; padding: 18px 20px 20px; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); }
.flow-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.flow-body { position: relative; height: 260px; margin: 16px 0 6px; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-lines path { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.flow-lines path.dim { stroke: rgba(244,240,255,.35); }
/* nodes sit in the same 400x260 space as the connector SVG: left/width = x/400, top = y/260 */
.node { position: absolute; transform: translateY(-50%); padding: 9px 10px; border-radius: 12px; background: #1b1a26;
  border: 1px solid var(--line-2); }
.node b { display: block; color: var(--head); font-size: 12.5px; line-height: 1.3; font-weight: 600; }
.n1 { left: 0; width: 23.75%; top: 50%; }
.n2 { left: 41.25%; width: 26.25%; top: 26.92%; }
.n3 { left: 41.25%; width: 26.25%; top: 73.08%; }
.n4 { left: 75%; width: 25%; top: 36.54%; border-color: rgba(119,98,245,.6); }
.n5 { left: 75%; width: 25%; top: 63.46%; }
.flow-list { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
.flow-list li { display: flex; align-items: center; gap: 10px; }
.flow-list i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* Sections */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.head { position: relative; isolation: isolate; margin-bottom: 48px; }
/* dark backdrop behind section headings so ribbons never sit directly under text */
.head::before { content: ""; position: absolute; inset: -28px -32px; z-index: -1; pointer-events: none;
  background: rgba(0,0,0,.86); border-radius: 40px; filter: blur(22px); }
.head h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; }
.head p { color: var(--text); font-size: 17px; }
.head.center { text-align: center; }
.head.center p { margin: 18px auto 0; max-width: 56ch; }
.head.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
.head.split p { max-width: 52ch; }

.shot { padding: 10px; margin-bottom: 28px; overflow: hidden; }
.shot img { border-radius: 12px; width: 100%; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); overflow: hidden; }
.feat { padding: 28px 24px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feat:nth-child(4n) { border-right: 0; }
.feat:nth-last-child(-n+4) { border-bottom: 0; }
.feat img { width: 32px; height: 32px; object-fit: contain; margin-bottom: 18px; }
.feat h3 { font-size: 17px; }
.feat p { margin-top: 8px; font-size: 15px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid2 > *, .grid4 > *, .value > *, .closing-grid > *, .hero-grid > *, .head.split > *, .foot-cols > * { min-width: 0; }
.service { overflow: hidden; display: flex; flex-direction: column; }
.service .photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-body { padding: 24px 26px 28px; display: grid; gap: 16px; }
.service-body img { width: 32px; height: 32px; object-fit: contain; }
.service-body p { font-size: 15.5px; }

.value { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
.key { padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.key-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--brand-soft);
  color: var(--head); font: 500 12px/1 var(--sans); }
.chip img { width: 16px; height: 16px; object-fit: contain; }
.key-line { color: var(--head); font-size: 22px; line-height: 1.3; font-weight: 500; }
.bars { margin-top: auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 34px; }
.bars i { border-radius: 4px; background: var(--brand); opacity: .55; }
.unlock { padding: 26px; }
.unlock h3 { font-size: 20px; margin-bottom: 8px; }
.unlock li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.unlock li:last-child { border-bottom: 0; }
.unlock li img { width: 24px; height: 24px; object-fit: contain; margin-top: 2px; }
.unlock b { color: var(--head); font-weight: 600; }
.unlock li p { font-size: 15px; }

.topic { padding: 30px; }
.topic img { width: 40px; height: 38px; object-fit: contain; margin-bottom: 20px; }
.topic h3 { font-size: 20px; }
.topic p { margin-top: 10px; }

.laptop { position: relative; }
.laptop::before { content: ""; position: absolute; inset: 10% 15% -5%; z-index: -1;
  background: radial-gradient(closest-side, rgba(119,98,245,.35), transparent); filter: blur(20px); }
.laptop img { width: min(1000px, 100%); margin-inline: auto; }

.promise-box { position: relative; text-align: center; padding: clamp(56px, 8vw, 104px) 24px; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line); background:
    radial-gradient(80% 90% at 50% 120%, rgba(119,98,245,.85), rgba(119,98,245,.25) 45%, transparent 70%), var(--card-solid); }
.promise-box h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1.05; max-width: 18ch; margin-inline: auto; }
.promise-box h2 em { color: var(--head); }
.promise-box p { margin: 20px auto 0; max-width: 52ch; color: var(--head); font-size: 17px; }

.quote { margin: 0; padding: clamp(28px, 5vw, 56px); }
.quote blockquote { margin: 0; color: var(--head); font-size: clamp(18px, 2vw, 24px); line-height: 1.5; font-weight: 400; }
.quote figcaption { margin-top: 24px; font: 500 14px/1.4 var(--mono); color: var(--muted); }
.quote figcaption::before { content: "— "; }

.closing { padding-top: clamp(64px, 8vw, 112px); }
.closing-grid { position: relative; display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; }
.brandcard { position: relative; padding: 28px; min-height: 260px; overflow: hidden; }
.brandcard img { width: 160px; }
.chev { position: absolute; right: -70px; bottom: -70px; width: 260px; height: 260px; border-radius: 50%; opacity: .55;
  background: repeating-radial-gradient(circle, transparent 0 22px, rgba(119,98,245,.35) 23px 24px); }
.cta { position: relative; padding: clamp(28px, 4vw, 44px); border-radius: var(--r); background: var(--brand); color: #000;
  box-shadow: 0 30px 90px rgba(119,98,245,.35); }
.cta h2 { color: #000; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; }
.cta h2 em { color: #000; }
.cta p { margin: 14px 0 26px; font-size: 17px; color: #000; max-width: 46ch; }
.cta :focus-visible { outline-color: #000; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: #000; }
.foot-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.foot-brand img { width: 160px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-h { font: 500 12px/1 var(--mono); color: var(--muted); margin-bottom: 16px; letter-spacing: .02em; }
.foot-cols li { font-size: 14px; color: var(--text); padding: 4px 0; }
.foot-cols a { text-decoration: none; color: var(--head); }
.foot-cols a:hover { text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px;
  border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.foot-bottom a { color: var(--text); }

/* Reveal: hidden only when JS is running, never for print or reduced motion */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal-ready .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .flow { transform: none; max-width: 560px; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .feat:nth-child(4n) { border-right: 1px solid var(--line); }
  .feat:nth-child(2n) { border-right: 0; }
  .feat:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .feat:nth-last-child(-n+2) { border-bottom: 0; }
  .value, .closing-grid { grid-template-columns: 1fr; }
  .head.split { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; gap: 12px; padding: 10px 0; }
  .nav-links { order: 3; width: 100%; flex-wrap: wrap; justify-content: center; border-radius: 16px; }
  .nav-cta { margin-left: auto; }
  html:not(.menu-ready) { scroll-padding-top: 0; }
  html:not(.menu-ready) .topbar { position: static; }
  .menu-ready .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 12px; border: 1px solid var(--line-2); background: rgba(20,19,28,.85); color: var(--head); cursor: pointer; order: 2; }
  .menu-ready .nav-toggle i, .menu-ready .nav-toggle i::before, .menu-ready .nav-toggle i::after { display: block; width: 18px; height: 2px; background: currentColor;
    border-radius: 2px; position: relative; content: ""; }
  .menu-ready .nav-toggle i::before { position: absolute; top: -6px; }
  .menu-ready .nav-toggle i::after { position: absolute; top: 6px; }
  .menu-ready .nav-cta { order: 1; margin-left: auto; }
  .menu-ready .nav-links { display: none; flex-direction: column; align-items: stretch; }
  .menu-ready .nav-links.open { display: flex; }
  .menu-ready .nav-links a { padding: 12px 14px; }
}
@media (max-width: 640px) {
  .brand img { width: 136px; }
  .nav-cta { display: none; }
  .menu-ready .nav-cta { display: none; }
  .menu-ready .nav-toggle { margin-left: auto; }   /* the CTA is hidden here, so the toggle takes the right edge */
  .hero { padding: 40px 0 64px; min-height: 0; }
  .grid4, .grid2 { grid-template-columns: 1fr; }
  .feat { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .feat:last-child { border-bottom: 0 !important; }
  .flow-body { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .node { position: static; transform: none; width: auto; }
  .n1 { grid-column: 1 / -1; }
  .flow-lines { display: none; }
  .foot-grid, .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main::after { animation: none !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
@media print {
  :root { --head: #000; --text: #222; --muted: #444; }
  .bgflow, .topbar, .nav-toggle, .motion-toggle { display: none !important; }
  main::before, main::after, .head::before, .scrim::before, .laptop::before { display: none !important; }
  .reveal-ready .reveal, .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .card, .grid4 { background: #fff; border-color: #ccc; box-shadow: none; }
  .promise-box { background: #fff; border-color: #ccc; }
  .promise-box h2 em, h1 em, h2 em { color: #000; }
  .cta { background: #fff; border: 1px solid #000; box-shadow: none; }
}
