/* ============================================================
   Nexora Development — home.css
   Homepage-specific styles
   ============================================================ */

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-void);
}

/* CSS grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 255, 13, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 255, 13, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 80%);
}

/* Central green radial glow */
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0, 255, 13, 0.055) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Corner bracket decorations */
.hero-bracket-tl,
.hero-bracket-br {
  position: absolute;
  width: 60px; height: 60px;
  pointer-events: none;
  z-index: 1;
}

.hero-bracket-tl {
  top: 3rem; left: 3rem;
  border-top: 1px solid var(--green-border);
  border-left: 1px solid var(--green-border);
}

.hero-bracket-br {
  bottom: 3rem; right: 3rem;
  border-bottom: 1px solid var(--green-border);
  border-right: 1px solid var(--green-border);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 4rem) 2rem 6rem;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  border-left: 2px solid var(--green);
  padding-left: 0.75rem;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  max-width: 14ch;
}

.hero-title .accent {
  color: var(--green);
  position: relative;
  display: inline-block;
}

/* Scanline effect on accent word */
.hero-title .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--green);
  bottom: -4px;
  opacity: 0.4;
  animation: scanline 3s ease-in-out infinite;
}

@keyframes scanline {
  0%, 100% { transform: scaleX(0); transform-origin: left; }
  30%       { transform: scaleX(1); transform-origin: left; }
  60%       { transform: scaleX(1); transform-origin: right; }
  90%       { transform: scaleX(0); transform-origin: right; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 52ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll-arrow {
  width: 20px; height: 20px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce-arrow 1.8s ease-in-out infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50%       { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* ── Stats bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── Featured products ───────────────────────────────────── */
.featured-products {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.featured-products .section-header {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-header h2 { margin-bottom: 0.25rem; }

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 300;
}

.featured-footer {
  margin-top: 3rem;
  text-align: center;
}

.view-all-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.view-all-link:hover {
  color: var(--green);
  border-color: var(--green-border);
  opacity: 1;
}

/* ── Why Nexora ──────────────────────────────────────────── */
.why-nexora {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 0;
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.why-left h2 {
  margin-bottom: 1.5rem;
  max-width: 12ch;
  line-height: 1.05;
}

.why-left p {
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 40ch;
  line-height: 1.75;
}

.why-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: border-color var(--transition-base), box-shadow var(--transition-base),
              transform var(--transition-base);
}

.why-card:hover {
  border-color: var(--green-border);
  box-shadow: 0 0 0 1px var(--green-border), 0 8px 32px rgba(0, 255, 13, 0.06);
  transform: translateY(-4px);
}

.why-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  filter: grayscale(0.3);
}

.why-card-body h4 {
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.why-card-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── CTA banner ──────────────────────────────────────────── */
.cta-banner {
  background: var(--bg-elevated);
  padding: 5rem 0;
  border-left: 4px solid var(--green);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 400px;
  background: radial-gradient(circle at left center, rgba(0, 255, 13, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.cta-text h2 { margin-bottom: 0.75rem; }
.cta-text p  { max-width: 50ch; font-size: 1rem; font-weight: 300; }

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .why-inner { grid-template-columns: 1fr; gap: 3rem; }
  .why-left p { max-width: none; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-text p { max-width: none; }
  .cta-actions { justify-content: center; }
}

@media (max-width: 768px) {
  .hero-content { padding-top: calc(var(--nav-height) + 3rem); }
  .hero-bracket-tl, .hero-bracket-br { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)  { border-right: none; }
  .stat-item:nth-child(3)  { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .stat-item:nth-child(4)  { border-right: none; border-top: 1px solid var(--border); }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .cta-inner { padding: 0 1.25rem; }
}
