/* ============================================================
   KEYPOINT — Home Page Styles
   ============================================================ */

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-black);
  overflow: hidden;
  padding-top: 96px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Glow Orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,102,204,0.25) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: ag-float-slow 8s ease-in-out infinite;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(41,151,255,0.2) 0%, transparent 70%);
  bottom: 0; right: -80px;
  animation: ag-float-slow 10s ease-in-out infinite reverse;
}
.hero__orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,102,204,0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ag-glow-pulse 6s ease-in-out infinite;
}

/* Floating Decorative Elements */
.hero__floater {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}
.hero__floater--a {
  top: 15%; left: 8%;
  animation: ag-float 6s ease-in-out infinite;
}
.hero__floater--b {
  top: 25%; right: 10%;
  animation: ag-float-reverse 7s ease-in-out infinite;
}
.hero__floater--c {
  bottom: 25%; left: 12%;
  animation: ag-float 9s ease-in-out infinite 1s;
}
.hero__floater--d {
  top: 45%; right: 6%;
  font-size: 36px;
  color: rgba(41,151,255,0.5);
  animation: ag-float-slow 5s ease-in-out infinite;
}
.hero__floater--e {
  bottom: 20%; right: 20%;
  font-size: 28px;
  color: rgba(0,102,204,0.4);
  animation: ag-float 8s ease-in-out infinite 2s;
}
.hero__floater--f {
  top: 60%; left: 5%;
  font-size: 40px;
  color: rgba(41,151,255,0.35);
  animation: ag-float-reverse 11s ease-in-out infinite;
}

/* Hero Content */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 0 22px;
}
.hero__eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary-on-dark);
  margin-bottom: 24px;
  opacity: 0;
  animation: ag-fade-up 0.8s var(--ag-ease) 0.2s both;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--on-dark);
  text-shadow: 0 0 80px rgba(41, 151, 255, 0.3);
  opacity: 0;
  animation: ag-hero-title 1s var(--ag-ease) 0.4s both;
  position: relative;
}
.hero__title::after {
  content: 'KEYPOINT';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(41,151,255,0.3) 0%, transparent 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(12px);
  z-index: -1;
  opacity: 0.6;
}
.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 300;
  color: var(--primary-on-dark);
  letter-spacing: 0.3em;
  margin-top: 16px;
  opacity: 0;
  animation: ag-fade-up 0.8s var(--ag-ease) 0.7s both;
}
.hero__desc {
  font-size: 17px;
  font-weight: 400;
  color: var(--body-muted);
  line-height: 1.6;
  margin-top: 20px;
  opacity: 0;
  animation: ag-fade-up 0.8s var(--ag-ease) 0.9s both;
}

/* Waveform Animation */
.hero__waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 48px;
  margin: 28px auto;
}
.waveform__bar {
  width: 3px;
  background: linear-gradient(to top, var(--primary-on-dark), rgba(41,151,255,0.3));
  border-radius: 2px;
  animation: waveform-dance 1.2s ease-in-out infinite;
}
.waveform__bar:nth-child(1)  { animation-delay: 0.0s; }
.waveform__bar:nth-child(2)  { animation-delay: 0.1s; }
.waveform__bar:nth-child(3)  { animation-delay: 0.2s; }
.waveform__bar:nth-child(4)  { animation-delay: 0.3s; }
.waveform__bar:nth-child(5)  { animation-delay: 0.4s; }
.waveform__bar:nth-child(6)  { animation-delay: 0.5s; }
.waveform__bar:nth-child(7)  { animation-delay: 0.4s; }
.waveform__bar:nth-child(8)  { animation-delay: 0.3s; }
.waveform__bar:nth-child(9)  { animation-delay: 0.2s; }
.waveform__bar:nth-child(10) { animation-delay: 0.1s; }
.waveform__bar:nth-child(11) { animation-delay: 0.0s; }
.waveform__bar:nth-child(12) { animation-delay: 0.1s; }
.waveform__bar:nth-child(13) { animation-delay: 0.2s; }

@keyframes waveform-dance {
  0%, 100% { height: 6px; }
  50%       { height: 40px; }
}

/* Scroll Hint */
.hero__scroll-hint {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: ag-fade-up 1s var(--ag-ease) 1.4s both;
}
.scroll-hint__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--primary-on-dark), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
.hero__scroll-hint span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--body-muted);
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(1.3); opacity: 1; }
}

/* ===== Feature Cards ===== */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: 48px;
}
.feature-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--rounded-lg);
  padding: var(--space-xl);
  text-align: left;
  transition: transform 0.4s var(--ag-ease), box-shadow 0.4s var(--ag-ease), background 0.3s ease;
  animation: ag-float 7s ease-in-out infinite;
}
.feature-card:nth-child(2) { animation-delay: 1.5s; }
.feature-card:nth-child(3) { animation-delay: 3s; }
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 102, 204, 0.25);
  background: rgba(255,255,255,0.08);
}
.feature-card__icon {
  font-size: 36px;
  margin-bottom: var(--space-md);
  display: block;
  animation: ag-float-slow 4s ease-in-out infinite;
}
.feature-card:nth-child(2) .feature-card__icon { animation-delay: 0.8s; }
.feature-card:nth-child(3) .feature-card__icon { animation-delay: 1.6s; }
.feature-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: var(--space-xs);
}
.feature-card__desc {
  font-size: 14px;
  color: var(--body-muted);
  line-height: 1.5;
}

/* ===== Service Split ===== */
.service-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-xxl);
  align-items: start;
  margin-top: 48px;
  text-align: left;
}
.service-item {
  padding: var(--space-xl);
  border-radius: var(--rounded-lg);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  transition: transform 0.4s var(--ag-ease), box-shadow 0.4s var(--ag-ease);
  animation: ag-float 8s ease-in-out infinite;
}
.service-item:nth-child(3) { animation-delay: 2s; }
.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 102, 204, 0.12);
}
.service-item__visual {
  position: relative;
  margin-bottom: var(--space-lg);
}
.service-item__badge {
  position: absolute;
  top: 0; right: 0;
  font-size: 64px;
  font-weight: 700;
  color: rgba(0,102,204,0.06);
  line-height: 1;
  letter-spacing: -2px;
}
.service-item__icon-wrap {
  animation: ag-float-slow 5s ease-in-out infinite;
}
.service-divider {
  width: 1px;
  align-self: stretch;
  background: var(--hairline);
  margin: var(--space-xl) 0;
}

/* ===== Testimonial ===== */
.testimonial-quote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-xxl) 0;
  animation: ag-float-slow 10s ease-in-out infinite;
}
.quote-mark {
  opacity: 0.6;
}

/* ===== Photo Reviews ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.review-card {
  background: var(--canvas);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--hairline);
  transition: transform 0.4s var(--ag-ease), box-shadow 0.4s var(--ag-ease);
  display: flex;
  flex-direction: column;
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 102, 204, 0.12);
}
.review-card__image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.02);
}
.review-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.review-card:hover .review-card__image {
  transform: scale(1.04);
}
.review-card__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}
.review-card__comment {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted-80);
  margin-bottom: 16px;
  flex-grow: 1;
  white-space: pre-wrap;
}
.review-card__author {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 833px) {
  .feature-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-split { grid-template-columns: 1fr; }
  .service-divider { width: auto; height: 1px; margin: 0; }
}
@media (max-width: 640px) {
  .hero__title { letter-spacing: -0.03em; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .stat-item__number { font-size: 36px; }
}
