:root {
  --bg: #060a14;
  --panel: rgba(30, 46, 88, 0.72);
  --panel-2: rgba(10, 16, 34, 0.78);
  --line: rgba(150, 185, 255, 0.28);
  --text: #dde6f7;
  --muted: #8d9bb8;
  --blue: #8db4ff;
  --cyan: #86d9ea;
  --glow: rgba(120, 170, 255, 0.35);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

body { margin: 0; }

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#stars::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 35% at 20% 25%, rgba(70, 110, 230, 0.34), transparent 70%),
    radial-gradient(35% 30% at 80% 20%, rgba(60, 180, 210, 0.22), transparent 70%),
    radial-gradient(45% 40% at 65% 85%, rgba(110, 80, 220, 0.22), transparent 70%);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(4%, 3%, 0) scale(1.12); }
}
#stars canvas { position: absolute !important; inset: 0; }

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--cyan); }

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

svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
  border-bottom: 1px solid transparent;
}
.is-scrolled .site-header {
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.bar { display: flex; align-items: center; gap: 28px; height: 68px; transition: height 0.25s; }
.is-scrolled .bar { height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: 0.02em; }
.logo { width: 22px; height: 22px; color: var(--blue); }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { color: var(--muted); font-size: 0.95rem; }
.bar nav a:hover { color: var(--text); }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5f93ff, #3fc0e6);
  color: #04101f;
  font-weight: 650;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 24px rgba(70, 140, 255, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { color: #04101f; transform: translateY(-2px); box-shadow: 0 10px 34px rgba(70, 160, 255, 0.65); }
.btn-small { padding: 7px 16px; font-size: 0.9rem; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: rgba(190, 215, 255, 0.5); box-shadow: none; }
.btn-ghost:hover { color: #fff; background: rgba(141, 180, 255, 0.18); border-color: var(--cyan); box-shadow: none; }

.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--cyan); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 0 0 18px; font-weight: 700; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.facts { display: flex; gap: 36px; margin: 38px 0 0; }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dt { color: var(--muted); font-size: 0.85rem; }
.facts dd { margin: 0; }
.facts strong { font-size: 2rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

.window {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  background: var(--panel-2);
  border-color: rgba(150, 190, 255, 0.4);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 70px rgba(90, 140, 255, 0.28);
  transition: transform 0.2s ease-out;
  overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(150, 185, 255, 0.25); }
.window-bar span { margin-left: auto; color: var(--muted); font-size: 0.8rem; font-family: var(--mono); }
.window pre {
  margin: 0;
  padding: 20px;
  min-height: 210px;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  transition: opacity 0.28s;
}
.window pre.is-fading { opacity: 0; }
.window .k { color: var(--blue); }
.window .s { color: var(--cyan); }
.window .n { color: #c6b6ff; }
.window .caret { display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: text-bottom; background: var(--cyan); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.section { padding: 72px 0; }
.section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.72), rgba(8, 14, 32, 0.72));
  border-block: 1px solid rgba(150, 185, 255, 0.14);
}
.section-head { margin-bottom: 32px; }
.section-head.split { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 8px; letter-spacing: -0.01em; }
.section-head p { margin: 0; color: var(--muted); max-width: 40em; }

.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tools a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 32, 64, 0.85);
  color: var(--text);
  font-weight: 500;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.tools a:hover { border-color: var(--cyan); background: rgba(40, 70, 130, 0.85); transform: translateY(-2px); color: #fff; }
.tools svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; color: #04101f; background: linear-gradient(135deg, #7fa9ff, #6fd6ea); flex: none; }

.switch { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); }
.switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.switch button[aria-pressed="true"] { background: linear-gradient(135deg, #5f93ff, #3fc0e6); color: #04101f; font-weight: 600; }
.switch button:focus-visible, .card:focus-visible, .btn:focus-visible, .tools a:focus-visible, .to-top:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.group + .group { margin-top: 40px; }
.group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.05rem; color: var(--cyan); font-weight: 600; }
.group h3 svg { width: 20px; height: 20px; }
.group h3 small { color: var(--muted); font-weight: 400; }

.card {
  position: relative;
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(40, 60, 112, 0.82), rgba(22, 34, 68, 0.82));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(200, 220, 255, 0.14);
  color: var(--text);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), rgba(130, 180, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5), 0 0 26px rgba(90, 170, 255, 0.3); color: #fff; }
.card .ico { box-sizing: content-box; width: 22px; height: 22px; padding: 10px; border-radius: 12px; color: #04101f; background: linear-gradient(135deg, #7fa9ff, #6fd6ea); margin-bottom: 16px; }
.card .ico-img { display: block; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid rgba(200, 220, 255, 0.35); }
.card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.card p { margin: 0; color: #a9b8d4; font-size: 0.93rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(40, 60, 112, 0.82), rgba(22, 34, 68, 0.82)); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4); opacity: 1; transition: opacity 0.5s, border-color 0.5s, transform 0.5s; }
.steps.is-seq .step { opacity: 0.35; transform: translateY(6px); }
.steps.is-seq .step.is-on { opacity: 1; transform: none; border-color: rgba(141, 180, 255, 0.45); }
.num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7fa9ff, #6fd6ea);
  color: #04101f;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }

.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.notes h3 { margin: 0 0 8px; color: var(--cyan); font-size: 1rem; }
.notes p { margin: 0; color: var(--muted); }

.note { color: var(--muted); }

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(40, 60, 112, 0.7), rgba(22, 34, 68, 0.7));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: rgba(141, 180, 255, 0.55); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: var(--radius); }
.faq p { margin: 0; padding: 0 20px 18px; color: #a9b8d4; }

.badge { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; vertical-align: middle; color: #04101f; background: linear-gradient(135deg, #7fe0b5, #6fd6ea); }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.9rem; background: rgba(3, 6, 14, 0.8); }
.site-footer p { margin: 0 0 10px; }
.links { display: flex; gap: 20px; }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  color: var(--text);
  background: conic-gradient(var(--blue) calc(var(--p, 0) * 360deg), rgba(150, 185, 255, 0.18) 0);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
}
.to-top::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #0b1226; }
.to-top svg { position: relative; width: 20px; height: 20px; }
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .steps, .notes { grid-template-columns: 1fr; }
  .bar nav { display: none; }
  .bar .btn { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.video-card { margin: 0; }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.video iframe, .video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { background-size: cover; background-position: center; cursor: pointer; padding: 0; display: grid; place-items: center; }
.video-play::before { content: ""; position: absolute; inset: 0; background: rgba(4, 10, 24, 0.35); transition: background 0.2s; }
.video-play:hover::before { background: rgba(4, 10, 24, 0.1); }
.video-play svg { position: relative; width: 64px; height: 64px; padding: 18px 14px 18px 22px; border-radius: 50%; color: #04101f; background: linear-gradient(135deg, #7fa9ff, #6fd6ea); box-shadow: 0 8px 30px rgba(70, 150, 255, 0.55); stroke: none; transition: transform 0.2s; }
.video-play:hover svg { transform: scale(1.08); }
.video-play:focus-visible { outline: 2px solid var(--cyan); outline-offset: -4px; }
.video.is-empty { display: grid; place-items: center; border-style: dashed; color: var(--muted); }
.video-card figcaption { display: flex; flex-direction: column; gap: 2px; padding: 14px 4px 0; }
.video-card figcaption a { font-weight: 600; }
.video-card figcaption span { color: #a9b8d4; font-size: 0.93rem; }
@media (max-width: 900px) { .videos { grid-template-columns: 1fr; } }
