/* Home page — premium hero dashboard and sections */

/* Full-bleed hero: mesh extends behind floating navbar */
body[data-page="home"] {
  background-color: #D8F5F9;
}

body[data-page="home"]::before {
  display: none;
}

body[data-page="home"] main {
  padding-top: 0;
}

body[data-page="home"] .site-header:not(.is-scrolled) .nav-glass {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.58) 55%,
    rgba(220, 247, 250, 0.5) 100%
  );
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 1px rgba(0, 188, 212, 0.06),
    0 10px 36px rgba(0, 77, 86, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}

.hero {
  padding-block: var(--space-7) var(--space-7);
  overflow: hidden;
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
}

body[data-page="home"] .hero {
  padding-top: calc(var(--header-height) + var(--space-4));
  padding-bottom: var(--space-8);
  min-height: 100svh;
  align-items: center;
}

/* Soda-style mesh gradient background (AIODYX teal palette) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__mesh {
  position: absolute;
  inset: -30% -15%;
  background:
    radial-gradient(ellipse 95% 75% at 50% -8%, rgba(0, 188, 212, 0.52) 0%, transparent 60%),
    radial-gradient(ellipse 65% 50% at 92% 8%, rgba(0, 229, 255, 0.34) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 8% 12%, rgba(0, 188, 212, 0.28) 0%, transparent 48%),
    radial-gradient(ellipse 50% 55% at 8% 65%, rgba(0, 96, 100, 0.18) 0%, transparent 48%),
    radial-gradient(ellipse 40% 35% at 65% 85%, rgba(0, 188, 212, 0.22) 0%, transparent 50%),
    linear-gradient(168deg, #C8F0F6 0%, #DCF7FA 28%, #E4FAFC 52%, #D0F2F8 78%, #E8FAFC 100%);
  animation: hero-mesh-breathe 14s ease-in-out infinite;
}

@keyframes hero-mesh-breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.03) translateY(-1%); }
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.85;
}

.hero__blob--1 {
  width: min(58vw, 680px);
  height: min(58vw, 680px);
  background: rgba(0, 188, 212, 0.55);
  top: -18%;
  left: 15%;
}

.hero__blob--2 {
  width: min(42vw, 480px);
  height: min(42vw, 480px);
  background: rgba(0, 229, 255, 0.4);
  top: -8%;
  right: -5%;
}

.hero__blob--top {
  width: min(70vw, 900px);
  height: min(45vw, 420px);
  background: rgba(0, 188, 212, 0.38);
  top: -28%;
  left: 50%;
  filter: blur(90px);
  opacity: 0.9;
}

.hero__blob--3 {
  width: min(50vw, 560px);
  height: min(50vw, 560px);
  background: rgba(0, 77, 86, 0.22);
  bottom: -12%;
  left: -10%;
}

.hero__blob--4 {
  width: min(36vw, 400px);
  height: min(36vw, 400px);
  background: rgba(255, 255, 255, 0.65);
  top: 40%;
  left: 42%;
}

.hero__blob--5 {
  width: min(28vw, 320px);
  height: min(28vw, 320px);
  background: rgba(0, 188, 212, 0.35);
  bottom: 8%;
  right: 22%;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  z-index: 2;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-8);
  }
}

.hero__content {
  max-width: 600px;
}

.hero__badge {
  margin-bottom: var(--space-4);
}

body[data-page="home"] .hero {
  --hero-text: #0A1E26;
  --hero-text-body: #2A4F58;
  --hero-text-muted: #3D6570;
  --hero-accent-start: #0097A7;
  --hero-accent-end: #003D45;
  --hero-border: rgba(0, 77, 86, 0.16);
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  color: var(--hero-text, var(--color-text));
}

body[data-page="home"] .hero__title-line:not(.text-gradient) .hero__word-inner {
  color: var(--hero-text);
}

body[data-page="home"] .hero .text-gradient,
body[data-page="home"] .hero .hero__word-inner.text-gradient {
  background: linear-gradient(128deg, var(--hero-accent-start) 0%, #006064 48%, var(--hero-accent-end) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--hero-accent-end);
}

.hero__title-line {
  display: block;
}

.hero__word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
}

.hero__word-inner {
  display: inline-block;
}

.hero-dashboard__main {
  transform-style: preserve-3d;
}

/* Subtle glow pulse on primary CTA (Soda-style) */
.hero__cta .btn--primary {
  animation: hero-cta-glow 4.5s ease-in-out infinite;
}

@keyframes hero-cta-glow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 77, 86, 0.12), 0 0 0 0 rgba(0, 188, 212, 0);
  }
  50% {
    box-shadow: 0 8px 28px rgba(0, 77, 86, 0.15), 0 0 22px rgba(0, 188, 212, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cta .btn--primary {
    animation: none;
  }
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--hero-text-body, var(--color-text-secondary));
  margin-bottom: var(--space-6);
  line-height: 1.7;
  max-width: 38ch;
  font-weight: 500;
}

.hero__typing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--color-primary-dark);
  min-height: 1.5em;
}

.hero__typing-word {
  color: var(--color-primary);
  border-inline-end: 2px solid var(--color-primary);
  padding-inline-end: 2px;
  animation: typing-caret 0.9s steps(1) infinite;
}

@keyframes typing-caret {
  50% { border-color: transparent; }
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  z-index: 1;
}

.hero__network {
  position: absolute;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  inset-block-end: 8%;
  inset-inline-end: 2%;
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

.hero__network-nodes circle {
  animation: network-node 3.5s ease-in-out infinite;
}

.hero__network-nodes circle:nth-child(2) { animation-delay: 0.4s; }
.hero__network-nodes circle:nth-child(3) { animation-delay: 0.8s; }
.hero__network-nodes circle:nth-child(4) { animation-delay: 1.2s; }
.hero__network-nodes circle:nth-child(5) { animation-delay: 1.6s; }
.hero__network-nodes circle:nth-child(6) { animation-delay: 2s; }

@keyframes network-node {
  0%, 100% { opacity: 0.45; r: 4; }
  50% { opacity: 1; }
}

.hero__scroll {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  color: var(--color-primary-dark);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

html[dir="rtl"] .hero__scroll {
  transform: translateX(50%);
}

.hero__scroll:hover {
  opacity: 1;
}

.hero__scroll-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(0, 77, 86, 0.35);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-dot {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 6px;
  width: 4px;
  height: 8px;
  margin-inline-start: -2px;
  border-radius: 2px;
  background: var(--color-primary);
  animation: scroll-dot 1.6s var(--ease-premium) infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

.hero-dashboard__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-inline-start: auto;
}

.hero-dashboard__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__typing-word,
  .hero__scroll-dot,
  .hero__network-nodes circle,
  .hero-dashboard__live-dot {
    animation: none;
  }

  .hero__particles,
  .hero__network {
    display: none;
  }
}

@media (max-width: 1023px) {
  .hero__particles,
  .hero__network {
    display: none;
  }

  .hero__scroll {
    display: none;
  }

  .hero__visual {
    min-height: 0;
    margin-top: var(--space-4);
  }

  .hero-dashboard {
    max-height: 280px;
  }

  .hero-dashboard__float {
    display: none;
  }

  .hero-dashboard__activity {
    display: none;
  }

  .hero__subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero__cta {
    flex-wrap: wrap;
  }

  .hero__cta .btn--lg {
    padding: 12px 22px;
  }

  .hero__word-inner,
  .hero__subtitle,
  .hero__badge,
  .hero-dashboard__main,
  .hero-dashboard__donut {
    will-change: auto;
  }
}

.hero__visual {
  position: relative;
  min-height: 320px;
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: 5% -5%;
  background: radial-gradient(ellipse at center, rgba(0, 188, 212, 0.18) 0%, transparent 68%);
  z-index: 0;
  pointer-events: none;
}

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

/* Hero trust line — tuned for mesh background */
body[data-page="home"] .hero__trust {
  border-top-color: var(--hero-border);
}

body[data-page="home"] .hero__trust-item {
  color: var(--hero-text-muted);
  font-weight: 500;
}

body[data-page="home"] .hero__trust-item svg {
  color: #007A88;
}

/* Hero CTAs — stronger contrast on mesh */
body[data-page="home"] .hero__cta .btn--ghost {
  color: var(--hero-text);
  border-color: rgba(0, 77, 86, 0.42);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body[data-page="home"] .hero__cta .btn--ghost:hover {
  color: var(--hero-accent-end);
  border-color: rgba(0, 77, 86, 0.58);
  background: rgba(255, 255, 255, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .hero__mesh {
    animation: none;
  }
}

/* Premium dashboard mockup */
.hero-dashboard {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 480px;
  perspective: 1200px;
}

.hero-dashboard__main {
  position: absolute;
  inset: 8% 4% 4% 4%;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-floating);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
}

.hero-dashboard__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.hero-dashboard__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

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

.hero-dashboard__kpi {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
}

.hero-dashboard__kpi-label {
  font-size: 0.625rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-dashboard__kpi-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: 2px;
}

.hero-dashboard__kpi-value--up {
  color: var(--color-primary);
}

.hero-dashboard__charts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3);
  flex: 1;
  min-height: 0;
}

.hero-dashboard__chart {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.hero-dashboard__chart-label {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.hero-dashboard__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex: 1;
  min-height: 60px;
}

.hero-dashboard__bar {
  flex: 1;
  background: var(--gradient-primary);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}

.hero-dashboard__donut {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--color-primary) 0% 65%, var(--color-primary-tint) 65% 100%);
  margin: auto;
  position: relative;
}

.hero-dashboard__donut::after {
  content: '';
  position: absolute;
  inset: 18%;
  background: var(--color-bg-subtle);
  border-radius: 50%;
}

.hero-dashboard__activity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-dashboard__activity-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.6875rem;
  color: var(--color-text-secondary);
  min-height: 22px;
  padding: 3px 0;
  border-bottom: 1px solid var(--color-border);
  height: auto;
  background: transparent;
  border-radius: 0;
  width: 100% !important;
}

.hero-dashboard__activity-row:last-child {
  border-bottom: 0;
}

.hero-dashboard__activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.hero-dashboard__activity-dot--warn { background: #f59e0b; }
.hero-dashboard__activity-dot--ok { background: #22c55e; }

.hero-dashboard__activity-time {
  margin-inline-start: auto;
  color: var(--color-text-muted);
  font-size: 0.6875rem;
}

.hero-dashboard__float {
  position: absolute;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  box-shadow: var(--shadow-card);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  z-index: 2;
  max-width: 180px;
  backface-visibility: hidden;
}

.hero-dashboard__float-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  flex-shrink: 0;
}

.hero-dashboard__float-icon svg {
  width: 14px;
  height: 14px;
}

.hero-dashboard__float--1 { top: 0; right: 0; }
.hero-dashboard__float--2 { bottom: 20%; left: -2%; }
.hero-dashboard__float--3 { top: 30%; right: -4%; }
.hero-dashboard__float--4 { bottom: 0; right: 15%; }

@media (max-width: 1023px) {
  .hero-dashboard__float {
    display: none;
  }
}

/* Process section */
.process-section .process-timeline {
  margin-top: var(--space-6);
}

/* FAQ */
.faq-section {
  max-width: 900px;
  margin-inline: auto;
}

/* page-hero styles live in components.css */

/* Nav banner entrance */
@keyframes banner-enter {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-header__stack .nav-banner {
  animation: banner-enter 0.6s var(--ease-out) both;
}

body[data-page="home"] .site-header__stack .nav-banner {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-header__stack .nav-banner { animation: none; }
}

/* Site header shrink */
.site-header.is-scrolled .site-header__stack {
  gap: var(--space-1);
}

.site-header.is-scrolled {
  --header-height: var(--header-height-scrolled);
}

/* Service card expanded */
.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card__deliverables {
  list-style: none;
  margin: var(--space-3) 0 var(--space-4);
  flex: 1;
}

.service-card__deliverables li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.service-card__deliverables li svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-card:hover .card__icon {
  transform: translateY(-2px);
}

.card__icon {
  transition: transform var(--transition-timing);
}

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

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

.industry-card {
  text-align: center;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-timing), box-shadow var(--transition-timing);
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.industry-card img {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
}

.industry-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
}
