/* ===========================================
   HOME PAGE STYLES — Premium Redesign
   =========================================== */

/* ── HERO ─────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
  background-color: var(--surface);
  position: relative;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -10rem;
  right: -10rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(0, 92, 171, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -10rem;
  left: -10rem;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(0, 117, 215, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid-layout {
  display: grid;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-grid-layout {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    align-items: flex-start;
    text-align: left;
  }
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--on-surface);
  background: var(--surface-container-lowest);
  border: 1px solid rgba(192, 199, 214, 0.3);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--on-surface);
}

@media (min-width: 640px) {
  .hero-title { font-size: 3.5rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
}

.hero-highlight {
  color: var(--primary);
  position: relative;
}

.hero-description {
  font-size: 1.0625rem;
  color: var(--secondary);
  max-width: 34rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

/* Hero counters */
.hero-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(192, 199, 214, 0.2);
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .hero-counters {
    margin: 0;
  }
}

.hero-counter-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.counter-num {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--on-surface);
  line-height: 1;
}

.counter-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: none;
}

@media (min-width: 1024px) {
  .hero-visual { display: block; }
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 2rem;
  box-shadow: 0 30px 60px -12px rgba(0, 92, 171, 0.2),
              0 18px 36px -18px rgba(0, 0, 0, 0.2);
  display: block;
  position: relative;
  z-index: 1;
}

.hero-decoration-1 {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 18rem;
  height: 18rem;
  background: rgba(0, 92, 171, 0.1);
  border-radius: var(--radius-full);
  filter: blur(60px);
}

.hero-decoration-2 {
  position: absolute;
  bottom: -4rem;
  left: -4rem;
  width: 14rem;
  height: 14rem;
  background: rgba(0, 117, 215, 0.1);
  border-radius: var(--radius-full);
  filter: blur(60px);
}

/* Floating card */
.hero-card-float {
  position: absolute;
  bottom: -1.5rem;
  left: -2rem;
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  z-index: 2;
  min-width: 200px;
}

/* ── TRUSTED BAR ──────────────────────────── */
.trusted-bar {
  padding: 2.5rem 0;
  background: var(--surface-container-low);
  overflow: hidden;
}

.trusted-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary);
  opacity: 0.6;
  margin-bottom: 2rem;
}

.trusted-logos {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: marquee 30s linear infinite;
  padding: 0.5rem 0;
}

.trusted-logos:hover {
  animation-play-state: paused;
}

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

.trusted-tech {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.5;
  filter: grayscale(1);
  transition: all 0.4s ease;
  white-space: nowrap;
}

.trusted-tech:hover {
  opacity: 1;
  filter: grayscale(0);
}

.trusted-tech-icon {
  font-size: 1.75rem !important;
  color: var(--on-surface);
}

.trusted-tech-name {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--on-surface);
}

/* ── SERVICES ─────────────────────────────── */
.services-section {
  padding: 7rem 0;
  background: var(--surface);
}

.home-section-header {
  margin-bottom: 4rem;
}

.home-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.home-section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--on-surface);
  margin-bottom: 1rem;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .home-section-title { font-size: 3rem; }
}

.home-section-desc {
  font-size: 1rem;
  color: var(--secondary);
  max-width: 520px;
  line-height: 1.65;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── PROCESS ──────────────────────────────── */
.process-section {
  padding: 7rem 0;
}

.process-steps-container {
  position: relative;
  margin-top: 2rem;
}

.process-steps {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.process-steps::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    padding: 0;
  }
}

.process-step {
  flex: 0 0 280px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.5rem 2rem;
  background: white;
  border-radius: var(--radius-xl);
  position: relative;
  transition: all 0.35s ease;
  border: 1px solid rgba(192, 199, 214, 0.4);
}

@media (min-width: 1024px) {
  .process-step {
    flex: none;
    scroll-snap-align: none;
    background: var(--surface-container-lowest);
    border: 1px solid rgba(192, 199, 214, 0.1);
  }
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -12px rgba(0, 92, 171, 0.1);
}

.process-step-num {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(0, 92, 171, 0.08);
  line-height: 1;
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  user-select: none;
}

.process-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(0, 92, 171, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.35s ease;
}

.process-step:hover .process-icon {
  background: var(--primary);
  color: white;
}

.process-icon span {
  font-size: 1.5rem !important;
}

.process-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--on-surface);
}

.process-desc {
  font-size: 0.875rem;
  color: var(--secondary);
  line-height: 1.65;
}

/* ── TECH STACK ───────────────────────────── */
.tech-section {
  padding: 7rem 0;
  background: var(--surface);
}

.tech-container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .tech-container {
    flex-direction: row;
    gap: 6rem;
  }
}

.tech-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-description {
  font-size: 1.0625rem;
  color: var(--secondary);
  line-height: 1.7;
}

.tech-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .tech-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .tech-features {
    grid-template-columns: 1fr;
  }
}

.tech-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(192, 199, 214, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-feature-card:hover {
  transform: translateX(8px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px -10px rgba(0, 92, 171, 0.15);
}

.tech-feature-icon {
  width: 3rem;
  height: 3rem;
  background: var(--surface-container-low);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.tech-feature-card:hover .tech-feature-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.tech-feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 0.25rem;
}

.tech-feature-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--secondary);
}

/* Tech Visual Area */
.tech-visual {
  flex: 1.2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 400px;
}

.tech-visual-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 92, 171, 0.05) 0%, transparent 70%);
  border-radius: var(--radius-full);
  z-index: 0;
}

.tech-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.tech-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 16px -4px rgba(0,0,0,0.06);
  border: 1px solid var(--outline-variant);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px -12px rgba(0, 92, 171, 0.2);
  border-color: var(--primary);
  z-index: 2;
}

.tech-card .tech-icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
  filter: grayscale(0);
  opacity: 1;
}

.tech-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Stagger animations for tech-card floating */
.tech-card:nth-child(even) {
  transform: translateY(20px);
}
.tech-card:nth-child(even):hover {
  transform: translateY(10px) scale(1.05);
}

/* ── CTA ──────────────────────────────────── */
.cta-section {
  padding: 7rem 0;
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  border-radius: 2rem;
  padding: 5rem 2rem;
  text-align: center;
  color: var(--on-primary);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(0, 92, 171, 0.4);
}

@media (min-width: 768px) {
  .cta-banner { padding: 6rem 4rem; }
}

.cta-decoration-1 {
  position: absolute;
  top: -6rem; right: -6rem;
  width: 25rem; height: 25rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  filter: blur(60px);
}

.cta-decoration-2 {
  position: absolute;
  bottom: -6rem; left: -6rem;
  width: 20rem; height: 20rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  filter: blur(60px);
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .cta-title { font-size: 3.5rem; }
}

.cta-description {
  font-size: 1.125rem;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  opacity: 0.88;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cta-actions { flex-direction: row; justify-content: center; }
}

/* ── SCROLL REVEAL ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
