/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(48px, 4vw, 90px);
  position: relative;
}

.section-head {
  display: grid;
  gap: 16px;
  /*margin-bottom: clamp(40px, 5vw, 72px);*/
  margin-bottom: clamp(30px, 3vw, 62px);
  max-width: 820px;
}

.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-head .eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.muted {
  color: var(--fg-muted);
}

.soft {
  color: var(--fg-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform .2s var(--ease-out), background-color .2s, border-color .2s, box-shadow .25s;
  border: 1px solid transparent;
}

.btn .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.btn-primary {
  background: var(--brand-yellow);
  color: #0a1226;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 8px 24px rgba(244, 187, 51, .25);
}

.btn-primary:hover {
  background: #ffc94a;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--hairline-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-link {
  padding: 0;
  border-radius: 0;
  color: var(--fg);
  border-bottom: 1px solid var(--hairline-strong);
}

.btn-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 13px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 24px;
  /*letter-spacing: -0.01em;*/
  color: var(--fg);
}

.brand img {
  width: 36px;
  height: 36px;
}


.nav-links {
  display: flex;
  gap: 8px;
  margin-inline: auto;
}

.nav-preferences {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-mobile-home {
  display: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--fg-muted);
  transition: color .2s, background .2s;
}

.nav-links a:hover {
  color: var(--fg);
  background: var(--surface);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--fg-muted);
  transition: color .2s, background .2s;
}

.icon-btn:hover {
  color: var(--fg);
  background: var(--surface);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Lang select / theme menu */
.menu {
  position: relative;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s, background .2s;
}

.menu-btn:hover {
  color: var(--fg);
  background: var(--surface);
}

.menu-btn .chev {
  width: 12px;
  height: 12px;
  opacity: .7;
  transition: transform .2s;
}

.menu[aria-expanded="true"] .menu-btn .chev {
  transform: rotate(180deg);
}

/* Compact icon-only variant */
.menu-btn-icon {
  padding: 8px 8px 8px 10px;
  gap: 4px;
}

.menu-btn-icon svg:first-of-type,
#theme-icon svg {
  width: 16px;
  height: 16px;
}

#theme-icon {
  display: inline-flex;
  align-items: center;
}

#theme-icon svg {
  display: none;
}

#theme-icon[data-mode="system"] .lucide-monitor,
#theme-icon[data-mode="light"] .lucide-sun,
#theme-icon[data-mode="dark"] .lucide-moon {
  display: block;
}

.menu-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 6px;
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 60;
}

.menu[aria-expanded="true"] .menu-pop {
  display: block;
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
}

.menu-item:hover {
  background: var(--surface);
}

.menu-item[aria-selected="true"] {
  color: var(--accent);
}

.menu-item .check {
  width: 14px;
  height: 14px;
  opacity: 0;
  margin-left: auto;
}

.menu-item[aria-selected="true"] .check {
  opacity: 1;
}

.menu-item svg.lucide {
  width: 16px;
  height: 16px;
  opacity: .7;
  flex-shrink: 0;
  transition: opacity .2s;
}

.menu-item:hover svg.lucide {
  opacity: 1;
}

.menu-item .flag {
  font-size: 14px;
  opacity: .8;
  font-family: var(--font-mono);
  width: 22px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(60px, 8vw, 120px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--accent-soft) 0%, transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 30%, transparent 80%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 22px;
}

.hero-pill .tag {
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .accent {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: var(--fg-soft);
  font-size: 14px;
}

.hero-meta .dot {
  color: var(--ok);
}

/* Hero visual (extension mockup using promo.png) */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

[data-theme="light"] .hero-visual {
  background: linear-gradient(135deg, #122042 0%, #1a2c5e 100%);
}

.hero-visual::after {
  /* subtle vignette */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 100%, rgba(0, 0, 0, .35) 0%, transparent 60%);
  pointer-events: none;
}

/* ---------- Use Cases (Polypane top 4) ---------- */
.usecases-list {
  display: grid;
  gap: clamp(60px, 7vw, 120px);
}

.usecase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.usecase.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.usecase.reverse .uc-media {
  order: 2;
}

.usecase.reverse .uc-copy {
  order: 1;
}

@media (max-width: 920px) {

  .usecase,
  .usecase.reverse {
    grid-template-columns: 1fr;
  }

  .usecase.reverse .uc-media,
  .usecase.reverse .uc-copy {
    order: initial;
  }
}

.uc-copy {
  display: grid;
  gap: 18px;
  max-width: 56ch;
}

.uc-copy .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--accent);
  text-transform: uppercase;
}

.uc-copy h3 {
  letter-spacing: -0.025em;
}

.uc-copy .quote {
  margin-top: 6px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--fg);
  font-style: italic;
  font-size: 15px;
}

.uc-copy .uc-bullets {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--fg-muted);
}

.uc-copy .uc-bullets li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.uc-copy .uc-bullets svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  margin-top: 4px;
}

.uc-copy .uc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  margin-top: 4px;
}

.uc-copy .uc-cta:hover {
  color: var(--accent);
}

.uc-copy .uc-cta .arrow {
  transition: transform .2s;
}

.uc-copy .uc-cta:hover .arrow {
  transform: translateX(3px);
}

/* Browser frame */
.uc-media {
  position: relative;
}

.browser {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateZ(0);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--hairline-strong);
  display: inline-block;
}

.browser-dots i:nth-child(1) {
  background: #ff5f57;
}

.browser-dots i:nth-child(2) {
  background: #febc2e;
}

.browser-dots i:nth-child(3) {
  background: #28c840;
}

.browser-url {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.01em;
  min-width: 0;
}

.browser-url .lock {
  width: 12px;
  height: 12px;
  color: var(--ok);
  flex: 0 0 12px;
}

.browser-url .path {
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.browser-url .path .dim {
  color: var(--fg-soft);
}

.browser-ext {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  position: relative;
}

.browser-ext img {
  width: 16px;
  height: 16px;
}

.browser-ext::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 2px var(--surface);
}

.browser-body {
  position: relative;
  aspect-ratio: 14 / 10;
  background: var(--bg);
}

.browser-body video,
.browser-body .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Demo placeholder if video file isn't there yet */
.placeholder {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 24px;
  background:
    repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--bg-elev) 12px 24px);
  color: var(--fg-soft);
}

.placeholder .ph-inner {
  display: grid;
  gap: 8px;
  place-items: center;
  text-align: center;
  padding: 16px 20px;
  background: var(--bg-elev);
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--r-md);
  max-width: 90%;
}

.placeholder .ph-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.placeholder .ph-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
}

.placeholder .ph-hint {
  font-size: 12px;
  color: var(--fg-soft);
}

/* Floating annotation badge near browser frame */
.uc-anno {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--bg-elev);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg);
  box-shadow: var(--shadow-md);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.uc-anno .pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  position: relative;
}

.uc-anno .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  animation: pulse 1.6s var(--ease-out) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(.5);
    opacity: 1;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.uc-anno.tl {
  top: 24px;
  left: -16px;
}

.uc-anno.br {
  bottom: 24px;
  right: -16px;
}

@media (max-width: 920px) {

  .uc-anno.tl,
  .uc-anno.br {
    display: none;
  }
}

/* ---------- Flow Steps ---------- */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .flow-steps {
    grid-template-columns: 1fr;
  }
}

.flow-step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  position: relative;
}

.flow-step .step-num {
  position: absolute;
  top: -14px;
  left: 20px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #0a1226;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0 0 4px var(--bg);
}

.flow-step h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 14px;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Tech advantages ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 880px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

.tech-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  display: grid;
  gap: 12px;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}

.tech-card:hover {
  border-color: var(--accent-ring);
  transform: translateY(-2px);
}

.tech-card .tech-stat {
  font-family: var(--font-mono);
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.tech-card h4 {
  font-size: 18px;
}

.tech-card p {
  color: var(--fg-muted);
  font-size: 14.5px;
}

.tech-card .tech-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

/* ---------- All use cases grid ---------- */
.uc-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.chip {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 7px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--fg-muted);
  cursor: pointer;
  transition: all .2s;
}

.chip:hover {
  color: var(--fg);
  border-color: var(--hairline-strong);
}

.chip.active {
  color: #0a1226;
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
}

.uc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.uc-tile {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 180px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  gap: 16px;
  transition: border-color .2s, transform .2s, background .2s;
}

.uc-tile:hover {
  border-color: var(--accent-ring);
  transform: translateY(-2px);
}

.uc-tile .tile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.uc-tile .tile-head .cat {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.uc-tile[data-cat="security"] .tile-head .cat {
  background: var(--brand-yellow);
}

.uc-tile[data-cat="ux"] .tile-head .cat {
  background: var(--brand-blue);
}

.uc-tile[data-cat="cost"] .tile-head .cat {
  background: var(--ok);
}

.uc-tile h4 {
  font-size: 17px;
  line-height: 1.2;
}

.uc-tile p {
  font-size: 13.5px;
  color: var(--fg-muted);
}

.uc-tile .tile-cta {
  font-size: 12.5px;
  color: var(--fg-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.uc-tile:hover .tile-cta {
  color: var(--accent);
}

/* ---------- Comparison table ---------- */
.cmp-wrap {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cmp thead th {
  text-align: left;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 13px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--hairline);
}

.cmp thead th.us {
  color: var(--accent);
  background:
    linear-gradient(var(--accent-soft), var(--accent-soft)),
    var(--bg-elev);
}

.cmp tbody td,
.cmp tbody th {
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.cmp tbody tr:last-child td,
.cmp tbody tr:last-child th {
  border-bottom: 0;
}

.cmp tbody th {
  font-weight: 600;
  text-align: left;
  color: var(--fg);
  font-size: 13.5px;
  width: 32%;
}

.cmp tbody td.us {
  color: var(--fg);
  background: color-mix(in oklab, var(--accent-soft) 60%, transparent);
}

.cmp .yes,
.cmp .no,
.cmp .partial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.cmp .yes {
  color: var(--ok);
}

.cmp .no {
  color: var(--err);
}

.cmp .partial {
  color: var(--warn, #f5a623);
}

.cmp .yes svg,
.cmp .no svg,
.cmp .partial svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 760px) {

  .cmp thead th,
  .cmp tbody td,
  .cmp tbody th {
    padding: 12px 14px;
    font-size: 13px;
  }

  .cmp tbody th {
    width: 38%;
  }
}

/* ---------- Pricing teaser ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 880px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  display: grid;
  gap: 18px;
}

.price-card.featured {
  border-color: var(--accent-ring);
  background:
    linear-gradient(var(--accent-soft), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow-glow);
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 999px;
  width: fit-content;
}

.price-card h4 {
  font-size: 22px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-amount .num {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.price-amount .per {
  color: var(--fg-soft);
  font-size: 14px;
}

.price-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}

.price-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.price-list svg {
  width: 16px;
  height: 16px;
  color: var(--ok);
  margin-top: 3px;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  position: relative;
  padding: clamp(48px, 6vw, 80px) clamp(28px, 4vw, 56px);
  background:
    radial-gradient(80% 100% at 100% 0%, var(--accent-soft) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  overflow: hidden;
}

@media (max-width: 880px) {
  .cta-strip {
    grid-template-columns: 1fr;
  }
}

.cta-strip h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.cta-strip .cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-self: end;
}

@media (max-width: 880px) {
  .cta-strip .cta-actions {
    justify-self: start;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 36px;
  background: var(--bg);
}

.foot-grid {
  display: grid;
  grid-template-columns: 3fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.foot-col h5 {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 16px;
}

.foot-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.foot-col a {
  color: var(--fg-muted);
  font-size: 14px;
}

.foot-col a:hover {
  color: var(--fg);
}

.foot-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.foot-ext-link img {
  flex-shrink: 0;
}

.foot-brand p {
  color: var(--fg-muted);
  font-size: 14px;
  max-width: 38ch;
  margin-top: 12px;
}

.foot-brand .seo {
  margin-top: 18px;
  font-size: 12px;
  color: var(--fg-soft);
  line-height: 1.5;
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--fg-soft);
  flex-wrap: wrap;
}

.foot-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.foot-status .pip {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 25%, transparent);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .uc-anno .pulse::after {
    animation: none;
  }
}

/* ---------- Logo / brand mark ---------- */
.logo-mark {
  width: 28px;
  height: 28px;
  display: inline-block;
}

/* ---------- Hide visually but keep for AT ---------- */
.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;
}

/* ---------- Mobile nav ---------- */
.menu-toggle {
  display: none;
}

.btn-login-icon {
  display: none;
}

.btn-login-text {
  display: inline;
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    height: calc(100dvh - 64px);
    width: 280px;
    max-width: 85vw;
    background: var(--bg);
    border-right: 1px solid var(--hairline);
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    padding-top: 84px; /* Space for the sticky nav-preferences */
    transform: translateX(-100%);
    transition: transform .3s var(--ease-out);
    z-index: 40;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-mobile-home {
    display: block;
  }

  .nav-preferences {
    position: fixed;
    top: 64px;
    left: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    border-right: 1px solid var(--hairline);
    padding: 24px 24px 16px 24px;
    margin: 0;
    z-index: 41;
    transform: translateX(-100%);
    transition: transform .3s var(--ease-out);
    justify-content: flex-start;
  }

  .nav-preferences .menu-pop {
    left: 0;
    right: auto;
  }

  .btn-login-text {
    display: none;
  }

  .btn-login-icon {
    display: block;
  }

  .btn-login {
    padding: 9px 12px;
  }

  body.nav-open .nav-links,
  body.nav-open .nav-preferences {
    transform: translateX(0);
  }

  .menu-toggle {
    display: none;
  }
}


/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
  transition: background .2s;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item[open] {
  background: color-mix(in oklab, var(--accent-soft) 40%, var(--surface));
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
  transition: color .2s;
  user-select: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::marker {
  display: none;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-chev {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--fg-soft);
  transition: transform .3s var(--ease-out), color .2s;
}

.faq-item[open] .faq-chev {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Animated body via grid trick */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease-out);
  overflow: hidden;
}

.faq-item[open] .faq-a {
  grid-template-rows: 1fr;
}

.faq-a>* {
  overflow: hidden;
  padding: 0 28px 24px;
}

.faq-a p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.faq-a p+p {
  margin-top: 10px;
}

.faq-a code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.01em;
}

.faq-ul {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  margin-bottom: 0;
  display: grid;
  gap: 12px;
}

.faq-ul li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-ul li svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  margin-top: 4px;
  flex: 0 0 16px;
}

@media (max-width: 680px) {
  .faq-q {
    padding: 18px 20px;
    font-size: 15px;
  }

  .faq-a>* {
    padding: 0 20px 20px;
  }
}

/* ---------- Nav mega menus ---------- */
.nav-mega {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.nav-mega>a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-mega-chev {
  width: 10px;
  height: 10px;
  color: var(--fg-soft);
  opacity: .75;
  transition: transform .2s var(--ease-out), color .2s;
  margin-left: 1px;
}

.nav-mega[aria-expanded="true"]>a {
  color: var(--fg);
  background: var(--surface);
}

.nav-mega[aria-expanded="true"] .nav-mega-chev {
  transform: rotate(-180deg);
  color: var(--accent);
  opacity: 1;
}

.nav-mega-pop {
  position: absolute;
  top: calc(100% + 12px);
  /* Positioned by JS via --pop-x; default falls back to centered. */
  left: 50%;
  transform: translate(calc(-50% + var(--pop-x, 0px)), -6px);
  background: var(--bg-elev);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .16s var(--ease-out),
    transform .16s var(--ease-out),
    visibility 0s linear .16s;
}

.nav-mega[aria-expanded="true"] .nav-mega-pop {
  opacity: 1;
  transform: translate(calc(-50% + var(--pop-x, 0px)), 0);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s, 0s, 0s;
}

/* Hover-bridge so the menu doesn't collapse between trigger and panel */
.nav-mega-pop::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

/* --- Use Cases panel — 3 categorized columns --- */
.mega-grid-usecases {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 28px;
  width: 720px;
  max-width: calc(100vw - 32px);
}

.mega-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.mega-col-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
}

.mega-col-head .dot.dot-security {
  background: var(--brand-yellow);
}

.mega-col-head .dot.dot-ux {
  background: var(--brand-blue);
}

.mega-col-head .dot.dot-cost {
  background: var(--ok);
}

.mega-col-count {
  margin-left: auto;
  color: var(--fg-faint);
  font-weight: 500;
  letter-spacing: 0;
}

.mega-col ul {
  display: grid;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-col li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.35;
  transition: background .15s, color .15s;
}

.mega-col li a:hover {
  background: var(--surface);
  color: var(--fg);
}

.mega-item-title {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mega-col li a svg {
  flex: 0 0 14px;
  color: var(--fg-faint);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .15s, transform .15s, color .15s;
}

.mega-col li a:hover svg {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

/* --- Inside panel — 3 stat cards --- */
.mega-grid-inside {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 10px;
  width: 580px;
  max-width: calc(100vw - 32px);
}

.mega-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: border-color .2s, transform .2s, background .2s;
}

.mega-card:hover {
  border-color: var(--accent-ring);
  transform: translateY(-2px);
  background:
    linear-gradient(var(--accent-soft) 0%, transparent 70%),
    var(--surface);
}

.mega-card-stat {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--accent);
  line-height: 1;
}

.mega-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.mega-card-desc {
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* --- Docs panel — 2-col list --- */
.mega-grid-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 4px;
  width: 540px;
  max-width: calc(100vw - 32px);
}

.mega-doc {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .15s;
}

.mega-doc:hover {
  background: var(--surface);
}

.mega-doc-title {
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
}

.mega-doc-desc {
  color: var(--fg-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

/* --- Shared footer --- */
.mega-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: flex-end;
}

.mega-foot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 6px;
  border-radius: 6px;
}

.mega-foot-link svg {
  transition: transform .2s;
}

.mega-foot-link:hover {
  color: var(--accent-deep);
}

.mega-foot-link:hover svg {
  transform: translateX(3px);
}

.mega-empty {
  padding: 24px;
  color: var(--fg-soft);
  font-size: 13px;
  text-align: center;
  min-width: 280px;
}

/* --- Mobile: drop the mega; let the trigger behave like a normal link --- */
@media (max-width: 880px) {
  .nav-mega-pop {
    display: none;
  }

  .nav-mega-chev {
    display: none;
  }
}


/* Demo Instructions Dropdown */
.ucd-demo-details {
  position: relative;
  display: inline-block;
  text-align: left;
}

.ucd-demo-details>summary::-webkit-details-marker {
  display: none;
}

.ucd-demo-details>summary {
  list-style: none;
  /* for Firefox */
}

.demo-instructions-card {
  position: absolute;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 520px;
  max-width: 90vw;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--fg-muted);
}

.ucd-demo-details:not(.bottom) .demo-instructions-card {
  top: calc(100% + 12px);
  left: 0;
}

.ucd-demo-details.bottom .demo-instructions-card {
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
}

.demo-instructions-card .demo-title {
  color: var(--fg);
  font-weight: 500;
  margin-bottom: 12px;
}

.demo-instructions-card ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.demo-instructions-card ul li {
  margin-bottom: 8px;
}

.demo-instructions-card code {
  background: var(--hairline);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--fg);
}

.demo-instructions-card code.demo-token {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-ring);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
}

.demo-case-highlight {
  color: var(--fg);
  background: var(--surface-2);
  padding: 12px;
  border-radius: 8px;
  border-left: 2px solid var(--brand-yellow);
}

.demo-instructions-card .store-link-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 4px;
  transition: opacity 0.2s;
}

.demo-instructions-card .store-link-icon:hover {
  opacity: 0.8;
}

/* Fix z-index stacking for dropdowns */
.hero-actions {
  position: relative;
  z-index: 40;
}

.cta-actions {
  position: relative;
  z-index: 40;
}

/* Fix for reveal stacking context overlapping dropdowns */
.ucd-hero .reveal {
  position: relative;
  z-index: 40;
}

.cta-strip.reveal {
  position: relative;
  z-index: 40;
}

.ucd-hero>.reveal:first-child {
  position: relative;
  z-index: 40;
}

/* Arrow rotation on details open */
.ucd-demo-details>summary svg.icon {
  transition: transform 0.2s ease;
}

.ucd-demo-details[open]>summary svg.icon {
  transform: rotate(90deg);
}

.demo-token {
  color: var(--brand-yellow) !important;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--fg-muted, #94a3b8);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  vertical-align: middle;
  margin-left: 4px;
}

.copy-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.copy-btn:active {
  transform: scale(0.9);
}