:root {
  --bg: #06070d;
  --bg-2: #121a33;
  --cyan: #22e1ff;
  --violet: #7c5cff;
  --text: #e6f1ff;
  --muted: rgba(230, 241, 255, .62);
  --line: rgba(124, 92, 255, .22);
  --card: rgba(18, 26, 51, .45);
  --grad: linear-gradient(45deg, var(--cyan), var(--violet));
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg) radial-gradient(ellipse 80% 60% at 50% 0%, var(--bg-2) 0%, var(--bg) 70%) no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

a { color: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10; /* above main, which shares z-index 1 and comes later in the DOM */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(6, 7, 13, .55);
  border-bottom: 1px solid rgba(124, 92, 255, .12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 28px; flex: none; }
.wordmark { font-weight: 700; letter-spacing: .3em; font-size: 15px; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { text-decoration: none; font-size: 14px; color: var(--muted); letter-spacing: .04em; transition: color .2s; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }

/* Hero */
.hero { min-height: calc(100vh - 64px); display: flex; align-items: center; padding: 72px 0; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-mark { width: 150px; height: 125px; margin-bottom: 28px; filter: drop-shadow(0 0 24px rgba(34, 225, 255, .25)); }
.pf-node-glow { animation: pf-pulse 3.2s ease-in-out infinite; }
@keyframes pf-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; }
h1 {
  font-size: clamp(40px, 7vw, 76px);
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 30%, rgba(230, 241, 255, .7));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { max-width: 620px; margin: 24px 0 36px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(34, 225, 255, .45);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: .03em;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.cta:hover, .cta:focus-visible { background: rgba(34, 225, 255, .08); border-color: var(--cyan); box-shadow: 0 0 24px rgba(34, 225, 255, .2); }

/* Sections */
section[id] { scroll-margin-top: 72px; } /* land below the 64px sticky header */
.section { padding: 112px 0; }
h2 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.01em; }
.section-intro { max-width: 620px; margin: 18px 0 0; color: var(--muted); }

/* Focus: one panel per field — illustration, title, description, three points. */
.field {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-areas: "art head" "art body";
  column-gap: 48px;
  align-items: center;
  margin-top: 40px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}
.field:first-of-type { margin-top: 56px; }
.field:nth-of-type(even) { grid-template-columns: 1fr 1.05fr; grid-template-areas: "head art" "body art"; }
.field .art { grid-area: art; }
.field .head { grid-area: head; align-self: end; }
.field .body { grid-area: body; align-self: start; }
.field .num { font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.field h3 { margin: 6px 0 14px; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.field .body p { margin: 0; color: var(--muted); }
.field ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.field li { position: relative; padding-left: 26px; font-size: 15px; }
.field li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 12px;
  height: 8px;
  background: var(--grad);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 80% 100%, 50% 40%, 20% 100%);
}

.art {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(18, 26, 51, .85), rgba(6, 7, 13, .9));
  overflow: hidden;
}
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(124, 92, 255, .18), transparent 60%);
  pointer-events: none;
}
.art .scan { animation: art-scan 6s linear infinite; }
@keyframes art-scan { from { transform: translateX(0); } to { transform: translateX(380px); } }
.art .draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: art-draw 6s ease-in-out infinite; }
@keyframes art-draw { 0% { stroke-dashoffset: 900; } 60%, 100% { stroke-dashoffset: 0; } }
.art .pulse { animation: art-pulse 2.6s ease-in-out infinite; }
@keyframes art-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 28px 24px; border-top: 1px solid var(--line); }
.step-mark { width: 120px; height: 40px; margin-bottom: 18px; fill: none; stroke: url(#pf-grad); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: var(--layer, 1); }
.step-num { display: block; font-size: 13px; letter-spacing: .2em; color: var(--muted); margin-bottom: 6px; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }

.contact { text-align: center; }
.contact .mail {
  display: inline-block;
  margin-top: 26px;
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 500;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
}
.contact .mail:hover, .contact .mail:focus-visible { text-decoration: underline; text-decoration-color: var(--violet); }

.site-footer { border-top: 1px solid rgba(124, 92, 255, .12); padding: 28px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand.small .brand-mark { width: 26px; height: 22px; }
.brand.small .wordmark { font-size: 12px; color: var(--text); }

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

/* Scroll reveal: hidden only when JS is running (html.js set by reveal.js). */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .field, .field:nth-of-type(even) {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "art" "body";
    row-gap: 20px;
    padding: 20px;
  }
  .field h3 { margin-bottom: 0; }
}
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 13px; letter-spacing: 0; }
  .header-inner { gap: 10px; }
  .wordmark { letter-spacing: .22em; font-size: 13px; }
  .brand-mark { width: 28px; height: 24px; }
}
@media (max-width: 340px) {
  .site-header .wordmark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pf-node-glow { animation: none; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cta, .site-nav a { transition: none; }
  .art * { animation: none !important; }
  .art .draw { stroke-dashoffset: 0; }
}
