/* AETHERIEUM.AI — styles.css
   Identity: near-black / electric steel-blue accent / Cormorant + Inter
   Character: sovereign, operational, precision, command
*/

/* ── Tokens ── */
:root {
  --void:          #080810;
  --void-mid:      #0d0d18;
  --void-soft:     #111120;
  --void-panel:    #0f0f1c;
  --electric:      #4a7fe8;
  --electric-dim:  rgba(74,127,232,0.25);
  --electric-sub:  rgba(74,127,232,0.10);
  --electric-grid: rgba(74,127,232,0.035);
  --steel:         #8ba4cc;
  --text-primary:  #e8eaf2;
  --text-secondary:#7a8299;
  --text-muted:    #3a3d52;
  --border:        rgba(74,127,232,0.12);
  --border-strong: rgba(74,127,232,0.28);
  --gold:          #c4a558;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;
  --ff-mono:    'JetBrains Mono', 'Courier New', monospace;

  --max-w: 74rem;
  --nav-h: 68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--void);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8,8,16,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--text-primary);
}
.nav-logo span { color: var(--electric); }
.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
@media (min-width: 800px) { .nav-links { display: flex; } }
.nav-links a {
  font-family: var(--ff-body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  border: 1px solid var(--electric-dim) !important;
  color: var(--electric) !important;
  padding: 0.45rem 1.25rem !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em !important;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  background: var(--electric-sub) !important;
  border-color: var(--electric) !important;
  color: var(--text-primary) !important;
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
@media (min-width: 800px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--text-secondary); }
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(8,8,16,0.98);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 2rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; padding-bottom: 0; }
.mobile-nav a.mobile-cta { color: var(--electric); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--electric-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--electric-grid) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(74,127,232,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.corner { position: absolute; width: 20px; height: 20px; border-color: rgba(74,127,232,0.2); }
.c-tl { top: 90px; left: 44px; border-left: 1px solid; border-top: 1px solid; }
.c-tr { top: 90px; right: 44px; border-right: 1px solid; border-top: 1px solid; }
.c-bl { bottom: 44px; left: 44px; border-left: 1px solid; border-bottom: 1px solid; }
.c-br { bottom: 44px; right: 44px; border-right: 1px solid; border-bottom: 1px solid; }

.hero-content {
  position: relative; z-index: 10;
  max-width: 60rem; margin: 0 auto;
  padding: 0 2rem; text-align: center;
}
.hero-label {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--electric);
  opacity: 0.8;
  margin-bottom: 2.5rem;
}
.hero h1 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.08;
  margin-bottom: 2rem;
}
.hero h1 em { font-style: italic; color: var(--electric); font-weight: 300; }
.hero-trio {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.hero-trio span {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-trio span.active { color: var(--electric); opacity: 0.9; }
.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 38rem;
  margin: 0 auto 3rem;
  line-height: 1.75;
}
.hero-actions {
  display: flex; flex-wrap: wrap;
  gap: 1rem; justify-content: center;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--electric-sub);
  color: var(--electric);
  border-color: var(--electric-dim);
}
.btn-primary:hover {
  background: rgba(74,127,232,0.18);
  border-color: var(--electric);
  color: var(--text-primary);
}
.btn-ghost {
  color: var(--text-secondary);
  border-color: rgba(255,255,255,0.08);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.16);
}

/* ── Section base ── */
section { padding: 6.5rem 2rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.section-title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 1.1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 40rem;
  line-height: 1.75;
}

/* ── The Shift ── */
#shift { background: var(--void-mid); border-top: 1px solid var(--border); }
.shift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid var(--border);
}
.shift-item {
  padding: 1.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.shift-num {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.shift-item h3 {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--electric);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.shift-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Operator Gap ── */
#operator-gap {
  background: var(--void);
  border-top: 1px solid var(--border);
}
.gap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid var(--border);
}
.gap-item {
  padding: 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.gap-num {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.gap-item h3 {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.gap-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── AURIN ── */
#aurin {
  background: var(--void-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.aurin-inner {
  max-width: var(--max-w); margin: 0 auto;
}
.aurin-header {
  text-align: center;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3.5rem;
}
.aurin-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.aurin-name {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--electric);
  letter-spacing: 0.15em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.aurin-sub {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-style: italic;
}
.aurin-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 680px) {
  .aurin-pillars { grid-template-columns: repeat(3, 1fr); }
}
.aurin-pillar {
  border: 1px solid var(--border);
  padding: 2rem;
}
.aurin-pillar h3 {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--electric);
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
}
.aurin-pillar p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.aurin-cta {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.aurin-cta p {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── Solutions ── */
#solutions { background: var(--void-mid); border-top: 1px solid var(--border); }
.solutions-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
}
.solution-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 0.2s;
}
.solution-item:hover { background: rgba(74,127,232,0.03); }
.sol-num {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--electric);
  opacity: 0.6;
  padding-top: 0.2rem;
}
.sol-content h3 {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.sol-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Thesis pullquote ── */
.thesis-bar {
  background: var(--void);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
  text-align: center;
}
.thesis-bar blockquote {
  font-family: var(--ff-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 auto 1rem;
  line-height: 1.5;
}
.thesis-bar cite {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: normal;
}

/* ── Contact ── */
#contact {
  background: var(--void-panel);
  border-top: 1px solid var(--border);
}
.contact-inner {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}
.contact-form {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}
.contact-form label {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--electric-dim); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-submit { margin-top: 0.5rem; }
.contact-direct {
  margin-top: 2rem;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}
.contact-direct a { color: var(--text-muted); transition: color 0.2s; }
.contact-direct a:hover { color: var(--electric); }

/* ── D0J0S bridge ── */
.bridge {
  background: var(--void-mid);
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem;
  text-align: center;
}
.bridge p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.bridge a { color: var(--gold); transition: color 0.2s; }
.bridge a:hover { color: #d4b878; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 1.5rem; align-items: flex-start;
}
@media (min-width: 680px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-logo {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
}
.footer-logo span { color: var(--electric); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.75rem; list-style: none; }
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--electric); }
.footer-meta {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ═══════════════════════════════════════
   SKIN SYSTEM — AETHERIEUM.AI
   Three appearances. One infrastructure.
═══════════════════════════════════════ */

/* ── Skin 1: Void / Aether (default) ── */
[data-skin="aether"] {
  --void:         #080810;
  --void-mid:     #0d0d18;
  --void-soft:    #111120;
  --void-panel:   #0f0f1c;
  --electric:     #4a7fe8;
  --electric-dim: rgba(74,127,232,0.25);
  --electric-sub: rgba(74,127,232,0.10);
  --electric-grid:rgba(74,127,232,0.035);
  --text-primary: #e8eaf2;
  --text-secondary:#7a8299;
  --text-muted:   #3a3d52;
  --border:       rgba(74,127,232,0.12);
  --border-strong:rgba(74,127,232,0.28);
}

/* ── Skin 2: Light / Command ── */
[data-skin="command"] {
  --void:         #f0f2f8;
  --void-mid:     #e8eaf4;
  --void-soft:    #e0e4f0;
  --void-panel:   #dde0ee;
  --electric:     #2a5fc4;
  --electric-dim: rgba(42,95,196,0.28);
  --electric-sub: rgba(42,95,196,0.08);
  --electric-grid:rgba(42,95,196,0.06);
  --text-primary: #0d1020;
  --text-secondary:#3a4060;
  --text-muted:   #8a90a8;
  --border:       rgba(42,95,196,0.15);
  --border-strong:rgba(42,95,196,0.32);
}
[data-skin="command"] .nav {
  background: rgba(240,242,248,0.96);
  border-bottom-color: rgba(42,95,196,0.12);
}
[data-skin="command"] .hero-grid {
  background-image:
    linear-gradient(rgba(42,95,196,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,95,196,0.06) 1px, transparent 1px);
  background-size: 72px 72px;
}
[data-skin="command"] .hero-glow {
  background: radial-gradient(ellipse, rgba(42,95,196,0.06) 0%, transparent 65%);
}
[data-skin="command"] .corner { border-color: rgba(42,95,196,0.2); }
[data-skin="command"] .mobile-nav {
  background: rgba(240,242,248,0.98);
}
[data-skin="command"] .contact-form input,
[data-skin="command"] .contact-form textarea {
  background: rgba(0,0,0,0.03);
  border-color: rgba(42,95,196,0.18);
  color: #0d1020;
}
[data-skin="command"] .contact-form input::placeholder,
[data-skin="command"] .contact-form textarea::placeholder { color: #8a90a8; }
[data-skin="command"] .thesis-bar { background: #e8eaf4; }
[data-skin="command"] .bridge { background: #e0e4f0; }

/* ── Skin 3: Operator / System ── */
[data-skin="system"] {
  --void:         #060810;
  --void-mid:     #080c14;
  --void-soft:    #0a1018;
  --void-panel:   #080e18;
  --electric:     #3a8a6a;
  --electric-dim: rgba(58,138,106,0.28);
  --electric-sub: rgba(58,138,106,0.08);
  --electric-grid:rgba(58,138,106,0.04);
  --text-primary: #7ab89a;
  --text-secondary:#4a7860;
  --text-muted:   #2a4838;
  --border:       rgba(58,138,106,0.14);
  --border-strong:rgba(58,138,106,0.28);
  --ff-body:      'JetBrains Mono', 'Courier New', monospace;
}
[data-skin="system"] .nav {
  background: rgba(6,8,16,0.96);
}
[data-skin="system"] .nav-logo,
[data-skin="system"] .nav-links a,
[data-skin="system"] .hero-label,
[data-skin="system"] .section-label,
[data-skin="system"] .footer-meta {
  font-family: 'JetBrains Mono', monospace;
}
[data-skin="system"] .hero-grid {
  background-image:
    linear-gradient(rgba(58,138,106,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,138,106,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
[data-skin="system"] .hero-glow {
  background: radial-gradient(ellipse, rgba(40,100,70,0.07) 0%, transparent 65%);
}
[data-skin="system"] .corner { border-color: rgba(58,138,106,0.2); }
[data-skin="system"] .mobile-nav { background: rgba(6,8,16,0.98); }

/* ── Skin Switcher UI ── */
.skin-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  transition: color 0.2s;
  user-select: none;
}
.skin-trigger:hover { color: var(--electric); }
.skin-trigger-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--electric);
  opacity: 0.6;
  flex-shrink: 0;
}
.skin-panel {
  position: fixed;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--void-soft);
  border: 1px solid var(--border-strong);
  padding: 1.25rem;
  display: none;
  gap: 0.75rem;
  flex-direction: row;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.skin-panel.open { display: flex; }
.skin-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
  min-width: 80px;
}
.skin-option:hover { border-color: var(--electric); }
.skin-option.active { border-color: var(--electric); }
.skin-option-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}
.skin-option-label {
  font-family: var(--ff-mono);
  font-size: 0.52rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}
.skin-option.active .skin-option-label { color: var(--electric); }

/* ── Aether Orb ── */
.aether-orb-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aether-orb-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 32px rgba(74,127,232,0.18))
          drop-shadow(0 0 80px rgba(74,127,232,0.08));
  animation: orbFloat 6s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0px); filter: drop-shadow(0 0 32px rgba(74,127,232,0.18)) drop-shadow(0 0 80px rgba(74,127,232,0.08)); }
  50%       { transform: translateY(-8px); filter: drop-shadow(0 12px 40px rgba(74,127,232,0.22)) drop-shadow(0 0 100px rgba(74,127,232,0.12)); }
}
@media (prefers-reduced-motion: reduce) {
  .aether-orb-svg { animation: none; }
}

/* Skin overrides for orb accent color */
[data-skin="command"] .aether-orb-svg {
  filter: drop-shadow(0 0 32px rgba(42,95,196,0.22))
          drop-shadow(0 0 80px rgba(42,95,196,0.10));
}
[data-skin="system"] .aether-orb-svg {
  filter: drop-shadow(0 0 32px rgba(58,138,106,0.22))
          drop-shadow(0 0 80px rgba(58,138,106,0.10));
}
