/**
 * AEONMI INC — Shared Design Tokens + Components
 * Import this in every page: <link rel="stylesheet" href="/css/shared.css">
 */

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

/* ── Design Tokens ───────────────────────────────────────────────────────── */
:root {
  --bg:       #07070f;
  --bg2:      #0d0d1a;
  --bg3:      #12121f;
  --bg4:      #070b14;
  --border:   #1e1e30;
  --border2:  #1e2e4a;
  --purple:   #7c3aed;
  --purple2:  #5b21b6;
  --cyan:     #06b6d4;
  --cyan2:    #0891b2;
  --green:    #10b981;
  --gold:     #f59e0b;
  --red:      #ef4444;
  --white:    #f1f5f9;
  --text:     #e2e8f0;
  --muted:    #64748b;
  --glow-p:   rgba(124,58,237,0.35);
  --glow-c:   rgba(6,182,212,0.25);
  --glow-g:   rgba(16,185,129,0.25);
  --font-mono: 'Courier New', Courier, monospace;
  --font-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--white); }

/* ── Universal Nav ───────────────────────────────────────────────────────── */
.aeonmi-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2.5rem;
  background: rgba(7,7,15,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo-link {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo-link .logo-glyph {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #fff;
}
.nav-logo-link .logo-text span { color: var(--purple); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.nav-links a.active { color: var(--cyan); font-weight: 700; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff; border: none; padding: 0.42rem 1rem; border-radius: 6px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer; text-decoration: none;
  transition: opacity 0.2s; white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; color: #fff; }
.nav-signout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.38rem 0.9rem;
  border-radius: 6px;
  font-size: 0.74rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.nav-signout:hover { color: var(--red); border-color: var(--red); }

/* ── Shared Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.6rem; border-radius: 8px;
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.04em;
  transition: all 0.2s; cursor: pointer; border: none; text-decoration: none;
}
.btn-primary {
  background: var(--purple); color: #fff;
}
.btn-primary:hover { background: var(--purple2); color: #fff; box-shadow: 0 0 20px var(--glow-p); }
.btn-cyan { background: var(--cyan); color: var(--bg); }
.btn-cyan:hover { background: var(--cyan2); color: var(--bg); }
.btn-green { background: var(--green); color: var(--bg); }
.btn-secondary {
  background: transparent; color: var(--cyan);
  border: 1px solid rgba(6,182,212,0.4);
}
.btn-secondary:hover { background: rgba(6,182,212,0.08); border-color: var(--cyan); }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--muted); color: var(--white); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.78rem; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 0.95rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 10px;
}
.badge-live    { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.badge-live::before { content: '●'; font-size: 7px; }
.badge-beta    { background: rgba(245,158,11,0.12); color: var(--gold); border: 1px solid rgba(245,158,11,0.3); }
.badge-soon    { background: rgba(100,116,139,0.1); color: var(--muted); border: 1px solid rgba(100,116,139,0.2); }
.badge-early   { background: rgba(16,185,129,0.1); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.badge-free    { background: rgba(6,182,212,0.1); color: var(--cyan); border: 1px solid rgba(6,182,212,0.25); }
.badge-new     { background: rgba(124,58,237,0.15); color: #a78bfa; border: 1px solid rgba(124,58,237,0.3); }

/* ── Page Shell ──────────────────────────────────────────────────────────── */
.page-top-pad { padding-top: 70px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1300px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--purple);
  margin-bottom: 0.8rem; display: block;
}
.section-divider {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  margin: 1rem 0 2rem; border: none;
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: rgba(124,58,237,0.3); }
.card-top-accent::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--card-gradient, linear-gradient(90deg, var(--purple), var(--cyan)));
}
.card-top-accent { position: relative; overflow: hidden; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: 0.76rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem;
}
.form-input {
  width: 100%;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 7px; padding: 0.65rem 1rem;
  color: var(--white); font-family: var(--font-sans); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--purple); }
.form-input::placeholder { color: var(--muted); }
.form-error { font-size: 0.78rem; color: var(--red); margin-top: 0.3rem; }
.form-success { font-size: 0.78rem; color: var(--green); margin-top: 0.3rem; }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert {
  border-radius: 8px; padding: 1rem 1.3rem;
  font-size: 0.88rem; line-height: 1.6; margin-bottom: 1rem;
  display: flex; align-items: flex-start; gap: 0.7rem;
}
.alert-info    { background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.25); color: #b0e4f0; }
.alert-success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25); color: #a7f3d0; }
.alert-warning { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); color: #fde68a; }
.alert-error   { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }

/* ── Live Dot ────────────────────────────────────────────────────────────── */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0;
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6,182,212,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(6,182,212,0); }
}

/* ── QPU Strip ───────────────────────────────────────────────────────────── */
.qpu-strip {
  background: linear-gradient(135deg, rgba(6,182,212,0.05), rgba(124,58,237,0.05));
  border: 1px solid rgba(6,182,212,0.15); border-radius: 12px;
  padding: 1.2rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin: 3rem 0;
}
.qpu-strip-left { display: flex; align-items: center; gap: 1rem; }
.qpu-strip strong { display: block; font-size: 0.88rem; }
.qpu-strip span { font-size: 0.75rem; color: var(--muted); font-family: monospace; }
.qpu-link {
  font-size: 0.78rem; color: var(--cyan); font-weight: 600;
  background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.2);
  padding: 0.45rem 1rem; border-radius: 7px; transition: opacity 0.2s;
}
.qpu-link:hover { opacity: 0.75; color: var(--cyan); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.aeonmi-footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.footer-brand .brand-name {
  font-family: var(--font-mono); font-size: 1.1rem;
  font-weight: 700; letter-spacing: 0.15em; margin-bottom: 0.6rem;
  color: var(--white);
}
.footer-brand .brand-name span { color: var(--purple); }
.footer-brand p { font-size: 0.82rem; color: var(--muted); line-height: 1.7; }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.82rem; color: var(--muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.76rem; color: var(--muted); font-family: var(--font-mono);
}
.footer-glyphs {
  font-size: 0.9rem; letter-spacing: 0.35em;
  color: rgba(124,58,237,0.35);
}

/* ── Gradient Text ───────────────────────────────────────────────────────── */
.grad-purple-cyan {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-green-cyan {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .aeonmi-nav { padding: 0.8rem 1.2rem; }
  .nav-links { gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .aeonmi-nav { padding: 0.7rem 1rem; }
}
