/* ═══════════════════════════════════════════════════════════════
   ReconAI — home.css
   Landing page: hero, construction banner, features, showcase.
═══════════════════════════════════════════════════════════════ */

/* ── SECTION COMMON ─────────────────────────────────────────── */
section { padding: 96px 48px; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 48px;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  width: 720px; height: 720px;
  background:
    radial-gradient(ellipse at 35% 50%, rgba(224, 32, 47, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 65% 50%, rgba(0, 118, 188, 0.08) 0%, transparent 55%);
  pointer-events: none;
}

/* Hero text */
.hero-text {
  position: relative;
  z-index: 2;
  padding-right: 24px;
}

.hero-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.6s var(--ease) 0.2s both;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 8vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 28px;
  animation: fadeUp 0.6s var(--ease) 0.35s both;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 40px;
  animation: fadeUp 0.6s var(--ease) 0.5s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s var(--ease) 0.65s both;
}

/* Hero visual side */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  perspective: 1100px;
}

.scan-console {
  position: relative;
  width: min(88%, 520px);
  aspect-ratio: 1.08;
  transform: rotateX(58deg) rotateZ(-8deg) translateY(-28px) scale(0.94);
  transform-style: preserve-3d;
  animation: consoleFloat 6s ease-in-out infinite;
}

.scan-console::before {
  content: '';
  position: absolute;
  inset: 10% 2% -12% 2%;
  background: radial-gradient(ellipse at center, rgba(0, 118, 188, 0.28), transparent 66%);
  filter: blur(38px);
  transform: translateZ(-80px);
  opacity: 0.65;
}

.scan-frame {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 44px 1fr 48px;
  border: 1px solid rgba(0, 118, 188, 0.32);
  background:
    linear-gradient(135deg, rgba(8, 12, 29, 0.96), rgba(6, 8, 18, 0.78)),
    radial-gradient(circle at 76% 20%, rgba(224, 32, 47, 0.12), transparent 36%);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.58),
    0 0 56px rgba(0, 118, 188, 0.14),
    inset 0 0 42px rgba(0, 118, 188, 0.08);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  overflow: hidden;
}

.scan-frame::before,
.scan-frame::after {
  content: '';
  position: absolute;
  width: 82px;
  height: 82px;
  color: rgba(224, 32, 47, 0.55);
  pointer-events: none;
}

.scan-frame::before {
  top: 18px;
  left: 18px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.scan-frame::after {
  right: 18px;
  bottom: 18px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.scan-topline,
.scan-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 26px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: rgba(234, 240, 250, 0.66);
  text-transform: uppercase;
  border-color: rgba(50, 85, 200, 0.18);
}

.scan-topline { border-bottom: 1px solid rgba(50, 85, 200, 0.18); }
.scan-metrics { border-top: 1px solid rgba(50, 85, 200, 0.18); }
.scan-topline span:last-child,
.scan-metrics span:first-child { color: var(--accent); }
.scan-metrics span:nth-child(2) { color: var(--blue); }

.scan-viewport {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 118, 188, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(5, 6, 12, 0.36), rgba(5, 6, 12, 0.82));
}

.scan-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 118, 188, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 118, 188, 0.08) 1px, transparent 1px),
    repeating-linear-gradient(0deg, transparent, transparent 12px, rgba(234, 240, 250, 0.025) 13px);
  background-size: 42px 42px, 42px 42px, 100% 13px;
  mask-image: radial-gradient(circle at center, #000 0%, #000 62%, transparent 92%);
}

.scan-sweep {
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 230deg, transparent 0deg, rgba(0, 118, 188, 0.05) 24deg, rgba(224, 32, 47, 0.34) 29deg, transparent 34deg);
  animation: sweepRotate 5.2s linear infinite;
  transform-origin: center;
}

.scan-horizon {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 118, 188, 0.72), transparent);
  box-shadow: 0 0 24px rgba(0, 118, 188, 0.5);
}

.scan-reticle {
  position: absolute;
  inset: 19%;
  border: 1px solid rgba(0, 118, 188, 0.28);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(224, 32, 47, 0.1),
    0 0 36px rgba(0, 118, 188, 0.1);
}

.scan-reticle::before,
.scan-reticle::after {
  content: '';
  position: absolute;
  background: rgba(0, 118, 188, 0.36);
}

.scan-reticle::before {
  left: 50%;
  top: -16%;
  width: 1px;
  height: 132%;
}

.scan-reticle::after {
  left: -16%;
  top: 50%;
  width: 132%;
  height: 1px;
}

.target-box {
  position: absolute;
  color: var(--accent);
  border: 1px solid rgba(224, 32, 47, 0.72);
  box-shadow: 0 0 18px rgba(224, 32, 47, 0.22);
  animation: targetPulse 2.8s ease-in-out infinite;
}

.target-box::before,
.target-box::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: currentColor;
}

.target-box::before {
  left: -1px;
  top: -1px;
  border-left: 2px solid;
  border-top: 2px solid;
}

.target-box::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.target-box span {
  position: absolute;
  left: -1px;
  bottom: calc(100% + 7px);
  padding: 4px 7px;
  background: rgba(5, 6, 12, 0.86);
  color: currentColor;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.target-primary {
  width: 118px;
  height: 82px;
  left: 49%;
  top: 29%;
}

.target-secondary {
  color: var(--blue);
  width: 86px;
  height: 54px;
  left: 18%;
  top: 58%;
  border-color: rgba(0, 118, 188, 0.72);
  box-shadow: 0 0 18px rgba(0, 118, 188, 0.24);
  animation-delay: -1.1s;
}

.target-tertiary {
  width: 74px;
  height: 96px;
  right: 15%;
  bottom: 17%;
  animation-delay: -1.8s;
}

.track-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234, 240, 250, 0.52), transparent);
  transform-origin: left center;
  opacity: 0.48;
}

.track-a {
  width: 180px;
  left: 31%;
  top: 48%;
  transform: rotate(-24deg);
}

.track-b {
  width: 138px;
  right: 22%;
  top: 61%;
  transform: rotate(37deg);
}

.signal-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 20px rgba(0, 118, 188, 0.8);
  animation: nodeBlink 1.8s ease-in-out infinite;
}

.node-a { left: 29%; top: 45%; }
.node-b { right: 26%; top: 37%; animation-delay: -0.6s; background: var(--accent); box-shadow: 0 0 20px rgba(224, 32, 47, 0.78); }
.node-c { left: 43%; bottom: 24%; animation-delay: -1.2s; }

.logo-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 118, 188, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(234, 240, 250, 0.08), transparent 58%),
    rgba(7, 10, 22, 0.86);
  box-shadow:
    0 0 34px rgba(0, 118, 188, 0.2),
    inset 0 0 28px rgba(224, 32, 47, 0.08);
  transform: translate(-50%, -50%) translateZ(42px);
}

.logo-core::before,
.logo-core::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(224, 32, 47, 0.18);
}

.logo-core::before { inset: -28px; border-style: dashed; }
.logo-core::after { inset: 18px; border-color: rgba(0, 118, 188, 0.3); }

.logo-core img {
  width: 78px;
  opacity: 0.92;
  filter: drop-shadow(0 0 12px rgba(224, 32, 47, 0.45));
}

.telemetry-strip {
  position: absolute;
  display: grid;
  gap: 2px;
  min-width: 88px;
  padding: 12px 14px;
  border: 1px solid rgba(50, 85, 200, 0.28);
  background: rgba(8, 10, 24, 0.82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  transform: translateZ(64px) rotateX(-58deg) rotateZ(8deg);
}

.telemetry-strip span {
  font-size: 0.48rem;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.telemetry-strip strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.1rem;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--white);
}

.telemetry-left {
  left: -5%;
  bottom: 10%;
}

.telemetry-right {
  right: -4%;
  top: 13%;
}

.telemetry-right strong { color: var(--accent); }

/* ── CONSTRUCTION BANNER ─────────────────────────────────────── */
.construction {
  background: rgba(0, 118, 188, 0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.55;
  text-transform: uppercase;
}

/* ── FEATURES ───────────────────────────────────────────────── */
.features { background: var(--surface); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.feature-card {
  background: var(--card);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}
.feature-card:hover { background: var(--card-hover); }

/* Accent bar on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--accent);
  transition: height 0.45s var(--ease);
}
.feature-card:nth-child(2)::before { background: var(--blue); }
.feature-card:hover::before { height: 100%; }

/* Ghost number */
.feature-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5.5rem;
  color: rgba(224, 32, 47, 0.055);
  line-height: 1;
  position: absolute;
  top: 16px; right: 20px;
  letter-spacing: -0.02em;
  user-select: none;
}
.feature-card:nth-child(2) .feature-num,
.feature-card:nth-child(3) .feature-num { color: rgba(0, 118, 188, 0.055); }

.feature-icon {
  width: 48px; height: 48px;
  border: 1px solid rgba(0, 118, 188, 0.28);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}
.feature-card:nth-child(2) .feature-icon { color: var(--blue); border-color: rgba(0, 118, 188, 0.45); }

.feature-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.feature-text {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.85;
  position: relative;
  z-index: 1;
}

/* ── SHOWCASE GRID ──────────────────────────────────────────── */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.showcase-card {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.showcase-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.showcase-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.showcase-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(224,32,47,0.05) 0%, transparent 50%, rgba(0,118,188,0.05) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 22px, rgba(0,118,188,0.022) 22px, rgba(0,118,188,0.022) 23px);
}
.showcase-img img {
  width: 56px;
  opacity: 0.12;
  filter: drop-shadow(0 0 8px var(--accent));
  position: relative;
  z-index: 1;
}

.cam-label {
  position: absolute;
  top: 10px; left: 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.52rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  z-index: 2;
}
.cam-rec {
  position: absolute;
  top: 10px; right: 12px;
  display: flex; align-items: center; gap: 5px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.52rem;
  color: var(--rec-red);
  letter-spacing: 0.1em;
  z-index: 2;
}
.cam-rec::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rec-red);
  animation: pulse 1.2s ease-in-out infinite;
}

.showcase-body { padding: 28px 24px; }

.showcase-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 8px;
}

.showcase-text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
}

.showcase-tag {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  padding: 5px 12px;
  border: 1px solid rgba(224, 32, 47, 0.28);
  color: var(--accent);
  text-transform: uppercase;
}
.showcase-card:nth-child(2) .showcase-tag {
  border-color: rgba(0, 118, 188, 0.35);
  color: var(--blue);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  section { padding: 60px 20px; }

  .hero {
    grid-template-columns: 1fr;
    padding: var(--nav-h) 20px 60px;
    min-height: auto;
  }
  .hero-text { padding-right: 0; }
  .hero-visual { display: none; }
  .hero::after { display: none; }

  .status-bar { bottom: 20px; }

  .features-grid    { grid-template-columns: 1fr; }
  .showcase-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
}

@keyframes consoleFloat {
  0%, 100% { transform: rotateX(58deg) rotateZ(-8deg) translateY(-28px) scale(0.94); }
  50% { transform: rotateX(58deg) rotateZ(-8deg) translateY(-38px) scale(0.94); }
}

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

@keyframes targetPulse {
  0%, 100% { opacity: 0.68; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.025); }
}

@keyframes nodeBlink {
  0%, 100% { opacity: 0.35; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.18); }
}
