:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #202020;
  --panel-soft: #171717;
  --text: #f4f4f4;
  --muted: #aaa;
  --teal: #00f1ed;
  --teal-dark: #003b3b;
  --line: #333;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: #fff;
  color: #000;
  transform: translateY(-110%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(1100px, calc(100% - 5rem));
  height: 84px;
  margin: 32px auto 0;
  border: 1px solid #151515;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  position: relative;
  z-index: 10;
}
.site-header--minimal { grid-template-columns: 1fr; }
.site-header--minimal:has(.site-nav) { grid-template-columns: 220px 1fr; }

.brand { display: inline-flex; align-items: center; padding-left: 24px; }
.brand img { width: 171px; height: auto; }
.site-nav { display: flex; justify-content: center; gap: 32px; }
.site-nav a { color: #d1d1d1; padding: 29px 0 10px; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { color: var(--teal); border-color: var(--teal); }
.header-cta { justify-self: end; margin-right: -130px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid var(--teal);
  border-radius: 9px;
  background: linear-gradient(180deg, #003c3c, #002526);
  color: #fff;
  font-weight: 500;
}
.button:hover { color: #fff; background: #005251; }
.button--small { min-height: 42px; padding-inline: 20px; font-size: 14px; }

.menu-toggle { display: none; background: none; color: #fff; border: 0; width: 48px; height: 48px; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

main { min-height: 60vh; }
.section { width: min(var(--max), calc(100% - 5rem)); margin: 0 auto; padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-title { margin: 0 0 38px; font-size: clamp(2rem, 3vw, 3rem); text-align: center; line-height: 1.15; }
.section-subtitle { color: #bbb; text-align: center; margin: -24px auto 42px; max-width: 680px; }

.hero { width: min(var(--max), calc(100% - 5rem)); margin: 0 auto; padding: 64px 0 38px; text-align: center; }
.hero .eyebrow { color: #a9a9a9; margin-bottom: 52px; }
.hero h1 { font-size: clamp(2rem, 4vw, 4rem); margin: 0 0 20px; letter-spacing: -.03em; }
.hero h1 { display: none; }
.hero h1 .desktop-kicker { display: inline; }
.hero p { color: #aaa; font-size: 19px; margin: 0 auto 28px; }
.hero-dashboard { width: 100%; margin: 65px auto 0; border: 1px solid var(--teal); border-bottom: 0; border-radius: 10px 10px 0 0; overflow: hidden; }

.partner-row { display: flex; justify-content: center; align-items: center; gap: 54px; flex-wrap: wrap; }
.partner-row img { max-width: 175px; max-height: 58px; width: auto; filter: grayscale(1) brightness(2); }

.product-grid, .reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card { border: 1px solid var(--teal); border-radius: 8px; padding: 14px 14px 26px; background: var(--panel); text-align: center; }
.product-card img { width: 100%; aspect-ratio: 1.64; object-fit: cover; border-radius: 6px; }
.product-card h3 { margin: 24px 0 8px; font-size: 17px; }
.product-card p, .edge-card p, .reason-card p { color: #c2c2c2; font-size: 14px; margin: 0; }

.edge-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.edge-intro h2 { font-size: 3rem; margin: 0; }
.edge-intro p { margin: 0; color: #ddd; }
.edge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.edge-card { min-height: 250px; padding: 32px 26px; background: var(--panel-soft); border: 1px solid #3a3a3a; border-radius: 8px; text-align: center; }
.edge-card img { width: 94px; height: 70px; object-fit: contain; margin: 0 auto 30px; }
.edge-card h3 { font-size: 16px; margin: 0 0 10px; }

.about-copy { text-align: center; color: #ddd; margin: -22px 0 42px; }
.use-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; max-width: 850px; margin: 0 auto; }
.use-card { text-align: center; color: #bbb; font-size: 12px; }
.use-card img { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 14px; border: 1px solid var(--teal); border-radius: 8px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 890px; margin: 0 auto; }
.metric { min-height: 128px; padding: 20px 12px; border: 1px solid var(--teal); border-radius: 6px; text-align: center; background: linear-gradient(180deg, #111 0%, #003f3d 55%, #008b86 100%); }
.metric strong { display: block; font-size: 25px; margin-bottom: 12px; }
.metric span { font-size: 14px; }

.reason-card { min-height: 230px; padding: 28px 30px; background: var(--panel); border: 1px solid #333; border-radius: 8px; }
.reason-card img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 20px; filter: grayscale(1) brightness(2.2); }
.reason-card h3 { font-size: 17px; margin: 0 0 10px; }

.site-footer { width: min(1320px, calc(100% - 5rem)); margin: 120px auto 0; padding: 72px 0 36px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 32px; }
.footer-brand img { width: 135px; }
.footer-brand p { font-size: 12px; margin: 10px 0 0; }
.footer-meta { text-align: right; color: #bbb; font-size: 12px; }
.social-row { display: flex; justify-content: flex-end; gap: 16px; font-weight: 700; font-size: 18px; margin-bottom: 18px; }

/* Solutions */
.solutions-hero { padding-top: 50px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan-card { background: #202020; border: 1px solid var(--teal); border-radius: 8px; padding: 54px 58px; min-height: 520px; text-align: center; }
.plan-pill { display: inline-block; background: var(--teal); color: #000; border-radius: 20px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.plan-card h2 { font-size: 30px; margin: 20px 0 8px; }
.plan-card .plan-intro { color: #c8c8c8; min-height: 58px; margin: 0; }
.plan-card .button { margin: 22px 0 34px; }
.plan-features { border-top: 1px solid var(--teal); text-align: left; margin: 0; padding: 30px 0 0; list-style: none; }
.plan-features li { margin: 10px 0; color: #d5d5d5; }
.tick, .cross { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 9px; border: 2px solid currentColor; border-radius: 50%; font-size: 14px; line-height: 1; }
.tick { color: var(--teal); }
.cross { color: #aaa; }

.matrix-wrap { max-width: 920px; margin: 48px auto 0; }
.matrix-section { border-top: 1px solid #444; padding: 28px 0 16px; }
.matrix-section h2 { color: var(--teal); font-size: 24px; margin: 0 0 20px; }
.matrix { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(3, 1fr); gap: 0; align-items: center; }
.matrix > div { padding: 14px 8px; text-align: center; }
.matrix > div:nth-child(4n + 1) { text-align: left; color: #c7c7c7; }
.matrix .col-head { color: #fff; font-size: 20px; font-weight: 600; }
.solutions-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 16px; }
.solutions-cta h2 { font-size: 42px; margin: 0; }

/* Blog */
.content-narrow { width: min(1160px, calc(100% - 5rem)); margin: 0 auto; padding: 60px 0; }
.content-narrow > .eyebrow { color: var(--teal); font-size: 13px; }
.content-narrow > h1 { font-size: 44px; margin: 56px 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 8px; gap: 10px 28px; align-items: start; }
.post-card { display: block; border: 1px solid #242424; background: #030303; }
.post-card img { width: 100%; max-height: 360px; object-fit: cover; background: #111; }
.post-card__body { padding: 22px; }
.post-card__meta { color: #888; font-size: 11px; }
.post-card h2 { font-size: 20px; line-height: 1.25; margin: 18px 0 12px; }
.post-card p { color: #aaa; font-size: 14px; }

.post-page { width: min(740px, calc(100% - 3rem)); margin: 0 auto; padding: 62px 0; }
.post-page > h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.08; margin: 0 0 20px; }
.post-meta { color: #aaa; font-size: 13px; margin-bottom: 38px; }
.post-content { font-size: 17px; color: #f3f3f3; }
.post-content h2 { font-size: 31px; line-height: 1.2; margin: 50px 0 16px; }
.post-content h3 { font-size: 24px; margin: 38px 0 12px; }
.post-content h4, .post-content h5 { font-size: 20px; margin: 30px 0 10px; }
.post-content p { margin: 0 0 18px; }
.post-content li { margin-bottom: 12px; }
.post-content figure { margin: 30px 0; }
.post-content img { width: 100%; border-radius: 2px; }
.post-content a { color: var(--teal); text-decoration: underline; }
.post-content hr { border: 0; border-top: 1px solid #444; margin: 38px 0; }
.post-content iframe { width: 100%; aspect-ratio: 16/9; border: 0; }

/* Legal, FAQ, and legacy */
.document-page { width: min(920px, calc(100% - 3rem)); margin: 0 auto; padding: 70px 0; }
.document-page h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin: 0 0 46px; }
.document-page h2 { color: var(--teal); font-size: 23px; margin: 42px 0 12px; }
.document-page p, .document-page li { color: #d0d0d0; }
.document-page a { color: var(--teal); text-decoration: underline; }
.faq-list details { border-top: 1px solid #333; padding: 20px 0; }
.faq-list summary { cursor: pointer; font-size: 20px; font-weight: 600; }
.legacy-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 35px 0 60px; }
.legacy-stat { border: 1px solid #333; padding: 28px; text-align: center; }
.legacy-stat strong { display: block; font-size: 35px; color: var(--teal); }
.legacy-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.legacy-card { background: var(--panel); padding: 28px; border: 1px solid #333; }

@media (max-width: 900px) {
  .site-header {
    width: 100%; height: 96px; margin: 0; border: 0;
    grid-template-columns: 1fr auto; padding: 14px 18px;
  }
  .brand { padding: 0; }
  .brand img { width: 130px; }
  .site-header--minimal { grid-template-columns: 1fr; }
  .site-header--minimal:has(.site-nav) { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; inset: 96px 0 auto; background: #050505;
    padding: 20px; flex-direction: column; align-items: center; border-block: 1px solid #222;
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: 10px; }
  .header-cta { display: none; }
  .section, .hero { width: min(100% - 40px, 680px); padding: 32px 0; }
  .hero { padding-top: 0; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: 24px; margin-top: 0; }
  .hero h1 { display: block; }
  .hero p { font-size: 13px; max-width: 250px; }
  .hero-dashboard { margin-top: 28px; }
  .section-title { font-size: 26px; margin-bottom: 24px; }
  .section-subtitle { margin-top: -12px; font-size: 13px; }
  .partner-row { gap: 24px; flex-wrap: nowrap; }
  .partner-row img { max-width: 29%; max-height: 42px; }
  .product-grid, .reason-grid, .plan-grid, .legacy-services { grid-template-columns: 1fr; }
  .product-grid { gap: 16px; }
  .product-card { padding: 12px 12px 18px; }
  .edge-intro { display: block; text-align: center; margin-bottom: 22px; }
  .edge-intro h2 { font-size: 25px; }
  .edge-intro p { font-size: 13px; max-width: 250px; margin: 10px auto 0; }
  .edge-grid { grid-template-columns: 1fr; gap: 18px; width: calc(100% - 32px); margin: 0 auto; }
  .edge-card { min-height: 250px; }
  .edge-card:nth-child(2) { display: none; }
  .use-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
  .use-card img { width: 58px; height: 58px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .metric { min-height: 112px; }
  .reason-card { min-height: auto; }
  .site-footer { width: calc(100% - 44px); margin-top: 58px; padding-top: 36px; grid-template-columns: 1fr; }
  .footer-meta, .social-row { text-align: left; justify-content: flex-start; }
  .footer-meta { display: flex; flex-direction: column; }
  .social-row { order: 1; margin-top: 10px; }
  .plan-grid { gap: 18px; }
  .plan-card { min-height: auto; padding: 28px 20px; }
  .plan-card .button { display: none; }
  .plan-card .plan-intro { min-height: auto; }
  .plan-features { margin-top: 24px; padding-top: 22px; }
  .matrix-wrap { margin-top: 18px; }
  .matrix-section h2 { font-size: 18px; }
  .matrix { grid-template-columns: minmax(118px, 1.7fr) repeat(3, 1fr); font-size: 12px; }
  .matrix > div { padding: 10px 3px; }
  .matrix .col-head { font-size: 13px; }
  .solutions-cta { align-items: flex-start; flex-direction: column; }
  .solutions-cta h2 { font-size: 27px; }
  .content-narrow { width: calc(100% - 36px); padding-top: 30px; }
  .content-narrow > h1 { font-size: 34px; margin: 35px 0; }
  .post-grid { display: block; }
  .post-card { margin-bottom: 24px; grid-row-end: auto !important; }
  .post-page { padding-top: 35px; }
  .post-content { font-size: 16px; }
  .post-content h2 { font-size: 24px; }
  .document-page { padding-top: 35px; }
  .legacy-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
