:root {
  --bg: #050812;
  --bg-soft: #0b1020;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f7f9ff;
  --muted: #a9b3c7;
  --line: rgba(255, 255, 255, 0.13);
  --blue: #4f8cff;
  --gold: #d7b56d;
  --cyan: #74e8ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(79, 140, 255, 0.23), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(215, 181, 109, 0.16), transparent 30rem),
    linear-gradient(180deg, #050812 0%, #070b16 45%, #04060c 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
.site-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.nav {
  position: sticky; top: 16px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 0 48px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 22px;
  background: rgba(5, 8, 18, 0.76); backdrop-filter: blur(22px);
  box-shadow: 0 12px 50px rgba(0,0,0,0.25);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 12px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  color: #07101f;
}
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { color: var(--text) !important; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 24px; }

.section, .hero, .cta { margin: 96px 0; }
.section-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--cyan); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 14px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(44px, 7vw, 86px); line-height: 0.94; letter-spacing: -0.075em; margin-bottom: 24px; }
h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1; letter-spacing: -0.055em; margin-bottom: 16px; }
h3 { font-size: 20px; letter-spacing: -0.03em; margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.65; }
.hero-text { font-size: 19px; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 700; border: 1px solid var(--line); transition: transform 0.2s ease, border-color 0.2s ease; }
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.35); }
.btn-primary { background: linear-gradient(135deg, var(--blue), #81e7ff); color: #041020; border: 0; box-shadow: 0 20px 60px rgba(79, 140, 255, 0.25); }
.btn-secondary { background: var(--panel); color: var(--text); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { padding: 9px 12px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; }

.hero-visual { position: relative; min-height: 520px; border: 1px solid var(--line); border-radius: 32px; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)); box-shadow: var(--shadow); }
.hero-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle, black 0%, transparent 74%); }
.orb { position: absolute; width: 220px; height: 220px; border-radius: 999px; filter: blur(30px); opacity: 0.5; }
.orb-one { background: var(--blue); top: 60px; right: 34px; }
.orb-two { background: var(--gold); bottom: 22px; left: 28px; }
.dashboard-card, .node { position: absolute; border: 1px solid var(--line); background: rgba(6, 10, 22, 0.78); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.main-card { width: 76%; left: 12%; top: 18%; border-radius: 24px; padding: 20px; }
.card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--text); }
.dot { width: 9px; height: 9px; border-radius: 999px; background: var(--blue); opacity: 0.75; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric-grid div { padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.07); border: 1px solid var(--line); }
.metric-grid span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.metric-grid strong { font-size: 26px; letter-spacing: -0.04em; }
.flow-line { display: flex; gap: 10px; margin-top: 18px; }
.flow-line span { height: 8px; flex: 1; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--cyan)); opacity: 0.75; }
.node { padding: 12px 16px; border-radius: 999px; color: var(--text); font-size: 14px; }
.node-a { left: 8%; bottom: 18%; } .node-b { right: 7%; top: 10%; } .node-c { right: 11%; bottom: 20%; } .node-d { left: 10%; top: 12%; }

.section-heading { max-width: 760px; margin-bottom: 34px; }
.cards { display: grid; gap: 18px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card, .case-card, .step, .solution-grid div { border: 1px solid var(--line); border-radius: 24px; padding: 24px; background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)); min-height: 190px; }
.icon { display: inline-flex; color: var(--gold); margin-bottom: 28px; font-weight: 800; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; padding: 38px; border: 1px solid var(--line); border-radius: 32px; background: rgba(255,255,255,0.045); }
.pain-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.pain-grid span { padding: 13px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.07); color: var(--text); }
.case-card { min-height: 170px; position: relative; overflow: hidden; }
.case-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 999px; background: rgba(79, 140, 255, 0.14); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(79, 140, 255, 0.18); color: var(--cyan); font-weight: 800; margin-bottom: 48px; }
.outcomes { padding: 34px; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(90deg, rgba(79,140,255,0.12), rgba(215,181,109,0.08)); }
.outcome-marquee { display: flex; flex-wrap: wrap; gap: 12px; }
.outcome-marquee span { font-size: clamp(22px, 3vw, 38px); font-weight: 800; letter-spacing: -0.05em; padding-right: 18px; color: var(--text); }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.solution-grid div { min-height: 110px; display: flex; align-items: flex-end; font-weight: 700; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 42px; border: 1px solid var(--line); border-radius: 34px; background: linear-gradient(135deg, rgba(79,140,255,0.19), rgba(255,255,255,0.055)); box-shadow: var(--shadow); }
.cta h2 { max-width: 850px; }
.footer { border-top: 1px solid var(--line); padding: 36px 0 54px; display: flex; justify-content: space-between; gap: 32px; color: var(--muted); }
.footer strong { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.footer-links a:hover { color: var(--text); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .site-shell { width: min(100% - 28px, 1180px); }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(5,8,18,0.96); flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .section-grid, .split, .cards.four, .cards.two, .timeline, .solution-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; }
  .footer, .cta { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .section, .hero, .cta { margin: 64px 0; }
  .main-card { width: 88%; left: 6%; }
  .metric-grid { grid-template-columns: 1fr; }
  .node { display: none; }
}

/* Expandable use-case gallery */
.case-grid { align-items: start; }
.expandable-case {
  cursor: pointer;
  transition: grid-column 0.25s ease, min-height 0.25s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.expandable-case:hover,
.expandable-case:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(116, 232, 255, 0.45);
  outline: none;
}
.expandable-case.is-expanded {
  grid-column: 1 / -1;
  min-height: 0;
  cursor: default;
  background: linear-gradient(145deg, rgba(79, 140, 255, 0.13), rgba(255, 255, 255, 0.035));
}
.expandable-case.is-expanded:hover { transform: none; }
.case-summary { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.case-hint {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.055);
}
.case-gallery {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transition: grid-template-rows 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
}
.case-gallery > * { overflow: hidden; }
.expandable-case.is-expanded .case-gallery {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
  margin-top: 28px;
}
.case-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.case-gallery-header h3 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 8px; }
.case-close {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.case-close:hover { border-color: rgba(255,255,255,0.35); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.gallery-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(3, 6, 14, 0.65);
  box-shadow: 0 18px 50px rgba(0,0,0,0.26);
}
.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.gallery-grid figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .expandable-case.is-expanded { grid-column: auto; }
  .case-summary, .case-gallery-header { flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; }
  .case-hint, .case-close { align-self: flex-start; }
}
