/* ============================================================
   UNITED EARTH — style.css
   Brand: Deep Space Blue / Earth Blue / Verdant Green / Solar Gold
   ============================================================ */

/* ---- RESET & CUSTOM PROPERTIES ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --deep-space:   #0B1F3A;
  --earth-blue:   #2E86AB;
  --green:        #3FA34D;
  --atmos-light:  #A7D0E8;
  --gold:         #F2C94C;
  --neutral-white:#F5F7FA;
  --warning-red:  #D64545;
  --mid-dark:     #0f2847;
  --card-bg:      rgba(255,255,255,0.04);
  --border:       rgba(46,134,171,0.2);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Montserrat', sans-serif;
  --max-width:    1200px;
  --transition:   0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--deep-space);
  color: var(--neutral-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

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

/* ---- UTILITY CLASSES ---- */
.accent-gold  { color: var(--gold); }
.accent-green { color: var(--green); }
.accent-blue  { color: var(--earth-blue); }
.accent-red   { color: var(--warning-red); }

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ---- NAVIGATION ---- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--neutral-white);
}
.logo-svg { width: 36px; height: 36px; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--atmos-light);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--earth-blue);
  color: var(--atmos-light);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: var(--earth-blue);
  color: var(--neutral-white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--atmos-light);
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(11, 31, 58, 0.97);
}
.mobile-menu a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--atmos-light);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46,134,171,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,134,171,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46,134,171,0.18) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(63,163,77,0.12) 0%, transparent 70%);
  bottom: 0; left: 10%;
  animation-delay: -5s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(242,201,76,0.08) 0%, transparent 70%);
  top: 30%; left: 50%;
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.04); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 2.5rem 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--earth-blue);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}
.hero-headline .line { display: block; }
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 300;
  color: var(--atmos-light);
  max-width: 560px;
  line-height: 1.9;
  margin-bottom: 2.5rem;
}
.hero-sub strong {
  color: var(--neutral-white);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--earth-blue);
  color: var(--neutral-white);
  border: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(46,134,171,0.4); }

.btn-ghost {
  background: transparent;
  color: var(--neutral-white);
  border: 1px solid rgba(255,255,255,0.2);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--atmos-light); color: var(--atmos-light); }

.btn-large { padding: 1.2rem 3rem; font-size: 0.8rem; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.4;
}
.hero-scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--atmos-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ---- STATEMENT BAR ---- */
.statement-bar {
  background: var(--earth-blue);
  overflow: hidden;
  padding: 0.9rem 0;
}
.statement-ticker {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-space);
}
.statement-ticker .dot { opacity: 0.4; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- SECTION SHARED ---- */
.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--earth-blue);
  margin-bottom: 1.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.section-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--atmos-light);
  max-width: 600px;
  margin-bottom: 3.5rem;
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 8rem 0;
  border-top: 1px solid var(--border);
}
.manifesto-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}
.manifesto-left h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1;
  position: sticky;
  top: 8rem;
}
.manifesto-block {
  display: flex;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.manifesto-block:last-child { border-bottom: none; }
.block-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--earth-blue);
  opacity: 0.25;
  line-height: 1;
  min-width: 2.5rem;
  margin-top: -0.3rem;
}
.block-text h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.block-text p {
  font-size: 0.95rem;
  color: var(--atmos-light);
  font-weight: 300;
}

/* ---- THREATS ---- */
.threats {
  padding: 8rem 0;
  background: linear-gradient(to bottom, var(--deep-space), #081526);
}
.threat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}
.threat-card {
  background: var(--deep-space);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}
.threat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--warning-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.threat-card:hover::before { transform: scaleX(1); }
.threat-card:hover { background: rgba(214,69,69,0.04); }

.threat-icon {
  width: 52px; height: 52px;
  margin-bottom: 1.5rem;
}
.threat-icon svg { width: 100%; height: 100%; }

.threat-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  color: var(--neutral-white);
}
.threat-card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--atmos-light);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.threat-level { margin-top: auto; }
.level-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warning-red);
  display: block;
  margin-bottom: 0.4rem;
}
.level-bar {
  height: 2px;
  background: rgba(214,69,69,0.15);
}
.level-fill {
  height: 100%;
  background: var(--warning-red);
  transition: width 1.5s ease;
}

.threat-card--summary {
  background: #0a1830;
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.summary-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--neutral-white);
  margin-bottom: 1.5rem;
}
.summary-line {
  width: 40px;
  height: 2px;
  background: var(--earth-blue);
  margin-bottom: 1.5rem;
}
.threat-card--summary p {
  font-size: 0.85rem;
  color: rgba(167,208,232,0.7);
}

/* ---- SYSTEMS ---- */
.systems {
  padding: 8rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.systems .section-sub { margin-left: auto; margin-right: auto; text-align: center; }
.systems-diagram {
  position: relative;
  width: 500px;
  height: 500px;
  margin: 0 auto;
  max-width: 100%;
}
.sys-node {
  position: absolute;
  transform: translate(-50%, -50%);
}
.sys-center { top: 50%; left: 50%; }
.sys-top    { top: 18%; left: 50%; }
.sys-right  { top: 50%; left: 82%; }
.sys-bottom { top: 82%; left: 50%; }
.sys-left   { top: 50%; left: 18%; }

.node-inner {
  background: var(--mid-dark);
  border: 1px solid var(--earth-blue);
  color: var(--neutral-white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 1.2rem 1.5rem;
  text-align: center;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.sys-center .node-inner {
  background: rgba(46,134,171,0.15);
  border-color: var(--earth-blue);
  border-width: 1.5px;
  padding: 1.5rem 2rem;
  font-size: 1rem;
  line-height: 1.4;
}
.node-small {
  font-size: 0.8rem;
  padding: 0.7rem 1.2rem;
  border-color: rgba(46,134,171,0.4);
  color: var(--atmos-light);
}

.sys-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ---- VISION ---- */
.vision {
  padding: 8rem 0;
  background: linear-gradient(to bottom, #081526, var(--deep-space));
}
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.vision-card {
  background: var(--deep-space);
  padding: 2.5rem;
  transition: background var(--transition);
}
.vision-card:hover { background: rgba(46,134,171,0.06); }

.vision-icon {
  width: 44px; height: 44px;
  margin-bottom: 1.5rem;
}
.vision-icon svg { width: 100%; height: 100%; }

.vision-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}
.vision-card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--atmos-light);
  line-height: 1.75;
}
.vision-card--dark {
  background: var(--mid-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vision-card--dark blockquote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--neutral-white);
  text-align: center;
}
.vision-card--dark blockquote strong { color: var(--gold); }

/* ---- COUNTERFRAME ---- */
.counterframe {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}
.cf-inner {
  background: rgba(46,134,171,0.05);
  border: 1px solid var(--border);
  padding: 4rem;
}
.cf-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warning-red);
  margin-bottom: 2.5rem;
}
.cf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.cf-attack {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warning-red);
  margin-bottom: 0.8rem;
}
.cf-response {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--neutral-white);
  line-height: 1.7;
}

/* ---- JOIN ---- */
.join {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}
.join-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.orb-join-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46,134,171,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.orb-join-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(242,201,76,0.07) 0%, transparent 70%);
  bottom: 0; left: 0;
}
.join-content { position: relative; z-index: 1; max-width: 680px; }
.join-content h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.join-content p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--atmos-light);
  margin-bottom: 3rem;
  max-width: 540px;
}

.join-form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row--single { grid-template-columns: 1fr; }

.join-form input,
.join-form select {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--neutral-white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 1rem 1.3rem;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  appearance: none;
}
.join-form input::placeholder { color: rgba(167,208,232,0.4); }
.join-form select { cursor: pointer; }
.join-form select option { background: var(--deep-space); color: var(--neutral-white); }
.join-form input:focus,
.join-form select:focus { border-color: var(--earth-blue); }

.join-taglines {
  display: flex;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(167,208,232,0.5);
  flex-wrap: wrap;
}
.join-taglines .dot { opacity: 0.4; }

/* ---- FOOTER ---- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: #081526;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: var(--neutral-white);
  margin-bottom: 0.3rem;
}
.footer-domain {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--earth-blue);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(167,208,232,0.5);
  max-width: 320px;
  line-height: 1.8;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--earth-blue);
  margin-bottom: 0.5rem;
}
.footer-col a {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(167,208,232,0.55);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--neutral-white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: rgba(167,208,232,0.3);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-tagline { font-style: italic; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .threat-grid { grid-template-columns: repeat(2, 1fr); }
  .vision-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .manifesto-layout { grid-template-columns: 1fr 2fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-content { padding: 7rem 1.5rem 4rem; }
  .hero-headline { font-size: clamp(3.2rem, 12vw, 5.5rem); }

  .manifesto-layout { grid-template-columns: 1fr; gap: 2rem; }
  .manifesto-left h2 { position: static; }

  .threat-grid { grid-template-columns: 1fr; }
  .threat-card--summary { grid-column: span 1; }

  .systems-diagram { width: 320px; height: 320px; }

  .vision-grid { grid-template-columns: 1fr; }

  .cf-inner { padding: 2rem; }
  .cf-grid { grid-template-columns: 1fr; gap: 2rem; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .container { padding: 0 1.5rem; }
  .manifesto, .threats, .systems, .vision, .counterframe, .join { padding: 5rem 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions button { width: 100%; }
  .statement-ticker { font-size: 0.6rem; }
}
