/* ═══════════════════════════════════════════════════════════════
   HATHOR — Shared Styles
   Mineral & Resource Intelligence
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:       #07080a;
  --bg2:      #0e1014;
  --bg3:      #141720;
  --amber:    #f59e0b;
  --amber2:   #d97706;
  --gold:     #fcd34d;
  --copper:   #b45309;
  --white:    #f1f5f9;
  --muted:    #64748b;
  --border:   rgba(245,158,11,0.14);
  --border2:  rgba(245,158,11,0.28);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

a { color: inherit; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 4rem;
  background: rgba(7,8,10,0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  text-decoration: none;
}
.nav-logo span { color: var(--white); opacity: 0.35; font-size: 0.8rem; letter-spacing: 0.18em; margin-left: 0.6rem; vertical-align: middle; }
.nav-links { display: flex; gap: 2.4rem; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 0.88rem; letter-spacing: 0.05em;
  text-decoration: none; font-weight: 500; transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--amber); }
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--amber); border-radius: 1px;
}
.btn-portal {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  background: var(--amber);
  color: #07080a; font-weight: 700; font-size: 0.85rem;
  border-radius: 999px; text-decoration: none;
  letter-spacing: 0.04em; transition: background 0.2s, transform 0.15s;
}
.btn-portal:hover { background: var(--gold); transform: translateY(-1px); }
.btn-portal .dot {
  width: 7px; height: 7px; background: #07080a;
  border-radius: 50%; animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: rgba(7,8,10,0.96);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
}
.mobile-nav a {
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--amber); }
.mobile-nav .btn-portal {
  font-size: 1rem;
  padding: 0.8rem 2rem;
  margin-top: 1rem;
}

/* ─── PAGE HERO (sub-pages) ─── */
.page-hero {
  position: relative;
  padding: 10rem 4rem 4rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -20%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .section-tag {
  margin-bottom: 0.8rem;
}
.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 40%, #d97706 70%, #b45309 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}
.page-hero .page-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
}

/* ─── HERO (home page) ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 10rem 4rem 6rem;
  overflow: hidden;
}
.hero-topo {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.18;
}
.hero-topo svg { width: 100%; height: 100%; }
.hero::before {
  content: '';
  position: absolute; top: -10%; right: -8%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
  pointer-events: none; z-index: 1;
}
.hero::after {
  content: '';
  position: absolute; bottom: 5%; left: -5%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180,83,9,0.12) 0%, transparent 70%);
  pointer-events: none; z-index: 1;
}
.hero-tag {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--border2);
  padding: 0.4rem 1rem; border-radius: 999px;
  font-size: 0.75rem; letter-spacing: 0.12em; font-weight: 500;
  color: var(--amber); text-transform: uppercase; margin-bottom: 1.8rem;
  animation: fadein 0.8s ease both;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
  animation: pulse-dot 2s infinite;
}
.hero h1 {
  position: relative; z-index: 2;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(6rem, 14vw, 13rem);
  line-height: 0.88; letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 40%, #d97706 70%, #b45309 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadein 0.9s ease 0.1s both;
  margin-bottom: 0.2em;
}
.hero-sub {
  position: relative; z-index: 2;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #94a3b8; line-height: 1.6; max-width: 580px;
  font-weight: 300; animation: fadein 0.9s ease 0.25s both;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  position: relative; z-index: 2;
  display: flex; gap: 1rem; align-items: center;
  animation: fadein 0.9s ease 0.4s both;
}

/* ─── BUTTONS ─── */
.btn-primary {
  padding: 0.85rem 2rem; border-radius: 999px;
  background: var(--amber); color: #07080a;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em;
  text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); }
.btn-secondary {
  padding: 0.85rem 2rem; border-radius: 999px;
  border: 1px solid var(--border2); color: var(--amber);
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em;
  text-decoration: none; transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(245,158,11,0.08); transform: translateY(-2px); }

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

/* ─── STATS BAR ─── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.stat {
  padding: 2rem 2.5rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem; color: var(--amber); letter-spacing: 0.04em;
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; margin-top: 0.3rem; text-transform: uppercase; }

/* ─── SECTIONS ─── */
section { padding: 6rem 4rem; }

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1rem;
}
h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.04em; line-height: 1.05;
  color: var(--white); margin-bottom: 1.2rem;
}
.section-intro { font-size: 1.05rem; color: var(--muted); max-width: 560px; line-height: 1.7; margin-bottom: 3.5rem; }

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5px;
  background: var(--border); border: 1px solid var(--border);
}
.feature-card {
  background: var(--bg2); padding: 2.5rem 2rem;
  transition: background 0.25s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { background: var(--bg3); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; margin-bottom: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,158,11,0.1); border-radius: 10px;
  border: 1px solid rgba(245,158,11,0.2);
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--amber); fill: none; stroke-width: 1.8; }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 0.7rem; }
.feature-card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ─── HOW IT WORKS ─── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { position: relative; padding: 2rem; border: 1px solid var(--border); border-radius: 1rem; }
.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem; color: rgba(245,158,11,0.1); line-height: 1;
  position: absolute; top: 1rem; right: 1.5rem; letter-spacing: 0.04em;
}
.step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--white); }
.step p  { font-size: 0.86rem; color: var(--muted); line-height: 1.65; }
.step-connector {
  position: absolute; top: 50%; right: -1.1rem; z-index: 2;
  width: 22px; height: 22px; background: var(--amber);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.step-connector svg { width: 12px; height: 12px; stroke: #07080a; fill: none; stroke-width: 2.5; }

/* ─── CONSTELLATION ─── */
.constellation { background: var(--bg2); }
.constellation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.constellation-card {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 1.8rem; background: var(--bg);
  transition: border-color 0.25s, transform 0.2s;
}
.constellation-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.constellation-card .sys-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; letter-spacing: 0.14em;
  color: var(--amber); text-transform: uppercase; margin-bottom: 0.8rem;
}
.constellation-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--white); }
.constellation-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }
.constellation-badge {
  display: inline-block; margin-top: 1rem;
  padding: 0.2rem 0.7rem; border-radius: 999px;
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2);
  font-size: 0.72rem; color: var(--amber); letter-spacing: 0.08em;
}

/* ─── PORTAL ─── */
.portal-section {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 6rem 4rem; position: relative; overflow: hidden;
}
.portal-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(245,158,11,0.06) 0%, transparent 70%);
}
.portal-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 440px;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 1.5rem; padding: 2.8rem 2.5rem;
  margin-top: 2.5rem;
}
.portal-card .lock-icon {
  width: 52px; height: 52px; margin: 0 auto 1.5rem;
  background: rgba(245,158,11,0.12); border-radius: 50%;
  border: 1px solid rgba(245,158,11,0.25);
  display: flex; align-items: center; justify-content: center;
}
.portal-card .lock-icon svg { width: 22px; height: 22px; stroke: var(--amber); fill: none; stroke-width: 1.8; }
.portal-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.4rem; }
.portal-card .sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 2rem; }
.input-wrap { margin-bottom: 1rem; text-align: left; }
.input-wrap label { display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted); letter-spacing: 0.07em; margin-bottom: 0.4rem; text-transform: uppercase; }
.input-wrap input {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--bg); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: var(--white); font-family: 'Outfit', sans-serif;
  font-size: 0.9rem; outline: none; transition: border-color 0.2s;
}
.input-wrap input:focus { border-color: var(--amber); }
.input-wrap input::placeholder { color: var(--muted); }
.portal-launch {
  display: block; width: 100%;
  padding: 0.9rem; border-radius: 999px;
  background: var(--amber); color: #07080a;
  font-weight: 700; font-size: 0.9rem;
  text-align: center; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  margin-top: 1.5rem; border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif; letter-spacing: 0.04em;
}
.portal-launch:hover { background: var(--gold); transform: translateY(-1px); }
.portal-notice { font-size: 0.74rem; color: var(--muted); margin-top: 1.2rem; display: flex; align-items: center; justify-content: center; gap: 0.4rem; flex-wrap: wrap; }
.portal-notice svg { width: 13px; height: 13px; stroke: var(--muted); fill: none; stroke-width: 2; }
.portal-notice a { color: var(--amber); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg2);
}
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: var(--amber); letter-spacing: 0.08em; text-decoration: none; }
.footer-copy { font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--amber); }

/* ─── UTILITIES ─── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 4rem 1.5rem; }
  .hero { padding: 8rem 1.5rem 4rem; }
  .page-hero { padding: 8rem 1.5rem 3rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem 1.5rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .portal-section { padding: 4rem 1.5rem; }
}
