/* ═══════════════════════════════════════════════════════════════════════════
   shared.css — Axiom Studios Design System
   Imported by all pages. Light mode is default.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────────────────────── */
:root {
  /* Light mode (DEFAULT) */
  --bg: #ffffff;
  --surface: #f8f8fc;
  --border: #e8e8f0;
  --text: #0f0f1a;
  --muted: #6b7280;
  --accent: #7c6af7;
  --accent-gold: #f5c542;
  --card: #ffffff;
  --card-border: #e8e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --green: #22863a;
  --red: #cb2431;

  /* Nav background with opacity */
  --nav-bg: rgba(255,255,255,0.92);

  /* Logo */
  --logo-icon-bg: #1a1a2e;
  --logo-icon-text: #f5c542;
}

[data-theme="dark"] {
  --bg: #09090f;
  --surface: #111118;
  --border: #1e1e2e;
  --text: #e8e8e8;
  --muted: #666;
  --accent: #7c6af7;
  --accent-gold: #f5c542;
  --card: #14141e;
  --card-border: #1e1e2e;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --green: #98c379;
  --red: #e06c75;

  --nav-bg: rgba(9,9,15,0.94);

  --logo-icon-bg: #f5c542;
  --logo-icon-text: #1a1a2e;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  transition: background 0.2s, color 0.2s;
}

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Axiom Logo Component ──────────────────────────────────────────────────── */
.axiom-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.axiom-logo:hover { text-decoration: none; }

.axiom-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--logo-icon-bg);
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.2s;
  font-size: 0; /* hide fallback text */
  /* Light mode: gold icon on navy bg */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34' fill='none'%3E%3Cline x1='7' y1='7' x2='27' y2='27' stroke='%23f5c542' stroke-width='2.8' stroke-linecap='round'/%3E%3Cline x1='27' y1='7' x2='7' y2='27' stroke='%23f5c542' stroke-width='2.8' stroke-linecap='round'/%3E%3Cline x1='17' y1='17' x2='17' y2='9' stroke='%23f5c542' stroke-width='1.4' stroke-linecap='round' opacity='0.7'/%3E%3Cline x1='17' y1='17' x2='25' y2='17' stroke='%23f5c542' stroke-width='1.4' stroke-linecap='round' opacity='0.7'/%3E%3Cline x1='17' y1='17' x2='17' y2='25' stroke='%23f5c542' stroke-width='1.4' stroke-linecap='round' opacity='0.7'/%3E%3Cline x1='17' y1='17' x2='9' y2='17' stroke='%23f5c542' stroke-width='1.4' stroke-linecap='round' opacity='0.7'/%3E%3Ccircle cx='17' cy='8.5' r='1.4' fill='%23f5c542' opacity='0.85'/%3E%3Ccircle cx='25.5' cy='17' r='1.4' fill='%23f5c542' opacity='0.85'/%3E%3Ccircle cx='17' cy='25.5' r='1.4' fill='%23f5c542' opacity='0.85'/%3E%3Ccircle cx='8.5' cy='17' r='1.4' fill='%23f5c542' opacity='0.85'/%3E%3Ccircle cx='17' cy='17' r='2.2' fill='%23f5c542'/%3E%3C/svg%3E");
    background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
}

[data-theme="dark"] .axiom-logo-icon {
  /* Dark mode: navy icon on gold bg */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34' fill='none'%3E%3Cline x1='7' y1='7' x2='27' y2='27' stroke='%231a1a2e' stroke-width='2.8' stroke-linecap='round'/%3E%3Cline x1='27' y1='7' x2='7' y2='27' stroke='%231a1a2e' stroke-width='2.8' stroke-linecap='round'/%3E%3Cline x1='17' y1='17' x2='17' y2='9' stroke='%231a1a2e' stroke-width='1.4' stroke-linecap='round' opacity='0.7'/%3E%3Cline x1='17' y1='17' x2='25' y2='17' stroke='%231a1a2e' stroke-width='1.4' stroke-linecap='round' opacity='0.7'/%3E%3Cline x1='17' y1='17' x2='17' y2='25' stroke='%231a1a2e' stroke-width='1.4' stroke-linecap='round' opacity='0.7'/%3E%3Cline x1='17' y1='17' x2='9' y2='17' stroke='%231a1a2e' stroke-width='1.4' stroke-linecap='round' opacity='0.7'/%3E%3Ccircle cx='17' cy='8.5' r='1.4' fill='%231a1a2e' opacity='0.85'/%3E%3Ccircle cx='25.5' cy='17' r='1.4' fill='%231a1a2e' opacity='0.85'/%3E%3Ccircle cx='17' cy='25.5' r='1.4' fill='%231a1a2e' opacity='0.85'/%3E%3Ccircle cx='8.5' cy='17' r='1.4' fill='%231a1a2e' opacity='0.85'/%3E%3Ccircle cx='17' cy='17' r='2.2' fill='%231a1a2e'/%3E%3C/svg%3E");
}

.axiom-logo-icon.sm {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background-size: 68%;
}

.axiom-logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.axiom-logo-wordmark .wm-axiom {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.axiom-logo-wordmark .wm-studios {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Inline variant — single line */
.axiom-logo.inline .axiom-logo-wordmark {
  flex-direction: row;
  align-items: baseline;
  gap: 0.3rem;
}
.axiom-logo.inline .wm-axiom { font-size: 1rem; }
.axiom-logo.inline .wm-studios { font-size: 0.75rem; margin-top: 0; }

/* ── Theme Toggle ──────────────────────────────────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface);
}

/* ── Navigation ────────────────────────────────────────────────────────────── */
.site-nav {
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  transition: background 0.2s, border-color 0.2s;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.nav-separator {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 0.85rem;
  flex-shrink: 0;
}

/* Contact CTA button in nav */
.btn-nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  margin-left: 0.35rem;
}
.btn-nav-cta:hover {
  opacity: 0.88;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--surface); }

@media (max-width: 680px) {
  .nav-hamburger { display: inline-flex; align-items: center; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem 1rem;
    gap: 0.1rem;
  }
  .nav-links.open .nav-link { padding: 0.55rem 0.5rem; width: 100%; }
  .nav-links.open .btn-nav-cta { margin-left: 0; margin-top: 0.35rem; }
  .nav-links.open .theme-toggle { margin-left: 0; }
  .site-nav { position: sticky; }
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 9px;
  text-decoration: none;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 2px 12px rgba(124,106,247,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124,106,247,0.4);
  opacity: 0.95;
  text-decoration: none;
}

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1.75rem;
  border-radius: 9px;
  text-decoration: none;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(124,106,247,0.06);
  text-decoration: none;
}

.btn-sm {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-sm:hover {
  border-color: var(--accent);
  background: var(--surface);
  text-decoration: none;
}

/* ── Section Wrapper ───────────────────────────────────────────────────────── */
.section-wrap {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(124,106,247,0.25);
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer-left .copy { color: var(--muted); font-size: 0.83rem; }

.footer-center {
  display: flex;
  gap: 1.5rem;
}
.footer-center a {
  color: var(--muted);
  font-size: 0.83rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-center a:hover { color: var(--text); }

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.footer-right a {
  color: var(--muted);
  font-size: 0.83rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}
.footer-right a:hover { color: var(--text); }

@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .footer-center { flex-wrap: wrap; }
}

/* ── Divider ───────────────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── Spinner ───────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Status Badges ─────────────────────────────────────────────────────────── */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  background: rgba(34,134,58,0.1);
  border: 1px solid rgba(34,134,58,0.25);
  color: #22863a;
}
[data-theme="dark"] .badge-live {
  background: rgba(152,195,121,0.1);
  border-color: rgba(152,195,121,0.25);
  color: #98c379;
}
.badge-live::before {
  content: '●';
  font-size: 0.55rem;
  color: #22863a;
}
[data-theme="dark"] .badge-live::before { color: #98c379; }

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  background: rgba(107,114,128,0.1);
  border: 1px solid rgba(107,114,128,0.25);
  color: var(--muted);
}
.badge-soon::before { content: '○'; font-size: 0.55rem; }

/* ── Tag Pills ─────────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ── Utility ───────────────────────────────────────────────────────────────── */
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
