/*
Theme Name: FireJager
Theme URI: https://firejager.com/
Author: FireJager
Description: Custom one-page WordPress theme for FireJager autonomous wildfire response.
Version: 1.6.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: firejager
*/

:root {
  --bg: #07110f;
  --panel: #0d1b18;
  --panel-2: #10221e;
  --text: #f4f6f2;
  --muted: #9bada7;
  --line: rgba(255,255,255,.10);
  --orange: #ff6b2c;
  --amber: #ffae32;
  --green: #7bc79e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 8%, rgba(255,107,44,.09), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }

.nav {
  height: 76px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255,174,50,.45);
  background: linear-gradient(145deg, rgba(255,107,44,.18), rgba(255,174,50,.05));
  color: var(--amber);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  letter-spacing: .04em;
}
nav { display: flex; align-items: center; gap: 30px; }
nav a { font-size: 13px; color: #c7d0cc; transition: .2s ease; }
nav a:hover { color: white; }
.nav-cta {
  border: 1px solid var(--line);
  padding: 10px 15px;
  border-radius: 999px;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 670px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-content { z-index: 2; padding: 90px 0 110px; }
.eyebrow, .section-kicker {
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .19em;
  margin: 0 0 20px;
}
h1, h2, h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  margin-top: 0;
}
h1 {
  font-size: clamp(60px, 7vw, 94px);
  line-height: .94;
  letter-spacing: -.06em;
  margin-bottom: 26px;
}
h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,174,50,.86);
  text-stroke: 1px rgba(255,174,50,.86);
}
.lede {
  max-width: 670px;
  color: #b8c5c0;
  font-size: 19px;
  line-height: 1.65;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.primary {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #1a0d05;
  box-shadow: 0 10px 30px rgba(255,107,44,.18);
}
.secondary { border: 1px solid var(--line); color: #d9e0dd; }

.hero-visual {
  height: 520px;
  position: relative;
  display: grid;
  place-items: center;
  transform: translateX(28px);
}
.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255,105,32,.08);
  filter: blur(70px);
  right: -110px;
  top: 100px;
}
.radar-ring {
  position: absolute;
  border: 1px solid rgba(255,174,50,.14);
  border-radius: 50%;
}
.r1 { width: 165px; height: 165px; }
.r2 { width: 290px; height: 290px; }
.r3 { width: 430px; height: 430px; }
.radar-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-top: 1px solid rgba(123,199,158,.26);
  border-radius: 50%;
}
.fire-core {
  width: 55px;
  height: 72px;
  background: linear-gradient(180deg, var(--amber), var(--orange) 70%, #962d19);
  clip-path: polygon(50% 0, 73% 31%, 68% 19%, 92% 55%, 81% 84%, 50% 100%, 19% 84%, 8% 55%, 32% 19%, 27% 31%);
  filter: drop-shadow(0 0 20px rgba(255,107,44,.5));
}
.drone {
  position: absolute;
  width: 52px;
  height: 12px;
  background: #d8e1dd;
  border-radius: 7px 7px 3px 3px;
  box-shadow: -20px -3px 0 -4px #d8e1dd, 20px -3px 0 -4px #d8e1dd;
}
.drone::before, .drone::after {
  content: "";
  width: 18px;
  height: 4px;
  background: #91a39b;
  border-radius: 50%;
  position: absolute;
  top: -6px;
}
.drone::before { left: -15px; }
.drone::after { right: -15px; }
.drone span {
  position: absolute;
  width: 1px;
  height: 82px;
  background: linear-gradient(var(--green), transparent);
  left: 50%;
  top: 12px;
}
.d1 { transform: translate(-185px,-125px) scale(.78); }
.d2 { transform: translate(0,-205px) scale(.9); }
.d3 { transform: translate(175px,-112px) scale(.72); }
.d4 { transform: translate(-150px,105px) scale(.68); }
.d5 { transform: translate(150px,105px) scale(.68); }

.status-card {
  position: absolute;
  right: 6px;
  bottom: 42px;
  width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13,27,24,.82);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}
.status-card small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .14em; margin-bottom: 4px; }
.status-card strong { font-size: 11px; }

.problem-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3,1fr);
}
.problem-strip > div { padding: 28px 25px; border-right: 1px solid var(--line); }
.problem-strip > div:first-child { padding-left: 0; }
.problem-strip > div:last-child { border-right: 0; }
.problem-strip strong { display: block; margin-bottom: 8px; font-size: 13px; }
.problem-strip span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 130px 0; }
.intro { max-width: 880px; margin-left: max(20px, calc((100% - 1180px)/2)); }
.intro h2, .section-heading h2, .network h2, .edge h2, .contact h2 {
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -.05em;
  line-height: 1.02;
}
.intro > p:last-child {
  max-width: 780px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 45px;
}
.section-heading > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: 8px;
}

.steps { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.step { padding: 32px 28px 34px; min-height: 315px; position: relative; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.018), transparent); }
.step:last-child { border-right: none; }
.step-num { position: absolute; right: 20px; top: 18px; color: rgba(255,255,255,.22); font-size: 11px; }
.icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: rgba(255,174,50,.08);
  border: 1px solid rgba(255,174,50,.16);
  display: grid;
  place-items: center;
  color: var(--amber);
  font-size: 22px;
  margin-bottom: 62px;
}
.step h3 { font-size: 22px; margin-bottom: 11px; }
.step p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }

.network {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 85px;
  align-items: center;
}
.network-copy p:not(.section-kicker) { color: var(--muted); line-height: 1.75; font-size: 16px; }
.node-diagram {
  height: 470px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(86,130,117,.10), transparent 45%),
    #091512;
}
.terrain { position: absolute; left: -5%; right: -5%; bottom: -1px; background: #11231e; clip-path: polygon(0 80%, 12% 68%, 25% 77%, 40% 48%, 55% 72%, 70% 50%, 84% 67%, 100% 45%, 100% 100%, 0 100%); }
.t1 { height: 160px; opacity: .9; }
.t2 { height: 105px; background: #183029; opacity: .72; }
.node-box {
  position: absolute;
  left: 50%;
  bottom: 63px;
  transform: translateX(-50%);
  width: 180px;
  height: 116px;
  background: #d5ddd9;
  color: #14201d;
  border-radius: 8px;
  padding: 38px 18px 12px;
  box-shadow: 0 24px 45px rgba(0,0,0,.35);
}
.node-box .node-top {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 15px;
  height: 12px;
  border: 2px solid #53645d;
  border-radius: 3px;
}
.node-box strong, .node-box small { display:block; text-align:center; }
.node-box strong { font-size: 17px; letter-spacing:.08em; }
.node-box small { font-size: 7px; margin-top: 5px; letter-spacing: .13em; }
.signal { position:absolute; left:50%; border:1px solid rgba(123,199,158,.35); border-bottom:0; border-radius:50% 50% 0 0; transform:translateX(-50%); }
.s1 { width:90px; height:45px; bottom:185px; }
.s2 { width:150px; height:75px; bottom:185px; }
.s3 { width:215px; height:108px; bottom:185px; }
.mini-drone {
  position: absolute;
  width: 36px; height: 8px; background:#dae2de; border-radius:5px;
  box-shadow:-14px -2px 0 -3px #dae2de, 14px -2px 0 -3px #dae2de;
}
.md1 { left: 22%; top: 85px; }
.md2 { right: 21%; top: 130px; }
.md3 { left: 52%; top: 48px; }

.edge { border-top: 1px solid var(--line); }
.edge > h2 { max-width: 720px; margin-bottom: 55px; }
.edge-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.edge-grid div { border-top:1px solid var(--line); padding-top:18px; }
.edge-grid strong { display:block; font-family:"Space Grotesk"; font-size:18px; margin-bottom:10px; }
.edge-grid span { color:var(--muted); font-size:12px; line-height:1.65; }

.quote { padding-top: 100px; padding-bottom: 100px; border-top: 1px solid var(--line); border-bottom:1px solid var(--line); }
.quote p { max-width: 920px; font-family:"Space Grotesk"; font-size: clamp(38px,5vw,68px); line-height:1.08; letter-spacing:-.05em; margin:0; color:#dce5e1; }

.contact { display:grid; grid-template-columns:.85fr 1.15fr; gap:110px; align-items:start; }
.contact-copy p { color:var(--muted); line-height:1.7; font-size:15px; }
.contact-copy .button { margin-top:18px; }
.contact-note { font-size:11px !important; margin-top:14px; opacity:.7; }

footer {
  width:min(1180px, calc(100% - 40px));
  min-height:120px;
  margin:0 auto;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  align-items:center;
  color:var(--muted);
  font-size:11px;
}
.footer-brand { color:white; }
footer p:nth-child(2) { text-align:center; }
footer p:last-child { text-align:right; }

@media (max-width: 900px) {
  nav a:not(.nav-cta) { display:none; }
  .hero { grid-template-columns:1fr; min-height:auto; }
  .hero-content { padding:80px 0 30px; }
  .hero-visual { transform:none; height:430px; }
  .problem-strip { grid-template-columns:1fr; }
  .problem-strip > div { border-right:0; border-bottom:1px solid var(--line); padding-left:0; }
  .problem-strip > div:last-child { border-bottom:0; }
  .section { padding:90px 0; }
  .section-heading, .network, .contact { grid-template-columns:1fr; gap:35px; }
  .steps { grid-template-columns:1fr 1fr; }
  .step:nth-child(2) { border-right:0; }
  .step { border-bottom:1px solid var(--line); }
  .step:nth-child(3), .step:nth-child(4) { border-bottom:0; }
  .edge-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 600px) {
  .nav { height:66px; }
  h1 { font-size:54px; }
  .lede { font-size:16px; }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .hero-visual { height:350px; transform:scale(.85); margin:-25px -30px 10px; }
  .steps, .edge-grid { grid-template-columns:1fr; }
  .step { border-right:0; border-bottom:1px solid var(--line) !important; min-height:250px; }
  .step:last-child { border-bottom:0 !important; }
  .icon { margin-bottom:40px; }
  .node-diagram { height:390px; }
  footer { grid-template-columns:1fr; gap:14px; padding:28px 0; }
  footer p:nth-child(2), footer p:last-child { text-align:left; margin:0; }
}


/* Visible but subtle looped swarm motion. Each keyframe preserves the drone's
   base position and scale while adding a small orbit around the incident. */
.drone {
  will-change: transform;
  transform-origin: center center;
}

.d1 { animation: fj-orbit-1 6.8s ease-in-out infinite; }
.d2 { animation: fj-orbit-2 7.6s ease-in-out -1.2s infinite; }
.d3 { animation: fj-orbit-3 6.4s ease-in-out -2.1s infinite; }
.d4 { animation: fj-orbit-4 8.0s ease-in-out -3.0s infinite; }
.d5 { animation: fj-orbit-5 7.1s ease-in-out -4.0s infinite; }

@keyframes fj-orbit-1 {
  0%,100% { transform: translate(-185px,-125px) scale(.78); }
  25% { transform: translate(-171px,-131px) scale(.78); }
  50% { transform: translate(-181px,-113px) scale(.78); }
  75% { transform: translate(-199px,-119px) scale(.78); }
}
@keyframes fj-orbit-2 {
  0%,100% { transform: translate(0,-205px) scale(.9); }
  25% { transform: translate(13px,-211px) scale(.9); }
  50% { transform: translate(2px,-190px) scale(.9); }
  75% { transform: translate(-13px,-198px) scale(.9); }
}
@keyframes fj-orbit-3 {
  0%,100% { transform: translate(175px,-112px) scale(.72); }
  25% { transform: translate(188px,-106px) scale(.72); }
  50% { transform: translate(174px,-98px) scale(.72); }
  75% { transform: translate(161px,-118px) scale(.72); }
}
@keyframes fj-orbit-4 {
  0%,100% { transform: translate(-150px,105px) scale(.68); }
  25% { transform: translate(-164px,111px) scale(.68); }
  50% { transform: translate(-148px,91px) scale(.68); }
  75% { transform: translate(-135px,101px) scale(.68); }
}
@keyframes fj-orbit-5 {
  0%,100% { transform: translate(150px,105px) scale(.68); }
  25% { transform: translate(164px,101px) scale(.68); }
  50% { transform: translate(151px,90px) scale(.68); }
  75% { transform: translate(136px,108px) scale(.68); }
}

/* Flame stays the same overall size, but the silhouette and glow shift subtly
   so it feels alive without appearing to grow or spread. */
.fire-core {
  animation: fj-fire-alive 2.15s ease-in-out infinite;
  transform-origin: 50% 92%;
  will-change: clip-path, filter, transform, opacity;
}
@keyframes fj-fire-alive {
  0%,100% {
    clip-path: polygon(50% 0, 73% 31%, 68% 19%, 92% 55%, 81% 84%, 50% 100%, 19% 84%, 8% 55%, 32% 19%, 27% 31%);
    filter: brightness(1) drop-shadow(0 0 20px rgba(255,107,44,.52));
    transform: translate(0,0) rotate(0deg);
    opacity: 1;
  }
  22% {
    clip-path: polygon(48% 2%, 70% 29%, 66% 20%, 90% 54%, 83% 82%, 51% 100%, 20% 85%, 10% 57%, 34% 20%, 28% 33%);
    filter: brightness(1.10) drop-shadow(0 0 24px rgba(255,107,44,.64));
    transform: translate(-1px,0) rotate(-0.8deg);
    opacity: .96;
  }
  47% {
    clip-path: polygon(53% 1%, 75% 33%, 69% 18%, 93% 57%, 79% 85%, 49% 100%, 18% 82%, 7% 54%, 30% 18%, 26% 30%);
    filter: brightness(.96) drop-shadow(0 0 18px rgba(255,107,44,.48));
    transform: translate(1px,-1px) rotate(0.7deg);
    opacity: 1;
  }
  72% {
    clip-path: polygon(49% 0, 72% 30%, 67% 21%, 91% 53%, 82% 86%, 52% 100%, 21% 83%, 9% 56%, 33% 17%, 29% 32%);
    filter: brightness(1.08) drop-shadow(0 0 26px rgba(255,107,44,.68));
    transform: translate(0,1px) rotate(-0.4deg);
    opacity: .97;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drone, .fire-core { animation: none !important; }
}
