/* ═══════════════════════════════════════════════════════════════
   ReconAI — home.css  (v3)
   Landing page: hero, construction banner, features,
   module showcase strip, CTA.
═══════════════════════════════════════════════════════════════ */

/* ── 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;
}

/* Horizontal scan-line grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 40px,
    rgba(0, 118, 188, 0.015) 40px,
    rgba(0, 118, 188, 0.015) 41px
  );
  pointer-events: none;
  z-index: 0;
}

/* Dual ambient glow */
.hero::after {
  content: '';
  position: absolute;
  top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(224, 32, 47, 0.08) 0%, transparent 52%),
    radial-gradient(ellipse at 70% 50%, rgba(0, 118, 188, 0.09) 0%, transparent 52%);
  pointer-events: none;
  z-index: 0;
}

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

.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);
  flex-shrink: 0;
}

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

.hero-title-accent {
  color: var(--accent);
}

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

/* ── HERO TERMINAL BLOCK ─────────────────────────────────────── */
.hero-terminal {
  margin-bottom: 36px;
  border: 1px solid var(--border-mid);
  background: rgba(8, 9, 26, 0.85);
  animation: fadeUp 0.6s var(--ease) 0.62s both;
  overflow: hidden;
}

.hero-terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.ht-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ht-dot--red    { background: var(--accent);  opacity: 0.75; }
.ht-dot--yellow { background: var(--warn);    opacity: 0.75; }
.ht-dot--green  { background: var(--success); opacity: 0.75; }

.ht-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-left: 6px;
}

.hero-terminal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-terminal-body p {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.ht-prompt { color: var(--accent); margin-right: 6px; }
.ht-cmd    { color: var(--blue); }
.ht-ok     { color: var(--success); margin-right: 4px; }

/* Blinking cursor */
.ht-blink {
  color: var(--accent);
  animation: pulse 1s step-end infinite;
}

/* Hero action buttons */
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s var(--ease) 0.78s both;
}

/* ── HERO VISUAL (right column) ─────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
  z-index: 2;
}

/* ── 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);
  padding: 96px 48px 80px;
}

.features-header {
  margin-bottom: 56px;
}

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

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

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

/* Glow wash on hover */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 110%, rgba(224, 32, 47, 0.06) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.feature-card:nth-child(2)::after,
.feature-card:nth-child(3)::after {
  background: radial-gradient(ellipse at 50% 110%, rgba(0, 118, 188, 0.07) 0%, transparent 65%);
}
.feature-card:hover::after { opacity: 1; }

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

/* Icon container */
.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: 24px;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card:hover .feature-icon {
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}
.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(3) .feature-icon {
  color: var(--blue);
  border-color: rgba(0, 118, 188, 0.42);
}
.feature-card:nth-child(2):hover .feature-icon,
.feature-card:nth-child(3):hover .feature-icon {
  border-color: var(--blue);
  box-shadow: 0 0 14px var(--blue-glow);
}

/* Module tag — dedicated class, avoids section-label ::before bar */
.feature-module-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.feature-card:nth-child(2) .feature-module-tag,
.feature-card:nth-child(3) .feature-module-tag { color: var(--blue); }

.feature-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  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;
  margin-bottom: 28px;
}

/* "View Module" link — visible on hover only */
.feature-link {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.feature-card:nth-child(2) .feature-link,
.feature-card:nth-child(3) .feature-link { color: var(--blue); }
.feature-card:hover .feature-link {
  opacity: 1;
  transform: translateY(0);
}
.feature-link:hover { text-decoration: underline; }

/* ── MODULE SHOWCASE STRIP ───────────────────────────────────── */
.modules {
  background: var(--bg);
  padding: 96px 48px;
  position: relative;
  overflow: hidden;
}

/* Subtle ambient glow under the strip */
.modules::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 300px;
  background: radial-gradient(ellipse at center bottom, rgba(0, 118, 188, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.modules-header {
  margin-bottom: 52px;
  position: relative;
  z-index: 1;
}

.modules-header-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.7;
  max-width: 440px;
  margin-top: 4px;
}

/* 4-column grid — gap creates grid-line effect */
.modules-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  position: relative;
  z-index: 1;
}

/* Each tile */
.module-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  transition: box-shadow 0.35s var(--ease);
}
.module-tile:hover {
  box-shadow: 0 0 0 1px var(--border-bright);
  z-index: 2;
}

/* Background image */
.module-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.28;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
  filter: saturate(0.6) hue-rotate(180deg);
}
.module-tile:hover .module-tile-bg {
  opacity: 0.38;
  transform: scale(1.04);
}

/* Dark gradient overlay for legibility */
.module-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 9, 26, 0.55) 0%,
    rgba(5, 6, 12, 0.70) 60%,
    rgba(5, 6, 12, 0.92) 100%
  );
}

/* Content wrapper */
.module-tile-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 24px 22px;
}

/* Large ghost number */
.module-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.08);
  display: block;
  user-select: none;
  pointer-events: none;
  transition: color 0.3s var(--ease);
}
.module-tile:hover .module-num { color: rgba(224, 32, 47, 0.18); }
.module-tile:nth-child(even):hover .module-num { color: rgba(0, 118, 188, 0.22); }

/* Bottom content block */
.module-tile-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Category tag */
.module-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}
.module-tile:nth-child(even) .module-tag { color: var(--blue); }

/* Module name */
.module-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--white);
}

/* Short descriptor */
.module-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: rgba(180, 186, 208, 0.7);
  line-height: 1.65;
  margin-top: 2px;
}

/* Status footer strip */
.module-tile-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 14px;
  border-top: 1px solid rgba(50, 85, 200, 0.15);
  margin-top: 12px;
}

.module-status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.module-status-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--success);
  opacity: 0.7;
  text-transform: uppercase;
}

/* ── HOME CTA ────────────────────────────────────────────────── */
.home-cta {
  background: var(--surface);
  padding: 120px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Grid overlay */
.home-cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 118, 188, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 118, 188, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

/* Three background rings */
.home-cta-rings {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  pointer-events: none;
}

.hcta-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hcta-ring--1 {
  width: 560px; height: 560px;
  border: 1px solid rgba(0, 118, 188, 0.07);
  animation: spin 40s linear infinite;
}
.hcta-ring--2 {
  width: 380px; height: 380px;
  border: 1px dashed rgba(224, 32, 47, 0.07);
  animation: spin 28s linear infinite reverse;
}
.hcta-ring--3 {
  width: 200px; height: 200px;
  border: 1px solid rgba(0, 118, 188, 0.09);
  animation: spin 16s linear infinite;
}

/* Content */
.home-cta-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.home-cta-title {
  font-size: clamp(3.5rem, 7vw, 7rem);
}
.home-cta-accent { color: var(--accent); }

.home-cta-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 440px;
  margin: 0 auto 40px;
}

.home-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .modules-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@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,
  .hero::before { display: none; }

  .features { padding: 60px 20px 48px; }
  .features-grid { grid-template-columns: 1fr; }

  .modules { padding: 60px 20px; }
  .modules-strip { grid-template-columns: repeat(2, 1fr); }

  .home-cta { padding: 80px 20px; }
  .home-cta-rings { display: none; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(3.2rem, 14vw, 5.5rem); }
  .hero-terminal { display: none; }
  .modules-strip { grid-template-columns: 1fr; }
  .module-tile   { aspect-ratio: 16 / 9; }
}
