/* ==========================================================================
   Aphelion — styles
   No frameworks, no build step. Edit the tokens below to re-theme.
   ========================================================================== */

:root {
  --bg: #0b0d14;
  --bg-alt: #10131c;
  --surface: #151925;
  --border: #232838;
  --text: #e8eaf2;
  --muted: #9aa1b5;
  --accent: #8b7bff;
  --accent-2: #4fd1c5;
  --accent-ink: #0b0d14;

  --radius: 14px;
  --maxw: 1120px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 8px; font-weight: 600; z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 13px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--accent-ink); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0 auto 0 32px; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 120px 0 112px; }
.hero-glow {
  position: absolute; inset: -40% -10% auto auto;
  width: 820px; height: 820px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 65%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%),
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 55%);
  filter: blur(40px); opacity: .55; pointer-events: none;
}
.hero-glow::after { /* the "eclipse" */
  content: ""; position: absolute; inset: 18% 6% 26% 26%;
  border-radius: 50%; background: var(--bg); filter: blur(30px);
}
.hero-inner { position: relative; }
.eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 750; max-width: 14ch; }
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 60ch; margin: 24px 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-2px); }
.card h3 { font-size: 20px; margin-top: 20px; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: none; }
.steps li { border-top: 1px solid var(--border); padding-top: 24px; }
.step-num { display: block; font-size: 14px; font-weight: 700; color: var(--accent-2); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 22px; }
.steps p { color: var(--muted); margin: 0; }

/* Security split */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.split > div p { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checklist li {
  position: relative; padding: 16px 0 16px 36px; border-bottom: 1px solid var(--border); color: var(--muted);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent-2) 18%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fd1c5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist strong { color: var(--text); font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 22px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* CTA */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translate(-50%, -50%);
  width: 900px; height: 500px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta p { color: var(--muted); font-size: 18px; margin-bottom: 32px; }
.cta .hero-cta { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.copyright { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding: 80px 0 72px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
