/* ============================================
   JooMaa – index.css v2
   ============================================ */

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--bg-secondary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb-1 {
  width: 700px; height: 700px;
  top: -200px; left: -200px;
  opacity: 0.22;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  top: 5%; right: -120px;
  opacity: 0.18;
}
.hero-orb-3 {
  width: 350px; height: 350px;
  bottom: 0; left: 35%;
  opacity: 0.12;
}

/* Horizontal scan line */
.hero-bg::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  animation: scan-line 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ---- Left Column ---- */
.hero-left { display: flex; flex-direction: column; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: rgba(0, 217, 255, 0.06);
  border: 1px solid rgba(0, 217, 255, 0.18);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  width: fit-content;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00FF99;
  box-shadow: 0 0 8px #00FF99;
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 8px #00FF99; transform: scale(1); }
  50%       { box-shadow: 0 0 16px #00FF99; transform: scale(1.3); }
}

.hero-headline {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.headline-gradient {
  background: linear-gradient(135deg, #0066FF 0%, #00D9FF 60%, #00FF99 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 460px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-stat { display: flex; flex-direction: column; gap: 3px; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: inline-block;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  display: inline-block;
  vertical-align: baseline;
  margin-left: 1px;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.hero-stat-divider {
  width: 1px; height: 36px;
  background: var(--border-subtle);
}

/* ---- Right Column: 3D Scene ---- */
.hero-right {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-3d-scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Main floating card */
.h3d-main {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 18px;
  padding: 24px;
  animation: float3d-a 10s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(0, 217, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 102, 255, 0.15);
  z-index: 3;
  overflow: hidden;
}

/* Scan line on main card */
.h3d-main::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,217,255,0.5), transparent);
  animation: scan-line 3.5s ease-in-out infinite;
  pointer-events: none;
}

/* Top bar of main card */
.h3d-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.h3d-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.h3d-dot:nth-child(1) { background: #ff5f57; }
.h3d-dot:nth-child(2) { background: #febc2e; }
.h3d-dot:nth-child(3) { background: #28c840; }
.h3d-url-bar {
  flex: 1;
  height: 7px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  margin-left: 4px;
  overflow: hidden;
  position: relative;
}
.h3d-url-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,217,255,0.3), transparent);
  animation: shimmer-bar 2.5s ease-in-out infinite;
}
@keyframes shimmer-bar {
  0%   { left: -60%; }
  100% { left: 120%; }
}

.h3d-lines { display: flex; flex-direction: column; gap: 8px; }
.h3d-line {
  height: 7px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
}
.h3d-line--accent { background: rgba(0, 217, 255, 0.25); width: 55%; }
.h3d-line--blue   { background: rgba(0, 102, 255, 0.3); width: 75%; }
.h3d-line--short  { width: 40%; }
.h3d-line--long   { width: 85%; }

.h3d-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.h3d-bar {
  flex: 1; border-radius: 3px 3px 0 0;
  background: var(--gradient-accent);
  opacity: 0.7;
  position: relative;
  overflow: hidden;
}
.h3d-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30%;
  background: rgba(255,255,255,0.15);
  border-radius: 3px 3px 0 0;
}
.h3d-bar:nth-child(1) { height: 55%; }
.h3d-bar:nth-child(2) { height: 85%; }
.h3d-bar:nth-child(3) { height: 40%; }
.h3d-bar:nth-child(4) { height: 70%; }
.h3d-bar:nth-child(5) { height: 95%; }

/* Secondary card – top right */
.h3d-card-b {
  position: absolute;
  top: 8%; right: 2%;
  width: 160px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 153, 0.2);
  border-radius: 14px;
  padding: 16px;
  animation: float3d-b 9s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(0,255,153,0.08);
  z-index: 2;
}

.h3d-badge-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.h3d-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: #00FF99;
}
.h3d-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00FF99;
  box-shadow: 0 0 6px #00FF99;
  animation: pulse-green 1.8s ease-in-out infinite;
}
.h3d-score {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.h3d-score-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Third card – bottom left */
.h3d-card-c {
  position: absolute;
  bottom: 12%; left: 0%;
  width: 180px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: 14px;
  padding: 16px;
  animation: float3d-c 12s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 24px rgba(0,102,255,0.12);
  z-index: 2;
}

.h3d-tag-list { display: flex; flex-direction: column; gap: 7px; }
.h3d-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.h3d-tag-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gradient-accent);
  flex-shrink: 0;
}
.h3d-tag-dot--cyan  { background: var(--cyan); box-shadow: 0 0 4px var(--cyan); }
.h3d-tag-dot--green { background: var(--green); box-shadow: 0 0 4px var(--green); }
.h3d-tag-dot--blue  { background: var(--accent); box-shadow: 0 0 4px var(--accent); }

/* Connecting lines between cards */
.h3d-connector {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Glow ring behind main card */
.h3d-glow-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(0, 102, 255, 0.08);
  animation: glow-pulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.h3d-glow-ring-outer {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 420px; height: 420px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(0, 217, 255, 0.04);
  pointer-events: none;
  z-index: 0;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: float-hint 2.5s ease-in-out infinite;
}
@keyframes float-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-6px); }
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  order: -1;
}

/* ========== ABOUT ========== */
.about {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: center;
}

.about-grid--single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-grid--single .about-content {
  padding: 0;
}

.about-card-wrap {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}

.about-avatar {
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  animation: float3d-a 9s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0,102,255,0.08);
}

.avatar-inner { position: relative; z-index: 1; }

/* Scan line on avatar */
.about-avatar::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,217,255,0.4), transparent);
  animation: scan-line 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.about-floating-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid rgba(0, 217, 255, 0.25);
  padding: 7px 12px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 16px rgba(0,217,255,0.1);
}
.about-floating-tag svg { color: var(--cyan); flex-shrink: 0; }

.tag-1 { top: 10%;  right: -30px; animation: float-1 4s ease-in-out infinite; }
.tag-2 { top: 48%;  left: -36px;  animation: float-2 5s ease-in-out infinite; }
.tag-3 { bottom: 10%; right: -24px; animation: float-1 4.5s ease-in-out infinite 0.5s; }

@keyframes float-1 { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
@keyframes float-2 { 0%,100% { transform:translateY(0); } 50% { transform:translateY(8px); } }

.about-content h2 { margin-bottom: 16px; }

.about-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; gap: 7px;
  margin-top: 24px;
}
.about-tags .tag {
  font-size: 0.74rem; font-weight: 500;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,217,255,0.18);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ========== SERVICES PREVIEW ========== */
.services-preview { background: var(--bg-secondary); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
}

.service-icon {
  width: 48px; height: 48px;
  background: rgba(0,102,255,0.1);
  border: 1px solid rgba(0,102,255,0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gradient-accent);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,102,255,0.4);
}

.service-card h3 { font-size: 1.05rem; }
.service-card p  { font-size: 0.88rem; flex: 1; }

.services-cta { text-align: center; }

/* ========== WHY ========== */
.why {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.why-item {
  display: flex; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
}
.why-item:hover {
  border-color: rgba(0,217,255,0.2);
  transform: translateY(-2px);
}

.why-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(0,102,255,0.1);
  border: 1px solid rgba(0,102,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.why-item h3 { font-size: 0.95rem; margin-bottom: 6px; }
.why-item p  { font-size: 0.85rem; line-height: 1.6; }

/* ========== PROCESS TEASER ========== */
.process-teaser { background: var(--bg-secondary); }

.process-row {
  display: flex;
  align-items: flex-start;
}

.process-step {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 12px; padding: 0 10px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--gradient-accent);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,102,255,0.4);
  flex-shrink: 0;
}

.step-content h3 { font-size: 0.9rem; margin-bottom: 4px; }
.step-content p  { font-size: 0.8rem; line-height: 1.55; }

.process-connector {
  flex-shrink: 0; width: 36px; height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(0,217,255,0.3));
  margin-top: 20px; position: relative;
}
.process-connector::after {
  content: '';
  position: absolute;
  right: -4px; top: -3px;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--cyan);
  border-top: 1.5px solid var(--cyan);
  transform: rotate(45deg);
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.cta-inner {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(0,217,255,0.15);
  border-radius: var(--radius-xl);
  padding: 72px 60px;
  text-align: center;
  overflow: hidden;
}

.cta-bg-orb {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,0.1), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  animation: glow-pulse 5s ease-in-out infinite;
}

.cta-inner h2     { margin: 0 auto 12px; max-width: 560px; }
.cta-inner > p    { max-width: 440px; margin: 0 auto 36px; }
.cta-actions      { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-right     { display: none; }
  .why-grid       { grid-template-columns: repeat(2,1fr); }
  .about-grid     { gap: 48px; }
}

@media (max-width: 768px) {
  .hero-headline  { font-size: clamp(2.2rem, 8vw, 3rem); }
  .about-grid     { grid-template-columns: 1fr; }
  .about-card-wrap{ max-width: 260px; }
  .tag-1, .tag-2, .tag-3 { display: none; }
  .services-grid  { grid-template-columns: 1fr; }
  .why-grid       { grid-template-columns: 1fr; }
  .process-row    { flex-direction: column; align-items: stretch; }
  .process-step   { flex-direction: row; text-align: left; padding: 0 0 28px 0; }
  .process-connector { display: none; }
  .cta-inner      { padding: 44px 22px; }
}

@media (max-width: 480px) {
  .hero-container { padding: 0 20px; }
  .hero-actions   { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-headline { font-size: 2.7rem; }
  .headline-gradient { 
    display: block; 
    margin-top: 4px;
  }
  .hero-sub { 
    max-width: 100%; 
    font-size: 0.95rem;
    padding-right: 10px;
  }
  .hero-stats { 
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 4px;
  }
  .hero-stat { 
    min-width: auto; 
  }
  .hero-stat-divider { display: none; }
  .stat-number { 
    font-size: 1.4rem; 
  }
  .stat-suffix { 
    font-size: 1rem; 
  }
  .stat-label { 
    font-size: 0.65rem; 
    white-space: nowrap;
  }
  .hero-badge { font-size: 0.75rem; }
}
