:root {
  --color-bg: #060810;
  --color-bg-raised: #0B0F1C;
  --color-card: #0F1424;
  --color-card-border: #23304F;

  --color-text: #EAF0FF;
  --color-text-secondary: #8B96B8;

  --color-accent: #2F5FED;
  --color-accent-hover: #4C79FF;
  --color-accent-pressed: #1F44B8;

  --color-neon-cyan: #29F6FF;
  --color-neon-magenta: #FF3DD6;

  --color-hero-bg: #0B0F1C;
  --color-subtle-bg: #131A2E;
  --color-subtle-hover: #1B2440;

  --color-online: #2CF08A;
  --color-online-soft: rgba(44, 240, 138, 0.12);
  --color-offline: #6B7594;
  --color-offline-soft: rgba(107, 117, 148, 0.15);

  --color-accent-soft: rgba(47, 95, 237, 0.16);
  --color-accent-soft-text: #7FA0FF;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(41, 246, 255, 0.14);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);

  --glow-cyan: 0 0 18px rgba(41, 246, 255, 0.55), 0 0 42px rgba(41, 246, 255, 0.25);
  --glow-accent: 0 0 20px rgba(47, 95, 237, 0.65), 0 0 48px rgba(47, 95, 237, 0.3);
  --glow-magenta: 0 0 18px rgba(255, 61, 214, 0.5), 0 0 40px rgba(255, 61, 214, 0.22);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container-width: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, p { margin: 0; }

button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--glow-accent);
}
.btn-primary:hover { background: var(--color-accent-hover); box-shadow: var(--glow-cyan); }
.btn-primary:active { background: var(--color-accent-pressed); transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-card-border);
}
.btn-ghost:hover {
  background: var(--color-subtle-bg);
  border-color: var(--color-neon-cyan);
  box-shadow: 0 0 16px rgba(41, 246, 255, 0.2);
}

.btn-disabled,
.btn-disabled:hover,
.btn-disabled:active {
  background: var(--color-subtle-bg);
  color: var(--color-text-secondary);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 16, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}

.brand-mark {
  display: inline-flex;
  color: var(--color-neon-cyan);
  filter: drop-shadow(0 0 6px rgba(41, 246, 255, 0.7));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--color-text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.blob-1 { width: 420px; height: 420px; top: -140px; left: -120px; background: radial-gradient(circle, var(--color-accent), transparent 70%); }
.blob-2 { width: 340px; height: 340px; top: 120px; right: -100px; background: radial-gradient(circle, var(--color-neon-magenta), transparent 70%); opacity: 0.35; }
.blob-3 { width: 260px; height: 260px; bottom: -120px; left: 38%; background: radial-gradient(circle, var(--color-neon-cyan), transparent 70%); opacity: 0.3; }
.blob-4 { width: 380px; height: 380px; top: -80px; right: -80px; background: radial-gradient(circle, var(--color-accent), transparent 70%); }
.blob-5 { width: 360px; height: 360px; bottom: -160px; left: -80px; background: radial-gradient(circle, var(--color-neon-magenta), transparent 70%); opacity: 0.3; }

#particles-js {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#particles-js canvas { display: block; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim-in {
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--d, 0) * 0.09s);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.feature-grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.feature-grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.feature-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.feature-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.feature-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

.site-header { transition: box-shadow 0.25s ease, background-color 0.25s ease; }
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(41, 246, 255, 0.1);
  background: rgba(6, 8, 16, 0.92);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.eyebrow {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--color-neon-cyan) 0%, #9DB4FF 35%, var(--color-neon-magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(41, 246, 255, 0.25));
}

.hero-sub {
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 46ch;
}

.typed-wrap {
  display: inline-block;
  white-space: nowrap;
}

.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 0.8em;
  margin-left: 3px;
  vertical-align: -0.05em;
  background: var(--color-neon-cyan);
  box-shadow: var(--glow-cyan);
  animation: caretBlink 1s steps(1, end) infinite;
}

@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.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-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}
.hero-meta svg { flex-shrink: 0; }

.hero-art {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.mock-glow {
  position: absolute;
  inset: -10% -10% -10% -10%;
  background: radial-gradient(closest-side, rgba(41, 246, 255, 0.28), transparent 70%);
  z-index: 0;
  filter: blur(14px);
}

.mock-tilt { perspective: 1200px; }

@keyframes floatY {
  0%, 100% { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(0.4deg) translateY(0); }
  50% { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(0.4deg) translateY(-10px); }
}

.mock-window {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 650px;
  height: auto;
  transform-style: preserve-3d;
  animation: floatY 6s ease-in-out infinite;
  will-change: transform;
}

.trust-strip {
  border-top: 1px solid var(--color-card-border);
  border-bottom: 1px solid var(--color-card-border);
  background: var(--color-card);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.trust-inner span:not(.sep) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-inner span:not(.sep) svg {
  color: var(--color-neon-cyan);
  flex-shrink: 0;
}

.trust-inner .sep { color: var(--color-card-border); }

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 6px;
}

.section-sub {
  margin-top: 14px;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

.features { padding: 96px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(41, 246, 255, 0.4);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent-soft-text);
  margin-bottom: 18px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--color-accent);
  color: #fff;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 0.94rem;
}

.how {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: var(--color-hero-bg);
}

.how .container { position: relative; z-index: 1; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--color-card-border);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: var(--glow-accent);
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--color-text-secondary);
  font-size: 0.94rem;
}

.security { padding: 96px 0; }

.security-inner { display: flex; justify-content: center; }

.security-copy {
  max-width: 680px;
  text-align: center;
}

.security-copy .section-sub { margin-left: auto; margin-right: auto; }

.check-list {
  margin-top: 28px;
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--color-text);
  font-size: 0.96rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-online-soft);
  box-shadow: inset 0 0 0 1.5px var(--color-online);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--color-online);
  border-bottom: 2px solid var(--color-online);
  transform: rotate(-45deg);
}

.download {
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
  background: var(--color-hero-bg);
}

.download .container { position: relative; z-index: 1; }

.download-inner {
  text-align: center;
  max-width: 560px;
}

.download h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-top: 6px;
}

.download-card { margin-top: 36px; }

.download-note {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}
.download-note svg { flex-shrink: 0; }

.download-note a {
  color: var(--color-neon-cyan);
}

.download-note a:hover {
  text-decoration: underline;
}

.sponsor {
  padding: 96px 0 110px;
}

.sponsor-inner {
  text-align: center;
  max-width: 560px;
}

.sponsor h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-top: 6px;
}

.sponsor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.sponsor-email {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.sponsor-email a {
  color: var(--color-neon-cyan);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--color-card-border);
  background: var(--color-card);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.footer-inner a {
  color: inherit;
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--color-neon-cyan);
}

@media (max-width: 960px) {
  /* Below this width the image no longer overlaps the text as a background -
     it stacks above it instead, so it needs its own row rather than sharing
     .hero-copy's (see the desktop-only overlap above). */
  .hero-inner { row-gap: 32px; }
  .hero-copy { grid-row: 2; max-width: none; }
  .hero-art { grid-row: 1; justify-content: center; pointer-events: auto; }
  .mock-window { max-width: 480px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-card-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 0; width: 100%; }

  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }

  .hero { padding: 56px 0 64px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .trust-inner { flex-direction: column; gap: 4px; }
  .trust-inner .sep { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .sponsor-actions { flex-direction: column; align-items: stretch; }
  .sponsor-actions .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .anim-in { animation: none; opacity: 1; }
  .mock-window { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .blob { transition: none; }
  .typed-cursor { display: none; }
  html { scroll-behavior: auto; }
}
