/* ═══════════════════════════════════════════════════════════════════════════
   COTI Nodes — Landing Page
   Brand foundation reused from apps/coti-help-center (globals.css) and the
   COTI brand guide. Dark / COTI-Blue aesthetic to match coti.io.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Dazzed — official COTI brand typeface ─────────────────────────────────── */
@font-face {
  font-family: "Dazzed";
  src: url("fonts/Dazzed-Medium.woff2") format("woff2"),
       url("fonts/Dazzed-Medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Dazzed";
  src: url("fonts/Dazzed-SemiBold.woff2") format("woff2"),
       url("fonts/Dazzed-SemiBold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Dazzed";
  src: url("fonts/Dazzed-Heavy.woff2") format("woff2"),
       url("fonts/Dazzed-Heavy.woff") format("woff");
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ── Design tokens (from COTI brand guide) ─────────────────────────────────── */
:root {
  /* Brand-locked */
  --coti-blue: #1E29F6;
  --coti-navy: #04133D;
  --coti-black: #040509;
  --coti-white: #FFFFFF;
  --coti-light-grey: #F4F5FC;

  /* Unified dark-body canvas — every section below the hero shares this base,
     so the page reads as one deliberate dark surface, not stacked mismatched darks */
  --bg-body: #050A26;

  /* Spot accents */
  --coti-cyan: #59D0FF;
  --coti-lime: #C9FF83;
  --coti-green: #08D299;
  --coti-pink: #D745FF;
  --coti-purple: #831EE5;

  /* Extended blues + neutrals (pulled from live coti.io CSS) */
  --coti-blue-deep: #0E1C86;   /* darker COTI blue */
  --coti-blue-ink: #070A47;    /* near-black blue */
  --coti-blue-mid: #1D64FF;
  --coti-blue-lt: #4BB1FF;     /* light azure used in card gradients */
  --coti-cyan-soft: #85E1FF;
  --coti-teal: #67DAB5;
  --coti-ink: #17191C;         /* body text on light */
  --coti-slate: #334267;

  /* Radii (from live site: 8 buttons · 12–16 cards · 32 pills) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 32px;

  /* Brand gradients (guide §02) */
  --gradient-blue: linear-gradient(135deg, #59D0FF 0%, #1E29F6 100%);
  --gradient-lime: linear-gradient(135deg, #C9FF83 0%, #1E29F6 100%);
  --gradient-pink: linear-gradient(135deg, #D745FF 0%, #1E29F6 100%);
  --gradient-deep: linear-gradient(135deg, #1E29F6 0%, #04133D 100%);
  /* Card top-strips (multi-stop, echoing the screenshots) */
  --strip-lime:  linear-gradient(90deg, #08D299 0%, #59D0FF 45%, #C9FF83 100%);
  --strip-cyan:  linear-gradient(90deg, #59D0FF 0%, #831EE5 55%, #D745FF 100%);
  --strip-blue:  linear-gradient(90deg, #59D0FF 0%, #1E29F6 100%);
  --strip-pink:  linear-gradient(90deg, #D745FF 0%, #831EE5 55%, #1E29F6 100%);
  --strip-mix:   linear-gradient(90deg, #C9FF83 0%, #59D0FF 50%, #831EE5 100%);

  /* Dark surface ramp (from globals.css dark theme) */
  --surface-0: #04133D;
  --surface-1: #0A1A4D;
  --surface-2: #0F2364;
  --surface-3: #142B7A;

  --text-primary: #FFFFFF;
  --text-secondary: #A6B0E8;
  --text-tertiary: #7E88BE;
  --text-muted: #4A5491;

  --border-subtle: rgba(166, 176, 232, 0.12);
  --border-default: rgba(166, 176, 232, 0.20);
  --border-strong: rgba(89, 208, 255, 0.32);

  --fill-1: rgba(255, 255, 255, 0.035);
  --fill-2: rgba(255, 255, 255, 0.08);

  --accent: #59D0FF;
  --accent-2: #C9FF83;

  /* Type scale */
  --fs-12: 0.75rem;  --fs-14: 0.875rem; --fs-16: 1rem;    --fs-18: 1.125rem;
  --fs-20: 1.25rem;  --fs-24: 1.5rem;   --fs-32: 2rem;    --fs-40: 2.5rem;
  --fs-48: 3rem;     --fs-64: 4rem;     --fs-80: 5rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --maxw: 1200px;
  --nav-h: 76px;
}

/* ── Reset / base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  position: relative;
  font-family: "Dazzed", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--coti-black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── Single cinematic image behind the ENTIRE page ──────────────────────────
   One tall render spans hero → footer so the beams flow unbroken, zero seams.
   A light dark scrim keeps text legible; every section sits transparent over it. */
.page-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(5, 10, 38, 0.48), rgba(5, 10, 38, 0.52)),
    url("img/whole-bg.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, top center;
  background-size: cover, cover;
}
/* fine film grain over the backdrop — masks the low-res source's upscaling
   artifacts and banding, reads as intentional/cinematic rather than soft */
.page-bg::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Dazzed Heavy on the real site is weight 900 with tight tracking */
h1, h2, h3 { font-weight: 900; line-height: 1.08; letter-spacing: -0.011em; }
h1 { line-height: 1.02; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-weight: 600;
  font-size: var(--fs-14);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: var(--fs-16);
  padding: 15px 30px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

/* Primary: near-black navy pill w/ white text (matches site CTAs) */
.btn-primary {
  background: var(--coti-black);
  color: #fff;
  box-shadow: 0 8px 30px rgba(4, 5, 9, 0.45);
}
.btn-primary:hover { background: #0b1020; transform: translateY(-2px); }

/* Bright accent variant for on-navy sections */
.btn-accent {
  background: var(--coti-white);
  color: var(--coti-navy);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(255,255,255,0.18); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Navigation ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(5, 10, 38, 0.55);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(166, 176, 232, 0.10);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { color: #fff; }
.nav-logo svg { height: 26px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 500;
  font-size: var(--fs-16);
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta { padding: 11px 22px; font-size: var(--fs-14); }
/* The in-menu CTA is only for the mobile dropdown; the desktop CTA lives in .nav-actions */
.nav-links > .nav-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 24px;
  background: #fff; border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Section rhythm ────────────────────────────────────────────────────────── */
.section { padding-block: 104px; position: relative; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 14px 0 20px; }
.section-head p { color: var(--text-secondary); font-size: var(--fs-18); }

/* The whole page shares one backdrop (.page-bg above) — sections are transparent */
.darkflow { position: relative; background: transparent; }
.darkflow > .section { position: relative; }

.bg-coti,
.bg-deep,
.bg-navy,
.nodes-setup-bg { background: transparent; }

/* Grain overlay utility */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════════════ HERO ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: transparent;
  padding-top: 96px;
  padding-bottom: 120px;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-copy { max-width: 620px; }
.hero-copy .eyebrow { color: rgba(255,255,255,0.85); }
.hero h1 {
  font-size: clamp(2.75rem, 6.4vw, 5rem);
  margin: 18px 0 0;
  color: #fff;
}
.hero-sub {
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: rgba(255,255,255,0.92);
  margin-top: 18px;
}
.hero-lede {
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-18);
  margin-top: 22px;
}
.hero-lede + .hero-lede { margin-top: 14px; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { color: rgba(255,255,255,0.75); font-size: var(--fs-14); }

/* Real COTI isometric "flags" artwork, full-bleed on the right of the hero */
/* hero image now comes from the single page-wide .page-bg */
.hero-art { display: none; }
/* Ofek liked the hero's tinted overlay — apply the SAME layer to EVERY section
   so the whole LP shares it: dark on the left (text pops) clearing to the beams
   on the right. (No bottom fade here — that would band at each section seam.) */
.hero-scrim,
.darkflow > .section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(5, 10, 38, 0.90) 0%,
    rgba(5, 10, 38, 0.72) 34%,
    rgba(5, 10, 38, 0.30) 62%,
    rgba(5, 10, 38, 0) 82%);
}
/* keep each section's content above its overlay */
.darkflow > .section > .container { position: relative; z-index: 2; }

/* ═══════════════ WHAT'S COMING — feature cards ══════════════════════════════ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  /* Glassmorphism to match live coti.io cards: translucent blue gradient,
     backdrop blur, soft shadow, faint white border */
  background: linear-gradient(250deg, rgba(30, 41, 246, 0.14) 0%, rgba(7, 10, 71, 0.38) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  padding: 34px 32px 32px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--strip-blue);
}
.card:nth-child(1)::before { background: var(--strip-lime); }
.card:nth-child(2)::before { background: var(--strip-cyan); }
.card:nth-child(3)::before { background: var(--strip-blue); }
.card:nth-child(4)::before { background: var(--strip-pink); }
.card:nth-child(5)::before { background: var(--strip-mix); }
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px rgba(4, 5, 9, 0.45);
}
.card h3 { font-size: var(--fs-24); margin-bottom: 12px; font-weight: 600; letter-spacing: -0.005em; }
.step h3, .form-success h3 { font-weight: 600; letter-spacing: -0.005em; }
.card p { color: var(--text-secondary); font-size: var(--fs-16); }
.card-wide { grid-column: 1 / -1; }

/* ═══════════════ TIMELINE — Waitlist to Live Node ═══════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  /* same semi-transparent glass as the cards + form, so the continuous backdrop
     shows through and every surface reads as one material */
  background: linear-gradient(250deg, rgba(30, 41, 246, 0.14) 0%, rgba(7, 10, 71, 0.38) 100%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 36px 30px;
}
.step-num {
  font-weight: 800;
  font-size: var(--fs-48);
  line-height: 1;
  color: var(--coti-lime);
  margin-bottom: 18px;
}
.step h3 { font-size: var(--fs-20); margin-bottom: 10px; }
.step p { color: var(--text-secondary); font-size: var(--fs-16); }

/* ═══════════════ WAITLIST FORM ══════════════════════════════════════════════ */
.waitlist-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.waitlist-intro h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 18px; }
.waitlist-intro p { color: var(--text-secondary); font-size: var(--fs-18); }

.form-card {
  background: linear-gradient(250deg, rgba(30, 41, 246, 0.18) 0%, rgba(7, 10, 71, 0.46) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-14);
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.field label .req { color: var(--coti-pink); }
.field input,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-16);
  font-weight: 500;
  color: #fff;
  background: rgba(4, 5, 9, 0.35);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23A6B0E8' stroke-width='2'%3E%3Cpath d='M2 4l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
.field input::placeholder { color: var(--text-muted); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(89, 208, 255, 0.18);
}
.field select option { color: #000; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 22px;
  cursor: pointer;
}
.consent input {
  appearance: none;
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: rgba(4, 5, 9, 0.35);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.consent input:checked {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2304133D' stroke-width='2.5'%3E%3Cpath d='M2.5 7.5l3 3 6-6.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--accent);
}
.consent span { font-size: var(--fs-14); color: var(--text-secondary); }

.form-error {
  color: #ff9db3;
  font-size: var(--fs-14);
  margin-bottom: 14px;
  min-height: 1px;
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 20px 8px 8px;
}
.form-success.show { display: block; }
.form-card.done .form-body { display: none; }
.success-icon {
  width: 62px; height: 62px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient-blue);
  box-shadow: 0 10px 34px rgba(89, 208, 255, 0.35);
}
.success-icon svg { width: 30px; height: 30px; color: #fff; }
.form-success h3 { font-size: var(--fs-24); margin-bottom: 12px; }
.form-success p { color: var(--text-secondary); margin-bottom: 24px; }

/* ═══════════════ FAQ ════════════════════════════════════════════════════════ */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: var(--fs-20);
  padding: 26px 4px;
}
.faq-q .icon {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  position: relative;
}
.faq-q .icon::before,
.faq-q .icon::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 14px; height: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease-out);
}
.faq-q .icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-q .icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--ease-out);
}
.faq-a-inner {
  padding: 0 4px 26px;
  color: var(--text-secondary);
  font-size: var(--fs-16);
  max-width: 760px;
}

/* ═══════════════ FOOTER ═════════════════════════════════════════════════════ */
.footer {
  position: relative;
  background: transparent;
  border-top: 1px solid var(--border-subtle);
  padding-block: 56px;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo svg { height: 24px; color: #fff; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: var(--fs-14); transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: var(--text-muted); font-size: var(--fs-14); width: 100%; }

/* ═══════════════ RESPONSIVE ═════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art, .hero-scrim { display: none; }
  .waitlist-wrap { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding-block: 72px; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--coti-blue);
    padding: 18px 24px 26px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-140%);
    transition: transform 0.3s var(--ease-out);
    box-shadow: 0 24px 50px rgba(4,5,9,0.5);
  }
  .nav.open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 12px 0; font-size: var(--fs-18); width: 100%; }
  .nav-links > .nav-cta {
    display: inline-flex;
    width: auto;
    margin-top: 12px;
    padding: 13px 24px;
    color: var(--coti-navy);
  }
  .nav-desktop-cta { display: none; }
  .nav-toggle { display: flex; }
  .form-card { padding: 26px 22px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COTI × AVALANCHE theme layer — re-skins the Nodes system for the partnership.
   Adds Avalanche red as a co-accent alongside COTI blue. Cascade overrides above.
   ═══════════════════════════════════════════════════════════════════════════ */
:root{
  --av-red:#E6212F;         /* official Avalanche red (from their logo files) */
  --av-red-deep:#B3121C;
  --bg-body:#04060F;        /* deeper near-black to match the cinematic bg */
}
body{ background:#04060F; }

/* Avalanche red is the primary CTA; COTI blue stays the material of the glass */
.btn-red{ background:var(--av-red); color:#fff; box-shadow:0 10px 30px rgba(230,33,47,0.28); }
.btn-red:hover{ background:var(--av-red-deep); transform:translateY(-2px); box-shadow:0 16px 40px rgba(230,33,47,0.36); }
.btn-glass{
  background:rgba(255,255,255,0.06); color:#fff;
  border:1px solid rgba(255,255,255,0.22);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
}
.btn-glass:hover{ border-color:rgba(255,255,255,0.5); transform:translateY(-2px); }

.eyebrow-red{ color:var(--av-red); }
.grad-red{
  background:linear-gradient(120deg,#FF4A56 0%, var(--av-red) 55%, #7C0F17 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ── Co-brand nav lockup ─────────────────────────────────────────────────── */
.cobrand{ display:flex; align-items:center; gap:14px; color:#fff; }
.cobrand .cb-coti{ height:24px; width:auto; color:#fff; }
.cobrand .cb-avax{ height:20px; width:auto; }
.cobrand .cb-x{ color:var(--text-tertiary); font-weight:500; font-size:18px; margin-inline:-2px; }
@media (max-width:768px){ .cobrand .cb-coti{height:21px;} .cobrand .cb-avax{height:17px;} }

/* ── Co-brand signature strips (deck lockup) ─────────────────────────────── */
.wordstrip,.footstrip{ position:relative; z-index:1; background:var(--av-red); }
.wordstrip-inner,.footstrip-inner{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding-block:13px; color:#fff; font-weight:700; font-size:var(--fs-14);
  letter-spacing:0.04em; text-transform:uppercase;
}
.ws-logos{ display:inline-flex; align-items:center; gap:12px; }
.ws-logos img{ height:15px; width:auto; }
.ws-logos svg{ height:15px; width:auto; color:#fff; }
.ws-logos i{ width:1px; height:15px; background:rgba(255,255,255,0.55); }
@media (max-width:640px){
  .wordstrip-inner,.footstrip-inner{ flex-direction:column; align-items:flex-start; gap:9px; font-size:11px; }
}

/* ── Card top-strips: COTI-blue ↔ Avalanche-red co-brand rhythm ──────────── */
.card:nth-child(1)::before{ background:linear-gradient(90deg,#59D0FF 0%, #1E29F6 100%); }
.card:nth-child(2)::before{ background:linear-gradient(90deg,#FF4A56 0%, var(--av-red) 100%); }
.card:nth-child(3)::before{ background:linear-gradient(90deg,#59D0FF 0%, #1E29F6 100%); }
.card:nth-child(4)::before{ background:linear-gradient(90deg,#FF4A56 0%, var(--av-red) 100%); }
.card:nth-child(5)::before{ background:linear-gradient(90deg,#1E29F6 0%, #831EE5 45%, var(--av-red) 100%); }

/* Step numbers in Avalanche red; allow a 4-across flow */
.step-num{ color:var(--av-red); }
.steps-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:960px){ .steps-4{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .steps-4{ grid-template-columns:1fr; } }

.fine-note{
  margin-top:30px; padding-left:16px; border-left:3px solid var(--text-muted);
  color:var(--text-tertiary); font-size:var(--fs-14); max-width:840px; line-height:1.6;
}

/* ── Portal split section ────────────────────────────────────────────────── */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.split-copy h2{ font-size:clamp(2rem,4.5vw,3rem); margin:14px 0 8px; }
.ticklist{ margin:26px 0 30px; display:grid; gap:15px; }
.ticklist li{ position:relative; padding-left:26px; color:var(--text-secondary); font-size:var(--fs-18); }
.ticklist li::before{ content:""; position:absolute; left:0; top:0.55em; width:11px; height:11px; background:var(--av-red); border-radius:2px; }
.portal-card{
  background:linear-gradient(250deg, rgba(30,41,246,0.18) 0%, rgba(7,10,71,0.5) 100%);
  border:1px solid rgba(255,255,255,0.16); border-radius:var(--r-lg);
  box-shadow:0 30px 70px rgba(0,0,0,0.5);
  -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); overflow:hidden;
}
.pc-bar{ display:flex; align-items:center; gap:7px; padding:13px 16px; border-bottom:1px solid rgba(255,255,255,0.08); }
.pc-bar i{ width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,0.18); }
.pc-bar span{ margin-left:10px; font-size:var(--fs-14); color:var(--text-tertiary); }
.pc-body{ padding:28px 26px; }
.pc-cap{ font-size:var(--fs-12); letter-spacing:0.16em; text-transform:uppercase; color:var(--text-tertiary); }
.pc-bal{ font-size:2.6rem; font-weight:900; color:#fff; line-height:1; margin-top:8px; }
.pc-sub{ font-size:var(--fs-14); color:var(--text-tertiary); margin-top:6px; }
.pc-rows{ display:grid; grid-template-columns:1fr auto; gap:12px 10px; margin:22px 0; padding-top:18px; border-top:1px solid rgba(255,255,255,0.08); font-size:var(--fs-16); color:var(--text-secondary); }
.pc-rows span:nth-child(even){ color:var(--text-tertiary); }
.pc-btn{ text-align:center; padding:13px; background:var(--coti-blue); color:#fff; font-weight:600; border-radius:var(--r-sm); }
@media (max-width:960px){ .split{ grid-template-columns:1fr; gap:36px; } }

/* ── Contact points list ─────────────────────────────────────────────────── */
.contact-points{ margin-top:28px; display:grid; gap:2px; border-top:1px solid var(--border-subtle); }
.contact-points li{ display:flex; align-items:center; gap:18px; padding:14px 0; border-bottom:1px solid var(--border-subtle); }
.contact-points li span{ min-width:88px; font-size:var(--fs-12); letter-spacing:0.14em; text-transform:uppercase; color:var(--text-tertiary); font-weight:600; }
.contact-points li a{ color:#fff; font-weight:600; }
.contact-points li a:hover{ color:var(--av-red); }

/* Form focus + required marker in Avalanche red for co-brand cohesion */
.field input:focus,.field select:focus{ border-color:var(--av-red); box-shadow:0 0 0 3px rgba(230,33,47,0.16); }
.field label .req{ color:var(--av-red); }
.success-icon{ background:linear-gradient(135deg,#FF4A56,var(--av-red)); box-shadow:0 10px 34px rgba(230,33,47,0.35); }
.faq-q .icon::before,.faq-q .icon::after{ background:var(--av-red); }

/* Footer wants a touch more separation from the red strip */
.footer{ padding-top:48px; }

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN-ENG PASS — reveal-on-scroll, premium glass, press feedback
   (Emil Kowalski craft rules: custom ease-out, translate≠transform, stagger,
    GPU-only props, reduced-motion safe.)
   ═══════════════════════════════════════════════════════════════════════════ */
:root{ --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }  /* stronger ease-out */

/* ── Press feedback on every button (instant, responsive) ── */
.btn:active{ transform: scale(0.97); }

/* ── Footer copyright: readable ── */
.footer-copy{ color: rgba(255,255,255,0.82); }

/* ── Richer glass on every surface ── */
.card,.step,.form-card,.portal-card{
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 14px 34px rgba(0,0,0,0.28);
}

/* card + step: contain pseudo stacking, lift on hover, pointer-tracked sheen */
.card,.step{ position: relative; z-index: 0; }
.card > *,.step > *{ position: relative; z-index: 1; }
.card::before{ z-index: 2; }
.card::after,.step::after{
  content:""; position:absolute; inset:0; border-radius:inherit; z-index:0; pointer-events:none;
  opacity:0; transition: opacity .3s var(--ease-out);
}
.card::after{ background: radial-gradient(440px circle at var(--mx,50%) var(--my,-10%), rgba(89,208,255,0.16), transparent 45%); }
.step::after{ background: radial-gradient(360px circle at var(--mx,50%) var(--my,-10%), rgba(230,33,47,0.16), transparent 45%); }

@media (hover:hover) and (pointer:fine){
  .card:hover,.step:hover{
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 26px 60px rgba(4,5,9,0.55);
  }
  .card:hover::after,.step:hover::after{ opacity:1; }
}

/* ── Reveal-on-scroll (states have no transition; transition lives on element) ── */
.js [data-reveal]{ opacity:0; translate:0 22px; }
.js [data-reveal].in{ opacity:1; translate:0 0; }
.js [data-reveal-stagger] > *{ opacity:0; translate:0 22px; }
.js [data-reveal-stagger] > *.in{ opacity:1; translate:0 0; }

/* generic reveal transition (non-hover elements) */
.js [data-reveal],
.js [data-reveal-stagger] > *{
  transition: opacity .6s var(--ease-out), translate .6s var(--ease-out);
  will-change: opacity, translate;
}
/* cards/steps need transform (hover) alongside translate (reveal) — one
   declaration, higher specificity so it wins over the generic rule above */
.js [data-reveal-stagger] > .card,
.js [data-reveal-stagger] > .step,
.js [data-reveal-stagger] > .usecase{
  transition:
    opacity .6s var(--ease-out),
    translate .6s var(--ease-out),
    transform .28s var(--ease-out),
    border-color .28s var(--ease-out),
    box-shadow .28s var(--ease-out);
}

@media (prefers-reduced-motion: reduce){
  .js [data-reveal],
  .js [data-reveal-stagger] > *{ opacity:1 !important; translate:none !important; transition:none !important; }
  .card::after,.step::after{ display:none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM FEATURE CARDS — icon chip + refined glass + per-card accent
   ═══════════════════════════════════════════════════════════════════════════ */
.card{
  border-radius:20px;
  padding:28px 28px 30px;
  border:1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0) 42%),
    linear-gradient(250deg, rgba(30,41,246,0.15) 0%, rgba(7,10,71,0.42) 100%);
}
.card::before{ display:none; }               /* retire the old flat top strip */

/* per-card accent tokens */
.card[data-accent="blue"]{ --acc:#7FDBFF; --acc-glow:rgba(89,208,255,0.30); --acc-sheen:rgba(89,208,255,0.16); }
.card[data-accent="red"] { --acc:#FF6A72; --acc-glow:rgba(230,33,47,0.28);  --acc-sheen:rgba(230,33,47,0.16);  }

/* cursor spotlight uses the card's own accent */
.card::after{ background: radial-gradient(460px circle at var(--mx,50%) var(--my,-10%), var(--acc-sheen,rgba(89,208,255,0.16)), transparent 46%); }

/* icon chip */
.card-ic{
  display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px; border-radius:14px; margin-bottom:22px;
  color:var(--acc,#7FDBFF);
  background:linear-gradient(160deg, rgba(255,255,255,0.13), rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 8px 20px rgba(0,0,0,0.35), 0 6px 26px var(--acc-glow,transparent);
  transition: box-shadow .28s var(--ease-out), transform .28s var(--ease-out);
}
.card-ic svg{ width:23px; height:23px; }
.card h3{ letter-spacing:-0.01em; }

/* wide summary card: blue→red top accent hairline */
.card-wide{
  background:
    linear-gradient(90deg, #59D0FF, #E6212F) top left / 100% 2px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 42%),
    linear-gradient(250deg, rgba(30,41,246,0.18) 0%, rgba(7,10,71,0.46) 100%);
}

@media (hover:hover) and (pointer:fine){
  .card:hover .card-ic{ transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 10px 24px rgba(0,0,0,0.4), 0 8px 34px var(--acc-glow,transparent); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS — locked-box journey, phase steps, stats, demo CTA
   ═══════════════════════════════════════════════════════════════════════════ */
/* accent tokens available to any element (cards + steps + journey) */
[data-accent="blue"]{ --acc:#7FDBFF; --acc-glow:rgba(89,208,255,0.30); --acc-sheen:rgba(89,208,255,0.16); }
[data-accent="red"] { --acc:#FF6A72; --acc-glow:rgba(230,33,47,0.28);  --acc-sheen:rgba(230,33,47,0.16);  }
.step::after{ background: radial-gradient(360px circle at var(--mx,50%) var(--my,-10%), var(--acc-sheen,rgba(230,33,47,0.16)), transparent 46%); }

/* ── round-trip map ── */
.journey{ display:flex; align-items:center; gap:0; margin:clamp(36px,5vw,54px) 0 16px; }
.jnode{
  flex:1; display:flex; flex-direction:column; align-items:center; text-align:center; gap:2px;
  padding:24px 16px; border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 52%),
             linear-gradient(250deg, rgba(30,41,246,0.14), rgba(7,10,71,0.40));
  border:1px solid rgba(255,255,255,0.10);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08), 0 14px 34px rgba(0,0,0,0.28);
}
.jnode-mid{ border-color:rgba(89,208,255,0.28); box-shadow:inset 0 1px 0 rgba(255,255,255,0.10), 0 18px 44px rgba(0,0,0,0.4), 0 0 40px rgba(89,208,255,0.10); }
.jn-ic{
  width:56px; height:56px; border-radius:15px; display:grid; place-items:center; margin-bottom:10px;
  border:1px solid rgba(255,255,255,0.14);
  background:linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.2);
}
.jn-ic svg{ width:26px; height:26px; }
.jn-av{ color:var(--av-red); }
.jn-coti{ color:#fff; }
.jn-t{ font-weight:700; color:#fff; font-size:1.05rem; letter-spacing:-0.01em; }
.jn-s{ font-size:0.85rem; color:var(--text-tertiary); }

.jseg{ position:relative; flex:0 0 clamp(48px,7vw,110px); align-self:center; height:2px; border-radius:2px;
       background:linear-gradient(90deg, rgba(89,208,255,0.55), rgba(230,33,47,0.55)); }
.jdot{ position:absolute; top:50%; left:0; width:11px; height:11px; border-radius:50%; background:#fff;
       box-shadow:0 0 14px 3px rgba(120,200,255,0.85); translate:0 -50%; animation:travel 3.2s ease-in-out infinite; }
.jdot-2{ animation-delay:1.6s; box-shadow:0 0 14px 3px rgba(255,120,130,0.85); }
@keyframes travel{ 0%{ left:0; opacity:0; } 12%{ opacity:1; } 85%{ opacity:1; } 100%{ left:100%; opacity:0; } }

.journey-cap{ text-align:center; color:var(--text-secondary); font-size:0.95rem; margin-bottom:6px; }
.lockpill{ display:inline-flex; align-items:center; gap:7px; padding:5px 13px; border-radius:999px;
  background:rgba(89,208,255,0.10); border:1px solid rgba(89,208,255,0.30); color:#bfeaff; font-weight:600; font-size:0.82rem; }
.lockpill svg{ width:14px; height:14px; }

/* ── phase steps (icon chip + phase label; no number) ── */
.steps-4 .step{ padding:30px 26px; }
.step .card-ic{ margin-bottom:16px; }
.step-ph{ font-size:0.72rem; letter-spacing:0.13em; text-transform:uppercase; color:var(--text-tertiary); font-weight:700; margin-bottom:6px; }
.step h3{ margin-bottom:10px; }

/* ── builder stats band ── */
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin:clamp(40px,5vw,58px) 0 8px;
        padding:28px 0; border-top:1px solid var(--border-subtle); border-bottom:1px solid var(--border-subtle); }
.stat{ text-align:center; }
.stat-n{ display:block; font-weight:900; font-size:clamp(1.4rem,2.7vw,2.05rem); color:#fff; letter-spacing:-0.02em; }
.stat-l{ display:block; margin-top:7px; font-size:0.85rem; color:var(--text-tertiary); }

/* ── demo CTA ── */
.how-cta{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-top:34px; }
.how-cta-note{ color:var(--text-tertiary); font-size:0.9rem; }

@media (max-width:768px){
  .journey{ flex-direction:column; align-items:stretch; }
  .jseg{ flex-basis:32px; width:2px; height:32px; align-self:center; background:linear-gradient(180deg, rgba(89,208,255,0.55), rgba(230,33,47,0.55)); }
  .jdot{ display:none; }
  .stats{ grid-template-columns:1fr 1fr; gap:26px 20px; }
}
@media (prefers-reduced-motion: reduce){ .jdot{ display:none; } }

/* let the long demo-CTA label wrap on small screens (base .btn is nowrap) */
.how-cta .btn{ white-space:normal; max-width:100%; }
@media (max-width:560px){ .how-cta{ width:100%; } .how-cta .btn{ width:100%; } }

/* ═══════════════════════════════════════════════════════════════════════════
   INTERACTIVE "FOLLOW A PRIVATE REQUEST" PLAYER (#pod)
   Shown only when pod.js initializes (.pod-ready) on ≥560px + motion allowed;
   otherwise the static .pod-fallback phase cards show.
   ═══════════════════════════════════════════════════════════════════════════ */
:root{ --ease-in-out: cubic-bezier(0.77,0,0.175,1); }

.pod{ display:none; }
.pod-ready .pod{ display:block; }
.pod-ready .pod-fallback{ display:none; }
@media (max-width:560px){ .pod-ready .pod{ display:none; } .pod-ready .pod-fallback{ display:block; } }

.pod{
  margin-top:clamp(22px,3.5vw,34px);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 30%),
             linear-gradient(250deg, rgba(30,41,246,0.12), rgba(7,10,71,0.42));
  -webkit-backdrop-filter:blur(18px) saturate(130%); backdrop-filter:blur(18px) saturate(130%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08), 0 30px 70px rgba(0,0,0,0.45);
  padding:clamp(15px,2vw,22px);
  overflow:hidden;
}

/* top bar: mode toggle + play */
.pod-bar{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; flex-wrap:wrap; }
.pod-toggle{ display:inline-flex; padding:4px; gap:4px; border-radius:999px; background:rgba(4,5,9,0.4); border:1px solid var(--border-subtle); }
.pt-opt{ font-family:inherit; font-weight:600; font-size:0.82rem; color:var(--text-tertiary); background:transparent; border:0; padding:8px 16px; border-radius:999px; cursor:pointer; transition:color .2s, background .2s; }
.pt-opt.is-on{ color:#fff; background:linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)); box-shadow:inset 0 1px 0 rgba(255,255,255,0.2); }
.pt-opt:hover{ color:#fff; }

.pod-play{ display:inline-flex; align-items:center; gap:9px; font-family:inherit; font-weight:700; font-size:0.9rem; color:#fff; cursor:pointer;
  padding:11px 20px; border-radius:999px; background:var(--av-red); border:1px solid var(--av-red); box-shadow:0 8px 24px rgba(230,33,47,0.3); transition:transform .18s var(--ease-out), background .2s; }
.pod-play:hover{ background:var(--av-red-deep); transform:translateY(-1px); }
.pod-play:active{ transform:scale(0.97); }
.pod-play svg{ width:16px; height:16px; }
.pod-play .i-replay{ display:none; }
.pod[data-done="1"] .pod-play .i-play{ display:none; }
.pod[data-done="1"] .pod-play .i-replay{ display:inline; }

/* stage */
.pod-stage{ position:relative; display:grid; grid-template-columns:1fr minmax(90px,0.7fr) 1fr; gap:14px; align-items:stretch; overflow:visible; }
.pod-panel{ position:relative; border-radius:16px; padding:16px 16px; min-height:148px;
  background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 46%), linear-gradient(250deg, rgba(30,41,246,0.12), rgba(7,10,71,0.36));
  border:1px solid rgba(255,255,255,0.10); transition:border-color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.pod-panel.is-active{ border-color:var(--border-strong); box-shadow:0 0 0 1px rgba(89,208,255,0.2), 0 18px 44px rgba(0,0,0,0.4); }
.pod-avax.is-active{ border-color:rgba(230,33,47,0.45); box-shadow:0 0 0 1px rgba(230,33,47,0.28), 0 18px 44px rgba(0,0,0,0.4); }

.pp-head{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.pp-logo{ width:26px; height:26px; display:grid; place-items:center; }
.pp-logo svg{ width:100%; height:auto; }
.pod-avax .pp-logo{ color:var(--av-red); }
.pp-logo-coti{ color:#fff; }
.pp-name{ font-weight:800; color:#fff; letter-spacing:-0.01em; }
.pp-tag{ width:100%; font-size:0.78rem; color:var(--text-tertiary); }

.pp-io{ margin-top:15px; }
.io-lab{ display:block; font-size:0.7rem; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-muted); font-weight:700; margin-bottom:6px; }
.io-nums{ display:inline-flex; align-items:center; gap:10px; font-family:var(--font-display); font-size:1.8rem; color:#fff; }
.io-nums i{ color:var(--text-tertiary); font-style:normal; }
.io-nums b{ font-weight:400; }

.pp-out{ margin-top:12px; display:flex; align-items:baseline; gap:8px; opacity:0; transform:translateY(6px); transition:opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.pod-avax.reveal-out .pp-out{ opacity:1; transform:none; }
.po-eq{ color:var(--text-tertiary); font-size:1.4rem; }
.po-val{ font-family:var(--font-display); font-size:1.9rem; color:#fff; line-height:1; }
.po-note{ font-size:0.72rem; color:var(--coti-lime); font-weight:600; }

/* track: rail + inbox + traveling box */
.pod-track{ position:relative; display:grid; place-items:center; overflow:visible; }
.pod-rail{ position:absolute; left:-14px; right:-14px; top:50%; height:2px; transform:translateY(-50%);
  background:linear-gradient(90deg, rgba(230,33,47,0.5), rgba(89,208,255,0.5)); border-radius:2px; }
.pod-inbox{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:6px; color:var(--text-secondary);
  padding:12px 10px; border-radius:13px; background:rgba(4,6,15,0.6); border:1px solid rgba(255,255,255,0.12); transition:border-color .3s, box-shadow .3s, color .3s; }
.pod-inbox svg{ width:22px; height:22px; }
.pod-inbox em{ font-style:normal; font-size:0.7rem; font-weight:700; letter-spacing:0.04em; }
.pod-inbox.is-active{ color:#fff; border-color:var(--border-strong); box-shadow:0 0 22px rgba(89,208,255,0.25); }

/* the packet */
.pod-box{ position:absolute; left:0; top:0; z-index:5; display:inline-flex; align-items:center; gap:8px;
  padding:11px 14px; border-radius:13px; color:#fff; cursor:default;
  background:linear-gradient(180deg, rgba(40,52,120,0.92), rgba(12,16,50,0.96));
  border:1px solid rgba(140,170,255,0.4);
  box-shadow:0 12px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.18);
  transition:transform 1.25s var(--ease-in-out), box-shadow .4s var(--ease-out), border-color .4s;
  will-change:transform; }
.pod-box .box-lock{ display:inline-grid; place-items:center; width:22px; height:22px; color:#9fb4ff; }
.pod-box .box-lock svg{ width:17px; height:17px; }
.pod-box .l-open{ display:none; }
.pod-box.is-open .l-closed{ display:none; }
.pod-box.is-open .l-open{ display:inline; }
.pod-box.is-open{ border-color:rgba(201,255,131,0.6); box-shadow:0 12px 30px rgba(0,0,0,0.5), 0 0 30px rgba(201,255,131,0.25), inset 0 1px 0 rgba(255,255,255,0.2); }
/* Two ciphertexts, one per private input — mirrors the `7 + 12` in .io-nums.
   On unlock the pair is swapped for the single plaintext answer (.bc-sum). */
.box-cipher{ display:inline-flex; align-items:center; gap:6px;
  font-family:var(--font-display); font-size:0.94rem; letter-spacing:0.02em; color:#dbe4ff; text-align:center; }
.box-cipher b{ font-weight:400; min-width:57px; }
.box-cipher i{ font-style:normal; color:var(--text-tertiary); }
.box-cipher .bc-sum{ display:none; min-width:44px; font-size:1.15rem; }
.pod-box.is-open .box-cipher{ color:#fff; }
.pod-box.is-open .box-cipher b:not(.bc-sum),
.pod-box.is-open .box-cipher i{ display:none; }
.pod-box.is-open .box-cipher .bc-sum{ display:inline; }
/* Narrower panels can't fit two full-size ciphertexts beside "7 + 12" without
   the packet riding over the numbers — trim the pair instead of moving it. */
@media (max-width: 1180px){
  .box-cipher{ font-size:0.84rem; gap:5px; }
  .box-cipher b{ min-width:50px; }
  .pod-box{ padding:10px 12px; gap:6px; }
}
/* garbled-circuits shimmer while computing */
.pod-box.is-computing{ border-color:rgba(89,208,255,0.6); box-shadow:0 12px 30px rgba(0,0,0,0.5), 0 0 34px rgba(89,208,255,0.35), inset 0 1px 0 rgba(255,255,255,0.2); }
.pod-box.is-computing::after{ content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(110deg, transparent 20%, rgba(89,208,255,0.5) 50%, transparent 80%); background-size:220% 100%;
  mix-blend-mode:screen; animation:garble 1s linear infinite; }
@keyframes garble{ from{ background-position:120% 0; } to{ background-position:-120% 0; } }
/* peek tooltip */
.box-peek{ position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%) translateY(4px); white-space:nowrap;
  font-size:0.72rem; font-weight:600; color:#fff; background:rgba(4,6,15,0.92); border:1px solid rgba(255,255,255,0.16); padding:5px 10px; border-radius:8px;
  opacity:0; pointer-events:none; transition:opacity .2s var(--ease-out), transform .2s var(--ease-out); }
.pod-box:not(.is-open):hover .box-peek,.pod-box:not(.is-open):focus-visible .box-peek{ opacity:1; transform:translateX(-50%) translateY(0); }

.pp-mpc{ margin-top:16px; display:flex; flex-direction:column; gap:9px; opacity:0.5; transition:opacity .3s; }
.pod-coti.is-active .pp-mpc{ opacity:1; }
.mpc-dots{ display:inline-flex; gap:6px; }
.mpc-dots i{ width:8px; height:8px; border-radius:50%; background:var(--coti-cyan); opacity:0.35; }
.pod-coti.is-active .mpc-dots i{ animation:mpcpulse 1s ease-in-out infinite; }
.pod-coti.is-active .mpc-dots i:nth-child(2){ animation-delay:.18s; }
.pod-coti.is-active .mpc-dots i:nth-child(3){ animation-delay:.36s; }
@keyframes mpcpulse{ 0%,100%{ opacity:0.3; transform:translateY(0);} 50%{ opacity:1; transform:translateY(-3px);} }
.mpc-lab{ font-size:0.85rem; font-weight:700; color:var(--coti-cyan-soft); }

/* scrubber */
.pod-scrub{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:18px; position:relative; }
.ps{ display:flex; flex-direction:column; align-items:center; gap:9px; font-family:inherit; font-weight:700; font-size:0.78rem; letter-spacing:0.03em;
  color:var(--text-tertiary); background:transparent; border:0; cursor:pointer; padding:10px 4px 4px; border-radius:10px; transition:color .2s; }
.ps i{ width:12px; height:12px; border-radius:50%; background:rgba(255,255,255,0.16); box-shadow:0 0 0 4px rgba(255,255,255,0.04); transition:background .25s, box-shadow .25s, transform .25s; }
.ps:hover{ color:var(--text-secondary); }
.ps.is-done i{ background:var(--text-secondary); }
.ps.is-on{ color:#fff; }
.ps.is-on i{ background:var(--av-red); box-shadow:0 0 0 5px rgba(230,33,47,0.18); transform:scale(1.1); }
.pod-scrub::before{ content:""; position:absolute; top:16px; left:12.5%; right:12.5%; height:2px; background:rgba(255,255,255,0.1); z-index:-1; }

/* caption */
.pod-cap{ margin-top:14px; min-height:50px; }
.pc-ph{ font-size:0.72rem; letter-spacing:0.14em; text-transform:uppercase; font-weight:700; color:var(--av-red); margin-bottom:7px; }
.pod[data-phase="1"] .pc-ph,.pod[data-phase="2"] .pc-ph{ color:var(--coti-cyan); }
.pc-tx{ color:var(--text-secondary); font-size:0.96rem; line-height:1.45; max-width:760px; }

/* cost/speed meter */
.pod-meter{ display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:16px; padding-top:16px; border-top:1px solid var(--border-subtle); }
.pm{ display:grid; grid-template-columns:1fr auto; gap:6px 12px; align-items:center; }
.pm-l{ font-size:0.78rem; color:var(--text-tertiary); }
.pm-v{ font-weight:800; color:#fff; font-size:0.95rem; text-align:right; }
.pm-bar{ grid-column:1 / -1; height:6px; border-radius:6px; background:rgba(255,255,255,0.08); overflow:hidden; }
.pm-bar i{ display:block; height:100%; width:0; border-radius:6px; background:linear-gradient(90deg, var(--coti-cyan), var(--coti-blue)); transition:width 1.3s var(--ease-out) .3s; }
.pod-ready .pod-meter .pm-bar i{ width:var(--w); }

@media (max-width:820px){
  .pod-stage{ grid-template-columns:1fr; gap:12px; }
  .pod-track{ height:70px; }
  .pod-rail{ left:50%; right:auto; top:-6px; bottom:-6px; width:2px; height:auto; transform:translateX(-50%); background:linear-gradient(180deg, rgba(230,33,47,0.5), rgba(89,208,255,0.5)); }
  .pod-meter{ grid-template-columns:1fr; gap:16px; }
  .pod-panel{ min-height:0; }
}

/* ── Player updates: full logos, manual step controls, step-range chip ── */
.pod-bar,.pod-toggle,.pod-play{ display:none !important; }   /* removed toggle + play */

.pp-head{ flex-direction:column; align-items:flex-start; gap:10px; }
.pp-fulllogo{ height:22px; width:auto; }
.pp-fulllogo-coti{ height:24px; }
.pod-avax.is-active .pp-fulllogo,.pod-coti.is-active .pp-fulllogo{ filter:drop-shadow(0 0 10px rgba(255,255,255,0.15)); }

.pc-top{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.pc-ph{ margin-bottom:0; }
.pc-steps{ font-size:0.68rem; font-weight:700; letter-spacing:0.08em; color:var(--text-tertiary);
  padding:3px 10px; border:1px solid var(--border-subtle); border-radius:999px; white-space:nowrap; }

.pod-nav{ display:flex; align-items:center; justify-content:center; gap:16px; margin-top:16px; }
.pn-btn{ font-family:inherit; font-weight:700; font-size:0.9rem; color:#fff; cursor:pointer;
  padding:12px 22px; border-radius:999px; border:1px solid var(--border-default); background:rgba(255,255,255,0.05);
  transition:transform .18s var(--ease-out), background .2s, border-color .2s, opacity .2s; }
.pn-btn:hover{ border-color:var(--border-strong); background:rgba(255,255,255,0.09); }
.pn-btn:active{ transform:scale(0.97); }
.pn-btn:disabled{ opacity:0.35; cursor:not-allowed; }
.pn-next{ background:var(--av-red); border-color:var(--av-red); box-shadow:0 8px 24px rgba(230,33,47,0.3); }
.pn-next:hover{ background:var(--av-red-deep); border-color:var(--av-red-deep); }
.pn-count{ font-size:0.86rem; color:var(--text-tertiary); min-width:74px; text-align:center; }
.pn-count b{ color:#fff; }

/* the scrubber steps are now the primary "click each step" control — make them read as buttons */
.pod-scrub .ps{ cursor:pointer; }
.pod-scrub .ps:hover i{ background:var(--text-secondary); }

/* lone demo CTA reads better centered under the full-width section */
.how-cta{ justify-content:center; margin-top:38px; }

/* ── Playful co-brand touch: COTI logos recolor to Avalanche red on hover ──
   (currentColor gradient recolor; desktop pointer only, on dark-bg logos) */
.pp-fulllogo-coti{ color:#fff; height:24px; }
@media (hover:hover) and (pointer:fine){
  .cobrand .cb-coti,
  .footer-logo svg,
  .pp-fulllogo-coti{ transition:color .3s ease; }
  .cobrand .cb-coti:hover,
  .footer-logo:hover svg,
  .pp-fulllogo-coti:hover{ color:var(--av-red); }
}

/* ── Real red-flag COTI logo on hover (crossfade the red symbol over the white) ── */
.coti-swap .u-red{ opacity:0; }
/* cancel the earlier currentColor recolor — keep the white base crisp */
.cobrand .cb-coti:hover, .footer-logo:hover svg, .pp-fulllogo-coti:hover{ color:#fff; }
@media (hover:hover) and (pointer:fine){
  .coti-swap .u-red{ transition:opacity .28s ease; }
  .coti-swap:hover .u-red{ opacity:1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Outline-driven layout additions (COTI Privacy on Avalanche — team outline)
   New blocks: hero triangle, triangle ticklist, portal CTA row, use-cases,
   high-performance stats, "Turn Privacy On" final CTA.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero: Avalanche triangle glyph after the H1 */
.h1-tri{ display:inline-block; width:0.62em; height:0.62em; margin-left:0.24em;
  color:var(--av-red); vertical-align:baseline; }

/* Triangle bullet markers (Privacy Portal "now live" list) */
.ticklist-tri li::before{
  content:""; position:absolute; left:0; top:0.42em; width:0; height:0;
  background:none; border-radius:0;
  border-left:6px solid transparent; border-right:6px solid transparent;
  border-bottom:10px solid var(--av-red);
}
.split-lede{ color:var(--text-secondary); font-size:var(--fs-18,1.05rem); margin:-6px 0 20px; }

/* Portal CTA row (two buttons) */
.portal-cta{ display:flex; flex-wrap:wrap; gap:14px; margin-top:26px; }
@media (max-width:560px){ .portal-cta{ width:100%; } .portal-cta .btn{ flex:1 1 100%; } }

/* Privacy use cases */
/* Use cases — its own section (even spacing like the others); clean uniform tiles. */
.usecases{ display:flex; flex-wrap:wrap; justify-content:center; gap:18px; }
.usecase{ position:relative; z-index:0; overflow:hidden; flex:1 1 300px; max-width:360px;
  display:flex; flex-direction:column; align-items:flex-start; gap:16px;
  padding:30px 28px; border-radius:20px; border:1px solid rgba(255,255,255,0.12);
  background:linear-gradient(250deg, rgba(30,41,246,0.10) 0%, rgba(7,10,71,0.30) 100%);
  -webkit-backdrop-filter:blur(15px); backdrop-filter:blur(15px); box-shadow:0 12px 28px rgba(0,0,0,0.16); }
.usecase > *{ position:relative; z-index:1; }
/* cursor-tracked soft red/blue sheen — same system as the .card grids above */
.usecase::after{ content:""; position:absolute; inset:0; border-radius:inherit; z-index:0; pointer-events:none;
  opacity:0; transition:opacity .3s var(--ease-out);
  background:radial-gradient(240px circle at var(--mx,50%) var(--my,50%), var(--acc-sheen,rgba(89,208,255,0.16)), transparent 60%); }
@media (hover:hover) and (pointer:fine){
  .usecase:hover{ transform:translateY(-5px); border-color:var(--border-strong);
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.12), 0 24px 58px rgba(4,5,9,0.5); }
  .usecase:hover::after{ opacity:1; }
}
@media (prefers-reduced-motion: reduce){ .usecase::after{ display:none !important; } }
.uc-ic{ display:grid; place-items:center; width:44px; height:44px; border-radius:12px; flex:0 0 auto;
  color:#7db4ff; background:rgba(75,177,255,0.10); border:1px solid rgba(75,177,255,0.24); }
.uc-ic svg{ width:22px; height:22px; }
.usecase h4{ font-size:1.15rem; font-weight:600; color:#fff; letter-spacing:-0.01em; }
.usecase p{ color:var(--text-secondary); font-size:0.94rem; line-height:1.55; }
.usecase h4 + p{ margin-top:-8px; }

/* High-performance privacy stats (reuse .stats grid; slightly tighter top margin) */
.stats-perf{ margin-top:clamp(28px,3.5vw,40px); }
.stats-perf .stat-l{ line-height:1.4; }

/* Turn Privacy On — final CTA */
/* Final CTA holds little content, so give the section extra breathing room and a
   full-scale headline so it reads with the same weight as the card sections. */
#contact.section{ padding-block:clamp(120px,13vw,168px); }
.final-cta{ max-width:720px; margin-inline:auto; text-align:center; }
.final-cta h2{ font-size:clamp(2.2rem,5.5vw,3.5rem); margin-bottom:20px; }
.final-cta > p{ color:var(--text-secondary); font-size:clamp(1.05rem,1.6vw,1.2rem); margin-bottom:38px; }
.final-cta-btns{ display:flex; flex-wrap:wrap; justify-content:center; gap:14px; }
.final-cta-links{ display:flex; justify-content:center; gap:26px; margin-top:26px; }
.final-cta-links a{ color:var(--text-tertiary); font-weight:600; font-size:0.92rem;
  border-bottom:1px solid transparent; transition:color .25s, border-color .25s; }
.final-cta-links a:hover{ color:#fff; border-bottom-color:var(--av-red); }
@media (max-width:560px){ .final-cta-btns .btn{ flex:1 1 100%; } }

/* ═══════════════════════════════════════════════════════════════════════════
   Interactive Privacy Portal shield demo (right slot of the "Now Live" section).
   Conceptual + on-brand — ring motion ported from the real PortalVisualization,
   palette matched to this page (COTI blue + Avalanche red). Drives via portal.js.
   ═══════════════════════════════════════════════════════════════════════════ */
.portal-demo{
  position:relative; width:100%; max-width:440px; margin-inline:auto;
  border:1px solid rgba(255,255,255,0.12); border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 34%),
             linear-gradient(0deg, rgba(4,19,61,0.55), rgba(4,19,61,0.55)),
             linear-gradient(250deg, rgba(30,41,246,0.22), rgba(7,10,71,0.5));
  -webkit-backdrop-filter:blur(18px) saturate(130%); backdrop-filter:blur(18px) saturate(130%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08), 0 30px 70px rgba(0,0,0,0.45);
  padding:16px 18px 18px; overflow:hidden;
}
/* chrome bar */
.pd-chrome{ display:flex; align-items:center; gap:10px; padding-bottom:14px; margin-bottom:4px; border-bottom:1px solid rgba(255,255,255,0.09); }
.pd-dots{ display:inline-flex; gap:6px; }
.pd-dots i{ width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,0.22); }
.pd-title{ font-weight:700; color:#fff; font-size:0.9rem; letter-spacing:-0.01em; }
.pd-net{ margin-left:auto; display:inline-flex; align-items:center; gap:6px; font-size:0.74rem; font-weight:700; color:var(--text-tertiary); }
.pd-net-tri{ width:11px; height:11px; color:var(--av-red); }

.pd-body{ position:relative; padding:12px 2px 6px; }

/* public / private token rows */
.pd-row{ position:relative; border-radius:16px; padding:12px 14px; border:1px solid rgba(255,255,255,0.10);
  background:linear-gradient(0deg, rgba(4,19,61,0.5), rgba(4,19,61,0.5)), linear-gradient(0deg, rgba(30,41,246,0.28), rgba(30,41,246,0.28));
  transition:border-color .3s, box-shadow .3s, transform .3s; }
.pd-side-lab{ display:block; font-size:0.64rem; letter-spacing:0.1em; text-transform:uppercase; font-weight:700; color:var(--text-muted); margin-bottom:8px; }
.pd-token{ display:flex; align-items:center; gap:11px; }
.pd-ic{ width:30px; height:30px; border-radius:50%; display:grid; place-items:center; flex:0 0 auto;
  background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14); }
.pd-ic svg{ width:16px; height:16px; }
.pd-ic-avax{ color:var(--av-red); }
.pd-ic-coti{ color:#fff; }
.pd-sym{ font-weight:700; color:#fff; font-size:0.98rem; }
.pd-amt{ margin-left:auto; font-family:var(--font-display); font-size:1.25rem; color:#fff; letter-spacing:0.01em; }
.pd-amt-priv{ color:#c9ff83; letter-spacing:0.12em; }

/* active-state emphasis while shielding */
.portal-demo[data-stage="shielding"] .pd-public{ border-color:rgba(230,33,47,0.5); box-shadow:0 0 0 1px rgba(230,33,47,0.25), 0 14px 34px rgba(0,0,0,0.35); }
.portal-demo[data-stage="done"] .pd-private{ border-color:rgba(201,255,131,0.55); box-shadow:0 0 0 1px rgba(201,255,131,0.28), 0 14px 34px rgba(0,0,0,0.35); }

/* lock icon (CSS shackle) */
.pd-lock{ position:relative; display:inline-block; width:11px; height:9px; margin-left:5px; vertical-align:-1px;
  border-radius:2px; background:var(--text-muted); transition:background .3s; }
.pd-lock::before{ content:""; position:absolute; left:50%; bottom:100%; width:7px; height:8px; transform:translateX(-50%);
  border:2px solid var(--text-muted); border-bottom:0; border-radius:7px 7px 0 0; transition:height .3s, border-color .3s; }
.portal-demo[data-stage="done"] .pd-lock,.portal-demo[data-static="1"] .pd-lock{ background:#c9ff83; }
.portal-demo[data-stage="done"] .pd-lock::before,.portal-demo[data-static="1"] .pd-lock::before{ border-color:#c9ff83; height:8px; }
/* open shackle while idle/shielding */
.portal-demo[data-stage="idle"] .pd-lock::before,.portal-demo[data-stage="shielding"] .pd-lock::before{ height:5px; transform:translateX(-90%) rotate(-16deg); }

/* ── portal ring (ported from real PortalVisualization, palette-matched) ── */
.pd-portal{ position:relative; width:150px; height:150px; margin:14px auto; display:grid; place-items:center; }
.pd-glow{ position:absolute; inset:0; border-radius:50%;
  background:radial-gradient(circle, transparent 30%, rgba(75,177,255,0.14) 50%, transparent 70%); }
.pd-ring{ position:absolute; width:118px; height:118px; border-radius:50%; padding:3px;
  background:conic-gradient(#1E29F6, #4BB1FF, #E6212F, #8033CC, #1E29F6);
  -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
          mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation:portal-spin 3s linear infinite; }
.pd-ring-inner{ position:absolute; width:96px; height:96px; border-radius:50%; overflow:hidden;
  background:radial-gradient(circle, rgba(75,177,255,0.20) 0%, rgba(128,51,204,0.10) 50%, transparent 70%);
  animation:portal-spin-reverse 5s linear infinite; }
.pd-core{ position:absolute; width:42px; height:42px; border-radius:50%;
  background:radial-gradient(circle, #7ec8ff 0%, #1E29F6 100%);
  box-shadow:0 0 34px rgba(75,177,255,0.55), 0 0 64px rgba(30,41,246,0.4);
  animation:portal-pulse 4s ease-in-out infinite; }
.pd-particles{ position:absolute; inset:0; animation:portal-particle-expand 3s ease-out infinite; }
.pd-particles i{ position:absolute; width:6px; height:6px; border-radius:50%; background:#4BB1FF; box-shadow:0 0 10px #4BB1FF; transform:translate(-50%,-50%); }
.pd-particles i:nth-child(2n){ width:5px; height:5px; background:#E6212F; box-shadow:0 0 10px rgba(230,33,47,0.8); }
.pd-particles i:nth-child(3n){ background:#8033CC; box-shadow:0 0 10px #8033CC; }
/* ring reacts while encrypting */
.portal-demo[data-stage="encrypting"] .pd-ring{ animation-duration:0.7s; }
.portal-demo[data-stage="encrypting"] .pd-core{ box-shadow:0 0 46px rgba(75,177,255,0.8), 0 0 90px rgba(230,33,47,0.35); }

@keyframes portal-spin{ from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } }
@keyframes portal-spin-reverse{ from{ transform:rotate(0deg); } to{ transform:rotate(-360deg); } }
@keyframes portal-pulse{ 0%,100%{ opacity:0.7; transform:scale(1); } 50%{ opacity:1; transform:scale(1.15); } }
@keyframes portal-particle-expand{ 0%{ transform:scale(0.9); opacity:0; } 20%{ opacity:1; } 100%{ transform:scale(1.4); opacity:0; } }

/* traveling token chip: rides from public row → core → private row */
.pd-chip{ position:absolute; z-index:6; left:50%; top:50%;
  display:inline-flex; align-items:center; justify-content:center; min-width:56px; padding:6px 12px;
  font-family:var(--font-display); font-size:0.95rem; color:#fff; border-radius:11px;
  background:linear-gradient(180deg, rgba(40,52,120,0.95), rgba(12,16,50,0.97));
  border:1px solid rgba(140,170,255,0.5); box-shadow:0 12px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.18);
  opacity:0; transform:translate(-50%,-50%) translateY(-104px) scale(0.9);
  transition:transform .8s var(--ease-in-out), opacity .35s var(--ease-out), border-color .4s, box-shadow .4s; }
.portal-demo[data-stage="shielding"] .pd-chip{ opacity:1; transform:translate(-50%,-50%) translateY(-104px) scale(1); }
.portal-demo[data-stage="encrypting"] .pd-chip{ opacity:1; transform:translate(-50%,-50%) translateY(0) scale(0.82);
  border-color:rgba(75,177,255,0.7); box-shadow:0 12px 30px rgba(0,0,0,0.5), 0 0 30px rgba(75,177,255,0.5); }
.portal-demo[data-stage="done"] .pd-chip{ opacity:0; transform:translate(-50%,-50%) translateY(104px) scale(0.9); }

/* shield button */
.pd-btn{ display:block; width:100%; margin-top:8px; font-family:inherit; font-weight:700; font-size:0.92rem; color:#fff; cursor:pointer;
  padding:12px 18px; border-radius:13px; border:1px solid var(--av-red); background:var(--av-red);
  box-shadow:0 10px 26px rgba(230,33,47,0.28); transition:transform .18s var(--ease-out), background .2s, opacity .2s; }
.pd-btn:hover{ background:var(--av-red-deep); transform:translateY(-1px); }
.pd-btn:active{ transform:scale(0.98); }
.portal-demo[data-stage="shielding"] .pd-btn,.portal-demo[data-stage="encrypting"] .pd-btn{ opacity:0.65; pointer-events:none; }

@media (max-width:600px){ .pd-portal{ width:132px; height:132px; } .pd-chip{ transform:translate(-50%,-50%) translateY(-96px) scale(0.9); }
  .portal-demo[data-stage="shielding"] .pd-chip{ transform:translate(-50%,-50%) translateY(-96px) scale(1); }
  .portal-demo[data-stage="done"] .pd-chip{ transform:translate(-50%,-50%) translateY(96px) scale(0.9); } }

/* reduced motion / no-JS: hold a static shielded state that tells the story at a glance */
@media (prefers-reduced-motion: reduce){
  .pd-ring,.pd-ring-inner,.pd-core,.pd-particles{ animation:none !important; }
  .pd-chip{ display:none; }
}

/* ── Portal demo: interactive controls (token selector + amount + Portal In) ── */
.pd-control{ position:relative; display:flex; align-items:center; gap:8px; }
.pd-ic-slot{ display:inline-grid; place-items:center; flex:0 0 auto; }
.pd-token-sel{ display:inline-flex; align-items:center; gap:7px; flex:0 0 auto;
  padding:5px 8px 5px 5px; border-radius:12px; border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.05); color:#fff; font-family:inherit; font-weight:700; font-size:0.95rem;
  cursor:pointer; transition:border-color .2s, background .2s; }
.pd-token-sel:hover{ border-color:var(--border-strong); background:rgba(255,255,255,0.09); }
.pd-chev{ width:14px; height:14px; color:var(--text-tertiary); transition:transform .2s; }
.pd-token-sel[aria-expanded="true"] .pd-chev{ transform:rotate(180deg); }

.pd-amt-in{ flex:1 1 auto; min-width:0; width:100%; text-align:right; background:transparent; border:0;
  color:#fff; font-family:var(--font-display); font-size:1.25rem; letter-spacing:0.01em; padding:4px 2px; }
.pd-amt-in:focus{ outline:none; }
.pd-control:focus-within{ }
.pd-max{ flex:0 0 auto; font-family:inherit; font-size:0.64rem; font-weight:800; letter-spacing:0.06em;
  color:var(--av-red); background:rgba(230,33,47,0.12); border:1px solid rgba(230,33,47,0.35);
  border-radius:8px; padding:5px 8px; cursor:pointer; transition:background .2s; }
.pd-max:hover{ background:rgba(230,33,47,0.22); }

/* token dropdown */
.pd-menu{ position:absolute; top:calc(100% + 8px); left:0; z-index:20; min-width:210px; margin:0; padding:6px;
  list-style:none; border-radius:14px; border:1px solid rgba(255,255,255,0.14); background:rgba(8,12,32,0.97);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); box-shadow:0 22px 54px rgba(0,0,0,0.6);
  opacity:0; transform:translateY(-6px); pointer-events:none; transition:opacity .18s var(--ease-out), transform .18s var(--ease-out); }
.pd-menu.open{ opacity:1; transform:none; pointer-events:auto; }
.pd-menu li{ display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:10px; cursor:pointer; color:#fff; }
.pd-menu li:hover{ background:rgba(255,255,255,0.09); }
.pd-menu .m-sym{ font-weight:700; font-size:0.92rem; }
.pd-menu .m-bal{ margin-left:auto; font-family:var(--font-display); font-size:0.82rem; color:var(--text-tertiary); }
.pd-menu .pd-ic{ width:26px; height:26px; }

/* token icon variants (gradient circle + glyph; AVAX/COTI use inline marks) */
.pd-ic{ font-weight:800; font-size:0.92rem; color:#fff; }
.pd-ic.t-avax{ background:rgba(230,33,47,0.14); border-color:rgba(230,33,47,0.32); color:var(--av-red); }
.pd-ic.t-coti{ background:rgba(255,255,255,0.08); color:#fff; }
.pd-ic.t-usdc{ background:linear-gradient(135deg,#4b9bff,#2775CA); border-color:transparent; }
.pd-ic.t-usdt{ background:linear-gradient(135deg,#3fd39a,#26A17B); border-color:transparent; }
.pd-ic.t-weth{ background:linear-gradient(135deg,#9aa0ff,#6b4fff); border-color:transparent; }

/* lock controls while a Portal In is mid-flight */
.portal-demo[data-stage="shielding"] .pd-control,
.portal-demo[data-stage="encrypting"] .pd-control{ pointer-events:none; opacity:0.85; }

/* ═══════════════════════════════════════════════════════════════════════════
   "The Privacy Portal App" — the real app, framed
   Replaces the old .portal-demo conceptual mock (its CSS is left in place above
   but is now dead; portal.js is unreferenced and kept only for reference).
   The screen is portal-app/ embedded as-is, so re-exporting the replica needs
   no changes here.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Layout: copy left, the app right, bleeding to the viewport edge ───────── */
.ppx-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.ppx-copy h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 14px 0 18px; }
.ppx-copy .split-lede { color: var(--text-secondary); font-size: var(--fs-18); }

/* A strict half-column would shrink the app's table into illegibility, so the
   stage may run past the container — but capped, or the card overpowers the
   copy. Body already clips overflow-x. Tune the card's size with --ppx-max. */
.ppx-stage {
  /* How far the card may run past the container, capped so it never overpowers
     the copy. Raise --ppx-bleed-max to make the card bigger, lower it to shrink.
     Never justify-self:end and never a bare max-width — the stage has no
     intrinsic width (the iframe is absolute) and a %-width can't be widened by
     a negative margin, so the width has to be stated. */
  --ppx-bleed-max: 200px;
  --ppx-bleed: clamp(0px, calc((100vw - var(--maxw)) / 2), var(--ppx-bleed-max));
  width: calc(100% + var(--ppx-bleed));
  margin-right: calc(-1 * var(--ppx-bleed));
}

.ppx-bullets { list-style: none; display: grid; gap: 13px; margin: 26px 0 30px; padding: 0; }
.ppx-bullets li {
  position: relative; padding-left: 24px;
  color: var(--text-secondary); font-size: var(--fs-16); line-height: 1.5;
}
.ppx-bullets li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 11px; height: 10px; background: var(--av-red);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.ppx-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Motion ────────────────────────────────────────────────────────────────
   Scroll reveal (scoped to this section — the page-wide `.js [data-reveal]`
   system is inert because nothing ever sets `.js`), then a slow ambient float
   + glow breath once the reveal has settled, plus cursor-tracked tilt. */
/* Hidden state is gated on .ppx-anim, which JS adds only once it's committed to
   running the reveal. Without it the section renders normally — content must
   never be able to get stuck invisible because a script didn't run. */
.ppx-anim .ppx-rv,
.ppx-anim .ppx-rv-stagger > *,
.ppx-anim .ppx-stage {
  opacity: 0;
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.ppx-anim .ppx-rv, .ppx-anim .ppx-rv-stagger > * { transform: translateY(20px); }
.ppx-anim .ppx-stage { transform: translateY(38px) scale(.97); }
.ppx-anim .ppx-rv.in,
.ppx-anim .ppx-rv-stagger > .in,
.ppx-anim .ppx-stage.in { opacity: 1; transform: none; }

/* transform, not the `translate` property — the latter silently refused to
   interpolate here even with the animation reported as running. */
@keyframes ppxFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes ppxBreath {
  0%, 100% { opacity: .72; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.07); }
}
.ppx-stage.idle .ppx-frame-wrap { animation: ppxFloat 6s ease-in-out infinite; }
.ppx-stage.idle .ppx-frame-wrap::before { animation: ppxBreath 6s ease-in-out infinite; }
/* The app is interactive — hold it still while the pointer is on it. You can't
   ask someone to click a moving target. */
.ppx-stage:hover .ppx-frame-wrap,
.ppx-stage:focus-within .ppx-frame-wrap { animation-play-state: paused; }


.ppx-frame-wrap { position: relative; perspective: 1500px; }
/* Soft ambient glow behind the floating card so it sits in the page rather than
   hovering over it. No panel, no border — the LP's own background shows through. */
.ppx-frame-wrap::before {
  content: ""; position: absolute; inset: 2% 6% 6%; z-index: 0;
  background: radial-gradient(52% 48% at 50% 52%, rgba(96, 40, 200, .26) 0%, transparent 72%);
  filter: blur(46px); pointer-events: none;
}

/* Chrome-less: the embedded app is stripped to its card by main.js and floats
   directly on the landing page. Nothing here draws a frame. */
.ppx-frame {
  position: relative; z-index: 1; display: block;
  background: none; border: 0; border-radius: 0;
  /* Pointer-follow. The transition IS the weight: main.js sets the vars straight
     from the pointer position and this eases the card after it, so it lags like
     the cursor is dragging something heavy. Perspective is on .ppx-frame-wrap. */
  transform: translate3d(var(--ppx-tx, 0px), var(--ppx-ty, 0px), 0)
             rotateX(var(--ppx-rx, 0deg)) rotateY(var(--ppx-ry, 0deg));
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.ppx-screen { position: relative; width: 100%; overflow: hidden; }
/* --ppx-ratio is set by main.js from the stripped content's real height, so the
   box always fits exactly — no dead space, and it survives a fresh export. */
.ppx-screen::after { content: ""; display: block; padding-top: var(--ppx-ratio, 62%); }
/* Interactive: the export has real Lock/Unlock + Send / Portal In / Portal Out
   modals, so clicks go through to it. Nothing here is wrapped in a link. */
.ppx-screen iframe {
  position: absolute; top: 0; left: 0; width: 1440px; height: 950px; border: 0;
  transform-origin: 0 0;
  /* MOCKUP, not a toy. The export's Portal In / Review buttons have no
     handlers, so live-looking controls would dead-end on click. Keep this off
     — the section converts through the CTA buttons in the copy column. */
  pointer-events: none;
}
.ppx-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Progressive enhancement, self-contained: the still covers the frame until the
   scaler has run. Deliberately NOT keyed off the page-wide `.js` class — nothing
   in this codebase ever sets that.
   The iframe is faded, never display:none — a display:none iframe has no layout,
   so measuring it would return zero and we'd deadlock waiting for a size. */
.ppx-screen iframe { opacity: 0; transition: opacity .35s var(--ease-out); }
.ppx-live .ppx-screen iframe { opacity: 1; }
.ppx-shot { display: block; }          /* sits above the iframe until ready */
.ppx-live .ppx-shot { display: none; }


@media (max-width: 940px) {
  .ppx-split { grid-template-columns: 1fr; gap: 34px; }
  .ppx-stage { width: 100%; margin-right: 0; order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .ppx-rv, .ppx-rv-stagger > *, .ppx-stage { opacity: 1; transform: none; transition: none; }
  .ppx-stage.idle .ppx-frame-wrap,
  .ppx-stage.idle .ppx-frame-wrap::before { animation: none; }
  .ppx-frame { transition: none; }
}
