/* ═══════════════════════════════════════════
   Aion — Dark brand theme
   Inspired by the app splash animation
   ═══════════════════════════════════════════ */

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

:root {
  --bg:          #050D1A;
  --bg-surface:  #0A1628;
  --bg-card:     #0F1E35;
  --bg-card-alt: #132743;
  --border:      rgba(124, 185, 224, 0.12);
  --border-glow: rgba(124, 185, 224, 0.25);

  --text:        #E0EAF4;
  --text-muted:  #8BA3BE;
  --text-dim:    #5A7490;

  --accent:      #7CB9E0;
  --accent-bright: #A8D4F0;
  --blue:        #1B6FA8;
  --blue-deep:   #1565A8;
  --teal:        #1AABBD;

  --stub-bg:     #0A1220;
  --stub-border: rgba(90, 116, 144, 0.2);
  --stub-text:   #3A5068;

  --radius:      12px;
  --radius-lg:   20px;
  --shell:       1100px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-bright); }
code { background: var(--bg-card); padding: 2px 6px; border-radius: 4px; font-size: 0.88em; color: var(--accent); }

.site-shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* ── Topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent) 0%, var(--blue) 60%, var(--bg-card) 100%);
  box-shadow: 0 0 20px rgba(124,185,224,0.3), 0 0 40px rgba(27,111,168,0.15);
  animation: brandPulse 3s ease-in-out infinite alternate;
}
@keyframes brandPulse {
  0%   { box-shadow: 0 0 16px rgba(124,185,224,0.25), 0 0 32px rgba(27,111,168,0.12); }
  100% { box-shadow: 0 0 24px rgba(124,185,224,0.4),  0 0 48px rgba(27,111,168,0.2); }
}
.brand-copy strong { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.03em; }
.brand-copy span { display: block; font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.02em; }

.nav { display: flex; gap: 28px; }
.nav a { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.02em; transition: color 0.2s; }
.nav a:hover { color: var(--accent); }

/* ── Hero ── */
.hero { position: relative; padding: 100px 0 80px; text-align: center; overflow: hidden; }

.hero::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,185,224,0.08) 0%, rgba(27,111,168,0.04) 40%, transparent 70%);
  animation: heroGlow 4s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes heroGlow {
  0%   { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-rings {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -55%); width: 500px; height: 500px; pointer-events: none;
}
.hero-ring {
  position: absolute; top: 50%; left: 50%; border-radius: 50%;
  border: 1px solid transparent;
  transform: translate(-50%, -50%) scale(0.6);
  animation: sonarPulse var(--dur) linear infinite;
  animation-delay: var(--delay);
}
@keyframes sonarPulse {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  10%  { opacity: 0.5; }
  50%  { opacity: 0.25; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}
.hero-ring:nth-child(1) { width: 200px; height: 200px; border-color: rgba(124,185,224,0.25); --dur: 3s;   --delay: 0s; }
.hero-ring:nth-child(2) { width: 280px; height: 280px; border-color: rgba(27,111,168,0.2);   --dur: 3.2s; --delay: 0.6s; }
.hero-ring:nth-child(3) { width: 370px; height: 370px; border-color: rgba(124,185,224,0.18); --dur: 3.4s; --delay: 1.2s; }
.hero-ring:nth-child(4) { width: 460px; height: 460px; border-color: rgba(27,111,168,0.12);  --dur: 3.6s; --delay: 1.8s; }

.hero-content { position: relative; z-index: 2; }
.hero .kicker {
  display: inline-block; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.2;
  max-width: 700px; margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero > p, .hero-content > p {
  font-size: 1.08rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; line-height: 1.7;
}

/* ── Buttons ── */
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px;
  border-radius: 10px; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em;
  transition: all 0.25s; cursor: pointer; border: none; text-decoration: none;
}
.button.primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%); color: #fff;
  box-shadow: 0 4px 20px rgba(27,111,168,0.35);
}
.button.primary:hover { box-shadow: 0 6px 28px rgba(124,185,224,0.45); transform: translateY(-1px); color: #fff; }
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--border-glow); }
.button.secondary:hover { background: rgba(124,185,224,0.08); border-color: var(--accent); }

/* ── Section grid ── */
.section-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; padding: 60px 0;
}
.section-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: border-color 0.3s, box-shadow 0.3s;
}
.section-card:hover { border-color: var(--border-glow); box-shadow: 0 4px 24px rgba(27,111,168,0.1); }
.section-card h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.section-card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 12px; }
.section-card ul, .section-card ol { list-style: none; padding: 0; }
.section-card li {
  position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--text-muted); font-size: 0.92rem;
}
.section-card li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.6;
}

.feature-list li { padding-left: 28px; margin-bottom: 12px; font-size: 0.96rem; }
.feature-list li::before {
  width: 8px; height: 8px; top: 9px;
  background: linear-gradient(135deg, var(--accent), var(--blue)); opacity: 0.8;
}

/* ── Stub sections ── */
.stub-section {
  background: var(--stub-bg); border: 1px dashed var(--stub-border);
  border-radius: var(--radius-lg); padding: 32px; position: relative; opacity: 0.45;
  transition: opacity 0.3s;
}
.stub-section:hover { opacity: 0.55; }
.stub-section::after {
  content: 'Coming soon'; position: absolute; top: 16px; right: 20px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--stub-text); background: rgba(58,80,104,0.15); padding: 4px 10px; border-radius: 6px;
}
.stub-section h2 { color: var(--stub-text); font-size: 1.1rem; margin-bottom: 10px; }
.stub-section p { color: var(--stub-text); font-size: 0.88rem; }

/* ── Stats row ── */
.stats-row { display: flex; gap: 40px; justify-content: center; padding: 48px 0; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-value {
  font-size: 2.2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }

/* ── Provider badges ── */
.providers { display: flex; gap: 16px; justify-content: center; align-items: center; padding: 20px 0; flex-wrap: wrap; }
.provider-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
}

/* ── CTA banner ── */
.cta-banner {
  text-align: center; padding: 60px 24px; margin: 40px 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(27,111,168,0.1) 100%);
  border: 1px solid var(--border);
}
.cta-banner h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; border: none; padding: 0; }
.cta-banner p { color: var(--text-muted); margin-bottom: 24px; }

/* ── Doc pages ── */
.doc { padding-top: 60px; padding-bottom: 80px; }
.page-head { margin-bottom: 40px; }
.page-head h1 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.page-head p { color: var(--text-muted); font-size: 1rem; }

article h2 { font-size: 1.25rem; font-weight: 700; margin: 36px 0 12px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text); }
article h2:first-of-type { border-top: none; padding-top: 0; }
article h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; color: var(--accent); }
article p { color: var(--text-muted); margin-bottom: 12px; font-size: 0.94rem; }
article ul, article ol { margin: 0 0 16px 0; padding-left: 24px; }
article li { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 6px; }
article li::marker { color: var(--accent); }

.meta { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 24px; letter-spacing: 0.02em; }

.notice {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; font-size: 0.88rem; color: var(--text-muted); margin: 16px 0;
}
.notice strong { color: var(--accent); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 60px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-inner > div:first-child { font-size: 0.9rem; font-weight: 600; color: var(--text-dim); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.82rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-dim);
}

/* ── Mobile ── */
@media (max-width: 820px) {
  .topbar-inner { height: 56px; }
  .brand-copy span { display: none; }
  .nav { gap: 16px; }
  .nav a { font-size: 0.82rem; }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-rings { width: 320px; height: 320px; }
  .section-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-row { gap: 20px; }
  .stat-value { font-size: 1.6rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .actions { flex-direction: column; align-items: center; }
  .button { width: 100%; justify-content: center; }
  .providers { flex-direction: column; }
}
