.page { max-width: 1200px; margin: 0 auto; padding: 30px 24px 80px; position: relative; }
  .real-edge-pill {
    position: absolute;
    top: 32px;
    right: 24px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    padding: 6px 12px;
    background: var(--sindoor);
    color: var(--paper);
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
  }
  .real-edge-pill.shown { opacity: 1; }
  .crumb { font-family: var(--mono); font-size: 11px; letter-spacing: 1.8px; opacity: 0.55; margin-bottom: 14px; text-transform: uppercase; }
  .crumb a { color: inherit; text-decoration: none; border-bottom: 1px dashed currentColor; padding-bottom: 1px; }
  h1.lead { font-family: var(--en); font-style: italic; font-weight: 700; font-size: clamp(30px, 5vw, 46px); letter-spacing: -1px; margin: 0 0 8px; line-height: 1; }
  h1.lead em { color: var(--sindoor); font-style: italic; }
  .sub { font-family: var(--bn); font-size: 16px; color: var(--ink-2); margin: 0 0 36px; max-width: 800px; line-height: 1.6; }

  /* ─── 3D-feeling stage ─── */
  .stage {
    position: relative;
    background: linear-gradient(180deg, #faeed1 0%, var(--paper) 60%, var(--paper-2) 100%);
    border: 1px solid #0f0a0522;
    height: 520px;
    overflow: hidden;
    perspective: 1200px;
    margin-bottom: 22px;
  }

  /* ─── Device (left) ─── */
  .device3d {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%) rotateY(-22deg) rotateX(8deg);
    transform-style: preserve-3d;
    width: 170px;
  }
  .device3d .body {
    width: 170px;
    height: 110px;
    background: linear-gradient(140deg, #1a140d 0%, #0f0a05 40%, #1a140d 100%);
    border-radius: 22px;
    box-shadow:
      0 30px 60px rgba(15,10,5,0.25),
      inset 0 -3px 8px rgba(0,0,0,0.5),
      inset 0 2px 4px rgba(255,255,255,0.08);
    position: relative;
    transform-style: preserve-3d;
  }
  .device3d .body::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid #f3e7cb1a;
    border-radius: 18px;
  }
  .device3d .led {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #3a302a;
    box-shadow: inset 0 -2px 2px rgba(0,0,0,0.4);
    transition: background 0.06s, box-shadow 0.06s;
  }
  .device3d .led.on {
    background: var(--sindoor);
    box-shadow:
      0 0 18px var(--sindoor),
      0 0 38px rgba(196,26,20,0.5),
      inset 0 0 6px rgba(255,255,255,0.4);
  }
  .device3d .btn-real {
    position: absolute;
    right: -4px;
    top: 44px;
    width: 6px;
    height: 22px;
    background: #2a241d;
    border-radius: 2px 0 0 2px;
  }
  .device3d .label {
    margin-top: 14px;
    text-align: center;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--ink);
    opacity: 0.55;
    text-transform: uppercase;
  }
  .device3d .strap {
    position: absolute;
    top: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #1d2b5a, #131c3d);
    box-shadow: inset 0 -3px 6px rgba(0,0,0,0.3);
  }
  .device3d .strap.l { left: -56px; clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 70%); }
  .device3d .strap.r { right: -56px; clip-path: polygon(0 0, 100% 30%, 100% 70%, 0 100%); }

  /* ─── Paths (middle) ─── */
  .paths-stage {
    position: absolute;
    left: 32%;
    right: 32%;
    top: 6%;
    bottom: 6%;
  }
  .lane3d {
    position: absolute;
    left: 0;
    right: 0;
    height: 78px;
    display: flex;
    align-items: center;
    transform-style: preserve-3d;
  }
  .lane3d:nth-child(1) { top: 0; }
  .lane3d:nth-child(2) { top: 25%; }
  .lane3d:nth-child(3) { top: 50%; }
  .lane3d:nth-child(4) { top: 75%; }
  .lane3d .track {
    position: relative;
    height: 38px;
    flex: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(15,10,5,0.04) 40%, rgba(15,10,5,0.06) 50%, rgba(15,10,5,0.04) 60%, transparent 100%);
    border-top: 1px solid #0f0a0510;
    border-bottom: 1px solid #0f0a0510;
    margin: 0 12px;
    transform: rotateX(60deg) translateZ(-10px);
    transform-style: preserve-3d;
    overflow: visible;
  }
  .lane3d .tag {
    width: 78px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--ink);
    text-transform: uppercase;
    font-weight: 600;
    text-align: right;
    opacity: 0.65;
    flex-shrink: 0;
  }
  .lane3d .latency {
    width: 64px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--sindoor);
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
  }
  .lane3d .latency.shown { opacity: 1; }

  .packet {
    position: absolute;
    left: 0%;
    top: 50%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transform: translate(-50%, -50%) translateZ(20px);
    opacity: 0;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25), inset 0 -3px 5px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.3);
    transition: left var(--dur, 1s) cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.15s;
    z-index: 5;
  }
  .ble  .packet { background: radial-gradient(circle at 35% 30%, #4459a2, #1d2b5a); --dur: 0.5s; }
  .lte  .packet { background: radial-gradient(circle at 35% 30%, #e84a44, var(--sindoor)); --dur: 2.6s; }
  .push .packet { background: radial-gradient(circle at 35% 30%, #f5b462, var(--marigold)); --dur: 5s; }
  .sms  .packet { background: radial-gradient(circle at 35% 30%, #6b5e4f, #0f0a05); --dur: 8s; }
  .lane3d.dropped { opacity: 0.4; }
  .lane3d.dropped::after {
    content: "× dedupe";
    position: absolute;
    right: 10px;
    top: 8px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    color: var(--ink);
    opacity: 0.6;
    text-transform: uppercase;
  }
  .lane3d.offline { opacity: 0.25; }
  .lane3d.offline::after {
    content: "offline";
    position: absolute;
    right: 10px;
    top: 8px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    color: var(--ink);
    opacity: 0.6;
    text-transform: uppercase;
  }

  /* ─── Phone (right) ─── */
  .phone3d {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%) rotateY(18deg) rotateX(-2deg);
    transform-style: preserve-3d;
    width: 170px;
  }
  .phone3d .frame {
    width: 170px;
    height: 320px;
    background: linear-gradient(160deg, #2a241d, #0f0a05);
    border-radius: 26px;
    padding: 14px 10px;
    box-shadow:
      0 40px 70px rgba(15,10,5,0.3),
      inset 0 -3px 8px rgba(0,0,0,0.5),
      inset 0 2px 6px rgba(255,255,255,0.06);
    position: relative;
  }
  .phone3d .frame::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 16px;
    background: #0f0a05;
    border-radius: 12px;
  }
  .phone3d .screen {
    background: var(--paper);
    border-radius: 18px;
    height: 100%;
    padding: 28px 14px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
  }
  .phone3d .clock {
    position: absolute;
    top: 22px;
    right: 18px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--paper);
    opacity: 0.8;
    z-index: 2;
  }
  .phone3d .idle {
    font-family: var(--bn);
    font-size: 15px;
    color: var(--ink-2);
    opacity: 0.55;
  }
  .phone3d .alert-card {
    background: var(--ink);
    color: var(--paper);
    padding: 26px 14px;
    border-radius: 12px;
    width: 100%;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
  }
  .phone3d .alert-card.shown { transform: scale(1); opacity: 1; }
  .phone3d .alert-card .tier {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.28em;
    color: var(--sindoor);
  }
  .phone3d .alert-card .who {
    font-family: var(--bn);
    font-size: 26px;
    font-weight: 700;
    margin: 10px 0 4px;
    line-height: 1;
  }
  .phone3d .alert-card .what {
    font-family: var(--bn);
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.45;
  }
  .phone3d .alert-card .latency {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--sindoor);
    margin-top: 14px;
    border-top: 1px solid #f3e7cb22;
    padding-top: 10px;
  }

  /* ─── Controls ─── */
  .controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
  }
  @media (max-width: 700px) { .controls { grid-template-columns: 1fr; } }
  .controls .panel {
    background: var(--paper-2);
    border: 1px solid #0f0a0522;
    padding: 22px;
  }
  .controls .panel h3 {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: var(--ink);
    opacity: 0.55;
  }
  .btn-big {
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: 0.18em;
    padding: 18px 28px;
    background: var(--sindoor);
    color: var(--paper);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    width: 100%;
    font-weight: 600;
    box-shadow: 0 6px 0 #8a120e;
    transition: transform 0.06s, box-shadow 0.06s, background 0.1s;
  }
  .btn-big:hover { background: #d62018; }
  .btn-big:active { transform: translateY(4px); box-shadow: 0 2px 0 #8a120e; }
  .btn-big:disabled { background: #999; cursor: not-allowed; box-shadow: 0 6px 0 #666; }

  .triggers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
  }
  .triggers-grid button {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    padding: 10px 6px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid #0f0a0530;
    cursor: pointer;
    text-transform: uppercase;
  }
  .triggers-grid button:hover { background: var(--ink); color: var(--paper); }
  .triggers-grid button:disabled { opacity: 0.5; cursor: not-allowed; }

  .scenario {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .scenario label {
    font-family: var(--bn);
    font-size: 14px;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }
  .scenario input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--sindoor);
    cursor: pointer;
  }
  .scenario .desc {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--ink);
    opacity: 0.55;
    text-transform: uppercase;
    margin-left: 28px;
  }

  .note {
    font-family: var(--bn);
    font-size: 14px;
    color: var(--ink-2);
    margin-top: 22px;
    max-width: 900px;
    line-height: 1.6;
    opacity: 0.8;
  }

  .pagenav { display: flex; gap: 18px; flex-wrap: wrap; margin: 40px 0 0; padding: 26px 0 0; border-top: 1px solid #0f0a0530; font-family: var(--mono); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; }
  .pagenav a { color: var(--ink); text-decoration: none; border-bottom: 1px dashed currentColor; padding-bottom: 1px; opacity: 0.7; }
  .pagenav a:hover { opacity: 1; color: var(--sindoor); border-bottom-color: var(--sindoor); }
