/* ==========================================================================
   AOS — home.css: front-page sections
   ========================================================================== */

/* ---------- Shared section bits ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-elev); border-block: 1px solid var(--line-soft); }
.section-flush-top { padding-top: 0; }

.h2-lg,
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
.section-head { max-width: 660px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head p { margin-top: 1rem; color: var(--text-muted); font-size: 1.08rem; }

.eyebrow-label {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--blue-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 9vw, 7rem);
}
.hero::before,
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero::before {
  background:
    radial-gradient(55% 55% at 85% 8%, rgba(26, 102, 255, 0.24), transparent 70%),
    radial-gradient(45% 45% at 5% 95%, rgba(140, 155, 180, 0.12), transparent 70%);
}
.hero::after {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 65% at 50% 30%, #000, transparent 80%);
  mask-image: radial-gradient(70% 65% at 50% 30%, #000, transparent 80%);
  opacity: 0.7;
}

.hero-grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.02fr 0.98fr; gap: 3rem; }
}

.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.95rem 0.42rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23, 27, 33, 0.8);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-tag .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 0 0 var(--blue-glow);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--blue-glow); }
  70%  { box-shadow: 0 0 0 9px rgba(26, 102, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 102, 255, 0); }
}

.hero h1 { margin-top: 1.4rem; }
.hero-brand {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5.2rem, 17vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
}
.hero-brand .w,
.hero-brand .o {
  display: inline-block;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-brand .w { background-image: linear-gradient(180deg, #ffffff 15%, #98a2b3 100%); }
.hero-brand .o {
  background-image: linear-gradient(180deg, #7fb0ff 0%, #1a66ff 85%);
  filter: drop-shadow(0 0 28px var(--blue-glow));
}
.hero-title {
  display: block;
  max-width: 20ch;
  margin-top: 1.5rem;
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
}
.hero-lede {
  max-width: 54ch;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1.12rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.1rem; }
@media (max-width: 520px) {
  .hero-cta .btn { width: 100%; }
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.2rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-points .icon { width: 1rem; height: 1rem; color: var(--blue-bright); }

/* ---------- Hero visual: system console ---------- */
.hero-visual { position: relative; }
.console {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 90px -25px var(--blue-glow);
  overflow: hidden;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.console-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.console-title { margin-left: 0.6rem; color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.02em; }

.console-body { display: grid; grid-template-columns: 54px minmax(0, 1fr); }
.console-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 0;
  border-right: 1px solid var(--line);
}
.console-nav li {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  color: var(--text-dim);
}
.console-nav li.active { background: var(--blue-soft); color: var(--blue-bright); }
.console-nav .icon { width: 1.05rem; height: 1.05rem; }

.console-main { display: grid; gap: 0.8rem; align-content: start; padding: 1rem; min-width: 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.stat {
  display: grid; gap: 0.1rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.stat-label { color: var(--text-dim); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stat-value { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-delta { color: var(--success); font-size: 0.7rem; }

.chart-card {
  padding: 0.85rem 0.95rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; color: var(--text-muted); font-size: 0.75rem; }
.live {
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-bright);
  font-size: 0.68rem;
  font-weight: 600;
}
.bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; }
.bars span {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--blue-bright), rgba(26, 102, 255, 0.22));
}
.bars span:nth-child(1)  { height: 34%; }
.bars span:nth-child(2)  { height: 48%; }
.bars span:nth-child(3)  { height: 42%; }
.bars span:nth-child(4)  { height: 61%; }
.bars span:nth-child(5)  { height: 55%; }
.bars span:nth-child(6)  { height: 72%; }
.bars span:nth-child(7)  { height: 66%; }
.bars span:nth-child(8)  { height: 80%; }
.bars span:nth-child(9)  { height: 74%; }
.bars span:nth-child(10) { height: 90%; }
.bars span:nth-child(11) { height: 84%; }
.bars span:nth-child(12) { height: 100%; }

.task-list { display: grid; gap: 0.5rem; }
.task {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.task .tick {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--surface-3);
  color: transparent;
}
.task.done .tick { border-color: var(--blue); background: var(--blue); color: #fff; }
.task .tick .icon { width: 0.65rem; height: 0.65rem; stroke-width: 3; }
.task .line { height: 7px; border-radius: 4px; background: var(--surface-3); }
.task .line.w-60 { width: 60%; }
.task .line.w-45 { width: 45%; }
.task .line.w-72 { width: 72%; }

.float-chip {
  position: absolute;
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(23, 27, 33, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  font-size: 0.78rem;
  font-weight: 500;
  animation: float 7s ease-in-out infinite;
}
.float-chip .icon { width: 1rem; height: 1rem; color: var(--blue-bright); }
.chip-1 { top: -18px; right: -6px; }
.chip-2 { bottom: 22%; left: -14px; animation-delay: -2.3s; }
.chip-3 { bottom: -20px; right: 9%; animation-delay: -4.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (max-width: 520px) {
  .chip-2 { left: -4px; }
  .chip-1 { right: 0; }
  .stat-value { font-size: 0.95rem; }
}

/* ---------- Industries ---------- */
.industries { padding: 3rem 0; }
.industries-inner { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .industries-inner { grid-template-columns: 0.8fr 1.6fr; align-items: center; gap: 3rem; }
}
.industries h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: rgba(77, 141, 255, 0.5); color: var(--text); }

/* ---------- Module cards ---------- */
.card-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 141, 255, 0.55);
  box-shadow: 0 24px 48px -28px var(--blue-glow);
}
.card-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(77, 141, 255, 0.25);
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue-bright);
}
.card h3 { font-size: 1.12rem; letter-spacing: -0.015em; }
.card p { margin-top: 0.55rem; color: var(--text-muted); font-size: 0.96rem; }

/* stagger cards in each row */
.card-grid .reveal:nth-child(4n + 2) { transition-delay: 0.07s; }
.card-grid .reveal:nth-child(4n + 3) { transition-delay: 0.14s; }
.card-grid .reveal:nth-child(4n + 4) { transition-delay: 0.21s; }

/* ---------- Why AOS ---------- */
.why-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 980px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.why-list { display: grid; gap: 1.6rem; margin-top: 2.4rem; }
.why-item { display: grid; grid-template-columns: 46px 1fr; gap: 1.1rem; }
.why-item h3 { font-size: 1.1rem; }
.why-item p { margin-top: 0.35rem; color: var(--text-muted); }

/* Hub diagram */
.hub {
  --r: 140px;
  --node: 56px;
  position: relative;
  width: calc(var(--r) * 2 + var(--node));
  aspect-ratio: 1;
  margin-inline: auto;
}
@media (max-width: 420px) { .hub { --r: 108px; --node: 50px; } }

.hub-ring {
  position: absolute;
  inset: calc(var(--node) / 2);
  border: 1px dashed var(--line);
  border-radius: 50%;
}
.hub-ring.inner { inset: calc(var(--node) / 2 + 46px); border-style: solid; border-color: var(--line-soft); }
.hub-core {
  position: absolute;
  top: 50%; left: 50%;
  display: grid; place-items: center;
  width: 108px; height: 108px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #4d8dff, #1a66ff 55%, #0d3cb0);
  box-shadow: 0 0 70px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.hub-node {
  position: absolute;
  top: 50%; left: 50%;
  display: grid; place-items: center;
  width: var(--node); height: var(--node);
  margin: calc(var(--node) / -2) 0 0 calc(var(--node) / -2);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--blue-bright);
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.9);
}
.hub-node:nth-of-type(1) { --a: 0deg; }
.hub-node:nth-of-type(2) { --a: 60deg; }
.hub-node:nth-of-type(3) { --a: 120deg; }
.hub-node:nth-of-type(4) { --a: 180deg; }
.hub-node:nth-of-type(5) { --a: 240deg; }
.hub-node:nth-of-type(6) { --a: 300deg; }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 1.1rem; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step-num {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #7fb0ff, #1a66ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.step h3 { font-size: 1.2rem; }
.step p { margin-top: 0.55rem; color: var(--text-muted); }
.steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Final call to action ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid rgba(77, 141, 255, 0.35);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(26, 102, 255, 0.35), transparent 65%),
    linear-gradient(180deg, var(--surface), var(--bg-elev));
  text-align: center;
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; font-size: clamp(1.8rem, 4.4vw, 3rem); }
.cta-band p { max-width: 52ch; margin: 1rem auto 0; color: var(--text-muted); font-size: 1.08rem; }
.cta-band .hero-cta { justify-content: center; }
