/* Eidolon — Website Styles
   Aesthetic: Dark editorial, amber accents, refined typography */

/* ── Reset & Variables ────────────────────────────────────────── */

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

:root {
  --bg:          #0a0c12;
  --bg-elevated: #111420;
  --bg-card:     #161924;
  --surface:     #1c1f2e;
  --border:      rgba(232,160,64,.12);
  --border-strong: rgba(232,160,64,.25);
  --text:        #d8d3ca;
  --text-muted:  #8a8578;
  --text-dim:    #5c584f;
  --amber:       #e8a040;
  --amber-glow:  rgba(232,160,64,.15);
  --amber-deep:  #c47f28;
  --green:       #4caf50;
  --green-soft:  rgba(76,175,80,.12);
  --danger:      #e06060;

  --font-display: 'Crimson Pro', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;

  --radius:     8px;
  --radius-lg:  16px;
  --max-width:  1140px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--amber); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

img { max-width: 100%; display: block; }

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

/* ── Navigation ───────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,12,18,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}
.nav-logo:hover { opacity: 1; color: var(--amber); }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--amber);
  color: var(--bg);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
}

.logo-text { letter-spacing: .5px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); opacity: 1; }

.nav-cta {
  background: var(--amber) !important;
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--amber-deep) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

/* ── Buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: all .2s;
  border: none;
}

.btn-primary {
  background: var(--amber);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--amber-deep);
  color: var(--bg);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,160,64,.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  opacity: 1;
}

.btn-full { width: 100%; }

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(232,160,64,.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 60%, rgba(76,175,80,.03) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .8s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .8s ease .15s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--amber);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp .8s ease .3s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s ease .45s forwards;
}

.hero-trust {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeUp .8s ease .6s forwards;
}
.hero-trust span { white-space: nowrap; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Sections ─────────────────────────────────────────────────── */

.section {
  padding: 100px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 48px;
}

/* ── Why Section (Split) ──────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.split-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 17px;
}

.contrast-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
}

.contrast-them {
  background: rgba(200,60,60,.06);
  border: 1px solid rgba(200,60,60,.15);
}

.contrast-us {
  background: var(--amber-glow);
  border: 1px solid var(--border-strong);
}

.contrast-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.contrast-them .contrast-label { color: var(--danger); }
.contrast-us .contrast-label { color: var(--amber); }

.contrast-items div {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.contrast-items div:last-child { border-bottom: none; }

/* ── Features Grid ────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: border-color .3s, transform .3s;
}
.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── How It Works (Steps) ─────────────────────────────────────── */

.section-how { background: var(--bg-elevated); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step { position: relative; }

.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--amber);
  opacity: .4;
  line-height: 1;
  margin-bottom: 16px;
}

.step-content h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Data Sovereignty Box ─────────────────────────────────────── */

.sovereignty-box {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(232,160,64,.04) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
}

.sovereignty-box h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 16px;
}

.sovereignty-box > p {
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 16px;
}

.sovereignty-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.sov-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  color: var(--amber);
}

.sov-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Pricing ──────────────────────────────────────────────────── */

.section-pricing { background: var(--bg-elevated); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}

.price-card-pro {
  border-color: var(--amber);
  box-shadow: 0 0 40px rgba(232,160,64,.08);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--amber);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}

.price-tier {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.price-period {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  margin-bottom: 32px;
}

.price-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.price-features li::before {
  content: '✓ ';
  color: var(--green);
}

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 32px;
  line-height: 1.7;
}

/* ── Tech Stack ───────────────────────────────────────────────── */

.section-tech {
  padding: 60px 0;
  text-align: center;
}

.tech-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── Download ─────────────────────────────────────────────────── */

.download-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
}
.download-box p {
  color: var(--text-muted);
  font-size: 16px;
}

.download-prereqs {
  text-align: center;
  margin-bottom: 40px;
}
.download-prereqs > p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.prereq-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.prereq {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 32px;
}
.prereq strong { color: var(--text); font-size: 15px; }
.prereq span { color: var(--text-dim); font-size: 12px; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: border-color .3s, transform .3s;
}
.download-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  opacity: 1;
}

.dl-platform {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

.dl-file {
  font-size: 11px;
  color: var(--text-dim);
  word-break: break-all;
  margin-bottom: 8px;
}

.dl-size {
  font-size: 12px;
  color: var(--amber);
  font-weight: 600;
}

.download-steps {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.download-steps code {
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--amber);
}

/* ── Footer ───────────────────────────────────────────────────── */

.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-logo .logo-mark {
  width: 28px;
  height: 28px;
  font-size: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
}

.footer-links h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color .2s;
}
.footer-links a:hover { color: var(--amber); opacity: 1; }

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .sovereignty-stats { gap: 32px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { text-align: center; }

  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-title { font-size: 36px; }
  .hero-trust { gap: 12px; }

  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sovereignty-box { padding: 32px 20px; }
  .sovereignty-stats { flex-direction: column; gap: 20px; }
}
