﻿/* ============================================
   HOME PAGE — DARK THEME
   Stratum Labs v2
   ============================================ */

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
  padding: 0 64px;
}

/* Ambient background glow */
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,92,252,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34,211,238,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* =========================================
   HERO IMAGE — LEFT SIDE
   ========================================= */
.hero-visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

/* Ambient orbit rings */
.hero-orbit-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  pointer-events: none;
}
.ring-outer {
  width: 500px; height: 500px;
  border: 1px dashed rgba(124,92,252,0.16);
  animation: ring-slow-spin 28s linear infinite;
}
.ring-inner {
  width: 390px; height: 390px;
  border: 1px solid rgba(34,211,238,0.10);
  animation: ring-slow-spin 18s linear infinite reverse;
}
.ring-mid {
  width: 580px; height: 580px;
  border: 1px dashed rgba(124,92,252,0.06);
  animation: ring-slow-spin 40s linear infinite;
}

@keyframes ring-slow-spin {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

/* 3D scene wrapper */
.hero-scene {
  perspective: 1000px;
  width: 340px;
  height: 340px;
  position: relative;
  z-index: 2;
}

/* Rotating 3D card */
.hero-card-3d {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: card-y-spin 13s linear infinite;
}

@keyframes card-y-spin {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Card face base */
.hero-card-face {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: visible;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* FRONT face — icon visual */
.hero-card-face.front {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

/* Icon constellation used on both rotating faces */
.icon-constellation {
  position: relative;
  width: 100%;
  height: 100%;
}
.icon-node,
.icon-core {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  color: #d7cbff;
  box-shadow: none;
  text-shadow: 0 0 18px rgba(124,92,252,0.45), 0 0 30px rgba(34,211,238,0.25);
  font-size: 28px;
}
.icon-core {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #8be7ff;
  font-size: 44px;
  text-shadow: 0 0 20px rgba(34,211,238,0.65), 0 0 36px rgba(124,92,252,0.35);
}
.node-1 { top: 10%; left: 44%; }
.node-2 { top: 26%; left: 10%; }
.node-3 { top: 26%; right: 10%; }
.node-4 { bottom: 14%; left: 16%; }
.node-5 { bottom: 14%; right: 16%; }
.node-6 { top: 68%; left: 44%; }
.icon-constellation--back .icon-node,
.icon-constellation--back .icon-core {
  color: #8be7ff;
  text-shadow: 0 0 18px rgba(34,211,238,0.55), 0 0 30px rgba(124,92,252,0.25);
}

/* BACK face — alternate icon palette */
.hero-card-face.back {
  background: transparent;
  border: none;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-glow {
  display: none;
}
.hero-card-face .icon-constellation { z-index: 2; }

/* Floating metric badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 0.5px solid var(--border-card);
  border-radius: 12px;
  padding: 10px 16px;
  z-index: 3;
  box-shadow: 0 4px 24px rgba(0,0,0,0.55);
  animation: badge-float 4s ease-in-out infinite;
}
.float-badge--top { top: 8%;  right: -10px; animation-delay: 0s; }
.float-badge--btm { bottom: 8%; left:  -10px; animation-delay: 2s; }

@keyframes badge-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-9px); }
}
.fb-icon { font-size: 22px; }
.float-badge div { display: flex; flex-direction: column; line-height: 1.3; }
.fb-num   { font-size: 15px; font-weight: 700; color: var(--accent-secondary); }
.fb-label { font-size: 11px; color: var(--text-muted); }

/* =========================================
   HERO TEXT — RIGHT SIDE
   ========================================= */
.hero-text { max-width: 560px; }

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-badge);
  color: #A78BFA;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  border: 1px solid rgba(124,92,252,0.22);
}

.hero-text h1 {
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-heading);
  margin-bottom: 20px;
}
.hero-text h1 .accent {
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text > p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Hero stats row */
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 0.5px solid var(--border-card);
}
.hero-stat-item { display: flex; flex-direction: column; gap: 3px; }
.hero-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-secondary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-stat-lbl { font-size: 13px; color: var(--text-muted); }

/* =========================================
   METRICS STRIP
   ========================================= */
.metrics-strip {
  background: var(--bg-section);
  border-top: 0.5px solid var(--border-card);
  border-bottom: 0.5px solid var(--border-card);
  padding: 40px 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.metric-num {
  font-size: 34px;
  font-weight: 700;
  color: var(--accent-secondary);
  display: block;
  line-height: 1.1;
}
.metric-lbl { font-size: 14px; color: var(--text-muted); }

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-section {
  background: var(--bg-page);
  padding: 96px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}
.service-card.visible, .service-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,92,252,0.25);
  transform: translateY(-5px);
}
.service-icon {
  width: 48px; height: 48px;
  background: var(--bg-badge);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--accent-secondary);
  margin-bottom: 18px;
}
.service-card h3 { font-size: 18px; font-weight: 500; color: var(--text-heading); margin-bottom: 10px; }
.service-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* =========================================
   HOW WE WORK — PROCESS
   ========================================= */
.process-section {
  background: var(--bg-section);
  padding: 96px 0;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.process-step { text-align: center; padding: 32px 20px; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--accent-primary), #9B89FF);
  border-radius: 50%;
  font-size: 22px; font-weight: 700;
  color: #FFFFFF;
  margin: 0 auto 22px;
}
.process-step h3 { font-size: 20px; font-weight: 600; color: var(--text-heading); margin-bottom: 12px; }
.process-step p  { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-section {
  background: var(--bg-page);
  padding: 96px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 250ms ease, transform 250ms ease;
}
.testimonial-card:hover { border-color: rgba(124,92,252,0.5); transform: translateY(-4px); }
.stars { color: #F5C842; font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-quote { font-size: 15px; line-height: 1.7; color: var(--text-body); margin-bottom: 22px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-badge);
  border: 2px solid var(--accent-primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-secondary); font-size: 18px; flex-shrink: 0;
}
.author-name { font-size: 15px; font-weight: 500; color: var(--text-heading); margin: 0 0 2px; }
.author-role { font-size: 12px; color: var(--text-muted); }

/* =========================================
   EXPLORE SECTION — BENTO GRID
   ========================================= */
.explore-section {
  background: #ffffff;
  padding: 96px 0;
}
.explore-header {
  margin-bottom: 36px;
}
.explore-header .label {
  color: #7C5CFC;
}
.explore-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #7C5CFC;
  line-height: 1.15;
  margin: 8px 0 0;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 460px 260px 170px;
  gap: 14px;
}

/* Base card */
.explore-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 360ms cubic-bezier(.25,.8,.25,1), box-shadow 360ms ease;
  cursor: pointer;
}
.explore-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 64px rgba(0,0,0,0.65), 0 0 40px rgba(124,92,252,0.18);
}

/* Featured: spans 2 columns, row 1 */
.explore-card--featured {
  grid-column: span 2;
}

/* Banner: full width, row 3 */
.explore-card--banner {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

/* Background image layer */
.explore-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 500ms cubic-bezier(.25,.8,.25,1);
  z-index: 0;
}
.explore-card:hover .explore-card-bg {
  transform: scale(1.06);
}

/* Overlays */
.explore-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4,3,14,0.95) 0%,
    rgba(4,3,14,0.52) 45%,
    rgba(4,3,14,0.12) 100%
  );
  z-index: 1;
}
.explore-card-overlay--violet {
  background: linear-gradient(
    to top,
    rgba(8,4,24,0.97) 0%,
    rgba(18,8,48,0.62) 48%,
    rgba(4,3,14,0.12) 100%
  );
}
.explore-card-overlay--side {
  background: linear-gradient(
    to right,
    rgba(4,3,14,0.97) 0%,
    rgba(4,3,14,0.82) 45%,
    rgba(4,3,14,0.28) 100%
  );
}

/* Content */
.explore-card-content {
  position: relative;
  z-index: 2;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
}
.explore-card-content--banner {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 36px;
  gap: 24px;
}

.explore-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #22D3EE;
  margin-bottom: 6px;
}
.explore-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.explore-card--featured .explore-card-title {
  font-size: 26px;
  margin-bottom: 10px;
}
.explore-card-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.70);
  line-height: 1.65;
  margin: 0 0 20px;
}

/* Circle arrow — compact cards */
.explore-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 12px;
  margin-top: 14px;
  align-self: flex-start;
  transition: background 250ms, border-color 250ms, transform 250ms;
}
.explore-card:hover .explore-card-arrow {
  background: rgba(124,92,252,0.50);
  border-color: rgba(124,92,252,0.75);
  transform: translateX(5px);
}

/* Pill button — featured & banner */
.explore-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.20);
  width: fit-content;
  align-self: flex-start;
  flex-shrink: 0;
  transition: background 250ms, border-color 250ms, gap 200ms;
}
.explore-card:hover .explore-card-btn {
  background: rgba(124,92,252,0.50);
  border-color: rgba(124,92,252,0.70);
  gap: 13px;
}
.explore-card-btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.30);
}
.explore-card:hover .explore-card-btn--ghost {
  background: rgba(34,211,238,0.15);
  border-color: rgba(34,211,238,0.55);
}

@media (max-width: 900px) {
  .explore-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .explore-card { height: 280px; }
  .explore-card--featured { grid-column: span 2; height: 360px; }
  .explore-card--banner { grid-column: span 2; height: 150px; }
}
@media (max-width: 560px) {
  .explore-grid { grid-template-columns: 1fr; }
  .explore-card { height: 260px; }
  .explore-card--featured,
  .explore-card--banner { grid-column: span 1; }
  .explore-card--featured { height: 340px; }
  .explore-card--banner { height: 180px; }
  .explore-card-content--banner { flex-direction: column; align-items: flex-start; }
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  background: linear-gradient(135deg, #0C0A1F 0%, #1C1637 50%, #0A0A0F 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 0.5px solid rgba(124,92,252,0.18);
}
.cta-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,252,0.14) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.cta-section .cta-desc {
  font-size: 18px; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 40px; line-height: 1.7;
}
.cta-btns {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1200px) {
  .hero { padding: 0 40px; }
  .hero-inner { gap: 56px; }
}

@media (max-width: 1024px) {
  .services-grid, .testimonials-grid, .explore-grid { grid-template-columns: repeat(2,1fr); }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .process-steps { grid-template-columns: repeat(2,1fr); }
  .hero-inner { gap: 40px; }
  .ring-outer { width: 400px; height: 400px; }
  .ring-inner { width: 300px; height: 300px; }
  .hero-scene { width: 270px; height: 270px; }
}

@media (max-width: 768px) {
  .hero { padding: 80px 20px 60px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-visual-wrap { min-height: 340px; order: -1; }
  .ring-outer { width: 320px; height: 320px; }
  .ring-inner { width: 250px; height: 250px; }
  .ring-mid   { width: 380px; height: 380px; }
  .hero-scene { width: 230px; height: 230px; }
  .icon-node { font-size: 22px; }
  .icon-core { font-size: 36px; }
  .hero-text { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .float-badge--top { top: 4%; right: 4%; }
  .float-badge--btm { bottom: 4%; left: 4%; }
  .services-grid, .explore-grid, .testimonials-grid, .process-steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .hero-scene { width: 200px; height: 200px; }
  .icon-node { font-size: 18px; }
  .icon-core { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card-3d { animation: none !important; transform: none !important; }
  .hero-orbit-ring { animation: none !important; }
  .float-badge { animation: none !important; }
}