:root {
  --bg: #0b141a;
  --bg-alt: #080e14;
  --panel: #1f2c34;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.1);
  --cta: #3080ff;
  --cta-hover: #54a2ff;
  --accent: #60a5fa;
  --cyan: #22d3ee;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: Inter, "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.shell {
  max-width: 90rem;
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 20, 26, 0.88);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  opacity: 0.9;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-link {
  color: #a1a1aa;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  color: #fff;
}

.brand img {
  height: 2rem;
  width: auto;
  display: block;
  border-radius: 0.35rem;
}

.brand .dot {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--cta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--cta-hover);
}

.btn-ghost,
.btn-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover,
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
}

/* Hero video + rail */
.hero-grid {
  display: grid;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.video-frame {
  position: relative;
  background: #050505;
  min-height: 16rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  height: 100%;
}

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.video-frame video.is-ready {
  opacity: 1;
}

.video-frame .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mute-btn {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.rail {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 1.25rem 1.35rem 1.5rem;
}

@media (min-width: 1024px) {
  .rail {
    border-top: 0;
    border-left: 1px solid var(--line);
    height: 100%;
    min-height: 100%;
    padding: 1.35rem 1.5rem 1.6rem;
  }
}

.rail .label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  flex-shrink: 0;
}

.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rail li {
  border-bottom: 1px solid var(--line);
  flex: 1;
  display: flex;
}

.rail a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 0.1rem;
  text-decoration: none;
  color: #e4e4e7;
  font-size: 0.92rem;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.rail a:hover {
  color: #93c5fd;
  padding-left: 0.25rem;
}

.rail .code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #71717a;
}

.hero-copy {
  padding: 2.5rem 1.5rem 3rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .hero-copy {
    padding: 3rem 3.5rem 3.5rem;
  }
}

.hero-copy-grid {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .hero-copy-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
    align-items: start;
  }
}

.hero-copy-main,
.hero-copy-side {
  min-width: 0;
}

.ey-accent-bar {
  width: 3rem;
  height: 4px;
  margin-bottom: 1.1rem;
  background: linear-gradient(90deg, #3080ff, #818cf8, #22d3ee);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

h1 {
  margin: 0.85rem 0 0;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.15;
  font-weight: 700;
  max-width: none;
}

.hero-copy h1 {
  max-width: 22ch;
}

@media (min-width: 1024px) {
  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.1rem, 3.2vw, 3.25rem);
  }
}

h1 .grad {
  background: linear-gradient(92deg, #60a5fa, #93c5fd 45%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0;
  max-width: none;
  color: #a1a1aa;
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (min-width: 1024px) {
  .hero-copy-side .lead {
    padding-top: 2.4rem;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.admin-note {
  margin: 1rem 0 0;
  color: #71717a;
  font-size: 0.82rem;
}

.ey-rise {
  animation: ey-rise 0.9s ease-out both;
}

.ey-rise-delay {
  animation: ey-rise 0.9s ease-out 0.12s both;
}

.ey-rise-delay-2 {
  animation: ey-rise 0.9s ease-out 0.24s both;
}

@keyframes ey-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Sections */
.section {
  padding: 3.5rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .section {
    padding: 4.5rem 3.5rem;
  }
}

.section.alt {
  background: var(--bg-alt);
}

.section h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  max-width: 22ch;
}

.sub {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

/* Workflow */
.flow {
  margin-top: 2rem;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
  }

  .flow::before {
    content: "";
    position: absolute;
    top: 2.1rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(48, 128, 255, 0.55),
      rgba(34, 211, 238, 0.55),
      transparent
    );
    background-size: 200% 100%;
    animation: march 2.8s linear infinite;
    z-index: 0;
  }
}

@keyframes march {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 200% 0;
  }
}

.flow article {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.15rem 1.1rem 1.25rem;
  min-height: 11rem;
}

.flow .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.25rem;
  background: var(--cta);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.flow h3 {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
}

.flow p {
  margin: 0.55rem 0 0;
  color: #a1a1aa;
  font-size: 0.9rem;
  line-height: 1.5;
}

.flow .mono {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #71717a;
  text-transform: uppercase;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
}

.live-pill i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--cta);
  box-shadow: 0 0 0 0 rgba(48, 128, 255, 0.7);
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Grids */
.grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.apps,
.wrap,
.industries {
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.grid article {
  background: rgba(31, 44, 52, 0.72);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.grid article .media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050505;
  isolation: isolate;
}

.grid article .media img,
.grid article .media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.grid article:hover .media img {
  transform: scale(1.04);
}

.grid article .media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(8, 14, 20, 0.92));
  pointer-events: none;
}

.grid article .body {
  padding: 1rem 1.15rem 1.2rem;
}

.grid article h3 {
  margin: 0;
  font-size: 1.02rem;
}

.grid article p {
  margin: 0.55rem 0 0;
  color: #a1a1aa;
  font-size: 0.9rem;
  line-height: 1.5;
}

.grid.apps article .media {
  aspect-ratio: 16 / 9;
}

.split {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
  }
}

.split-visual {
  position: relative;
  min-height: 16rem;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #050505;
}

.split-visual img,
.split-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bagan {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
  align-items: start;
}

@media (min-width: 900px) {
  .bagan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bagan figure {
  margin: 0;
  border: 1px solid var(--line);
  background: #050505;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-width: 0;
}

.bagan img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  background: #050505;
  flex: 0 0 auto;
}

.bagan figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.85rem;
  color: #a1a1aa;
  border-top: 1px solid var(--line);
  background: rgba(31, 44, 52, 0.95);
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.bagan figcaption strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.rail-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}

.apps-line {
  color: var(--cyan) !important;
  font-family: var(--font-mono);
  font-size: 0.72rem !important;
  letter-spacing: 0.04em;
}

.fine {
  margin: 1rem 0 0;
  color: #71717a;
  font-size: 0.8rem;
  max-width: 42rem;
  line-height: 1.5;
}

.industries article.more {
  border-style: dashed;
  background: rgba(48, 128, 255, 0.08);
}

/* Steps list */
.steps {
  margin: 1.75rem 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps li {
  list-style: none;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 0;
}

.steps .n {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  padding-top: 0.15rem;
}

.steps h3 {
  margin: 0;
  font-size: 1.02rem;
}

.steps p {
  margin: 0.35rem 0 0;
  color: #a1a1aa;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Statement break */
.statement {
  position: relative;
  min-height: 22rem;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.statement img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statement .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.72),
    rgba(0, 0, 0, 0.9)
  );
}

.statement .inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  text-align: center;
}

.statement .rule {
  width: 4rem;
  height: 0.25rem;
  margin: 0 auto 1.25rem;
  background: var(--cta);
}

.statement blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.35;
  font-weight: 700;
}

.statement cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a1a1aa;
}

/* Closing band */
.band {
  position: relative;
  background: var(--cta);
  color: #fff;
  padding: 3.25rem 1.5rem;
  overflow: hidden;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(48, 128, 255, 0.92), rgba(8, 14, 20, 0.78)),
    url("/cover-assets/industries/more.jpg") center / cover no-repeat;
  z-index: 0;
}

.band .shell {
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .band {
    padding: 3.75rem 3.5rem;
  }
}

.band h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  max-width: 20ch;
}

.band p {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  opacity: 0.92;
  line-height: 1.6;
}

.band .cta-row .btn-primary {
  background: #fff;
  color: #0b141a;
}

.band .cta-row .btn-secondary {
  border-color: rgba(255, 255, 255, 0.55);
}

.foot {
  border-top: 1px solid var(--line);
  background: #070d12;
  color: #a1a1aa;
}

.foot-hairline {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(48, 128, 255, 0.55) 20%,
    rgba(34, 211, 238, 0.45) 50%,
    rgba(48, 128, 255, 0.55) 80%,
    transparent 100%
  );
}

.foot-inner {
  display: grid;
  gap: 2.25rem 1.75rem;
  padding: 3rem 1.5rem 2.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .foot-inner {
    grid-template-columns: 1.35fr 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .foot-inner {
    grid-template-columns: 1.55fr 1fr 1fr 1fr 1fr;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }
}

.foot-brand .brand {
  margin-bottom: 0.15rem;
}

.foot-tagline {
  margin: 0.9rem 0 0;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #a1a1aa;
}

.foot-company {
  margin: 1.1rem 0 0;
  max-width: 28rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #71717a;
}

.foot-company strong {
  color: #e4e4e7;
  font-weight: 600;
}

.foot-note {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #52525b;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.foot-col h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e4e4e7;
}

.foot-col a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.foot-col a:hover {
  color: #fff;
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.05rem 1.5rem 1.5rem;
  border-top: 1px solid var(--line);
  color: #71717a;
  font-size: 0.78rem;
}

.foot-bar-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.foot-bar-links a {
  color: #a1a1aa;
  text-decoration: none;
}

.foot-bar-links a:hover {
  color: #fff;
}

@media (min-width: 1100px) {
  .foot-bar {
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }
}

@media (max-width: 719px) {
  .nav-actions .nav-link[href^="#"] {
    display: none;
  }
}
