/* ============================================================
   SOURCECORE — Home Page Styles
   ============================================================ */
@import './shared.css';

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}
.hero__bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.12;
  z-index: 0;
}
.hero__bg-gradient {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(79,142,255,0.06) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 70%, rgba(139,92,246,0.05) 0%, transparent 60%);
  z-index: 1;
}
.hero .orb { z-index: 1; }
.hero .orb--blue   { width: 500px; height: 500px; top: -100px; left: -100px; }
.hero .orb--violet { width: 400px; height: 400px; top: 30%; right: -80px; opacity: 0.2; }
.hero .orb--cyan   { width: 300px; height: 300px; bottom: -60px; left: 40%; opacity: 0.15; }
.hero__content {
  position: relative; z-index: 2;
  padding-top: 120px;
  padding-bottom: var(--space-20);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-12);
  align-items: center;
}
.hero__inner {
  max-width: 100%;
}
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.6s both;
}
.hero__image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 0 60px rgba(79,142,255,0.2));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-16);
  }
  .hero__inner {
    margin: 0 auto;
    max-width: 640px;
  }
  .hero__cta {
    justify-content: center;
  }
  .hero__sub {
    margin-left: auto;
    margin-right: auto;
  }
}
.hero__eyebrow { margin-bottom: var(--space-6); }
.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-8);
}
.hero__headline .line { display: block; overflow: hidden; }
.hero__headline .line span {
  display: block;
  animation: lineReveal 0.8s var(--ease-out-expo) both;
}
.hero__headline .line:nth-child(1) span { animation-delay: 0.1s; }
.hero__headline .line:nth-child(2) span { animation-delay: 0.22s; }
.hero__headline .line:nth-child(3) span { animation-delay: 0.34s; }
@keyframes lineReveal {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.hero__sub {
  font-size: var(--text-xl);
  color: var(--text-muted);
  line-height: var(--leading-loose);
  max-width: 540px;
  margin-bottom: var(--space-10);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.48s both;
}
.hero__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.6s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* ── Stats strip ── */
.stats {
  padding: var(--space-16) 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-secondary);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}
.stats__item { display: flex; flex-direction: column; align-items: center; }
.stats__value {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stats__label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}
@media (max-width: 768px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── About intro ── */
.home-about {
  padding: var(--section-py) 0;
  background: var(--bg-primary);
}
.home-about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: center;
}
.home-about__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin: var(--space-4) 0 var(--space-6);
}
.home-about__body {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
}
.home-about__pills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.home-about__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-about__graphic {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  background: var(--gradient-subtle);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.home-about__graphic::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='%234F8EFF' stroke-width='0.5' stroke-opacity='0.12'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}
@media (max-width: 1024px) {
  .home-about__inner { grid-template-columns: 1fr; }
  .home-about__visual { order: -1; }
}

/* ── Services preview ── */
.services-preview { padding: var(--section-py) 0; background: var(--bg-secondary); }
.services-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.service-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  cursor: pointer;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
}
.service-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-loose);
}
.service-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.service-card__arrow {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-blue);
  display: flex; align-items: center; gap: var(--space-1);
  transition: gap var(--duration-base) var(--ease-out-expo);
}
.service-card:hover .service-card__arrow { gap: var(--space-3); }
@media (max-width: 768px) {
  .services-preview__grid { grid-template-columns: 1fr; }
}

/* ── Industries preview (ticker) ── */
.industries-preview {
  padding: var(--space-16) 0;
  overflow: hidden;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-default);
}
.industries-preview__label {
  text-align: center;
  margin-bottom: var(--space-8);
}
.ticker-wrap { display: flex; overflow: hidden; }
.ticker {
  display: flex;
  gap: var(--space-6);
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}
.ticker:hover { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: border-color var(--duration-fast), color var(--duration-fast);
}
.ticker__item:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.ticker__item svg { width: 18px; height: 18px; }
