/* ============================================
   HOME.CSS — True Click SEO
   Homepage-specific styles
   ============================================ */

/* ── Hero ────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  padding-top: 90px;
}

/* Grain texture overlay */
.hero__grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  animation: grain 8s steps(10) infinite;
  opacity: 0.4;
}

/* Background grid */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Floating geometric elements */
.hero__geometry {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.geo-shape {
  position: absolute;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.geo-shape--1 {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  right: -10%;
  top: -10%;
  background: radial-gradient(circle at 30% 30%, rgba(0,85,255,0.06), transparent 70%);
  animation-duration: 10s;
}

.geo-shape--2 {
  width: clamp(200px, 25vw, 380px);
  height: clamp(200px, 25vw, 380px);
  right: 8%;
  top: 20%;
  border: 1px solid rgba(0,85,255,0.08);
  border-radius: 50%;
  animation-duration: 12s;
  animation-delay: -3s;
}

.geo-shape--3 {
  width: clamp(100px, 12vw, 180px);
  height: clamp(100px, 12vw, 180px);
  right: 20%;
  top: 55%;
  background: rgba(0,85,255,0.05);
  border-radius: 24px;
  transform: rotate(30deg);
  animation: floatSlow 14s ease-in-out infinite;
  animation-delay: -5s;
}

.geo-shape--4 {
  width: 60px;
  height: 60px;
  right: 38%;
  top: 18%;
  background: var(--color-accent);
  border-radius: 12px;
  opacity: 0.12;
  animation: floatSlow 9s ease-in-out infinite;
  animation-delay: -2s;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-muted);
  background: var(--color-white);
  margin-bottom: var(--space-8);
  animation: fadeUp 0.8s var(--ease-out-expo) both;
  animation-delay: 0.2s;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  animation: pulseAccent 2s ease-in-out infinite;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-black);
  letter-spacing: -0.04em;
  line-height: 0.93;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  overflow: hidden;
}

.hero__headline-line {
  display: block;
  overflow: hidden;
}

.hero__headline-inner {
  display: block;
  animation: fadeUp 0.9s var(--ease-out-expo) both;
}

.hero__headline-inner--1 { animation-delay: 0.35s; }
.hero__headline-inner--2 { animation-delay: 0.5s; }
.hero__headline-inner--3 { animation-delay: 0.65s; color: var(--color-accent); }

.hero__subline {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: var(--leading-normal);
  max-width: 520px;
  margin-bottom: var(--space-10);
  animation: fadeUp 1s var(--ease-out-expo) both;
  animation-delay: 0.75s;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  animation: fadeUp 1s var(--ease-out-expo) both;
  animation-delay: 0.9s;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  z-index: 2;
  animation: fadeIn 1s var(--ease-out-expo) both;
  animation-delay: 1.5s;
}

.hero__scroll-text {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-subtle);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: float 2s ease-in-out infinite;
}

/* Stats strip below hero */
.hero__stats {
  display: flex;
  gap: var(--space-12);
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: var(--border-thin);
  animation: fadeUp 1s var(--ease-out-expo) both;
  animation-delay: 1.1s;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  color: var(--color-text);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-1);
}

/* ── Work Section ────────────────────────────── */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.work-grid .project-card:first-child {
  grid-column: 1 / -1;
}

.work-grid .project-card:first-child .project-card__image {
  aspect-ratio: 21/9;
}

/* ── Services Grid ───────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

/* ── About Section ───────────────────────────── */

.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.about-visual__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-visual__badge {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
}

.about-visual__badge-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  color: var(--color-text);
  line-height: 1;
}

.about-visual__badge-label {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.about-offices {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.office-chip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: var(--weight-medium);
  width: fit-content;
}

.office-chip__flag {
  font-size: 1.2rem;
}

/* ── Process Section ─────────────────────────── */

.process-section {
  background: var(--color-text);
  color: var(--color-invert-text);
}

.process-section .section-header__title,
.process-section .label {
  color: var(--color-invert-text);
}

.process-section .section-header__desc {
  color: rgba(247,247,245,0.5);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
  margin-top: var(--space-16);
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(247,247,245,0.15) 20%, rgba(247,247,245,0.15) 80%, transparent);
}

.process-step {
  align-items: center;
  text-align: center;
  padding: var(--space-6) var(--space-4);
  position: relative;
}

.process-step__dot {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(247,247,245,0.2);
  background: rgba(247,247,245,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: rgba(247,247,245,0.4);
  transition: background var(--transition-med), border-color var(--transition-med), color var(--transition-med);
  position: relative;
  z-index: 1;
}

.process-step.active .process-step__dot,
.process-step:hover .process-step__dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.process-step__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: rgba(247,247,245,0.6);
  transition: color var(--transition-fast);
}

.process-step:hover .process-step__title {
  color: var(--color-invert-text);
}

/* ── Case Studies Section ────────────────────── */

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

/* ── Stats Section ───────────────────────────── */

.stats-section {
  background: var(--color-surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-1);
}

.stat-card {
  padding: var(--space-10) var(--space-8);
  text-align: center;
  border-right: var(--border-thin);
}

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

/* ── Testimonials Section ────────────────────── */

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ── CTA Section ─────────────────────────────── */

.cta-section {
  background: var(--color-text);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(0,85,255,0.15), transparent 60%);
  pointer-events: none;
}

.cta-section__headline {
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  color: var(--color-invert-text);
  letter-spacing: var(--tracking-tight);
  line-height: 1.0;
  margin-bottom: var(--space-6);
}

.cta-section__sub {
  font-size: var(--text-lg);
  color: rgba(247,247,245,0.5);
  margin-bottom: var(--space-10);
  max-width: 440px;
  margin-inline: auto;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
  }
  .process-grid::before { display: none; }
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { border-right: none; border-bottom: var(--border-thin); }
  .stat-card:nth-child(2n) { border-right: none; }
  .testimonials-slider { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero__stats { gap: var(--space-6); flex-wrap: wrap; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid .project-card:first-child { grid-column: auto; }
  .work-grid .project-card:first-child .project-card__image { aspect-ratio: 4/3; }
  .services-grid { grid-template-columns: 1fr; }
  .case-studies-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-slider { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .cta-section__headline { font-size: var(--text-3xl); }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
