/* ════════════════════════════
   HOME PAGE STYLES — Redesign
   ════════════════════════════ */

/* ── GLASS CONTAINER ───────────────────────── */
.glass-container {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.40);
  border-radius: 24px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.10);
  padding: 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 768px) {
  .glass-container {
    padding: 24px;
    border-radius: 16px;
  }
}

/* ── SECTION UPDATES ───────────────────────── */
.section {
  padding: 80px 24px;
  background: var(--bg-solid);
}

.section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.trust-bar {
  background: var(--bg-solid);
  padding: 32px 24px;
  text-align: center;
}

.services-preview {
  background: var(--bg-solid);
  padding: 80px 24px;
}

.hiw-preview {
  background: var(--bg-solid);
  padding: 80px 24px;
}

.testimonials {
  background: var(--bg-solid);
  padding: 80px 24px;
}

.cta-banner {
  background: var(--bg-solid);
  padding: 80px 24px;
}

/* ── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 40px 60px;
  background: var(--bg-solid);
}

#ascii-donut {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  font-family: monospace;
  font-size: clamp(12px, 1.5vw, 18px);
  line-height: 1.1;
  color: var(--navy);
  opacity: 0.08;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre;
  margin: 0;
  overflow: hidden;
}

.hero-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 3px;
  background: rgba(69, 123, 157, 0.1);
  border: 1px solid rgba(69, 123, 157, 0.25);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-title .grad-text {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-div {
  width: 1px;
  height: 40px;
  background: rgba(0, 0, 0, 0.12);
}

/* Hero Right Column — Glass Card */
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-glass-panel {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  padding: 40px 32px;
  text-align: center;
}

.hero-gear-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  position: relative;
  height: 120px;
}

.hero-gear-svg svg {
  position: absolute;
}

.hero-gear-svg .gear-large {
  width: 80px;
  height: 80px;
  animation: none;
  left: calc(50% - 70px);
  top: 0;
}

.hero-gear-svg .gear-medium {
  width: 56px;
  height: 56px;
  animation: none;
  left: calc(50% - 5px);
  top: 10px;
}

.hero-gear-svg .gear-small {
  width: 40px;
  height: 40px;
  animation: none;
  left: calc(50% + 30px);
  top: 55px;
}

.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.hero-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.hero-benefit .ph-icon {
  color: var(--accent-blue);
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.scroll-hint span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: rgba(29, 53, 87, 0.15);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navy);
  animation: none;
}

@keyframes scrollFill {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* ── TRUST BAR ─────────────────────────────── */
.trust-bar {
  background: var(--navy);
  padding: 20px 40px;
  text-align: center;
}

.trust-bar p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.trust-bar .industry-name {
  color: #A8C5D6;
}

/* ── SERVICE CARDS ──────────────────────────── */
.services-preview {
  background: var(--bg);
  background-image: var(--noise);
  padding: 100px 0;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 280px;
}

.service-card .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.service-card .card-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
  flex: 1;
}

.card-arrow {
  color: var(--accent-blue);
  transition: transform 0.2s ease;
  align-self: flex-end;
  display: flex;
}

.card-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent-blue);
  stroke-width: 1.5;
}

.service-card:hover .card-arrow {
  transform: translateX(4px);
}

/* ── HOW IT WORKS PREVIEW ───────────────────── */
.hiw-preview {
  background: rgba(0, 0, 0, 0.03);
  padding: 100px 0;
}

.hiw-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.hiw-step {
  flex: 1;
  padding: 36px 24px;
  text-align: center;
  position: relative;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hiw-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glass-hover);
}

.hiw-connector {
  width: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connector-line {
  width: 100%;
  border-top: 2px dashed rgba(29, 53, 87, 0.2);
}

.step-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(29, 53, 87, 0.12);
  display: block;
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
}

.step-icon {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

.step-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
}

.hiw-step h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.hiw-step p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 200px;
  margin: 0 auto;
}

/* ── TESTIMONIALS ───────────────────────────── */
.testimonials {
  background: var(--navy);
  padding: 100px 0;
}

.testimonials .section-tag {
  color: rgba(255, 255, 255, 0.5);
}

.testimonials .section-title {
  color: #fff;
}

.testimonials .section-title .grad-text {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow: none;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.stars svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-star);
}

.testimonial-card > p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.75;
}

.testimonial-card hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.t-author strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
}

.t-author small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-visual {
    max-width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 24px 60px;
  }

  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hiw-steps {
    flex-direction: column;
    gap: 16px;
  }

  .hiw-connector {
    width: 100%;
    height: 24px;
  }

  .connector-line {
    border-top: none;
    border-left: 2px dashed rgba(29, 53, 87, 0.2);
    height: 100%;
    width: 0;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .service-cards {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .stat-div {
    display: none;
  }
}