:root {
  --bg: #040816;
  --bg-2: #07142d;
  --card: #0b1734;
  --card-2: #0f1c3a;
  --text: #f4f7fc;
  --muted: #9fb3d9;
  --muted-2: #6f83aa;
  --border: rgba(255,255,255,.085);
  --cyan: #5ee7ff;
  --violet: #7b6cff;
  --yellow: #f5c96b;
  --radius: 28px;
  --container: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; }

.background-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 10%, rgba(94,231,255,.12), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(123,108,255,.11), transparent 34%),
    linear-gradient(180deg, #040816, #050918 45%, #030611);
  animation: backgroundDrift 20s ease-in-out infinite alternate;
}

.site-header {
  height: 88px;
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(4,8,22,.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  color: #dce8ff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .22em;
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-weight: 650;
}

.nav a,
.footer a {
  text-decoration: none;
  transition: color .2s ease;
}

.nav a:hover,
.footer a:hover { color: var(--cyan); }

.nav-cta {
  text-decoration: none;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #03101f;
  font-weight: 900;
  padding: 18px 28px;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(91,125,255,.24);
}

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 118px 56px;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, .95fr);
  gap: 76px;
  align-items: center;
}

.eyebrow {
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: .24em;
  font-weight: 900;
  margin: 0 0 24px;
}

.hero h1,
.section h2,
.cta-section h2 {
  color: var(--text);
  letter-spacing: -0.06em;
  line-height: .98;
  margin: 0;
}

.hero h1 {
  font-size: clamp(58px, 7vw, 100px);
  max-width: 780px;
}

.section h2 { font-size: clamp(44px, 5vw, 74px); }

.hero-subtitle,
.section-copy p,
.section-heading p,
.cta-section p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.hero-subtitle {
  max-width: 700px;
  margin: 36px 0 0;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
}

.btn {
  min-height: 58px;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  color: #03101f;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 18px 50px rgba(91,125,255,.22);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}

.btn-secondary:hover {
  border-color: rgba(94,231,255,.38);
  box-shadow: 0 0 36px rgba(94,231,255,.1);
}

/* Hero Dashboard */

.nexus-dashboard {
  background: linear-gradient(180deg, rgba(11,23,52,.92), rgba(7,14,32,.96));
  border: 1px solid var(--border);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.46), 0 0 90px rgba(94,231,255,.08);
  position: relative;
}

.nexus-dashboard::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(94,231,255,.18), transparent 35%, rgba(123,108,255,.22));
  opacity: .55;
  pointer-events: none;
}

.dashboard-top {
  height: 76px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
  font-weight: 900;
}

.concept-pill {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid rgba(94,231,255,.35);
  background: rgba(94,231,255,.1);
  padding: 9px 15px;
  border-radius: 999px;
}

.dashboard-chart {
  height: 260px;
  padding: 28px;
  position: relative;
  z-index: 1;
}

.dashboard-chart svg {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.025);
  border-radius: 18px;
}

.grid-line {
  stroke: rgba(255,255,255,.06);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawLine 3.8s ease-in-out infinite alternate;
}

.chart-one {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(94,231,255,.55));
}

.chart-two {
  stroke: var(--violet);
  animation-delay: .7s;
  filter: drop-shadow(0 0 10px rgba(123,108,255,.45));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 28px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.dash-card,
.layer-card,
.industry-card,
.source-card,
.comparison-panel,
.pipeline-panel,
.outcome-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15,28,58,.72), rgba(9,17,38,.72));
  border-radius: 24px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.dash-card:hover,
.layer-card:hover,
.industry-card:hover,
.outcome-card:hover {
  transform: translateY(-6px);
  border-color: rgba(94,231,255,.28);
}

.dash-card {
  min-height: 124px;
  padding: 18px;
}

.dash-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dash-card p {
  color: #b7c7e6;
  font-size: 14px;
  margin: 10px 0 0;
}

.bar,
.mini-bar {
  height: 8px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  margin-top: 18px;
  overflow: hidden;
}

.bar i,
.mini-bar i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  animation: barPulse 2.6s ease-in-out infinite alternate;
}

.status-dots,
.mini-timeline,
.risk-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.status-dots i,
.mini-timeline i,
.risk-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(94,231,255,.7);
}

.status-dots i:nth-child(2),
.mini-timeline i:nth-child(2),
.risk-dots i:nth-child(2) { background: var(--violet); }

.status-dots i:nth-child(3),
.mini-timeline i:nth-child(3),
.risk-dots i:nth-child(3) { background: var(--yellow); }

.tag {
  display: inline-block;
  color: var(--cyan) !important;
  background: rgba(94,231,255,.09);
  border: 1px solid rgba(94,231,255,.16);
  border-radius: 8px;
  padding: 6px 8px;
  margin-right: 6px !important;
}


/* Problem */

.problem {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.section-copy p {
  max-width: 660px;
}

.architecture-visual {
  display: grid;
  grid-template-columns: 1fr 160px 1fr;
  gap: 18px;
  align-items: center;
}

.source-card {
  padding: 30px;
}

.source-card h3,
.panel-label {
  margin: 0 0 22px;
  color: var(--cyan);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
}

.source-card ul,
.comparison-panel ul,
.nexus-orb ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.source-card li,
.comparison-panel li {
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nexus-core {
  height: 160px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(94,231,255,.2), transparent 62%),
    linear-gradient(135deg, rgba(94,231,255,.12), rgba(123,108,255,.12));
  border: 1px solid rgba(94,231,255,.32);
  box-shadow: 0 0 70px rgba(94,231,255,.18);
  position: relative;
}

.nexus-core span {
  letter-spacing: .28em;
  font-weight: 900;
}

/* How Nexus Works */

.how-nexus {
  max-width: 1600px;
}

.section-heading {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 70px;
}

.section-heading p {
  margin: 24px auto 0;
  max-width: 780px;
}

.nexus-pipeline {
  min-height: 560px;
  display: grid;
  grid-template-columns: 320px minmax(420px, 1fr) 340px;
  gap: 26px;
  align-items: stretch;
}

.pipeline-panel {
  padding: 28px;
  min-height: 520px;
}

.source-row {
  width: 100%;
  display: block;
  text-align: left;
  margin: 0 0 12px;
  padding: 16px 18px;
  border-radius: 16px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.source-row:hover,
.source-row.active {
  transform: translateX(6px);
  border-color: rgba(94,231,255,.35);
  background: rgba(94,231,255,.075);
}

.source-row span,
.outcome-card span {
  display: block;
  font-weight: 900;
  margin-bottom: 6px;
}

.source-row small,
.outcome-card small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.pipeline-centre {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(94,231,255,.11), transparent 32%),
    rgba(255,255,255,.018);
  overflow: hidden;
}

.pipeline-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pipe {
  fill: none;
  stroke: rgba(159,179,217,.18);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.pipe.active {
  stroke: url(#unused);
}

.pipe-a,
.pipe.active {
  stroke: var(--cyan);
  stroke-dasharray: 8 16;
  animation: pipeMove 2.4s linear infinite;
  filter: drop-shadow(0 0 8px rgba(94,231,255,.42));
}

.pipe-b { stroke: rgba(123,108,255,.32); }
.pipe-c { stroke: rgba(94,231,255,.24); }
.pipe-d { stroke: rgba(245,201,107,.28); }
.pipe-e { stroke: rgba(159,179,217,.24); }
.pipe-f { stroke: rgba(123,108,255,.24); }

.nexus-orb {
  width: 290px;
  min-height: 290px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 38px;
  background:
    radial-gradient(circle at 50% 35%, rgba(94,231,255,.24), transparent 58%),
    linear-gradient(135deg, rgba(94,231,255,.12), rgba(123,108,255,.12));
  border: 1px solid rgba(94,231,255,.35);
  box-shadow: 0 0 90px rgba(94,231,255,.16), inset 0 0 45px rgba(255,255,255,.04);
  animation: orbBreathe 5s ease-in-out infinite;
}

.nexus-orb span {
  display: block;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: .3em;
  margin-left: .3em;
}

.nexus-orb small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.nexus-orb ul {
  margin-top: 18px;
}

.nexus-orb li {
  color: #c7d6f2;
  font-size: 13px;
  padding: 5px 0;
}

.outcome-card {
  padding: 20px;
  margin-bottom: 14px;
}

.outcome-card.active {
  border-color: rgba(94,231,255,.35);
  background: rgba(94,231,255,.075);
  box-shadow: 0 0 50px rgba(94,231,255,.08);
}

/* Platform / grids */

.layer-grid,
.industry-grid,
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.outcome-grid {
  grid-template-columns: repeat(3, 1fr);
}

.layer-card,
.industry-card {
  min-height: 300px;
  padding: 38px;
}

.layer-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #03101f;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  margin-bottom: 54px;
}

.layer-card h3,
.industry-card h3,
.comparison-panel h3 {
  font-size: 24px;
  margin: 0 0 22px;
}

.layer-card p,
.industry-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

/* Why */

.why {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 70px;
  align-items: center;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
}

.comparison-panel {
  min-height: 390px;
  padding: 40px;
}

.comparison-panel.active {
  border-color: rgba(94,231,255,.32);
  box-shadow: 0 0 70px rgba(94,231,255,.08);
}

.comparison-arrow {
  color: var(--cyan);
  font-size: 34px;
  text-align: center;
}

/* CTA / footer */

.cta-section {
  max-width: calc(var(--container) - 112px);
  margin: 80px auto 0;
  padding: 70px;
  border: 1px solid rgba(94,231,255,.22);
  border-radius: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  background:
    radial-gradient(circle at 10% 10%, rgba(94,231,255,.12), transparent 36%),
    linear-gradient(135deg, rgba(11,23,52,.8), rgba(9,10,28,.9));
}

.cta-section h2 {
  font-size: clamp(42px, 4vw, 64px);
}

.cta-section p {
  max-width: 760px;
  margin: 22px 0 0;
}

.footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer div {
  display: flex;
  gap: 28px;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

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

/* Animations */

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes barPulse { from { opacity: .65; } to { opacity: 1; } }
@keyframes backgroundDrift { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(14deg); } }
@keyframes pipeMove { to { stroke-dashoffset: -48; } }
@keyframes orbBreathe {
  0%, 100% { box-shadow: 0 0 70px rgba(94,231,255,.13), inset 0 0 45px rgba(255,255,255,.04); }
  50% { box-shadow: 0 0 120px rgba(94,231,255,.22), inset 0 0 65px rgba(255,255,255,.055); }
}

/* Responsive */

@media (max-width: 1200px) {
  .nav { display: none; }

  .hero,
  .problem,
  .why,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .layer-grid,
  .industry-grid,
  .credibility-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .architecture-visual {
    grid-template-columns: 1fr;
  }

  .nexus-pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline-panel,
  .pipeline-centre {
    min-height: auto;
  }

  .pipeline-centre {
    height: 420px;
  }

  .comparison {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .comparison-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 700px) {
  .site-header { padding: 0 22px; }
  .nav-cta { display: none; }

  .section,
  .hero {
    padding: 72px 24px;
  }

  .hero h1 { font-size: 48px; }

  .hero-subtitle,
  .section-copy p,
  .section-heading p {
    font-size: 18px;
  }

  .dashboard-grid,
  .layer-grid,
  .industry-grid,
  .credibility-strip {
    grid-template-columns: 1fr;
  }

  .nexus-orb {
    width: 240px;
    min-height: 240px;
  }

  .cta-section {
    margin: 40px 24px 0;
    padding: 36px 24px;
  }

  .footer {
    flex-direction: column;
    gap: 24px;
    padding: 40px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
