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

:root {
  --black:   #050505;
  --black2:  #0a0a0a;
  --green:   #00ff88;
  --green2:  #00cc6a;
  --green-dim: rgba(0,255,136,.12);
  --white:   #ffffff;
  --grey:    #a0a0a0;
  --grey2:   #606060;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Orbitron', monospace;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}

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

/* ─── TYPOGRAPHY ───────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(3rem, 8vw, 7rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .6rem; }
p  { color: var(--grey); font-size: 1.05rem; max-width: 56ch; }

.accent { color: var(--green); }
.center { text-align: center; margin-inline: auto; }
.section-tag {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.section-tag.center { display: block; }

/* ─── LAYOUT ───────────────────────────────────────────────────── */
.container { width: 90%; max-width: 1180px; margin-inline: auto; }

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split-layout.reverse { direction: rtl; }
.split-layout.reverse > * { direction: ltr; }

/* ─── NAVBAR ───────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  background: transparent;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
#navbar.scrolled {
  background: rgba(5,5,5,.88);
  backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(0,255,136,.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo img {
  height: 64px;
  width: auto;
  filter: brightness(1);
  transition: filter .3s;
}
.nav-logo:hover img {
  filter: drop-shadow(0 0 14px var(--green));
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  position: relative;
  transition: color .3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--green);
  transition: width .3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-mobile-menu {
  display: none;
  list-style: none;
  flex-direction: column;
  gap: 0;
  background: rgba(5,5,5,.97);
  border-top: 1px solid rgba(0,255,136,.1);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  display: block;
  padding: 1rem 5%;
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color .2s, background .2s;
}
.nav-mobile-menu a:hover { color: var(--green); background: rgba(0,255,136,.04); }

/* ─── BUTTONS ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 2.2rem;
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .3s, box-shadow .3s;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.77,0,.175,1);
  z-index: 0;
}
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary:hover { color: var(--black); box-shadow: 0 0 40px rgba(0,255,136,.35); }
.btn-primary span { position: relative; z-index: 1; }
.btn-primary.full-width { width: 100%; justify-content: center; margin-top: .5rem; }

/* ─── HERO ─────────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(5,5,5,.75) 0%,
    rgba(5,5,5,.5) 40%,
    rgba(0,15,8,.82) 100%
  );
}

/* this fades the hero INTO the next section — no hard edge */
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent 0%, var(--black) 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(0,255,136,.16) 0%, transparent 70%);
  pointer-events: none;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  opacity: 0;
  transform: translateY(30px);
  margin-bottom: 1.2rem;
  text-shadow: 0 0 60px rgba(0,255,136,.25);
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(.9rem, 2vw, 1.3rem);
  font-weight: 400;
  color: rgba(255,255,255,.75);
  letter-spacing: .05em;
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(20px);
  max-width: none;
}

.hero-clarity {
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,.5);
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-content .btn-primary {
  opacity: 0;
  transform: translateY(20px);
}

.br-desktop { display: none; }
@media (min-width: 768px) { .br-desktop { display: block; } }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  animation: scrollFade 2s ease-in-out infinite;
}
.hero-scroll-hint span {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--green), transparent);
}
@keyframes scrollFade {
  0%, 100% { opacity: .35; transform: translateX(-50%) translateY(0); }
  50%       { opacity: .7;  transform: translateX(-50%) translateY(8px); }
}

/* hero animate-in */
.hero-ready .hero-eyebrow { animation: fadeUp .8s .2s forwards; }
.hero-ready .hero-title   { animation: fadeUp .9s .45s forwards; }
.hero-ready .hero-sub     { animation: fadeUp .8s .7s forwards; }
.hero-ready .hero-clarity { animation: fadeUp .8s .9s forwards; }
.hero-ready .btn-primary  { animation: fadeUp .8s 1.1s forwards; }

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

/* ─── SECTION BLEED SYSTEM ─────────────────────────────────────── */
/* Every section fades INTO the next with pseudo overlays               */
section {
  position: relative;
}
section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
  z-index: 2;
}
section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, transparent, var(--black));
  pointer-events: none;
  z-index: 2;
}

/* ─── VISION SECTION ───────────────────────────────────────────── */
.section-vision {
  padding: 5rem 0;
  background: var(--black);
}

/* Ambient green glow in background */
.section-vision::before {
  background: linear-gradient(to top, transparent,
    radial-gradient(ellipse at 20% 50%, rgba(0,255,136,.06) 0%, transparent 70%),
    var(--black)) !important;
}

.char-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.char-img {
  width: 100%;
  max-width: 520px;
  object-fit: contain;
  filter: brightness(.88) contrast(1.04);
  /* fade all 4 edges — left/right sides blend into black */
  mask-image:
    linear-gradient(to right,  transparent 0%,  black 18%, black 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0%,  black 10%, black 85%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%,  black 18%, black 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0%,  black 10%, black 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  position: relative;
  z-index: 1;
}

.char-glow {
  position: absolute;
  bottom: 5%; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 70%;
  background: radial-gradient(ellipse at center bottom, rgba(0,255,136,.2) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

.split-text { display: flex; flex-direction: column; gap: 1.2rem; }
.split-text h2 { margin-bottom: .4rem; }
.split-text p { font-size: 1rem; }

.highlight-text {
  color: rgba(255,255,255,.85) !important;
  font-style: italic;
  padding: 1rem 1.4rem;
  border-left: 2px solid var(--green);
  background: rgba(0,255,136,.05);
  border-radius: 0 6px 6px 0;
  max-width: none !important;
}

/* ─── WHY IT MATTERS ───────────────────────────────────────────── */
.section-why {
  padding: 5rem 0;
  background: var(--black);
}

.why-inner h2 { margin-bottom: 3.5rem; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.why-card {
  background: rgba(255,255,255,.022);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color .35s, transform .35s, box-shadow .35s;
}
.why-card:hover {
  border-color: rgba(0,255,136,.28);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,255,136,.07);
}
.why-icon {
  font-size: 1.8rem;
  color: var(--green);
  margin-bottom: 1rem;
  display: block;
}
.why-card p { font-size: .95rem; max-width: none; }

/* ─── WORLD / THREAT ───────────────────────────────────────────── */
.section-world {
  padding: 5rem 0;
  background: var(--black);
  overflow: hidden;
}

/* deep green tint in the world section bg */
.section-world .container { position: relative; z-index: 3; }

.alien-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.alien-img {
  width: 100%;
  max-width: 520px;
  object-fit: contain;
  filter: brightness(.7) contrast(1.08) saturate(.75);
  /* fade all 4 edges */
  mask-image:
    linear-gradient(to right,  transparent 0%,  black 20%, black 80%, transparent 100%),
    linear-gradient(to bottom, transparent 0%,  black 10%, black 82%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%,  black 20%, black 80%, transparent 100%),
    linear-gradient(to bottom, transparent 0%,  black 10%, black 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  position: relative;
  z-index: 1;
  transition: filter .5s;
}

.alien-wrap:hover .alien-img {
  filter: brightness(.88) contrast(1.12) saturate(1)
          drop-shadow(0 0 28px rgba(0,255,136,.35));
}

.alien-glow {
  position: absolute;
  bottom: 5%; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(0,200,80,.1) 0%, transparent 65%);
  z-index: 0;
  filter: blur(24px);
  animation: pulseGlow 3.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: .5; }
  50%       { opacity: 1;  }
}

.danger-text {
  color: rgba(0,255,136,.9) !important;
  font-family: var(--font-display);
  font-size: 1.1rem !important;
  font-style: normal;
  border-left-color: rgba(0,255,136,.5) !important;
}

/* ─── CURRENT STATUS ───────────────────────────────────────────── */
.section-status {
  padding: 5rem 0;
  background: var(--black);
}

.status-card {
  position: relative;
  background: rgba(0,255,136,.035);
  border: 1px solid rgba(0,255,136,.13);
  border-radius: 16px;
  padding: 4rem 3rem;
  overflow: hidden;
}
.status-card::before {
  /* override section::before — don't let it bleed inside the card */
  background: none !important;
  height: 0 !important;
}
.status-card::after {
  background: none !important;
  height: 0 !important;
}

/* inner top glow only */
.status-card .status-glow-top {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at center top, rgba(0,255,136,.07) 0%, transparent 60%);
  pointer-events: none;
}

.status-pulse {
  position: absolute;
  top: 2rem; right: 2rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0,255,136,.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(0,255,136,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(0,255,136,0); }
  100% { box-shadow: 0 0 0 0   rgba(0,255,136,0); }
}

.status-content h2 { margin-bottom: 1rem; }
.status-desc {
  color: var(--grey);
  max-width: 60ch;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.badge {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(0,255,136,.28);
  border-radius: 4px;
  padding: .45rem 1rem;
  background: rgba(0,255,136,.05);
}

/* ─── CONTACT ──────────────────────────────────────────────────── */
.section-contact {
  padding: 5rem 0 5rem;
  background: var(--black);
}

.contact-header { margin-bottom: 3.5rem; }
.contact-header h2 { margin-bottom: .8rem; }
.contact-desc { color: var(--grey); max-width: 46ch; font-size: 1rem; }

.contact-form {
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.form-group label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.optional { text-transform: none; letter-spacing: 0; opacity: .6; }

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: .85rem 1.1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.18); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0,255,136,.38);
  background: rgba(0,255,136,.03);
  box-shadow: 0 0 0 3px rgba(0,255,136,.07);
}

.form-success {
  display: none;
  text-align: center;
  color: var(--green);
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .1em;
  margin-top: .5rem;
  padding: 1rem;
  border: 1px solid rgba(0,255,136,.18);
  border-radius: 8px;
  background: rgba(0,255,136,.04);
}
.form-success.show { display: block; animation: fadeIn .5s forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── FOOTER ───────────────────────────────────────────────────── */
.footer {
  padding: 3rem 0;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,.04);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo img {
  height: 28px;
  width: auto;
  opacity: .6;
  transition: opacity .3s, filter .3s;
}
.footer-logo img:hover {
  opacity: 1;
  filter: drop-shadow(0 0 8px var(--green));
}
.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.28);
  max-width: none;
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  transition: color .3s;
  letter-spacing: .05em;
}
.footer-links a:hover { color: var(--green); }

/* ─── SCROLL REVEAL ────────────────────────────────────────────── */
.reveal, .reveal-left, .reveal-right, .reveal-up {
  opacity: 0;
  transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1);
}
.reveal      { transform: translateY(32px); }
.reveal-left { transform: translateX(-48px); }
.reveal-right{ transform: translateX(48px); }
.reveal-up   { transform: translateY(40px); }

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .split-layout { grid-template-columns: 1fr; gap: 3rem; }
  .split-layout.reverse { direction: ltr; }
  .split-image { order: -1; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .char-img, .alien-img { max-width: 360px; margin-inline: auto; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .status-card { padding: 2.5rem 1.5rem; }
  .section-vision, .section-why, .section-world,
  .section-status, .section-contact { padding: 3.5rem 0; }
}

@media (max-width: 380px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.8rem; }
}
