/* ===============================
   Epoch Intelligence Physics
   Global Style System (AUTHORITATIVE)
   =============================== */

:root {
  /* Energy Spectrum */
  --energy-blue: #4fa3ff;
  --energy-violet: #8b6cff;
  --energy-gold: #ffb347;

  /* Background */
  --space-black: #070b12;

  /* Field Gradients */
  --field-primary: radial-gradient(
    900px 600px at 50% 15%,
    rgba(79,163,255,0.35),
    rgba(7,11,18,0.98)
  );

  --field-dual:
    radial-gradient(
      700px 450px at 30% 45%,
      rgba(255,179,71,0.25),
      transparent 70%
    ),
    radial-gradient(
      700px 450px at 70% 55%,
      rgba(139,108,255,0.25),
      transparent 70%
    );

  --pulse-line: linear-gradient(
    90deg,
    var(--energy-blue),
    var(--energy-violet),
    var(--energy-gold),
    var(--energy-blue)
  );
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f5f7fb;
  background-color: var(--space-black);
  line-height: 1.55;
}

/* ===============================
   GLOBAL HEADER (LOCKED)
   =============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7,11,18,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — LEFT, HARD CONSTRAINED */
.site-header .logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.site-header .logo img,
.site-logo {
  height: 169px;              /* AUTHORITATIVE SIZE */
  max-height: 169px;
  width: auto;
  max-width: 180px;
  display: block;
}

/* ===============================
   PRIMARY NAV — RIGHT
   =============================== */

.primary-nav,
.main-nav,
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.primary-nav a,
.main-nav a,
.site-nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.primary-nav a:hover,
.main-nav a:hover,
.site-nav a:hover {
  color: #ffffff;
}

/* Active indicator */
.primary-nav a.active::after,
.main-nav a.active::after,
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--energy-blue),
    var(--energy-violet)
  );
}

/* ===============================
   HERO FIELD (PHYSICS LAYER)
   =============================== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    var(--field-dual),
    var(--field-primary);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 180deg,
    transparent,
    rgba(79,163,255,0.08),
    transparent
  );
  animation: slow-rotate 70s linear infinite;
}

@keyframes slow-rotate {
  to { transform: rotate(360deg); }
}

/* ===============================
   LOGO CORE (HERO ONLY)
   =============================== */

.logo-core {
  width: 160px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 28px rgba(79,163,255,0.5));
}

.logo-core img {
  width: 100%;
  height: auto;
}

.logo-core::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle,
    rgba(255,179,71,0.35),
    transparent 65%
  );
  filter: blur(28px);
  z-index: -1;
}

/* ===============================
   TYPOGRAPHY
   =============================== */

h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 1rem;
  font-weight: 700;
  text-align: center;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(
    90deg,
    var(--energy-blue),
    var(--energy-violet)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.92;
}

/* ===============================
   SECTION LAYOUT (TIGHTENED)
   =============================== */

section {
  padding: 3.5rem 1.5rem;
}

.container,
.content {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===============================
   DIMENSIONAL NODES (CARDS)
   =============================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  position: relative;
  padding: 1.75rem;
  border-radius: 18px;
  background: radial-gradient(
    circle at top,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );
  border: 1px solid rgba(255,255,255,0.12);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  background: var(--pulse-line);
  opacity: 0.65;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ===============================
   GLOBAL FOOTER (STATIC)
   =============================== */

.site-footer {
  background: linear-gradient(
    180deg,
    rgba(8,12,20,0.85),
    rgba(6,8,14,0.95)
  );
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 2rem;
}

.site-footer p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

/* ===============================
   MOBILE SAFETY
   =============================== */

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .primary-nav,
  .main-nav,
  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}
