:root {
  --ink: #0B0B0C;
  --ink-2: #141416;
  --paper: #FFFFFF;
  --soft: #F6F4F1;
  --line: #E6E4E1;
  --line-dark: rgba(255, 255, 255, 0.1);
  --muted: #5B5B63;
  --muted-dark: #A9A9B0;
  --accent: #5271FF;
  --accent-soft: #E9EDFF;
  --radius: 16px;
  --wrap: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* Shared text styles */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
.section-head .sub { margin-top: 18px; font-size: 18px; color: var(--muted); }
.dark .section-head .sub { color: var(--muted-dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); }
.btn::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.35s var(--ease);
}
.btn:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand img { height: 36px; width: auto; }
.brand-light { display: none; }
.nav nav { display: flex; gap: 32px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.72); }
.nav nav a { position: relative; padding: 6px 0; transition: color 0.3s; }
.nav nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav nav a:hover { color: #fff; }
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.pill {
  font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.pill:hover { background: #fff; color: var(--ink); border-color: #fff; }
.nav.solid { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.solid .brand-dark { display: none; }
.nav.solid .brand-light { display: block; }
.nav.solid nav { color: var(--muted); }
.nav.solid nav a:hover { color: var(--ink); }
.nav.solid .pill { color: var(--ink); border-color: var(--line); }
.nav.solid .pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav.hidden { transform: translateY(-100%); }
.nav { transition: background 0.4s, box-shadow 0.4s, transform 0.5s var(--ease); }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--ink); color: #fff; overflow: hidden; padding: 140px 0 120px;
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  right: -18vw; top: -10vw; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(82, 113, 255, 0.28), rgba(82, 113, 255, 0) 62%);
  filter: blur(10px); animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-6%, 8%) scale(1.08); }
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.6); }
.hero h1 { font-size: clamp(40px, 7vw, 84px); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 .line { display: block; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.08em;
  background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0.5;
  animation: underline 1.2s var(--ease) 1.1s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero .lead { margin-top: 28px; max-width: 620px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, 0.74); }
.hero .actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 14px;
  display: grid; justify-content: center; padding-top: 7px; z-index: 1;
}
.scroll-cue span { width: 3px; height: 8px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Marquee */
.marquee { background: var(--ink); border-top: 1px solid var(--line-dark); padding: 18px 0; overflow: hidden; }
.marquee-track {
  display: flex; align-items: center; gap: 32px; width: max-content;
  color: rgba(255, 255, 255, 0.55); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  animation: marquee 40s linear infinite;
}
.marquee-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 120px 0; }
.section.dark { background: var(--ink); color: #fff; }
.section.soft { background: var(--soft); }
.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(2, 1fr); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px 36px;
  background: #fff; position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.card::before {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), rgba(233, 237, 255, 0) 70%); opacity: 0; transition: opacity 0.5s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(11, 11, 12, 0.35); border-color: #D9D6D2; }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: #fff; margin-bottom: 26px;
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 16px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.step { padding: 40px 28px 10px 0; border-right: 1px solid var(--line-dark); margin-right: 28px; position: relative; }
.step:last-child { border-right: none; margin-right: 0; }
.step-n { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 44px; }
.step h3 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.step p { color: var(--muted-dark); font-size: 15.5px; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--accent);
  transition: width 1.2s var(--ease);
}
.step.in::before { width: calc(100% - 28px); }
.step:last-child.in::before { width: 100%; }

/* Hyvix */
#hyvix { overflow-x: clip; }
.hyvix { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.hyvix-copy h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.hyvix-logo img { height: 72px; width: auto; }
.hyvix-copy .sub { margin-top: 22px; color: var(--muted); font-size: 17px; }
.ticks { list-style: none; margin: 28px 0 36px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft);
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: 11px; width: 5px; height: 8px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg);
}
.hyvix-visual { position: relative; aspect-ratio: 1 / 0.92; }
.panel {
  position: absolute; inset: 8% 6%; background: var(--ink); border-radius: 20px; color: #fff;
  box-shadow: 0 50px 90px -40px rgba(11, 11, 12, 0.6); overflow: hidden; z-index: 1;
  transform: rotate(-2deg); transition: transform 0.8s var(--ease);
}
.hyvix-visual:hover .panel { transform: rotate(0deg); }
.panel-bar { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line-dark); }
.panel-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.panel-bar i:first-child { background: var(--accent); }
.panel-body { padding: 26px 26px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; height: calc(100% - 38px); align-content: start; }
.kpi { display: grid; gap: 4px; }
.kpi:first-child { grid-column: 1 / -1; }
.kpi-k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dark); }
.kpi-v { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi:first-child .kpi-v { font-size: 40px; }
.bars { grid-column: 1 / -1; align-self: end; display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-bottom: 26px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: rgba(255, 255, 255, 0.14); transform: scaleY(0); transform-origin: bottom; transition: transform 1.1s var(--ease); }
.bars i:nth-child(odd) { background: rgba(82, 113, 255, 0.75); }
.in .bars i { transform: scaleY(1); }
.in .bars i:nth-child(2) { transition-delay: 0.08s; } .in .bars i:nth-child(3) { transition-delay: 0.16s; }
.in .bars i:nth-child(4) { transition-delay: 0.24s; } .in .bars i:nth-child(5) { transition-delay: 0.32s; }
.in .bars i:nth-child(6) { transition-delay: 0.4s; } .in .bars i:nth-child(7) { transition-delay: 0.48s; }
.in .bars i:nth-child(8) { transition-delay: 0.56s; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.orbit-a { inset: -4% -6% auto auto; width: 46%; aspect-ratio: 1; animation: spin 40s linear infinite; }
.orbit-b { inset: auto auto -8% -8%; width: 34%; aspect-ratio: 1; border-color: var(--accent); opacity: 0.5; animation: spin 28s linear infinite reverse; }
.orbit::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Principles */
.principles { grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 40px 40px 44px 0; border-bottom: 1px solid var(--line); }
.principle:nth-child(odd) { border-right: 1px solid var(--line); }
.principle:nth-child(even) { padding-left: 40px; padding-right: 0; }
.principle h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.principle p { color: var(--muted); font-size: 16px; }

/* Closing */
.closing { background: var(--ink); color: #fff; padding: 140px 0; text-align: center; position: relative; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(82, 113, 255, 0.16), rgba(82, 113, 255, 0) 60%); pointer-events: none;
}
.closing .wrap { position: relative; max-width: 760px; }
.closing-mark { margin: 0 auto 36px; height: 56px; width: auto; }
.closing h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.closing p { margin-top: 20px; font-size: 18px; color: var(--muted-dark); }

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 14px; justify-items: start; }
.footer img { height: 34px; width: auto; }
.footer p { font-size: 14px; color: var(--muted); }
.footer .copy { font-size: 13px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; margin-right: 0; }
  .hyvix { grid-template-columns: 1fr; gap: 48px; }
  .hyvix-visual { max-width: 520px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .nav nav { display: none; }
  .nav-inner { height: 68px; }
  .hero { padding: 120px 0 100px; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; margin-right: 0; padding-right: 0; padding-bottom: 34px; }
  .step.in::before { width: 100%; }
  .step-n { margin-bottom: 24px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(even) { padding: 30px 0; border-right: none; }
  .closing { padding: 100px 0; }
  .hyvix-visual { aspect-ratio: 1 / 1.08; }
  .panel-body { padding: 20px 20px 0; gap: 14px; }
  .kpi:first-child .kpi-v { font-size: 32px; }
  .kpi-v { font-size: 22px; }
  .bars { height: 80px; padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .scroll-cue span, .marquee-track, .orbit { animation: none; }
  .hero h1 em::after { animation: none; transform: scaleX(1); }
  .bars i { transform: scaleY(1); transition: none; }
  .step::before { transition: none; }
  .panel { transform: none; }
}
