/* Kliota landing. Palette and type from the brand styleboard. */

/* Self-hosted variable fonts, Latin subset (covers Italian accents). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/space-grotesk-latin.woff2") format("woff2"); }
:root {
  --orange: #ff6b00;
  --orange-2: #ff8a1f;
  --pink: #f0457e;
  --purple: #7c3aed;
  --dark: #080b1a;
  --surface: #1a1f2e;
  --surface-deep: #0e1223;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);
  --muted: #9aa1b0;
  --text: #f8fafc;
  --gradient: linear-gradient(110deg, var(--orange-2) 0%, var(--pink) 50%, var(--purple) 100%);
  --display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --page: min(1200px, 100% - 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 600; }
p { margin: 0; }
img { display: block; max-width: 100%; }
picture { display: contents; }
em { font-style: normal; }
.defs { position: absolute; }
:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--surface); color: var(--text); }
.skip:focus { top: 16px; }

/* ---------------- Buttons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 12px; border: 0;
  font: 600 0.98rem/1 var(--sans); color: var(--text); text-decoration: none;
  cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform 250ms var(--ease-spring), box-shadow 250ms var(--ease), background-color 200ms;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn-primary { background: var(--gradient); box-shadow: 0 10px 30px -10px rgb(240 69 126 / 0.6); }
.btn-primary:hover { box-shadow: 0 16px 44px -12px rgb(255 107 0 / 0.75); }
/* A light sweep crosses the primary button on hover. */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.35) 50%, transparent 70%) -150% 0 / 200% 100% no-repeat;
  transition: background-position 700ms var(--ease);
}
.btn-primary:hover::after { background-position: 150% 0; }
.btn-glass { background: rgb(255 255 255 / 0.06); border: 1px solid var(--line-strong); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgb(255 255 255 / 0.1); }

/* ---------------- Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 18px max(20px, calc((100% - 1200px) / 2));
  transition: background-color 300ms, backdrop-filter 300ms, padding 300ms, border-color 300ms;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgb(8 11 26 / 0.72); backdrop-filter: blur(16px) saturate(1.4); padding-block: 12px; border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark { width: 34px; height: auto; filter: drop-shadow(0 0 12px rgb(255 107 0 / 0.45)); }
.wordmark { font: 500 1rem/1 var(--display); letter-spacing: 0.42em; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: #c9cdd8; text-decoration: none; font-size: 0.93rem; position: relative; transition: color 200ms; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------------- Hero: the K monument, text laid out like the styleboard */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; background: var(--dark); }
.hero-media { position: absolute; inset: -3%; z-index: -3; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
/* Darkens the left side for the text and fades into the page below. */
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgb(8 11 26 / 0.92) 0%, rgb(8 11 26 / 0.7) 32%, rgb(8 11 26 / 0.15) 58%, transparent 72%),
    linear-gradient(180deg, rgb(8 11 26 / 0.35) 0%, transparent 18%, transparent 78%, var(--dark) 100%);
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.hero-copy { width: var(--page); margin: 0 auto; padding: 120px 0 110px; display: grid; justify-items: start; }
.hero-brand { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.hero-mark { width: clamp(72px, 8vw, 116px); height: auto; filter: drop-shadow(0 0 22px rgb(255 107 0 / 0.55)) drop-shadow(0 0 40px rgb(124 58 237 / 0.35)); }
.hero-wordmark { font: 400 clamp(2.2rem, 5vw, 4.4rem)/1 var(--display); letter-spacing: 0.32em; text-transform: uppercase; margin-right: -0.32em; }
.hero-title { margin-top: clamp(22px, 3vw, 36px); font: 400 clamp(1.8rem, 3.4vw, 3rem)/1.15 var(--display); letter-spacing: -0.01em; color: #dfe3f4; }
.hero-title em { background: linear-gradient(95deg, #f0457e 0%, #ff6b8a 45%, #ff8a1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500; }
.hero-lead { margin-top: 22px; max-width: 34em; color: #c9cdd8; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.7; }
.hero-tags { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font: 500 0.8rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #d3d6df; }
.hero-tags::before { content: ""; width: 40px; height: 2px; border-radius: 2px; background: var(--orange); margin-right: 6px; }
.hero-tags li { display: inline-flex; align-items: center; gap: 18px; }
.hero-tags li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--dot, var(--orange)); }
.hero-tags li:nth-child(2) { --dot: var(--pink); }
.hero-tags li:nth-child(3) { --dot: var(--purple); }
.hero-tags li:nth-child(4) { --dot: var(--orange-2); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Entrance: image settles from a slow zoom, then the text builds up in order. */
.js .hero-media img { transform: scale(1.1); transition: transform 2600ms var(--ease); }
.is-ready .hero-media img { transform: none; }
.js .hero-mark { opacity: 0; transform: scale(0.6) rotate(-12deg); transition: opacity 900ms var(--ease), transform 1100ms var(--ease-spring); transition-delay: 100ms; }
.is-ready .hero-mark { opacity: 1; transform: none; }
.js .hero-wordmark { opacity: 0; letter-spacing: 0.05em; filter: blur(8px); transition: opacity 1200ms var(--ease), letter-spacing 1600ms var(--ease), filter 1200ms var(--ease); transition-delay: 200ms; }
.is-ready .hero-wordmark { opacity: 1; letter-spacing: 0.32em; filter: none; }
.js .hero-title, .js .hero-lead, .js .hero-actions { opacity: 0; transform: translateY(20px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.is-ready .hero-title { transition-delay: 450ms; }
.is-ready .hero-lead { transition-delay: 600ms; }
.is-ready .hero-actions { transition-delay: 1000ms; }
.is-ready .hero-title, .is-ready .hero-lead, .is-ready .hero-actions { opacity: 1; transform: none; }
.js .hero-tags::before { transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease) 750ms; }
.is-ready .hero-tags::before { transform: none; }
.js .hero-tags li { opacity: 0; transform: translateX(-10px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: calc(820ms + var(--t, 0) * 90ms); }
.hero-tags li:nth-child(2) { --t: 1; }
.hero-tags li:nth-child(3) { --t: 2; }
.hero-tags li:nth-child(4) { --t: 3; }
.is-ready .hero-tags li { opacity: 1; transform: none; }

/* The nav logo shows once the big one has scrolled away. */
.nav .brand { opacity: 0; transform: translateY(-6px); transition: opacity 300ms, transform 300ms var(--ease); }
.nav.is-scrolled .brand { opacity: 1; transform: none; }

.scroll-cue { position: absolute; z-index: 10; left: 50%; bottom: 24px; margin-left: -13px; width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgb(255 255 255 / 0.35); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: wheel 1.8s var(--ease) infinite; }

/* ---------------- Section heads */
.section-head { width: var(--page); margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 16px; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 16ch; }
.section-head p { color: var(--muted); font-size: 1.08rem; max-width: 40em; }

.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1000ms var(--ease), transform 1000ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(30px) scale(0.98); transition: opacity 800ms var(--ease), transform 800ms var(--ease), border-color 300ms; transition-delay: calc(var(--i, 0) * 90ms); }
[data-stagger].is-in > * { opacity: 1; transform: none; }

/* ---------------- Devices: scroll-driven */
.devices-section { position: relative; padding: 140px 0 100px; overflow: hidden; isolation: isolate; }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.85; }
.stage {
  --p: 0;
  position: relative; width: var(--page); margin: 70px auto 0; height: clamp(320px, 52vw, 640px);
  perspective: 1800px;
}
.device { position: absolute; margin: 0; will-change: transform; container-type: inline-size; }
.device-frame { position: relative; overflow: hidden; background: #05060f; }
.device-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgb(255 255 255 / 0.08), transparent 32%); pointer-events: none; }
/* Black glass bezel inside a thin brushed-metal rim (two backgrounds: padding-box and border-box). */
.device-body, .laptop-lid {
  position: relative; border: solid transparent;
  background: linear-gradient(#06070c, #06070c) padding-box, linear-gradient(145deg, #9a9fb0, #3a3e4b 28%, #16181f 55%, #4b505e 80%, #8d92a2) border-box;
}

/* Laptop: thin-bezel notebook with a camera notch, sitting behind the other two */
.laptop { left: 22%; top: 0; width: 56%; z-index: 1;
  transform: rotateX(calc((1 - var(--p)) * 22deg)) translateY(calc((1 - var(--p)) * 60px)) scale(calc(0.9 + var(--p) * 0.1)); transform-origin: 50% 100%; }
.laptop-lid { border-width: 0.35cqw; padding: 1.3cqw 1.3cqw 1.9cqw; border-radius: 2.6cqw 2.6cqw 0.8cqw 0.8cqw; box-shadow: 0 50px 100px -30px rgb(0 0 0 / 0.9), 0 0 120px -20px rgb(240 69 126 / 0.35); }
.laptop-lid .device-frame { border-radius: 1cqw 1cqw 0.3cqw 0.3cqw; aspect-ratio: 16 / 10; }
.laptop-lid::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 1.2cqw; width: 11cqw; height: 1.9cqw; translate: -50% 0; border-radius: 0 0 0.9cqw 0.9cqw; background: #06070c; }
.laptop-lid::after { content: ""; position: absolute; z-index: 3; left: 50%; top: 1.75cqw; width: 0.7cqw; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3b4a6b, #0b0d14 70%); }
.laptop-base { position: relative; height: 1.5cqw; margin: 0 -6.5%; border-radius: 0.2cqw 0.2cqw 2cqw 2cqw / 0.2cqw 0.2cqw 1.4cqw 1.4cqw; background: linear-gradient(180deg, #a3a8b8, #5c6170 30%, #2a2d37 75%, #15171d); box-shadow: 0 24px 40px -12px rgb(0 0 0 / 0.85); }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 45%; translate: -50% 0; border-radius: 0 0 1cqw 1cqw; background: linear-gradient(180deg, #2a2d37, #4b505e); }

/* Tablet: in front of the laptop on the left, uniform thin bezels and a front camera */
.tablet { left: 1.5%; top: 40%; width: 31%; z-index: 2;
  transform: translateX(calc((1 - var(--p)) * 30%)) translateY(calc((1 - var(--p)) * 12%)) rotateY(calc(16deg - var(--p) * 13deg)) rotateZ(-1.5deg); opacity: calc(0.2 + var(--p) * 0.8); }
.tablet .device-body { border-width: 0.6cqw; padding: 2.6cqw; border-radius: 5cqw; box-shadow: 0 40px 80px -20px rgb(0 0 0 / 0.9), 0 0 80px -20px rgb(124 58 237 / 0.35); }
.tablet .device-frame { aspect-ratio: 1180 / 820; border-radius: 2.6cqw; }
.tablet .device-body::before { content: ""; position: absolute; left: 50%; top: 0.85cqw; width: 0.9cqw; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3b4a6b, #0b0d14 70%); }

/* Phone: edge-to-edge screen with a pill-shaped camera island and side buttons */
.phone { right: 13%; top: 28%; width: 15.5%; z-index: 3;
  transform: translateX(calc((1 - var(--p)) * -50%)) translateY(calc((1 - var(--p)) * 30%)) rotateY(calc(-14deg + var(--p) * 8deg)) rotateZ(2deg); opacity: calc(0.2 + var(--p) * 0.8); }
.phone .device-body { border-width: 1.1cqw; padding: 3.4cqw; border-radius: 17cqw; box-shadow: 0 40px 80px -20px rgb(0 0 0 / 0.95), 0 0 60px -10px rgb(255 107 0 / 0.35); }
.phone .device-frame { aspect-ratio: 390 / 900; border-radius: 13cqw; padding-top: 14cqw; background: #070912; }
.phone .device-frame img { object-position: top; }
.status-bar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 14cqw; display: flex; align-items: center; justify-content: space-between; padding: 1.5cqw 9cqw 0 12cqw; color: #f4f5fa; font: 600 5.4cqw/1 "Inter", system-ui, sans-serif; }
.status-bar svg { width: 17cqw; height: auto; }
.phone .device-frame::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 3.2cqw; width: 30cqw; height: 8.6cqw; translate: -50% 0; border-radius: 99px; background: #000; box-shadow: inset -3.6cqw 0 0 -1.4cqw #1a2133; }
.phone .device-body::before, .phone .device-body::after { content: ""; position: absolute; width: 1.3cqw; border-radius: 1cqw; background: linear-gradient(90deg, #2a2d37, #8d92a2); }
.phone .device-body::before { right: -2.3cqw; top: 26%; height: 19%; }
.phone .device-body::after { left: -2.3cqw; top: 19%; height: 9%; box-shadow: 0 12cqw 0 #5c6170; transform: scaleX(-1); }

.tablet.floating, .phone.floating { animation: drift 7s ease-in-out infinite; }
.phone.floating { animation-delay: -3.5s; }

/* ---------------- Marquee */
.marquee { overflow: hidden; padding: 28px 0; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgb(255 107 0 / 0.06), rgb(124 58 237 / 0.08)); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 38s linear infinite; }
.marquee-track span { font: 500 clamp(1.4rem, 3vw, 2.4rem)/1 var(--display); letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / 0.4); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gradient); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------------- Sectors */
.sectors { padding: 140px 0; }
.sectors-grid { width: var(--page); margin: 64px auto 0; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 40px; align-items: center; }
.sector-tabs { display: grid; gap: 10px; }
.sector-tabs button {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 16px 18px; border-radius: 16px; text-align: left;
  background: rgb(255 255 255 / 0.02); border: 1px solid var(--line); color: var(--text); cursor: pointer;
  font: inherit;
  transition: background-color 300ms, border-color 300ms, transform 300ms var(--ease);
}
.sector-tabs button:hover { background: rgb(255 255 255 / 0.05); transform: translateX(4px); }
.sector-tabs button[aria-selected="true"] { background: linear-gradient(110deg, rgb(255 107 0 / 0.12), rgb(124 58 237 / 0.12)); border-color: rgb(255 138 31 / 0.4); }
.tab-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; border: 1px solid rgb(255 138 31 / 0.4); background: rgb(255 107 0 / 0.08); transition: transform 400ms var(--ease-spring), box-shadow 300ms; }
.tab-icon svg, .f-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--orange-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[aria-selected="true"] .tab-icon { transform: rotate(-6deg) scale(1.06); box-shadow: 0 0 24px -4px rgb(255 107 0 / 0.6); }
.tab-text strong { display: block; font: 600 1.05rem/1.3 var(--display); }
.tab-text small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.88rem; }
.tab-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gradient); transform: scaleX(0); transform-origin: left; }
[aria-selected="true"] .tab-progress.run { animation: progress var(--dur, 6s) linear forwards; }

.sector-screen { position: relative; transition: transform 400ms var(--ease); }
.screen-glow { will-change: transform, opacity; position: absolute; inset: 10% 5% -8%; background: radial-gradient(closest-side, rgb(240 69 126 / 0.45), rgb(124 58 237 / 0.2) 60%, transparent); filter: blur(40px); z-index: -1; animation: breathe 6s ease-in-out infinite; }
.browser { border-radius: 16px; overflow: hidden; background: #0d1020; border: 1px solid var(--line-strong); box-shadow: 0 60px 120px -40px rgb(0 0 0 / 0.95); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #121629; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3047; }
.browser-bar i:first-child { background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin-left: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 12px; border-radius: 8px; background: rgb(255 255 255 / 0.05); color: #b4b9c6; font-size: 0.8rem; }
.browser-view { position: relative; aspect-ratio: 16 / 10; }
.browser-view picture { display: block; position: absolute; inset: 0; opacity: 0; transform: scale(1.04); filter: blur(6px); transition: opacity 700ms var(--ease), transform 1200ms var(--ease), filter 700ms var(--ease); }
.browser-view picture.is-active { opacity: 1; transform: none; filter: none; }
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------------- Features */
.features-section { padding: 120px 0 140px; }
.features { list-style: none; width: var(--page); margin: 64px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  position: relative; padding: 30px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgb(26 31 46 / 0.7), rgb(14 18 35 / 0.7)); border: 1px solid var(--line);
}
/* Spotlight that follows the pointer (position set by app.js). */
.feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, -20%), rgb(255 107 0 / 0.16), transparent 45%); opacity: 0; transition: opacity 300ms; }
.feature:hover { border-color: rgb(255 138 31 / 0.35); }
.feature:hover::before { opacity: 1; }
.f-icon { position: relative; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; border: 1px solid rgb(255 138 31 / 0.45); background: rgb(255 107 0 / 0.08); transition: transform 500ms var(--ease-spring); }
.feature:hover .f-icon { transform: rotate(-8deg) scale(1.08); }
.feature h3 { position: relative; margin-top: 22px; font-size: 1.2rem; letter-spacing: -0.01em; }
.feature p { position: relative; margin-top: 8px; color: var(--muted); }

/* ---------------- Privacy */
.privacy { width: var(--page); margin: 0 auto; padding: 80px 0 140px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.privacy-visual { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: center; display: grid; place-items: center; }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgb(255 138 31 / 0.35); }
.orbit::after { content: ""; position: absolute; top: -5px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--orange-2); box-shadow: 0 0 16px var(--orange-2); }
.orbit-1 { inset: 0; animation: spin 26s linear infinite; }
.orbit-2 { inset: 14%; border-color: rgb(124 58 237 / 0.45); animation: spin 18s linear infinite reverse; }
.orbit-2::after { background: var(--purple); box-shadow: 0 0 16px var(--purple); }
.orbit-3 { inset: 28%; border-style: solid; border-color: rgb(240 69 126 / 0.25); animation: spin 12s linear infinite; }
.orbit-3::after { background: var(--pink); box-shadow: 0 0 16px var(--pink); }
.shield { width: 30%; fill: rgb(255 107 0 / 0.1); stroke: var(--orange-2); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 24px rgb(255 107 0 / 0.6)); animation: breathe 4s ease-in-out infinite; }
.privacy-copy h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 14ch; }
.checks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 18px 20px 18px 56px; border-radius: 16px; background: rgb(255 255 255 / 0.03); border: 1px solid var(--line); color: #b4b9c6; }
.checks li strong { color: var(--text); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 22px; height: 22px; border-radius: 50%; background: var(--gradient); }
.checks li::after { content: ""; position: absolute; left: 25px; top: 25px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* ---------------- Demo */
.demo { position: relative; padding: 140px 0; overflow: hidden; border-top: 1px solid var(--line); isolation: isolate; }
.demo-inner { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.demo-copy h2 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; }
.demo-copy p { margin-top: 18px; color: #d3d6df; font-size: 1.1rem; max-width: 30em; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 32px; border-radius: 24px; background: rgb(14 18 35 / 0.8); border: 1px solid var(--line-strong); backdrop-filter: blur(20px); box-shadow: 0 50px 100px -40px rgb(0 0 0 / 0.9); }
.form label { display: grid; gap: 7px; font-size: 0.9rem; font-weight: 500; }
.form label em { color: var(--muted); font-weight: 400; }
.form .wide, .form-error { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgb(8 11 26 / 0.8); color: var(--text); font: 400 1rem/1.4 var(--sans); transition: border-color 200ms, box-shadow 200ms; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange-2); box-shadow: 0 0 0 4px rgb(255 107 0 / 0.18); }
.form textarea { resize: vertical; }
.form-error { color: #fca5a5; font-size: 0.92rem; }
.form-note { color: var(--muted); font-size: 0.85rem; }
.form.shake { animation: shake 400ms var(--ease); }

/* ---------------- Footer */
.footer { width: var(--page); margin: 0 auto; padding: 48px 0 56px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 30px; }
.footer-tag { color: var(--muted); }
.footer-tag em { color: var(--orange-2); }
.footer-copy { margin-left: auto; color: var(--muted); font-size: 0.9rem; }

/* ---------------- Rendering: skip work for sections far below the fold */
.features-section, .privacy, .demo { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* ---------------- Keyframes */
@keyframes breathe { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------------- Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .sectors-grid, .privacy, .demo-inner { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-visual { max-width: 300px; }
}
@media (max-width: 640px) {
  .wordmark { letter-spacing: 0.3em; font-size: 0.92rem; }
  .nav { gap: 12px; }
  .nav .btn-sm { padding: 0 12px; }
  /* On phones the image and the text stack: the K stands whole on top, the text follows. */
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; inset: auto; height: 56svh; min-height: 360px; }
  .hero-media img { object-position: 87% 45%; }
  .hero-shade { inset: 0 0 auto; height: 56svh; min-height: 360px; background: linear-gradient(180deg, rgb(8 11 26 / 0.4) 0%, transparent 22%, transparent 62%, var(--dark) 100%); }
  .embers { height: 56svh; min-height: 360px; }
  .hero-copy { margin-top: -56px; padding: 0 0 72px; position: relative; }
  .hero-mark { width: 56px; }
  .hero-wordmark { font-size: 2rem; letter-spacing: 0.24em; margin-right: -0.24em; }
  .is-ready .hero-wordmark { letter-spacing: 0.24em; }
  .scroll-cue { display: none; }
  .hero-tags { gap: 8px 12px; font-size: 0.72rem; }
  .hero-tags li { gap: 12px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .sector-tabs { grid-template-columns: minmax(0, 1fr); }
  .stage { height: 112vw; }
  .laptop { left: 2%; width: 96%; }
  .tablet { width: 60%; top: 56%; left: 1%; }
  .phone { width: 30%; top: 38%; right: 0; }
  .form { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .footer-copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  html { scroll-behavior: auto; }
  .stage { --p: 1 !important; }
}
