/* ═══════════════════════════════════════════
   Aion — aion-ai.app
   ═══════════════════════════════════════════ */

*, *::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.26);

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

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

  --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 7px; border-radius: 5px; font-size: 0.87em; color: var(--accent); }

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

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 13, 26, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-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: 10px; object-fit: cover;
  box-shadow: 0 0 14px rgba(124,185,224,0.25);
}
.brand-copy strong { font-size: 1.12rem; font-weight: 700; letter-spacing: 0.02em; }
.brand-copy span { display: block; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.02em; }
.nav { display: flex; gap: 26px; }
.nav a { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav a:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  position: relative; padding: 100px 0 80px;
  text-align: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 55%, rgba(27,111,168,0.14) 0%, transparent 60%);
}

/* Sonar rings */
.hero-rings {
  position: absolute; top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  width: 520px; height: 520px; pointer-events: none;
}
.hero-ring {
  position: absolute; top: 50%; left: 50%; border-radius: 50%;
  border: 1px solid transparent; opacity: 0;
  animation: sonarPulse linear infinite;
}
@keyframes sonarPulse {
  0%   { transform: translate(-50%, -50%) scale(0.55); opacity: 0; }
  10%  { opacity: 0.45; }
  55%  { opacity: 0.2; }
  100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}
.hero-ring:nth-child(1) { width: 200px; height: 200px; border-color: rgba(124,185,224,0.3);  animation-duration: 3s;   animation-delay: 0s; }
.hero-ring:nth-child(2) { width: 290px; height: 290px; border-color: rgba(27,111,168,0.24);  animation-duration: 3.2s; animation-delay: 0.65s; }
.hero-ring:nth-child(3) { width: 390px; height: 390px; border-color: rgba(124,185,224,0.18); animation-duration: 3.4s; animation-delay: 1.3s; }
.hero-ring:nth-child(4) { width: 490px; height: 490px; border-color: rgba(27,111,168,0.12);  animation-duration: 3.6s; animation-delay: 1.95s; }

/* Hero central logo */
.hero-content { position: relative; z-index: 2; }
.hero-logo-wrap { display: flex; justify-content: center; margin-bottom: 32px; }
.hero-logo {
  width: 88px; height: 88px; border-radius: 22px; object-fit: cover;
  box-shadow: 0 0 36px rgba(124,185,224,0.32), 0 0 72px rgba(27,111,168,0.18), 0 8px 28px rgba(0,0,0,0.5);
  animation: heroLogoPulse 4s ease-in-out infinite alternate;
}
@keyframes heroLogoPulse {
  0%   { box-shadow: 0 0 28px rgba(124,185,224,0.25), 0 0 56px rgba(27,111,168,0.12), 0 8px 24px rgba(0,0,0,0.5); }
  100% { box-shadow: 0 0 48px rgba(124,185,224,0.48), 0 0 96px rgba(27,111,168,0.28), 0 8px 32px rgba(0,0,0,0.5); }
}

.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15;
  max-width: 680px; margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-lead {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 36px; line-height: 1.75;
}

/* ── Buttons ── */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-row.centered { justify-content: center; }
.button {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px;
  border-radius: 10px; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em;
  transition: all 0.25s; border: none; text-decoration: none; cursor: pointer;
}
.button.primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  color: #fff; box-shadow: 0 4px 20px rgba(27,111,168,0.38);
}
.button.primary:hover { box-shadow: 0 6px 30px rgba(124,185,224,0.5); 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); }

/* ── Stats ── */
.stats-row { display: flex; gap: 40px; justify-content: center; padding: 48px 0; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-value {
  font-size: 2.1rem; 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.75rem; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 5px; }

/* ── Screenshots ── */
.screenshots-section { padding: 20px 0 60px; }
.section-head { margin-bottom: 32px; }
.section-head.centered { text-align: center; }
.section-head h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 700; margin-top: 10px; color: var(--text); }
.section-head p { color: var(--text-muted); margin-top: 10px; font-size: 0.96rem; max-width: 520px; }
.section-head.centered p { margin-left: auto; margin-right: auto; }
.screenshots-scroll {
  display: flex; gap: 20px; overflow-x: auto; padding: 6px 2px 18px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
}
.screenshots-scroll::-webkit-scrollbar { height: 4px; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.screenshot-item { flex: 0 0 auto; scroll-snap-align: start; width: 200px; text-align: center; }
.screenshot-item img {
  width: 200px; height: 430px; object-fit: cover; object-position: top;
  border-radius: 18px; border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
}
.screenshot-item img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 20px rgba(124,185,224,0.12);
}
.screenshot-item figcaption {
  margin-top: 11px; font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.03em;
}

/* ── Grid / Cards ── */
.section { padding: 40px 0 60px; }
.grid { display: grid; gap: 22px; }
.grid.two   { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 30px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover { border-color: var(--border-glow); box-shadow: 0 4px 28px rgba(27,111,168,0.1); }
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.card p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 10px; line-height: 1.7; }
.card ul { list-style: none; padding: 0; margin-top: 4px; }
.card li {
  position: relative; padding-left: 22px; margin-bottom: 9px;
  color: var(--text-muted); font-size: 0.92rem;
}
.card li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue)); opacity: 0.75;
}
.card-note { font-size: 0.84rem; color: var(--text-dim); margin-top: 12px; }
.accent-card { border-color: rgba(124,185,224,0.16); }
.accent-card:hover { border-color: rgba(124,185,224,0.34); }
.card-icon { font-size: 1.5rem; margin-bottom: 14px; color: var(--accent); line-height: 1; }

/* ── Providers ── */
.providers { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0 8px; }
.provider-badge {
  display: inline-flex; align-items: center; padding: 7px 14px;
  border-radius: 8px; background: var(--bg-card-alt); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
}

/* ── Morning briefing callout ── */
.briefing-callout {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(27,111,168,0.12) 60%, rgba(26,171,189,0.07) 100%);
  border: 1px solid var(--border-glow); border-radius: var(--radius-lg);
  padding: 44px 40px; margin: 0 0 60px; position: relative; overflow: hidden;
}
.briefing-inner { display: flex; gap: 44px; flex-wrap: wrap; align-items: flex-start; }
.briefing-text { flex: 1 1 320px; }
.briefing-text h2 { font-size: 1.45rem; font-weight: 700; margin: 10px 0 16px; color: var(--text); }
.briefing-text p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 12px; line-height: 1.75; }
.briefing-stats { display: flex; flex-direction: column; gap: 16px; flex: 0 0 170px; }
.briefing-stat {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; text-align: center;
  background: rgba(124,185,224,0.05); border: 1px solid var(--border); border-radius: var(--radius);
}
.bstat-val { font-size: 1.05rem; font-weight: 700; color: var(--accent); }
.bstat-lbl { font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.07em; text-transform: uppercase; }

/* ── What Aion learns ── */
.learns-section { padding: 40px 0 60px; border-top: 1px solid var(--border); }
.learns-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.learns-group {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; transition: border-color 0.3s;
}
.learns-group:hover { border-color: var(--border-glow); }
.learns-title {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.learns-group ul { list-style: none; padding: 0; }
.learns-group li {
  font-size: 0.87rem; color: var(--text-muted); margin-bottom: 7px;
  padding-left: 14px; position: relative;
}
.learns-group li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.5;
}

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

/* ── Legal / doc pages ── */
.legal { padding: 60px 0 80px; }
.panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 40px;
}
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 6px; color: var(--text); }
.legal h2 {
  font-size: 1.1rem; font-weight: 700; margin: 32px 0 10px;
  padding-top: 20px; border-top: 1px solid var(--border); color: var(--text);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; color: var(--accent); }
.legal p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 10px; line-height: 1.75; }
.legal ul, .legal ol { padding-left: 22px; margin: 8px 0 16px; }
.legal li { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 6px; }
.legal li::marker { color: var(--accent); }
.meta { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 28px; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; margin-top: 20px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--text-dim); }
.footer-brand img { border-radius: 6px; }
.footer-links { display: flex; gap: 22px; }
.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: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-dim);
}

/* ── Mobile ── */
@media (max-width: 820px) {
  .header-inner { height: 56px; }
  .brand-copy span { display: none; }
  .nav { gap: 16px; }
  .hero { padding: 64px 0 52px; }
  .hero-rings { width: 340px; height: 340px; }
  .hero-logo { width: 72px; height: 72px; }
  h1 { font-size: 1.9rem; }
  .stats-row { gap: 22px; padding: 36px 0; }
  .stat-value { font-size: 1.75rem; }
  .screenshot-item { width: 168px; }
  .screenshot-item img { width: 168px; height: 360px; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .briefing-callout { padding: 28px 22px; }
  .briefing-stats { flex-direction: row; flex: 1 1 100%; justify-content: space-around; }
  .briefing-stat { flex: 1; }
  .panel { padding: 24px 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  .cta-row { flex-direction: column; align-items: center; }
  .button { width: 100%; justify-content: center; }
  .providers { flex-direction: column; }
  .screenshot-item { width: 148px; }
  .screenshot-item img { width: 148px; height: 318px; }
}
