:root {
  --bg: #050810;
  --bg-elevated: #0c1220;
  --surface: #121a2e;
  --text: #e8ecf4;
  --text-muted: #8b95a8;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --font: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  z-index: 1000;
  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");
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 16, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  border-radius: 10px;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent) !important;
  border: 1px solid rgba(0, 212, 170, 0.35);
}

.nav-cta:hover {
  background: rgba(0, 212, 170, 0.22);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.nav-panel:not([hidden]) {
  border-bottom: 1px solid var(--border);
  background: rgba(5, 8, 16, 0.98);
  padding: 1rem 1.25rem 1.5rem;
}

.nav-mobile {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}

.nav-mobile a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile .nav-cta {
  margin-top: 0.5rem;
  text-align: center;
  border: 1px solid rgba(0, 212, 170, 0.35);
  border-radius: 999px;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 12vw, 7rem) 0 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 140vw);
  height: min(500px, 80vw);
  background: radial-gradient(ellipse, rgba(0, 212, 170, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  background: linear-gradient(105deg, var(--accent) 0%, #5eead4 50%, var(--text) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 34rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
  box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -8px rgba(0, 212, 170, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 560px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metric-suffix {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

.metric-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 6rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.card-media {
  margin: -1.75rem -1.75rem 1.25rem;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card:hover {
  border-color: rgba(0, 212, 170, 0.25);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.band {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-block: 1px solid var(--border);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

@media (max-width: 900px) {
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.split-lead {
  color: var(--text-muted);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.code-window {
  background: #080c14;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.code-bar {
  display: flex;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.code-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.code-bar span:nth-child(2) {
  background: #febc2e;
}

.code-bar span:nth-child(3) {
  background: #28c840;
}

.code-window pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
}

.code-window .k {
  color: #c792ea;
}

.code-window .s {
  color: #c3e88d;
}

.code-window .fn {
  color: #82aaff;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.video-tile {
  aspect-ratio: 9 / 16;
  max-height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
}

.video-tile-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-tile-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 16, 0.15) 0%,
    rgba(5, 8, 16, 0.35) 40%,
    rgba(5, 8, 16, 0.88) 100%
  );
}

.video-tile span {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.video-tile--static .video-tile-media {
  object-position: top center;
}

.company-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.company-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.company-card > p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.company-facts {
  margin: 0;
}

.company-facts > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.company-facts dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.company-facts dd {
  margin: 0;
}

.contact {
  text-align: center;
  padding-bottom: clamp(5rem, 12vw, 8rem);
}

.contact-inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.contact-inner > p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: var(--text-muted);
}

.contact-note {
  margin-top: 1rem !important;
  font-size: 0.8125rem !important;
  opacity: 0.7;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-meta {
  font-family: var(--mono);
  font-size: 0.8125rem;
}
