/* ==========================================================================
   HOME.CSS — Homepage styles
   ========================================================================== */

/* ——— Hero ——————————————————————————————————————————————————————————————— */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 120px var(--px) 80px;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  opacity: 0.2;
  animation: glow-pulse 6s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: 5%;
  opacity: 0.15;
  animation: glow-pulse 8s ease-in-out 2s infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px;
  border: 1px solid var(--border-b);
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.06);
  margin-bottom: 36px;
}

.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: glow-pulse 2s ease-in-out infinite;
}

.hero-eyebrow span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--t2);
  max-width: 540px;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--t3);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-hint-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--t3), transparent);
  animation: fadeUp 2s ease-in-out infinite;
}

/* ——— Stats Strip ——————————————————————————————————————————————————————— */
#stats {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

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

.stat-item {
  padding: 48px 32px;
  border-right: 1px solid var(--border);
  text-align: center;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--t2);
}

/* ——— Services Preview ——————————————————————————————————————————————————— */
#services-preview {
  padding: var(--section-py) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, var(--cyan-dim), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover::before { opacity: 1; }

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.service-card:hover h3 { color: var(--cyan); }

.service-card p {
  font-size: 0.9rem;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-card .service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--t3);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

/* ——— Feature / Why Us ——————————————————————————————————————————————————— */
#why-us {
  padding: var(--section-py) 0;
  overflow: hidden;
}

.why-us-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-us-quote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.why-features { display: flex; flex-direction: column; gap: 32px; }

.why-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.why-feature:last-child { border-bottom: none; padding-bottom: 0; }

.why-feature-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  padding-top: 4px;
  flex-shrink: 0;
}

.why-feature h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.why-feature p { font-size: 0.9rem; color: var(--t2); line-height: 1.75; font-weight: 300; }

/* ——— Tech Stack ————————————————————————————————————————————————————————— */
#tech {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border);
}

.tech-marquee-wrap {
  margin-top: 48px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-marquee {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.tech-marquee-wrap:hover .tech-marquee { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--t2);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.tech-pill:hover { border-color: var(--border-b); color: var(--t1); }

.tech-pill-icon { font-size: 1.1rem; }

/* ——— CTA Section ———————————————————————————————————————————————————————— */
#home-cta {
  padding: var(--section-py) 0;
}

/* ——— Responsive ————————————————————————————————————————————————————————— */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-us-inner  { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-inner   { grid-template-columns: 1fr 1fr; }

  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); }
}
