:root {
  color-scheme: dark;
  --bg: #050a12;
  --bg-2: #07111f;
  --bg-3: #0b1626;
  --bg-4: #101c2e;
  --line: #18304a;
  --line-2: #23405c;
  --text: #f4f7fb;
  --muted: #91a4ba;
  --faint: #6b8199;
  --accent: #5eb0ff;
  --accent-2: #7fc0ff;
  --btn: #0b4fbf;
  --btn-hover: #0943a3;
  --btn-text: #ffffff;
  --green: #25d07f;
  --red: #ff5f6d;
  --purple: #8b7cff;
  --gold: #f0c44c;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --focus: #5eb0ff;
  --header-h: 72px;
  --max: 1180px;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--btn);
  color: var(--btn-text);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 10, 18, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
}

.brand-lockup {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  flex: none;
}

.site-footer .brand-lockup {
  height: 64px;
  max-width: min(240px, 70vw);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 12px;
  flex: 1;
}

.nav-desktop a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--text);
  background: rgba(94, 176, 255, 0.08);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  flex: none;
}

.lang-pills {
  display: flex;
  gap: 4px;
}

.lang-pills button,
.lang-select,
.menu-toggle {
  min-height: 36px;
  min-width: 36px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0 8px;
}

.lang-pills button.is-active {
  color: var(--accent-2);
  border-color: var(--accent);
  background: rgba(22, 139, 255, 0.16);
}

.lang-select {
  display: none;
  appearance: none;
  padding: 0 28px 0 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2391A4BA' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
      no-repeat right 10px center / 10px,
    transparent;
}

.header-ctas {
  display: flex;
  gap: 8px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before {
  top: -5px;
}
.menu-toggle span::after {
  top: 5px;
}

.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 35;
  background: #050a12;
  padding: 20px;
  overflow: auto;
}

.drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer nav a {
  display: block;
  padding: 14px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 650;
  border: 1px solid transparent;
}

.drawer nav a:hover {
  background: var(--bg-3);
  border-color: var(--line);
}

.drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.drawer-langs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.drawer-langs button {
  flex: 1;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.drawer-langs button.is-active {
  color: var(--accent-2);
  border-color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn);
  color: var(--btn-text);
  border-color: #1a6ae0;
  box-shadow: 0 0 22px rgba(11, 79, 191, 0.32);
}

.btn-primary:hover {
  background: var(--btn-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}

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

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.78rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 40px 0 28px;
  overflow: hidden;
}

.hero > .wrap {
  width: min(1320px, calc(100% - 40px));
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
}

.hero-copy {
  max-width: 52rem;
}

.hero-demo {
  width: 100%;
  min-width: 0;
}

/* Compact hero copy so ProChart dominates first viewport */
.hero-stack { gap: 16px; }
.hero-copy .kicker { margin-bottom: 8px; }
.hero-copy h1 { margin: 0; font-size: clamp(2rem, 3.8vw, 3.35rem); max-width: 18ch; }
.hero-copy .hero-support { margin-top: 8px; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.hero-copy .lead { margin-top: 10px; font-size: 0.98rem; max-width: 54ch; }
.hero-copy .product-chip { margin-top: 10px; }
.hero-copy .hero-actions { margin-top: 14px; }
.hero-copy .hero-chips { margin-top: 12px; gap: 10px 14px; }
.hero { padding: 28px 0 24px; }
@media (max-width: 900px) {
  .hero-stack { gap: 14px; }
  .hero-copy .lead { font-size: 0.95rem; }
}

/* HERO_UPPER_VISUAL_20260920 — layers creative (owner) */
.hero-upper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.05fr);
  gap: 8px 20px;
  align-items: center;
  position: relative;
  isolation: isolate;
}

.hero-upper .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 38rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center end;
  min-height: 280px;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.hero-visual__glow,
.hero-visual__orb {
  position: absolute;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
}

.hero-visual__glow {
  width: min(130%, 640px);
  height: min(115%, 460px);
  right: -10%;
  top: 50%;
  transform: translateY(-52%);
  background:
    radial-gradient(ellipse at 62% 48%, rgba(94, 176, 255, 0.26) 0%, rgba(94, 176, 255, 0.08) 34%, transparent 68%),
    radial-gradient(ellipse at 78% 62%, rgba(127, 192, 255, 0.14) 0%, transparent 55%);
  filter: blur(2px);
  opacity: 0.9;
}

.hero-visual__orb {
  width: 240px;
  height: 240px;
  right: 8%;
  top: 40%;
  transform: translate(20%, -40%);
  background: radial-gradient(circle, rgba(94, 176, 255, 0.32) 0%, rgba(11, 79, 191, 0.10) 42%, transparent 70%);
  filter: blur(28px);
  opacity: 0.8;
}

.hero-visual__img {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  height: auto;
  max-height: 460px;
  object-fit: contain;
  object-position: right center;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.06) 8%,
    rgba(0, 0, 0, 0.35) 24%,
    rgba(0, 0, 0, 0.82) 52%,
    #000 72%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.06) 8%,
    rgba(0, 0, 0, 0.35) 24%,
    rgba(0, 0, 0, 0.82) 52%,
    #000 72%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  filter: drop-shadow(0 14px 42px rgba(0, 0, 0, 0.5));
  opacity: 0.98;
}

/* Soft navy wash so left of visual merges with page bg */
.hero-upper::before {
  content: "";
  position: absolute;
  inset: -12% -4% -8% 36%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 78% 45%, rgba(11, 22, 38, 0.0) 0%, transparent 60%),
    linear-gradient(90deg, transparent 0%, rgba(7, 17, 31, 0.28) 55%, rgba(5, 10, 18, 0.12) 100%);
  pointer-events: none;
}

/* Mobile: decorative right crop — capped height, does NOT push CTAs */
@media (max-width: 900px) {
  .hero-upper {
    display: block;
    position: relative;
  }
  .hero-upper .hero-copy {
    max-width: 52rem;
    position: relative;
    z-index: 2;
  }
  .hero-visual {
    position: absolute;
    right: -2%;
    top: -2%;
    bottom: auto;
    width: min(64vw, 280px);
    min-height: 0;
    height: 210px;
    max-height: 210px;
    opacity: 0.55;
    z-index: 0;
    display: block;
    overflow: hidden;
  }
  .hero-visual picture,
  .hero-visual__img {
    display: block;
    width: 100%;
    height: 100%;
  }
  .hero-visual__img {
    max-height: 210px;
    object-fit: cover;
    object-position: 85% center;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.18) 18%,
      rgba(0, 0, 0, 0.7) 55%,
      #000 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.18) 18%,
      rgba(0, 0, 0, 0.7) 55%,
      #000 100%
    );
  }
  .hero-visual__glow {
    opacity: 0.45;
    filter: blur(8px);
  }
  .hero-visual__orb {
    opacity: 0.35;
  }
}

@media (max-width: 520px) {
  .hero-visual {
    width: min(60vw, 220px);
    height: 176px;
    max-height: 176px;
    opacity: 0.48;
    right: -6%;
    top: 0;
  }
  .hero-visual__img {
    max-height: 176px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual__glow,
  .hero-visual__orb {
    filter: none;
  }
}
/* END_HERO_UPPER_VISUAL */



.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 4.15rem);
  max-width: 18ch;
}

.hero-support {
  margin: 14px 0 0;
  color: var(--accent-2);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 650;
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.product-chip {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
  background: rgba(11, 22, 38, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-chips li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-chips i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero-chips li:nth-child(2) i {
  background: var(--accent);
}
.hero-chips li:nth-child(3) i {
  background: var(--purple);
}

/* Product mock (legacy static) */
.pc-mock {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #0b1626, #07111f);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.pc-mock__bar,
.pc-mock__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 0;
}

.pc-mock__mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--btn);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex: none;
}

.pc-mock__bar strong {
  color: var(--text);
  margin-inline-end: 8px;
}

.pc-mock__bar span.on {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.pc-mock__mt {
  margin-inline-start: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #5b4dff;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
}

.pc-mock__tools {
  flex-wrap: wrap;
  gap: 8px;
}

.pc-pill {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.pc-pill.is-on {
  border-color: var(--accent);
  color: var(--accent-2);
}

.pc-mock__price {
  margin-inline-start: auto;
  font-family: var(--mono);
  color: var(--green);
  font-size: 0.78rem;
}

.pc-mock__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(140px, 0.7fr) minmax(150px, 0.75fr);
  min-height: 320px;
}

.pc-mock__chart {
  position: relative;
  border-inline-end: 1px solid var(--line);
  padding: 12px;
  overflow: hidden;
}

.pc-mock__chart svg {
  width: 100%;
  height: 260px;
}

.pc-mock {
  pointer-events: none;
  user-select: none;
}

.pc-tag {
  position: absolute;
  right: 12px;
  top: 42%;
  background: #9f1239;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
}

.pc-mock__dom,
.pc-mock__ai {
  padding: 10px;
  min-width: 0;
}

.pc-mock__dom {
  border-inline-end: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.pc-h {
  color: var(--faint);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 3px 0;
  color: var(--muted);
}

.dom-row.bid {
  color: var(--green);
}
.dom-row.ask {
  color: var(--red);
}

.pc-delta {
  margin-top: 10px;
  color: var(--green);
}

.pc-mock__ai {
  background: linear-gradient(180deg, rgba(139, 124, 255, 0.08), transparent 40%);
}

.ai-quota {
  color: var(--faint);
  font-size: 0.7rem;
  margin-bottom: 8px;
}

.ai-q,
.ai-a {
  border: 1px solid #3a3568;
  background: rgba(16, 18, 40, 0.7);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.75rem;
  color: var(--text);
  margin-bottom: 8px;
}

.ai-a {
  color: var(--muted);
}

/* Sections */
section {
  padding: 72px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 720px;
}

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

.journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.journey article,
.feat,
.plan,
.road-col,
.chain-step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.step-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.journey h3,
.feat h3,
.plan h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* Data chain */
.chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.chain-step {
  padding: 18px 14px;
  text-align: start;
  min-height: 108px;
}

.chain-step b {
  display: block;
  font-family: var(--mono);
  color: var(--accent-2);
  font-size: 0.68rem;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.chain-step span {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feat-num {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  float: inline-end;
}

.feat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line-2);
  font-size: 0;
}

.feat-icon i {
  display: block;
  width: 12px;
  height: 12px;
  background: currentColor;
}

.feat:nth-child(1) .feat-icon {
  color: var(--accent);
  background: rgba(22, 139, 255, 0.12);
}
.feat:nth-child(1) .feat-icon i { border-radius: 3px; }
.feat:nth-child(2) .feat-icon {
  color: #7aa4ff;
  background: rgba(90, 130, 255, 0.12);
}
.feat:nth-child(2) .feat-icon i { transform: rotate(45deg); border-radius: 2px; }
.feat:nth-child(3) .feat-icon {
  color: var(--purple);
  background: rgba(139, 124, 255, 0.14);
}
.feat:nth-child(3) .feat-icon i { border-radius: 50%; }
.feat:nth-child(4) .feat-icon {
  color: #5ad0d0;
  background: rgba(90, 208, 208, 0.12);
}
.feat:nth-child(4) .feat-icon i {
  width: 14px;
  height: 10px;
  background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px);
}
.feat:nth-child(5) .feat-icon {
  color: var(--green);
  background: rgba(37, 208, 127, 0.12);
}
.feat:nth-child(5) .feat-icon i {
  width: 0;
  height: 0;
  background: none;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}
.feat:nth-child(6) .feat-icon {
  color: var(--gold);
  background: rgba(240, 196, 76, 0.12);
}
.feat:nth-child(6) .feat-icon i {
  width: 14px;
  height: 8px;
  background: none;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  background: linear-gradient(180deg, #0b1626, #07111f);
}

.split-copy .btn {
  margin-top: 18px;
}

.note {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(240, 196, 76, 0.06);
  color: var(--text);
  font-size: 0.92rem;
}

html[dir="rtl"] .note {
  border-left: 0;
  border-right: 3px solid var(--gold);
}

.ai-card,
.rx-card {
  border: 1px solid #3a3568;
  border-radius: 16px;
  padding: 18px;
  background: rgba(16, 18, 40, 0.55);
}

.rx-zone {
  height: 220px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255, 255, 255, 0.03) 19px),
    linear-gradient(#0b1626, #07111f);
  position: relative;
  overflow: hidden;
}

.rx-zone svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rx-band {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 28px;
  border-top: 1px dashed rgba(139, 124, 255, 0.8);
  border-bottom: 1px dashed rgba(139, 124, 255, 0.8);
  background: rgba(139, 124, 255, 0.12);
}

.rx-band.low {
  top: 62%;
  border-color: rgba(37, 208, 127, 0.7);
  background: rgba(37, 208, 127, 0.1);
}

.rx-band.high {
  top: 22%;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(94, 176, 255, 0.2);
}

.plan ul {
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.plan li {
  padding: 6px 0 6px 18px;
  position: relative;
}

.plan li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 12px;
}

html[dir="rtl"] .plan li {
  padding: 6px 18px 6px 0;
}
html[dir="rtl"] .plan li::before {
  left: auto;
  right: 0;
}

.plan-tag {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.pulse-banner {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--bg-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent-2);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: none;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.road-col ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.road-col li {
  padding: 7px 0 7px 16px;
  position: relative;
}

.road-col li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  position: absolute;
  left: 0;
  top: 13px;
  background: var(--faint);
}

html[dir="rtl"] .road-col li {
  padding: 7px 16px 7px 0;
}
html[dir="rtl"] .road-col li::before {
  left: auto;
  right: 0;
}

.road-col.live .kicker {
  color: var(--green);
}
.road-col.live li::before {
  background: var(--green);
}
.road-col.next .kicker {
  color: var(--accent);
}
.road-col.next li::before {
  background: var(--accent);
}

.community {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}

.final-cta {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(11, 79, 191, 0.28), transparent 46%),
    linear-gradient(180deg, #0b1626, #07111f);
}

.final-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  max-width: 16ch;
  margin: 0 auto;
}

.final-cta .lead {
  margin-left: auto;
  margin-right: auto;
}

.final-cta .hero-actions {
  justify-content: center;
}

/* Market Intelligence Tools */
#tools {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.tool-card[hidden] {
  display: none !important;
}

.tool-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.tool-filter {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.tool-filter:hover,
.tool-filter:focus-visible {
  color: var(--text);
  border-color: var(--accent);
}

.tool-filter.is-on {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(94, 176, 255, 0.14);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  outline: none;
}

.tool-card:hover,
.tool-card:focus-visible,
.tool-card:focus-within {
  border-color: var(--line-2);
  box-shadow: 0 0 0 1px rgba(94, 176, 255, 0.22);
}

.tool-preview {
  height: 148px;
  background: #07111f;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  transition: height 0.22s ease;
}

.tool-card:hover .tool-preview,
.tool-card:focus-visible .tool-preview,
.tool-card:focus-within .tool-preview {
  height: 196px;
}

.tool-preview img,
.tool-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tool-body {
  padding: 16px 18px 18px;
}

.tool-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.tool-card h3 {
  font-size: 1.05rem;
  line-height: 1.2;
  min-width: 0;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tool-note {
  margin-top: 8px !important;
  color: var(--text) !important;
  font-size: 0.82rem !important;
}

.tool-helps {
  margin-top: 12px !important;
  color: var(--faint) !important;
  font-size: 0.68rem !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.tool-chips li {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  max-width: 100%;
  white-space: nowrap;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  max-width: 100%;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier-badge.is-pro {
  border-color: var(--accent);
  color: var(--accent-2);
  background: rgba(94, 176, 255, 0.1);
}

.tier-badge.is-free {
  border-color: var(--green);
  color: var(--green);
  background: rgba(37, 208, 127, 0.08);
}

.tier-badge.is-mixed {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240, 196, 76, 0.08);
}

.tools-cta {
  margin-top: 28px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #0b1626, #07111f);
  text-align: center;
}

.tools-cta-lead {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.tools-cta .hero-actions {
  justify-content: center;
  margin-top: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0 28px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 24px;
}

.site-footer h3 {
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.site-footer a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.footer-copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1080px) {
  .nav-desktop,
  .header-ctas,
  .lang-pills {
    display: none;
  }
  .menu-toggle,
  .lang-select {
    display: inline-flex;
  }
  .brand-copy small {
    display: none;
  }
  .split,
  .community,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .pc-mock__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .pc-mock__ai {
    display: none;
  }
  .chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }
  section {
    padding: 52px 0;
  }
  .hero {
    padding: 28px 0 12px;
  }
  h1 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.7rem);
  }
  .journey,
  .plans,
  .roadmap,
  .features,
  .tool-grid,
  .pc-mock__grid {
    grid-template-columns: 1fr;
  }
  .tool-preview,
  .tool-card:hover .tool-preview,
  .tool-card:focus-within .tool-preview {
    height: 156px;
  }
  .tools-cta .btn {
    width: 100%;
  }
  .chain {
    grid-template-columns: 1fr 1fr;
  }
  .pc-mock__dom {
    border-inline-end: 0;
    border-top: 1px solid var(--line);
  }
  .split {
    padding: 20px;
  }
  .hero-actions .btn,
  .drawer-ctas .btn,
  .plan .btn,
  .final-cta .btn {
    width: 100%;
  }
  .pulse-banner {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .header-inner {
    width: calc(100% - 20px);
    gap: 10px;
  }
  .brand-copy strong {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .tool-preview {
    transition: none;
  }
}

/* Homepage tool-card links */
a.tool-card {
  color: inherit;
  cursor: pointer;
  height: 100%;
}

.tool-card .tool-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tool-learn {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

a.tool-card:hover .tool-learn,
a.tool-card:focus-visible .tool-learn {
  color: var(--accent-2);
}

/* Tool detail pages */
.tool-page h1 {
  max-width: 22ch;
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
  overflow-wrap: break-word;
}

.tool-page h2,
.tools-subnav,
.crumb,
.tool-page-hero,
.tool-visual-section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.tool-page section {
  padding: 32px 0;
}

.tool-page [hidden] {
  display: none !important;
}

.tool-page .lead {
  max-width: 54ch;
}

.tools-subnav-wrap {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.88);
}

.tools-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-block: 14px;
  padding-inline: 0;
  scrollbar-width: thin;
}

.tools-subnav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-block: 0;
  padding-inline: 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.tools-subnav a:hover,
.tools-subnav a:focus-visible {
  color: var(--text);
  border-color: var(--accent);
}

.tools-subnav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(94, 176, 255, 0.14);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.crumb a:hover,
.crumb a:focus-visible {
  color: var(--text);
}

.crumb-sep {
  color: var(--faint);
}

.tool-page-hero {
  padding-top: 8px;
}

.tool-hero-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(11, 79, 191, 0.22), transparent 46%),
    linear-gradient(180deg, #0b1626, #07111f);
}

.tool-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-hero-panel .hero-actions {
  margin-top: 22px;
}

.tool-visual {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #07111f;
  box-shadow: var(--shadow);
}

.tool-visual img,
.example-visual img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #050a12;
}

.example-visual {
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #07111f;
}

.explain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.explain-block,
.tool-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: var(--bg-2);
}

.tool-page h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.tool-page h2:empty,
.tool-page .tool-chips:empty,
.tool-page .explain-grid:empty {
  display: none;
}

.explain-block h3 {
  font-size: 1rem;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.explain-block p,
.tool-panel p,
.tool-how li {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tool-page .tool-chips {
  margin-top: 0;
}

.tool-page .tool-chips li {
  white-space: normal;
}

.tool-how {
  margin: 0;
  padding-inline-start: 1.2em;
}

.tool-how li + li {
  margin-top: 8px;
}

.tool-param-list {
  margin: 0;
  padding-inline-start: 1.2em;
  color: var(--muted);
  font-size: 0.95rem;
}

.tool-param-list li + li {
  margin-top: 8px;
}

.package-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.package-panel h2 {
  flex: 1 1 100%;
}

.tool-callout {
  margin: 0;
  border: 1px solid rgba(240, 196, 76, 0.35);
  border-inline-start: 3px solid var(--gold);
  border-radius: 12px;
  padding-block: 14px;
  padding-inline: 16px;
  background: rgba(240, 196, 76, 0.06);
  color: var(--text);
  font-size: 0.92rem;
}

.query-chips {
  margin-top: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  cursor: pointer;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.related-card:hover,
.related-card:focus-visible {
  border-color: var(--line-2);
  box-shadow: 0 0 0 1px rgba(94, 176, 255, 0.22);
}

.related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #07111f;
  border-bottom: 1px solid var(--line);
}

.related-card h3 {
  font-size: 1rem;
}

.tool-bottom-cta {
  padding-bottom: 56px;
}

.tool-bottom-cta .hero-actions {
  justify-content: flex-start;
}

.tools-subnav a:focus-visible,
.related-card:focus-visible,
.crumb a:focus-visible,
.tool-page .btn:focus-visible,
a.tool-card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .explain-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .tool-hero-panel {
    padding: 22px;
  }
}

@media (max-width: 768px) {
  .related-grid,
  .explain-grid {
    grid-template-columns: 1fr;
  }
  .tool-page .hero-actions .btn {
    width: 100%;
  }
  .tools-subnav {
    flex-wrap: nowrap;
    padding-block: 12px;
  }
}

@media (max-width: 420px) {
  .tool-hero-panel {
    padding: 18px;
  }
  .tool-page h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .related-card,
  .tool-visual,
  a.tool-card {
    transition: none;
  }
}


/* ===== PWEB-4 Tools Hub ===== */
.tools-hub-page .hub-hero {
  padding: 2.5rem 0 1.5rem;
}
.tools-hub-page .hub-core {
  max-width: 42rem;
  margin: 0.75rem 0 1.25rem;
  color: var(--muted, #9aa7b8);
  font-size: 1.05rem;
}
.hub-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0 0.5rem;
}
.hub-cat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(120,160,220,0.14);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  transition: border-color .2s ease, background .2s ease;
}
.hub-cat-card:hover,
.hub-cat-card:focus-visible {
  border-color: rgba(90,180,255,0.45);
  background: rgba(40,90,160,0.12);
  outline: none;
}
.hub-cat-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}
.hub-cat-card p {
  margin: 0;
  color: var(--muted, #9aa7b8);
  font-size: 0.86rem;
  line-height: 1.45;
}
.hub-filters {
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.hub-filter-status:empty { display: none; }
.hub-filter-status {
  color: var(--muted, #9aa7b8);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}
.hub-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(120,160,220,0.14);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.hub-card:hover,
.hub-card:focus-within {
  border-color: rgba(90,180,255,0.4);
}
.hub-card[hidden] { display: none !important; }
.hub-card-main {
  color: inherit;
  text-decoration: none;
  display: block;
  flex: 1;
}
.hub-card-main:focus-visible {
  outline: 2px solid #5ab4ff;
  outline-offset: -2px;
}
.hub-card .tool-preview {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #070d16;
}
.hub-card .tool-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hub-card .tool-body { padding: 1rem 1.05rem 0.5rem; }
.hub-cat-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7eb6ff;
  margin: 0 0 0.4rem;
}
.hub-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.6rem 1.05rem 1rem;
}
.hub-chain {
  padding: 2.5rem 0;
}
.hub-chain-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  counter-reset: hubchain;
}
.hub-chain-steps li {
  counter-increment: hubchain;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(120,160,220,0.12);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
}
.hub-chain-steps li::before {
  content: counter(hubchain, decimal-leading-zero);
  display: block;
  font-family: "JetBrains Mono", monospace;
  color: #5ab4ff;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}
.hub-packages { padding: 1rem 0 3rem; }
.hub-pkg-panel {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(30,70,130,0.25), rgba(10,18,32,0.6));
  border: 1px solid rgba(90,180,255,0.2);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
}
@media (max-width: 640px) {
  .hub-card-actions { flex-direction: column; }
  .hub-card-actions .btn { width: 100%; justify-content: center; }
}


/* ===== PWEB-5 Plans page ===== */
.plans-page .plans-hero { padding: 2.5rem 0 1.25rem; }
.plans-price-note { margin-top: 0.75rem; font-size: 0.92rem; }
.plan-eyebrow { margin: 0 0 0.35rem; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #7eb6ff; }
.plan-price { margin: 0.75rem 0 1rem; font-family: "JetBrains Mono", monospace; font-size: 0.85rem; color: #c9d6e8; }
.plan ul a { color: #9ec5ff; text-decoration: underline; text-underline-offset: 2px; }
.plan ul a:hover { color: #fff; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(120,160,220,0.16); border-radius: 16px; background: rgba(255,255,255,0.02); }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.92rem; }
.compare-table th, .compare-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid rgba(120,160,220,0.1); vertical-align: top; }
.compare-table thead th { background: rgba(40,80,140,0.25); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; position: sticky; top: 0; }
.compare-table tbody th { font-weight: 600; min-width: 11rem; }
.compare-table tbody th a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.compare-table tbody tr:hover td, .compare-table tbody tr:hover th { background: rgba(90,180,255,0.05); }
.plans-callout { padding: 2rem 0; }
.callout-panel, .final-panel { background: linear-gradient(135deg, rgba(30,70,130,0.22), rgba(10,18,32,0.55)); border: 1px solid rgba(90,180,255,0.18); border-radius: 18px; padding: 1.5rem 1.6rem; }
.faq-list { display: grid; gap: 0.65rem; max-width: 48rem; }
.faq-list details { border: 1px solid rgba(120,160,220,0.14); border-radius: 12px; background: rgba(255,255,255,0.025); padding: 0.15rem 0.9rem; }
.faq-list summary { cursor: pointer; padding: 0.85rem 0; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline: 2px solid #5ab4ff; outline-offset: 2px; }
.faq-list details[open] summary { color: #9ec5ff; }
.faq-list details p { margin: 0 0 0.95rem; color: #9aa7b8; line-height: 1.55; }
.plans-final-cta { padding: 1rem 0 3rem; }
@media (max-width: 720px) {
  .plans { grid-template-columns: 1fr; }
}


/* Infrastructure marketing block */
#infrastructure {
  padding: 80px 0 72px;
  position: relative;
}
.infra-panel {
  position: relative;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 24px;
  border: 1px solid rgba(94, 176, 255, 0.22);
  background:
    radial-gradient(ellipse 90% 70% at 12% 0%, rgba(94, 176, 255, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 60% at 100% 20%, rgba(139, 124, 255, 0.14), transparent 45%),
    linear-gradient(180deg, rgba(11, 22, 38, 0.96), rgba(5, 10, 18, 0.98));
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 28px 80px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(11, 79, 191, 0.18);
  overflow: hidden;
}
.infra-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 22px, rgba(255,255,255,0.015) 23px),
    repeating-linear-gradient(0deg, transparent, transparent 22px, rgba(255,255,255,0.012) 23px);
  pointer-events: none;
  opacity: 0.7;
}
.infra-panel > * { position: relative; z-index: 1; }
.infra-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}
.infra-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7fc0ff !important;
}
.infra-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d07f;
  box-shadow: 0 0 0 0 rgba(37, 208, 127, 0.7);
  animation: infraPulse 1.8s ease-out infinite;
}
@keyframes infraPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 208, 127, 0.65); }
  70% { box-shadow: 0 0 0 10px rgba(37, 208, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 208, 127, 0); }
}
#infrastructure h2 {
  max-width: 22ch;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  margin-top: 8px;
}
.infra-lead {
  margin: 14px 0 0;
  max-width: 58ch;
  color: var(--muted, #91a4ba);
  font-size: 1.05rem;
  line-height: 1.55;
}
.infra-badge {
  flex: none;
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(94, 176, 255, 0.35);
  background: rgba(11, 79, 191, 0.22);
  color: #cfe6ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.infra-stats {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.infra-stat {
  padding: 22px 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(142, 180, 255, 0.16);
  background: rgba(5, 12, 22, 0.72);
  min-height: 132px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.infra-stat:hover {
  border-color: rgba(94, 176, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}
.infra-stat-hero {
  background:
    linear-gradient(160deg, rgba(11, 79, 191, 0.35), rgba(5, 12, 22, 0.85) 55%);
  border-color: rgba(94, 176, 255, 0.4);
}
.infra-num {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #e8f2ff;
  line-height: 1;
  text-shadow: 0 0 28px rgba(94, 176, 255, 0.35);
}
.infra-stat-hero .infra-num {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  background: linear-gradient(90deg, #ffffff, #8ec5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.infra-label {
  margin: 0;
  color: #b7c7db;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 600;
}
.infra-sub {
  margin: 10px 0 0;
  color: #7fc0ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.infra-secondary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.infra-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}
.infra-pill strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #9ec5ff;
  letter-spacing: -0.02em;
}
.infra-pill span {
  color: var(--muted, #91a4ba);
  font-size: 0.8rem;
  line-height: 1.3;
}
.infra-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(94, 176, 255, 0.28);
  background: rgba(11, 79, 191, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c5ddf7;
}
.infra-pipeline i {
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, rgba(94,176,255,0.15), #5eb0ff, rgba(94,176,255,0.15));
  border-radius: 2px;
}
.infra-layers {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.22);
}
.infra-layers-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8eb7d8;
}
.infra-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.infra-chips li {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(142, 180, 255, 0.28);
  background: rgba(56, 132, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 700;
  color: #e8f1ff;
}
.infra-future {
  margin: 22px 0 0;
  max-width: 72ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #b7c7db;
}
@media (max-width: 980px) {
  .infra-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .infra-stat-hero { grid-column: 1 / -1; }
  .infra-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .infra-panel-head { flex-direction: column; }
}
@media (max-width: 560px) {
  #infrastructure { padding: 56px 0 48px; }
  .infra-stats,
  .infra-secondary { grid-template-columns: 1fr; }
  .infra-pipeline i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .infra-dot { animation: none; }
  .infra-stat { transition: none; }
}



/* Vision / ambition marketing block */
#vision {
  padding: 24px 0 72px;
}
.vision-panel {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  border: 1px solid rgba(240, 196, 76, 0.22);
  background:
    radial-gradient(ellipse 80% 60% at 90% 0%, rgba(240, 196, 76, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(139, 124, 255, 0.14), transparent 45%),
    linear-gradient(165deg, rgba(18, 14, 8, 0.95), rgba(6, 10, 18, 0.98));
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 28px 80px rgba(0,0,0,0.42),
    0 0 50px rgba(240, 196, 76, 0.08);
  overflow: hidden;
}
.vision-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 14px,
    rgba(255,255,255,0.012) 15px
  );
  pointer-events: none;
}
.vision-panel > * { position: relative; z-index: 1; }
.vision-kicker { color: #f0c44c !important; }
.vision-eyebrow {
  margin: 6px 0 0;
  color: #d4b56a;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
#vision h2 {
  margin-top: 12px;
  max-width: 24ch;
  font-size: clamp(1.65rem, 3.1vw, 2.45rem);
}
.vision-lead {
  margin: 14px 0 0;
  max-width: 62ch;
  color: #b7c7db;
  font-size: 1.05rem;
  line-height: 1.55;
}
.vision-ambition {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.vision-card {
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(240, 196, 76, 0.16);
  background: rgba(0,0,0,0.28);
  min-height: 100%;
  transition: border-color .2s ease, transform .2s ease;
}
.vision-card:hover {
  border-color: rgba(240, 196, 76, 0.4);
  transform: translateY(-2px);
}
.vision-card-kicker {
  margin: 0 0 8px;
  color: #f0c44c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.vision-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #f4f7fb;
}
.vision-card p {
  margin: 0;
  color: #9aa8bc;
  font-size: 0.92rem;
  line-height: 1.45;
}
.vision-targets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.vision-target {
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(139, 124, 255, 0.22);
  background: rgba(139, 124, 255, 0.08);
  text-align: center;
}
.vision-target-num {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #e8e0ff;
  line-height: 1;
  text-shadow: 0 0 24px rgba(139, 124, 255, 0.35);
}
.vision-target-label {
  margin: 0;
  color: #b7c7db;
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 600;
}
.vision-manifesto {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-radius: 16px;
  border-left: 3px solid #f0c44c;
  background: rgba(240, 196, 76, 0.07);
  color: #e8eef8;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.5;
  max-width: 72ch;
}
@media (max-width: 980px) {
  .vision-ambition { grid-template-columns: 1fr; }
  .vision-targets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #vision { padding: 12px 0 48px; }
  .vision-targets { grid-template-columns: 1fr; }
}


/* Notify / waitlist */
#notify { padding: 12px 0 80px; }
.notify-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(26px, 3.5vw, 36px);
  border-radius: 24px;
  border: 1px solid rgba(94, 176, 255, 0.22);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(94,176,255,0.16), transparent 50%),
    linear-gradient(160deg, rgba(10,18,32,0.98), rgba(5,10,18,0.98));
  box-shadow: 0 24px 70px rgba(0,0,0,0.4);
}
.notify-lead {
  margin: 12px 0 0;
  color: #b7c7db;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 58ch;
}
.notify-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.notify-points li {
  position: relative;
  padding-left: 18px;
  color: #d5e2f2;
  font-size: 0.94rem;
  line-height: 1.4;
  font-weight: 600;
}
.notify-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5eb0ff;
  box-shadow: 0 0 10px rgba(94,176,255,0.6);
}
.notify-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.28);
  justify-content: center;
}
.notify-form input[type="email"] {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(142,180,255,0.28);
  background: rgba(5,12,22,0.9);
  color: #f4f7fb;
  padding: 0 14px;
  font: inherit;
}
.notify-form input[type="email"]:focus {
  outline: 2px solid #5eb0ff;
  outline-offset: 2px;
}
.notify-form .btn { width: 100%; min-height: 48px; }
.notify-note {
  margin: 2px 0 0;
  color: #8fa3bb;
  font-size: 0.78rem;
  line-height: 1.35;
}
.notify-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.88rem;
  font-weight: 700;
}
.notify-status[data-state="ok"] { color: #25d07f; }
.notify-status[data-state="err"] { color: #ff7b88; }
@media (max-width: 860px) {
  .notify-panel { grid-template-columns: 1fr; }
}


/* Live ProChart-lite (marketing guest demo) */
.pc-live {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #0b1626, #07111f);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.pc-live__bar,
.pc-live__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 0;
  flex-wrap: wrap;
}
.pc-live__bar strong { color: var(--text); }
.pc-live__bar span.on {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.pc-live__status {
  margin-inline-start: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
}
.pc-live__status.is-live { color: var(--green); }
.pc-live__status.is-err { color: var(--red); }
.pc-live__open {
  color: var(--accent-2);
  font-weight: 650;
  font-size: 0.72rem;
  text-decoration: none;
  white-space: nowrap;
}
.pc-live__open:hover { color: var(--text); }
.pc-live__tools .pc-pill {
  cursor: pointer;
  background: transparent;
  font: inherit;
}
.pc-live__tools button.pc-pill:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}
.pc-live__price {
  margin-inline-start: auto;
  font-family: var(--mono);
  color: var(--green);
  font-size: 0.78rem;
}
.pc-live__price.is-down { color: var(--red); }
.pc-live__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(168px, 0.7fr);
  min-height: 340px;
}
.pc-live__chart-wrap {
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pc-live__chart {
  flex: 1;
  min-height: 300px;
  height: 320px;
}
.pc-live__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 6px 12px 10px;
  font-size: 0.65rem;
  color: var(--faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pc-live__legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-inline-end: 4px;
  vertical-align: -1px;
}
.lg-candle { background: #25d07f; }
.lg-vol { background: rgba(37,208,127,0.45); }
.lg-ema { background: #8b7cff; }
.lg-bt { background: #ff5f6d; }
.pc-live__side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: 380px;
}
.pc-live__dom,
.pc-live__tape {
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  min-height: 0;
  flex: 1;
}
.pc-live__dom {
  border-bottom: 1px solid var(--line);
}
.live-scroll {
  overflow: auto;
  max-height: 160px;
}
.live-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 2px 0;
}
.live-row.bid { color: var(--green); }
.live-row.ask { color: var(--red); }
.live-mid {
  margin: 4px 0;
  padding: 4px 0;
  border-top: 1px dashed var(--line-2);
  border-bottom: 1px dashed var(--line-2);
  color: var(--accent-2);
  text-align: center;
  font-size: 0.64rem;
}
.live-tape-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 2px 0;
  color: var(--muted);
}
.live-tape-row.buy { color: var(--green); }
.live-tape-row.sell { color: var(--red); }
.live-tape-row.is-big { font-weight: 700; }
.live-empty {
  color: var(--faint);
  padding: 8px 0;
}
.pc-live__ai {
  border-top: 1px solid var(--line);
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, rgba(139, 124, 255, 0.08), transparent 55%);
}
.live-ai-body { font-size: 0.78rem; color: var(--muted); }
.live-ai-line { margin: 0 0 6px; line-height: 1.35; }
.live-ai-line strong { color: var(--text); font-weight: 650; }
.live-ai-note { color: var(--faint); font-size: 0.72rem; }

@media (max-width: 980px) {
  .pc-live__grid { grid-template-columns: 1fr 0.85fr; }
}
@media (max-width: 768px) {
  .pc-live__grid { grid-template-columns: 1fr; }
  .pc-live__chart-wrap { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .pc-live__side {
    flex-direction: row;
    max-height: none;
  }
  .pc-live__dom,
  .pc-live__tape {
    flex: 1;
    max-height: 180px;
  }
  .pc-live__dom { border-bottom: 0; border-inline-end: 1px solid var(--line); }
  .live-scroll { max-height: 150px; }
  .pc-live__chart { height: 260px; min-height: 240px; }
}



/* Signup offer strip (7-day trial marketing — soft gift copy) */
.hero-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 14px 0 4px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.08));
  max-width: 40rem;
}
.hero-offer strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}
.hero-offer span {
  color: var(--muted);
  font-size: 0.86rem;
}
.hero-offer--compact {
  margin: 12px auto 8px;
  justify-content: center;
  text-align: center;
  max-width: 36rem;
}
.pc-embed__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.14);
  color: #7dd3fc;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .pc-embed__badge { font-size: 0.62rem; padding: 2px 6px; }
  .hero-offer { padding: 9px 12px; }
}

/* Real ProChart iframe embed (homepage hero) — dominant full-width */
.pc-embed {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #070d16;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.pc-embed__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted);
  flex-wrap: wrap;
  background: rgba(11, 22, 38, 0.92);
}
.pc-embed__bar strong { color: var(--text); }
.pc-embed__bar span.on {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.pc-embed__hint {
  margin-inline-start: auto;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--faint);
}
.pc-embed__open {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.74rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(14, 165, 233, 0.1);
}
.pc-embed__open:hover { color: var(--text); }
.pc-embed__frame-wrap {
  position: relative;
  width: 100%;
  height: clamp(560px, 68vh, 720px);
  min-height: 560px;
  background: #070d16;
}
.pc-embed__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #070d16;
}
@media (max-width: 900px) {
  .hero > .wrap {
    width: min(1320px, calc(100% - 28px));
  }
  .pc-embed__frame-wrap {
    height: clamp(420px, 62vh, 560px);
    min-height: 420px;
  }
  .pc-embed__hint { display: none; }
  .hero-stack { gap: 18px; }
}

/* RESPONSIVE_EMBED_BAR_20260920 */
@media (max-width: 390px) {
  .pc-embed__bar {
    gap: 4px 6px;
    padding: 4px 8px;
    font-size: 0.66rem;
  }
  .pc-embed__badge {
    font-size: 0.58rem;
    padding: 1px 5px;
  }
  .pc-embed__open {
    font-size: 0.66rem;
    padding: 2px 6px;
  }
  .pc-embed__frame-wrap {
    height: clamp(360px, 58vh, 480px);
    min-height: 360px;
  }
}

/* ========== LAYERS LANDING + FB/IG IAB BANNER (2026-09-20) ========== */
.layers-page .layers-hero {
  padding-top: 28px;
}

.layers-page .layers-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.layers-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(94, 176, 255, 0.55);
  background: rgba(15, 80, 160, 0.35);
  color: #9fd0ff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.layers-page .layers-h1 {
  display: flex;
  flex-direction: column;
  gap: 0.28em;
  margin: 0.35em 0 0.45em;
  font-size: clamp(1.85rem, 4.6vw, 3.25rem);
  letter-spacing: 0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

.layers-h1__en {
  display: block;
}

.layers-h1__tr {
  display: block;
  color: var(--accent);
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.layers-page .layers-hero-visual {
  position: relative;
}

.layers-visual-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(5, 10, 18, 0.78);
  border: 1px solid rgba(94, 176, 255, 0.4);
  color: #9fd0ff;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.layers-teaser {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.layers-teaser--fold {
  margin: 14px 0 16px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(94, 176, 255, 0.28);
  background: linear-gradient(180deg, rgba(12, 36, 64, 0.55), rgba(8, 18, 32, 0.35));
}

.layers-teaser li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 22, 38, 0.65);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

.layers-teaser--fold li {
  border-color: rgba(94, 176, 255, 0.32);
  background: rgba(8, 24, 44, 0.85);
}

.layers-teaser__n {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  opacity: 0.9;
}

.layers-soft-cta {
  padding: 48px 0 72px;
}

.layers-soft-cta .final-cta {
  text-align: center;
}

@media (max-width: 900px) {
  .layers-page .layers-hero {
    padding-top: 16px;
  }
  .layers-page .layers-h1 {
    font-size: clamp(1.55rem, 7.2vw, 2.15rem);
  }
  .layers-teaser {
    gap: 6px;
  }
  .layers-teaser--fold {
    padding: 10px;
    margin: 12px 0 14px;
  }
  .layers-teaser li {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
  .layers-page .hero-actions {
    flex-wrap: wrap;
  }
  .layers-page .hero-actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 160px);
    justify-content: center;
  }
}

/* Sticky Meta in-app browser banner */
.iab-banner {
  position: sticky;
  top: 0;
  z-index: 10050;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 14px;
  padding-right: 40px;
  background: linear-gradient(180deg, #0d2a4a 0%, #0a1c32 100%);
  border-bottom: 1px solid rgba(94, 176, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.35;
}

.iab-banner__msg {
  margin: 0;
  flex: 1 1 220px;
  min-width: 0;
}

.iab-banner__tr {
  color: #fff;
}

.iab-banner__en {
  color: var(--accent-2);
}

.iab-banner__hint {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.iab-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.iab-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.iab-banner__btn--primary {
  background: var(--btn);
  color: var(--btn-text);
  border-color: transparent;
}

.iab-banner__btn--primary:hover {
  background: var(--btn-hover);
}

.iab-banner__btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}

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

.iab-banner__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}

.iab-banner__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

html.has-iab-banner .site-header,
body.has-iab-banner .site-header {
  /* header stays below sticky banner naturally via document flow */
}

@media (min-width: 901px) {
  /* Desktop never shows IAB (script gates on UA); keep styles harmless */
  .iab-banner {
    font-size: 0.9rem;
  }
}

/* ========== MOBILE_TV_CHART_FIRST_20260920 ==========
   Bounce fix: chart owns above-the-fold on ≤720px (TV-like density).
   Chart iframe moves first via flex order; hero copy collapses under it.
   Desktop ≥721 unchanged. */
@media (max-width: 720px) {
  :root {
    --header-h: 56px;
  }

  .site-header {
    height: var(--header-h);
  }

  .header-inner {
    height: var(--header-h);
    min-height: var(--header-h);
  }

  /* Hero: chart first, copy second */
  .hero,
  .layers-page .layers-hero {
    padding: 8px 0 16px;
  }

  .hero-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .hero-demo {
    order: -1;
    width: 100%;
  }

  .hero-upper {
    order: 0;
  }

  /* Kill decorative visual — live chart is the product tease */
  .hero-visual,
  .layers-page .layers-hero-visual {
    display: none !important;
  }

  /* Compact copy under chart */
  .hero-upper .hero-copy {
    max-width: none;
  }

  .hero-copy .kicker {
    margin-bottom: 4px;
    font-size: 0.68rem;
  }

  .hero-copy h1,
  .layers-page .layers-h1 {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem) !important;
    line-height: 1.15;
    max-width: none;
    margin: 0;
  }

  .layers-page .layers-h1__tr {
    font-size: 0.92em;
    opacity: 0.85;
  }

  .hero-copy .hero-support {
    margin-top: 4px;
    font-size: 0.88rem;
  }

  .hero-copy .lead {
    display: none;
  }

  .hero-copy .product-chip {
    display: none;
  }

  .hero-copy .hero-offer {
    display: none;
  }

  .hero-copy .hero-chips {
    display: none;
  }

  .hero-actions {
    margin-top: 10px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .hero-actions .btn {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.78rem;
    justify-content: center;
  }

  /* Layers teaser: single horizontal scroll row, not 3 stacked rows */
  .layers-teaser,
  .layers-teaser--fold {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 6px 2px;
    margin: 8px 0 0;
    scrollbar-width: none;
  }

  .layers-teaser::-webkit-scrollbar,
  .layers-teaser--fold::-webkit-scrollbar {
    display: none;
  }

  .layers-teaser li,
  .layers-teaser--fold li {
    flex: 0 0 auto;
    font-size: 0.68rem;
    padding: 5px 8px;
    white-space: nowrap;
  }

  /* Embed chrome: thin bar + chart dominates viewport */
  .pc-embed {
    border-radius: 10px;
  }

  .pc-embed__bar {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 4px 8px;
    font-size: 0.66rem;
    min-height: 32px;
  }

  .pc-embed__badge {
    display: none;
  }

  .pc-embed__hint {
    display: none;
  }

  .pc-embed__open {
    margin-inline-start: auto;
    font-size: 0.66rem;
    padding: 2px 6px;
  }

  /* Nearly full first screen: chart owns ~60–75% of mobile viewport */
  .pc-embed__frame-wrap {
    height: calc(100dvh - var(--header-h) - 20px);
    min-height: 520px;
    max-height: none;
  }
}

@media (max-width: 390px) {
  .pc-embed__frame-wrap {
    height: calc(100dvh - var(--header-h) - 16px);
    min-height: 500px;
  }

  .hero-actions .btn {
    font-size: 0.72rem;
    padding: 0 8px;
  }
}

/* Short phones: keep chart majority without crushing CTAs below */
@media (max-width: 720px) and (max-height: 700px) {
  .pc-embed__frame-wrap {
    height: calc(100dvh - var(--header-h) - 12px);
    min-height: 420px;
  }
}

/* Contact FAB: tuck so it does not cover price axis on chart tease */
@media (max-width: 720px) {
  #dp-contact-fab {
    bottom: 12px;
    right: 10px;
    opacity: 0.85;
    transform: scale(0.92);
    transform-origin: bottom right;
  }

  /* When embed is in view near top, push FAB below chart fold */
  .hero-demo #dp-contact-fab,
  body:has(.pc-embed) #dp-contact-fab {
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
}
/* ========== END_MOBILE_TV_CHART_FIRST ========== */
