/* ─────────────────────────────────────────
   INDEX — homepage-specific styles
   ───────────────────────────────────────── */

/* ── CANVAS BG ── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── SECTIONS WRAPPER ── */
main { position: relative; z-index: 1; }

/* ── HERO ── */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 0.3s forwards;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -2px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s 0.5s forwards;
}
.hero-title .line2 {
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200%;
  animation: shimmer 4s infinite, fadeUp 1s 0.7s forwards;
  opacity: 0;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-sub {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-top: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 0.9s forwards;
}
.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 1.1s forwards;
}
.btn-primary {
  padding: 16px 40px;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}
.btn-ghost {
  padding: 16px 40px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1s 1.5s forwards;
}
.hero-scroll-hint span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ── STATS BAR ── */
.stats-bar {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-item {
  text-align: center;
  flex: 1;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.stat-item.visible { opacity: 1; transform: translateY(0); }
.stat-item::after {
  content: '';
  position: absolute;
  right: 0; top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}
.stat-item:last-child::after { display: none; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── SECTION BASE ── */
section {
  padding: 120px 60px;
  max-width: 1400px;
  margin: 0 auto;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── SERVICES ── */
#services { padding-top: 100px; max-width: 100%; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 60px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--bg);
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s, background 0.4s;
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover { background: var(--surface); }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.5s ease;
}
.service-card:hover::before { width: 100%; }
.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 32px;
  position: relative;
}
.service-icon svg { width: 100%; height: 100%; }
.service-num {
  position: absolute;
  top: 44px;
  right: 44px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
}
.service-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}
.service-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.3s;
}
.service-card:hover .service-link { opacity: 1; transform: translateX(0); }

/* ── ABOUT ── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
  height: 500px;
}
#about-canvas {
  width: 100%;
  height: 100%;
}
.about-body {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dim);
}
.feature-list {
  margin-top: 40px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-dim);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s, transform 0.5s;
}
.feature-list li.visible { opacity: 1; transform: translateX(0); }
.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--accent);
}

/* ── PROCESS ── */
#process { padding-top: 80px; padding-bottom: 80px; }
.process-steps {
  margin-top: 70px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.step {
  display: flex;
  gap: 48px;
  padding: 40px 0 40px 80px;
  position: relative;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s, transform 0.6s;
}
.step.visible { opacity: 1; transform: translateX(0); }
.step:last-child { border-bottom: none; }
.step-num {
  position: absolute;
  left: 14px;
  top: 40px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg);
  z-index: 1;
}
.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 600px;
}

/* ── TECH STACK ── */
#tech {
  text-align: center;
  padding-bottom: 100px;
}
#tech .section-tag { justify-content: center; }
.tech-grid {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.tech-pill {
  padding: 10px 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s, transform 0.4s, border-color 0.3s, color 0.3s;
}
.tech-pill.visible { opacity: 1; transform: scale(1); }
.tech-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
}

/* ── TESTIMONIALS ── */
#testimonials {
  background: var(--surface);
  max-width: 100%;
  padding: 100px 60px;
}
#testimonials > * {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.testimonials-inner { max-width: 1400px; margin: 0 auto; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}
.testi-card {
  background: var(--bg);
  padding: 40px;
  border: 1px solid var(--border);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}
.testi-card.visible { opacity: 1; transform: translateY(0); }
.testi-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.4;
}
.testi-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--bg);
}
.testi-name {
  font-size: 14px;
  font-weight: 600;
}
.testi-role {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── CTA ── */
#cta {
  text-align: center;
  padding: 160px 60px;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.08), transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s, transform 0.7s;
}
.cta-title.visible { opacity: 1; transform: translateY(0); }
.cta-sub {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s 0.2s, transform 0.7s 0.2s;
}
.cta-sub.visible { opacity: 1; transform: translateY(0); }
.cta-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s 0.4s, transform 0.7s 0.4s;
}
.cta-form.visible { opacity: 1; transform: translateY(0); }
.cta-input {
  flex: 1;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}
.cta-input:focus { border-color: var(--accent); }
.cta-input::placeholder { color: var(--text-muted); }
.cta-submit {
  padding: 16px 28px;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.cta-submit:hover { background: #00b8d9; }

/* ── PHONE TICKER ── */
.phone-mockup-section {
  max-width: 100%;
  padding: 60px 0;
  background: linear-gradient(to bottom, var(--bg), var(--surface), var(--bg));
  overflow: hidden;
  position: relative;
}
.phone-track {
  display: flex;
  gap: 40px;
  animation: trackScroll 30s linear infinite;
  width: max-content;
}
@keyframes trackScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.phone-card {
  width: 200px;
  flex-shrink: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
}
.phone-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.phone-card-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   MOBILE — ≤ 768 px
   ───────────────────────────────────────── */
@media (max-width: 768px) {
  /* Sections */
  section { padding: 60px 24px; }

  /* Hero */
  .hero-sub { font-size: 15px; padding: 0 8px; }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 24px;
  }
  .btn-primary,
  .btn-ghost {
    width: 100%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
    display: block;
  }
  .hero-scroll-hint { display: none; }

  /* Stats bar */
  .stats-bar {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .stat-item {
    padding: 28px 16px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
  .stat-item::after { display: none; }
  .stat-num { font-size: 34px; }

  /* Services */
  #services { padding-left: 24px; padding-right: 24px; }
  .services-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .service-card { padding: 36px 28px; }
  .service-link { opacity: 1; transform: translateX(0); }

  /* About */
  #about {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 60px 24px;
  }
  .about-visual { height: 240px; order: -1; }

  /* Process */
  #process { padding: 60px 24px; }
  .process-steps::before { left: 15px; }
  .step { padding: 28px 0 28px 52px; gap: 20px; }
  .step-num { left: 0; top: 28px; width: 28px; height: 28px; font-size: 10px; }
  .step-desc { max-width: 100%; }

  /* Tech */
  #tech { padding: 60px 24px; }
  .tech-grid { gap: 8px; }
  .tech-pill { padding: 8px 16px; font-size: 11px; }

  /* Testimonials */
  #testimonials { padding: 60px 24px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }

  /* CTA */
  #cta { padding: 80px 24px; }
  .cta-form {
    flex-direction: column;
    max-width: 100%;
    gap: 0;
  }
  .cta-input {
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
  .cta-submit { width: 100%; padding: 16px; }

  /* Phone ticker – smaller cards */
  .phone-card { width: 160px; padding: 16px 12px; }
  .phone-card-icon { font-size: 26px; }
}

/* ─────────────────────────────────────────
   SMALL PHONES — ≤ 400 px
   ───────────────────────────────────────── */
@media (max-width: 400px) {
  .hero-title { letter-spacing: -1px; }
  .stat-num { font-size: 28px; }
  .section-title { letter-spacing: -0.5px; }
}
