
  :root {
    --bg: #0A0E17;
    --surface: #111827;
    --surface2: #1A2332;
    --border: #1E293B;
    --acc: #00FF88;
    --acc-dim: rgba(0,255,136,0.1);
    --acc-glow: rgba(0,255,136,0.2);
    --danger: #FF4466;
    --text: #E2E8F0;
    --dim: #94A3B8;
    --radius: 12px;
    --font: 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --nav-h: 52px;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); min-height: 100%; }
  html {
    position: relative;
    background: var(--bg);
  }
  html::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 120% 70% at 50% 20%, rgba(0,255,136,0.12) 0%, transparent 60%);
  }
  html::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(10, 14, 23, 0.85);
    animation: glowPulse 8s ease-in-out infinite alternate;
  }
  @keyframes glowPulse {
    0% { opacity: 0.88; }
    100% { opacity: 1; }
  }
  body {
    position: relative;
    z-index: 2;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    overflow-x: hidden;
  }
  ::selection { background: var(--acc); color: var(--bg); }

  a { color: var(--acc); text-decoration: none; }
  a:hover { text-decoration: underline; }

  nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
  }
  nav.scrolled {
    background: rgba(10,14,23,0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--border);
  }
  nav .nl {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
  }
  nav .nl .g { color: var(--acc); }
  nav .nl .s {
    display: inline-block;
    width: 14px; height: 14px;
    vertical-align: middle;
    margin-right: 6px;
  }
  nav .nl .s svg { width: 100%; height: 100%; display: block; }
  nav .nls {
    display: flex; gap: 2px; list-style: none; margin: 0; padding: 0;
  }
  nav .nls li { list-style: none; margin: 0; padding: 0; }
  nav .nls a {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--text);
    transition: color 0.15s;
    text-decoration: none;
    position: relative;
  }
  nav .nls a::after {
    content: '';
    position: absolute; bottom: 2px; left: 12px; right: 12px;
    height: 1px;
    background: var(--acc);
    transform: scaleX(0);
    transition: transform 0.2s ease;
  }
  nav .nls a:hover {
    color: #fff;
  }
  nav .nls a:hover::after {
    transform: scaleX(1);
  }
  nav .nls a.active {
    color: var(--acc);
  }
  nav .nls a.active::after {
    transform: scaleX(1);
    background: var(--acc);
  }

  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    background:
      linear-gradient(to bottom, rgba(10,14,23,0.92) 0%, rgba(10,14,23,0.25) 25%, rgba(10,14,23,0.1) 50%, rgba(10,14,23,0.92) 100%),
      url('assets/hero.jpeg') center / cover no-repeat;
    background-color: var(--bg);
  }
  @media (min-width: 641px) {
    .hero {
      background:
        linear-gradient(to bottom, rgba(10,14,23,0.92) 0%, rgba(10,14,23,0.25) 25%, rgba(10,14,23,0.1) 50%, rgba(10,14,23,0.92) 100%),
        url('assets/hero.jpeg') center top / 100% auto no-repeat;
      background-color: var(--bg);
    }
  }
  @media (min-width: 641px) {
    .hero {
      background:
        linear-gradient(to bottom, rgba(10,14,23,0.92) 0%, rgba(10,14,23,0.25) 25%, rgba(10,14,23,0.1) 50%, rgba(10,14,23,0.92) 100%),
        url('assets/hero.jpeg') center top / 100% auto no-repeat;
      background-color: var(--bg);
    }
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: -50%;
    background-image:
      radial-gradient(circle at 25% 25%, rgba(0,255,136,0.04) 0%, transparent 40%),
      radial-gradient(circle at 75% 75%, rgba(0,255,136,0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: heroDrift 20s ease-in-out infinite alternate;
  }

  @keyframes heroDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(5%, 3%) rotate(3deg); }
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M40 0H0v40' fill='none' stroke='%231e293b' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
  }

  .snake-logo {
    width: 180px;
    height: 225px;
    margin-bottom: 28px;
    filter: drop-shadow(0 0 30px var(--acc-glow));
    position: relative;
    z-index: 1;
    animation: heroIn 0.8s ease, float 4s ease-in-out infinite 0.8s, breathe 4s ease-in-out infinite 0.8s;
  }

  @keyframes heroIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }

  .hero h1 { animation: heroIn 0.8s ease 0.15s both; }
  .hero .sub { animation: heroIn 0.8s ease 0.3s both; }
  .hero-btns { animation: heroIn 0.8s ease 0.45s both; }
  .sc { animation: heroIn 0.8s ease 0.6s both; }

  .hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 6px;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
  }
  .hero h1 .g {
    color: var(--acc);
    text-shadow: 0 0 20px rgba(0,255,136,0.3), 0 0 40px rgba(0,255,136,0.1);
  }

  .hero .sub {
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: #CBD5E1;
    text-shadow: 0 0 30px rgba(0,255,136,0.08), 0 0 60px rgba(0,0,0,0.3);
    max-width: 540px;
    line-height: 1.6;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
  }
  .hero .sub strong { color: #fff; font-weight: 600; }

  .hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
  }
  .btn-h {
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
  }
  .btn-h.primary {
    background: var(--acc);
    color: var(--bg);
  }
  .btn-h.primary:hover {
    background: #00cc6a;
    box-shadow: 0 0 20px rgba(0,255,136,0.25);
  }
  .btn-h.sec {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
  }
  .btn-h.sec:hover {
    border-color: var(--dim);
    background: rgba(255,255,255,0.02);
  }

  .sc {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }
  .sc a {
    display: block;
    width: 24px;
    height: 36px;
    border: 2px solid var(--dim);
    border-radius: 12px;
    position: relative;
    transition: border-color 0.2s;
    animation: pulse 3s ease-in-out infinite;
  }
  .sc a:hover { border-color: var(--acc); }
  .sc a::after {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 7px;
    background: var(--dim);
    border-radius: 1px;
    animation: scW 1.5s ease-in-out infinite;
  }
  .sc a:hover::after { background: var(--acc); }

  /* ─── intro section (What is SudoDeck + Why I built it) ─── */
  .intro-section {
    padding: 80px 20px;
  }
  .intro-wrap {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }
  .intro-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 28px;
  }
  .intro-wrap h2 .g { color: var(--acc); }
  .intro-text {
    font-size: 0.95rem;
    color: var(--dim);
    line-height: 1.7;
    margin-bottom: 16px;
  }
  .intro-heart {
    margin-top: 48px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: left;
    position: relative;
  }
  .intro-heart h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--acc);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .intro-heart p {
    font-size: 0.88rem;
    color: var(--dim);
    line-height: 1.7;
    margin-bottom: 12px;
  }
  .intro-heart p:last-of-type { margin-bottom: 0; }
  .intro-sign {
    font-family: var(--mono);
    font-size: 0.85rem !important;
    color: var(--text) !important;
    margin-top: 16px !important;
  }
  @media (max-width: 540px) {
    .intro-section { padding: 48px 16px; }
    .intro-text { font-size: 0.88rem; }
    .intro-heart { padding: 24px 18px; margin-top: 32px; }
    .intro-heart p { font-size: 0.82rem; }
  }

  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--dim); }

  @keyframes scW {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(10px); opacity: 0; }
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  @keyframes breathe {
    0%, 100% { filter: drop-shadow(0 0 30px var(--acc-glow)); }
    50% { filter: drop-shadow(0 0 50px var(--acc-glow)) drop-shadow(0 0 20px rgba(0,255,136,0.3)); }
  }

  @keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  /* ─── sections ─── */
  section { padding: 80px 20px; }
  section > h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 48px;
  }
  section > h2 .g { color: var(--acc); }
  section > .sd {
    text-align: center;
    color: var(--dim);
    font-size: 0.92rem;
    margin: -36px 0 56px;
    line-height: 1.5;
  }
  section#usecases .sd { margin-bottom: 80px; }

  .inner {
    max-width: 1040px;
    margin: 0 auto;
  }

  /* ─── feature grid ─── */
  .f-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }
  .f-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  .f-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--acc);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: top;
  }
  .f-card:hover::before { transform: scaleY(1); }
  .f-card:hover {
    border-color: rgba(255,255,255,0.08);
    background: #141c2a;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  }
  .f-card svg {
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    opacity: 0.7;
  }
  .f-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
  }
  .f-card p {
    font-size: 0.82rem;
    color: var(--dim);
    line-height: 1.5;
  }

  /* ─── use cases ─── */
  .uc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .uc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.2s, background 0.2s;
  }
  .uc-card:hover {
    border-color: rgba(0,255,136,0.25);
    background: #141c2a;
  }

  /* CYD mockup */
  .cyd-mockup {
    width: 100%;
    max-width: 260px;
    background: #05080e;
    border: 2px solid #1a2332;
    border-radius: 10px;
    padding: 6px;
  }
  .cyd-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px 4px;
    font-size: 0.45rem;
    font-family: var(--mono);
    color: var(--dim);
  }
  .cyd-w { color: var(--acc); }
  .cyd-bat {
    width: 14px; height: 7px;
    border: 1px solid var(--dim);
    border-radius: 1px;
    position: relative;
  }
  .cyd-bat::after {
    content: '';
    position: absolute;
    right: -3px; top: 1px;
    width: 2px; height: 3px;
    background: var(--dim);
    border-radius: 0 1px 1px 0;
  }
  .cyd-bat::before {
    content: '';
    position: absolute;
    left: 1px; top: 1px;
    bottom: 1px;
    width: 60%;
    background: var(--acc);
    border-radius: 0.5px;
  }
  .cyd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
  }
  .cyd-btn {
    background: #16213e;
    border-radius: 3px;
    padding: 5px 2px;
    text-align: center;
    font-size: 0.45rem;
    font-weight: 600;
    color: #8899aa;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cyd-btn.hl { background: rgba(0,255,136,0.08); color: var(--acc); }
  .cyd-btn.ko { background: rgba(255,68,102,0.08); color: var(--danger); }

  /* Use case text content */
  .uc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .uc-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
  }
  .uc-info p {
    font-size: 0.82rem;
    color: var(--dim);
    line-height: 1.6;
    margin: 0;
  }
  .uc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .uc-tags span {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(0,255,136,0.06);
    border: 1px solid rgba(0,255,136,0.12);
    color: var(--acc);
    font-size: 0.68rem;
    font-weight: 500;
  }
  .uc-macro {
    background: rgba(0,255,136,0.03);
    border-left: 2px solid var(--acc);
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .uc-macro strong {
    font-size: 0.78rem;
    color: var(--acc);
  }
  .uc-macro span {
    font-size: 0.75rem;
    color: var(--dim);
    line-height: 1.5;
  }
  .uc-macro code {
    background: rgba(0,255,136,0.1);
    color: var(--acc);
    padding: 0 4px;
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 0.7rem;
  }
  .uc-dl {
    font-size: 0.72rem;
    color: var(--acc);
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start;
  }
  .uc-dl:hover { text-decoration: underline; }
  .uc-dl-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .uc-os {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
    font-family: var(--font);
    font-size: 0.68rem;
    cursor: pointer;
    transition: border-color 0.15s;
  }
  .uc-os:hover { border-color: var(--dim); }
  .uc-cta {
    text-align: center;
    margin-top: 48px;
  }
  .uc-cta p {
    color: var(--dim);
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.6;
  }

  /* ─── steps ─── */
  .s-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    counter-reset: s;
  }
  .s-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    counter-increment: s;
  }
  .s-card::before {
    content: "0" counter(s);
    position: absolute;
    top: 8px;
    left: 16px;
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--dim);
    background: var(--bg);
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
  }
  .s-card:hover { border-color: rgba(255,255,255,0.08); background: #141c2a; }
  .s-card h3 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
  .s-card p { font-size: 0.8rem; color: var(--dim); line-height: 1.5; }

  .divider {
    width: 120px;
    height: 1px;
    background: var(--border);
    margin: 0 auto;
  }

  /* ─── app layout (sidebar + main content) ─── */
  .app-layout {
    display: flex;
    height: calc(100vh - var(--nav-h));
    padding-top: var(--nav-h);
  }
  .sidebar {
    width: 140px;
    flex-shrink: 0;
    padding: 20px 4px 20px 12px;
    overflow-y: auto;
  }
  .sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
  }
  .sidebar-item {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dim);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    letter-spacing: 0.3px;
  }
  .sidebar-item:hover {
    color: var(--text);
    background: rgba(255,255,255,0.03);
  }
  .sidebar-item.active {
    color: var(--acc);
    background: var(--acc-dim);
  }
  .main-content {
    flex: 1;
    padding: 16px 24px 0 28px;
    min-width: 0;
    overflow-y: auto;
  }
  .section {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
  }
  .section + .section {
    margin-top: 10px;
  }
  .section-grid {
    border: 1px solid var(--acc-dim);
  }
  .section-hdr {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--acc);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }

  /* ─── app cards ─── */
  .app-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }
  .card-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
  }
  .card-hdr:hover { background: rgba(255,255,255,0.02); }
  .card-hdr-l {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--acc) 12%, var(--surface));
    color: var(--acc);
    flex-shrink: 0;
  }
  .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
  }
  .card-desc {
    font-size: 0.72rem;
    color: var(--dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .card-arrow {
    font-size: 0.6rem;
    color: var(--dim);
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
    flex-shrink: 0;
    margin-left: 12px;
  }
  .card.open .card-arrow { transform: rotate(180deg); }
  .card-body {
    display: none;
    padding: 0 18px 18px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
  }
  .card.open .card-body { display: block; }

  /* ─── flow syntax reference ─── */
  .flow-syntax {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
  }
  .flow-syntax-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
  }
  .flow-syntax-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 16px;
  }
  .flow-syntax-grid > div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    padding: 3px 0;
  }
  .flow-syntax-grid code {
    font-size: 0.7rem;
    background: var(--surface);
    padding: 1px 6px;
    border-radius: 3px;
    color: var(--acc);
    white-space: nowrap;
  }
  .flow-syntax-grid span {
    color: var(--dim);
  }

  /* ─── app logo marquee ─── */
  .flow-marquee-wrap {
    overflow: hidden;
    position: relative;
    margin-top: 4px;
  }
  .flow-marquee-wrap::before,
  .flow-marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 1;
    pointer-events: none;
  }
  .flow-marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
  }
  .flow-marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
  }
  .flow-marquee {
    display: inline-flex;
    gap: 0;
    width: max-content;
    animation: marqueeScroll 45s linear infinite;
    padding: 6px 0;
  }
  @keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .flow-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    font-size: 0.78rem;
    white-space: nowrap;
    margin-right: 8px;
  }
  .flow-logo-i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--acc-dim);
    color: var(--acc);
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
  }
  .flow-logo-i img {
    width: 18px;
    height: 18px;
    display: block;
  }
  .flow-logo-n { color: var(--dim); }
  .flow-logo-n { color: var(--dim); }
  .cfg-box {
    max-width: 1040px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
  }

  .cfg-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }
  .badge {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 4px;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.5px;
    font-family: var(--mono);
  }
  .badge.on { background: rgba(0,255,136,0.08); color: var(--acc); border: 1px solid rgba(0,255,136,0.2); }
  .badge.off { background: rgba(255,68,102,0.08); color: var(--danger); border: 1px solid rgba(255,68,102,0.2); }
  .dot { width: 6px; height: 6px; border-radius: 50%; }
  .dot.g { background: var(--acc); }
  .dot.r { background: var(--danger); }

  .tb {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  .btn {
    padding: 7px 14px; border-radius: 6px;
    font-family: var(--font); font-size: 0.75rem; font-weight: 600;
    cursor: pointer; letter-spacing: 0.3px; text-transform: uppercase;
    transition: all 0.15s; border: 1px solid var(--border);
    background: var(--surface2); color: var(--text);
    position: relative;
  }
  .btn:hover { border-color: var(--dim); transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
  .btn.pri { background: var(--acc); color: var(--bg); border-color: var(--acc); }
  .btn.pri:hover { background: #00cc6a; box-shadow: 0 2px 12px rgba(0,255,136,0.3); }
  .btn.dan { border-color: var(--danger); color: var(--danger); }
  .btn.dan:hover { background: var(--danger); color: var(--bg); box-shadow: 0 2px 12px rgba(255,68,102,0.3); }

  .p-bar { display: flex; gap: 4px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
  .p-tab {
    padding: 5px 14px; border-radius: 4px; cursor: pointer;
    font-size: 0.7rem; font-weight: 600;
    border: 1px solid var(--border);
    background: transparent; color: var(--dim);
    font-family: var(--font); transition: all 0.15s;
  }
  .p-tab.on { background: var(--acc-dim); color: var(--acc); border-color: var(--acc); }
  .p-tab:hover:not(.on) { color: var(--text); border-color: var(--dim); background: rgba(255,255,255,0.02); }

  #gp {
    display: grid; gap: 6px; padding: 12px;
    background: var(--surface2); border-radius: 0 var(--radius) var(--radius) var(--radius);
    margin-bottom: 8px;
    border: 1px solid var(--border);
  }
  .gb {
    border: none; border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font); font-size: 0.68rem; font-weight: 700;
    color: #fff; transition: all 0.15s; position: relative;
    height: 78px; width: 100%;
    overflow: hidden; padding: 2px 4px;
    white-space: nowrap; text-overflow: ellipsis;
  }
  .gb::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
  }
  .gb:hover { transform: scale(1.06); z-index: 2; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
  .gb.sel { outline: 2px solid var(--acc); outline-offset: 2px; box-shadow: 0 0 16px var(--acc-glow); }
  .gb.em { opacity: 0.35; border: 1px dashed rgba(255,255,255,0.1); }
  .gb .ix {
    position: absolute; top: 2px; left: 4px;
    font-size: 0.45rem; color: rgba(255,255,255,0.2);
    font-family: var(--mono);
  }

  .ep {
    padding: 16px; background: var(--surface2); border-radius: var(--radius);
    border: 1px solid var(--acc-dim); display: none; flex-direction: column; gap: 12px;
    animation: slideUp 0.2s ease;
  }
  .ep h3 {
    color: var(--acc); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
  }
  .er { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .er label {
    font-size: 0.6rem; color: var(--dim); text-transform: uppercase;
    letter-spacing: 0.5px; font-weight: 600; min-width: 44px;
  }
  .er input, .er select {
    background: var(--bg); color: var(--text); border: 1px solid var(--border);
    border-radius: 4px; padding: 7px 10px; font-family: var(--font);
    font-size: 0.8rem; flex: 1; min-width: 100px;
    transition: border-color 0.15s;
  }
  .er input:focus, .er select:focus {
    outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-dim);
  }
  .er input[type="color"] {
    padding: 2px; height: 34px; width: 50px; flex: 0; cursor: pointer;
  }
  .br { display: flex; gap: 6px; }

  .ab {
    padding: 12px; background: var(--surface); border-radius: 6px;
    border: 1px solid var(--border);
  }
  .ms {
    display: flex; gap: 6px; align-items: center; padding: 6px 8px;
    background: var(--surface2); border-radius: 4px; margin-bottom: 5px; flex-wrap: wrap;
  }
  .ms input, .ms select {
    background: var(--bg); color: var(--text); border: 1px solid var(--border);
    border-radius: 4px; padding: 5px 8px; font-family: var(--font); font-size: 0.75rem;
  }

  .lc {
    display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px;
    padding: 12px; background: var(--surface2); border-radius: var(--radius);
    align-items: flex-end; border: 1px solid var(--border);
  }
  .cg { display: flex; flex-direction: column; gap: 4px; }
  .cg label {
    font-size: 0.6rem; color: var(--dim); text-transform: uppercase;
    letter-spacing: 0.5px; font-weight: 600;
  }
  .cg input {
    background: var(--bg); color: var(--text); border: 1px solid var(--border);
    border-radius: 4px; padding: 7px 10px; font-family: var(--font);
    font-size: 0.8rem; width: 70px; transition: border-color 0.15s;
  }
  .cg input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-dim); }

  .toast {
    position: fixed; bottom: 20px; right: 20px;
    padding: 10px 18px; border-radius: 6px;
    font-family: var(--font); font-size: 0.8rem;
    z-index: 999; animation: si 0.2s ease;
  }
  .toast.ok { background: var(--surface); color: var(--acc); border: 1px solid rgba(0,255,136,0.25); }
  .toast.ng { background: var(--surface); color: var(--danger); border: 1px solid rgba(255,68,102,0.25); }
  @keyframes si { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

  /* ─── screensaver ─── */
  .saver-fold {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .saver-hdr {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; cursor: pointer;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px;
    background: var(--surface); color: var(--text);
    user-select: none; transition: background 0.15s;
  }
  .saver-hdr:hover { background: #141c2a; }
  .saver-hint { font-size: 0.65rem; font-weight: 400; color: var(--dim); font-family: var(--mono); }
  .saver-body {
    padding: 12px 14px; display: none; flex-direction: column; gap: 10px;
    background: var(--surface2); border-top: 1px solid var(--border);
  }
  .saver-body.open { display: flex; }
  .saver-img-area {
    display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap;
  }
  .saver-preview {
    width: 64px; height: 64px; flex-shrink: 0;
    border: 1px solid var(--border); border-radius: 4px;
    background: var(--bg); position: relative; overflow: hidden;
  }
  .saver-preview canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
  .saver-empty {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 0.55rem; color: var(--dim);
  }
  .saver-upload { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
  .saver-upload input[type="file"] { display: none; }
  .saver-fname { font-size: 0.65rem; color: var(--dim); }

  /* ─── custom widgets ─── */
  .widget-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    font-size: 0.7rem;
  }
  .widget-card .wc-row {
    display: flex; align-items: center; gap: 8px;
  }
  .widget-card .wc-label {
    font-weight: 600; color: var(--acc); min-width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .widget-card .wc-url {
    color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
  }
  .widget-card .wc-interval {
    color: var(--dim); font-family: var(--mono); font-size: 0.65rem; white-space: nowrap;
  }
  .widget-card .wc-actions { display: flex; gap: 4px; }
  .widget-card .wc-edit {
    display: none; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border);
  }
  .widget-card .wc-edit.open { display: flex; }
  .widget-card .wc-ef {
    display: flex; gap: 6px; align-items: center;
  }
  .widget-card .wc-ef label {
    font-size: 0.65rem; color: var(--dim); min-width: 36px;
  }
  .widget-card .wc-ef input, .widget-card .wc-ef textarea {
    background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
    padding: 4px 6px; color: var(--text); font-family: var(--mono); font-size: 0.7rem; flex: 1;
    min-width: 0;
  }
  .widget-card .wc-ef textarea { resize: vertical; min-height: 40px; }
  .widget-card .wc-test { color: var(--dim); font-family: var(--mono); font-size: 0.65rem; margin-top: 4px; }
  .widget-card .wc-test.ok { color: var(--acc); }
  .widget-card .wc-test.ng { color: var(--danger); }
  /* ─── reveal ─── */
  .rv {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .rv.in { opacity: 1; transform: translateY(0); }
  .d1 { transition-delay: 0.05s; }
  .d2 { transition-delay: 0.1s; }
  .d3 { transition-delay: 0.15s; }
  .d4 { transition-delay: 0.2s; }
  .d5 { transition-delay: 0.25s; }
  .d6 { transition-delay: 0.3s; }

  @media (max-width: 760px) {
    .app-layout { flex-direction: column; }
    .sidebar {
      width: 100%;
      padding: 10px 12px;
      overflow-x: auto;
    }
    .sidebar-items {
      flex-direction: row;
      position: static;
      gap: 4px;
    }
    .sidebar-item {
      white-space: nowrap;
      padding: 6px 12px;
      font-size: 0.7rem;
    }
    .main-content { padding: 10px 12px 0; }
    .section { padding: 14px; }
  }

  @media (max-width: 640px) {
    section { padding: 40px 16px; }
    .cfg-box { padding: 14px; }
    .tb { gap: 4px; }
    .btn { font-size: 0.65rem; padding: 5px 10px; }
    nav { padding: 0 12px; height: auto; min-height: var(--nav-h); }
    nav .nls { flex-wrap: wrap; gap: 0; }
    nav .nls a { padding: 5px 7px; font-size: 0.6rem; }
    .hero h1 { font-size: 1.6rem; letter-spacing: 4px; }
    .pricing-card { padding: 28px 16px; }
    .pricing-email { font-size: 0.7rem; }
    .uc-grid { grid-template-columns: 1fr; }
    .f-grid { grid-template-columns: 1fr; }
    .s-grid { grid-template-columns: 1fr; }
    .cmp-table { min-width: 0; font-size: 0.6rem; }
    .cmp-table th, .cmp-table td { padding: 6px 6px; }
    .cmp-table td:first-child { white-space: normal; }
    .cmp-table .price { font-size: 0.7rem; white-space: normal; }
    .cmp-table .price-strike { font-size: 0.6rem; white-space: normal; }
    .lc { flex-direction: column; align-items: stretch; }
    .lc .cg { width: 100%; }
    .lc .cg input { width: 100%; }
    .lc .cg[style*="margin-left:auto"] { margin-left: 0 !important; }
    .fmw-actions { flex-direction: column; }
    .fmw-flash { flex-wrap: wrap; }
    .hero .sub br { display: none; }
  }

  /* ── Guide ── */
  .guide-grid {
    display: flex; flex-direction: column; gap: 20px;
    margin-top: 32px;
  }
  .guide-step {
    display: flex; gap: 20px; align-items: flex-start;
    background: var(--surface); border-radius: var(--radius);
    padding: 24px; border: 1px solid var(--border);
    transition: border-color 0.2s;
  }
  .guide-step:hover { border-color: var(--acc); }
  .guide-num {
    flex-shrink: 0; width: 40px; height: 40px;
    background: var(--acc); color: var(--bg);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
  }
  .guide-body { flex: 1; min-width: 0; }
  .guide-body h3 { margin: 0 0 6px; font-size: 1.05rem; }
  .guide-body p { margin: 0; color: var(--dim); line-height: 1.6; font-size: 0.92rem; }
  .guide-body .guide-cta {
    display: inline-block; margin-top: 10px;
    padding: 6px 16px; border-radius: 6px;
    background: var(--acc); color: var(--bg);
    text-decoration: none; font-size: 0.85rem; font-weight: 600;
  }
  .guide-body .guide-cta:hover { filter: brightness(1.07); }
  .guide-body code {
    background: rgba(0,255,136,0.1); color: var(--acc);
    padding: 1px 6px; border-radius: 3px;
    font-family: var(--mono); font-size: 0.85rem;
  }
  .guide-body .guide-note {
    margin-top: 8px; padding: 8px 12px;
    background: rgba(0,255,136,0.05); border-left: 3px solid var(--acc);
    border-radius: 4px; font-size: 0.85rem; color: var(--dim);
  }
  .guide-img {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 12px 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    object-fit: cover;
  }
  @media (max-width: 540px) {
    .guide-step { flex-direction: column; padding: 16px; }
    .guide-body h3 { font-size: 0.85rem; }
    .guide-body h4 { font-size: 0.78rem; }
    .guide-body p, .guide-body li { font-size: 0.78rem; word-break: break-word; }
    .guide-body ol, .guide-body ul { font-size: 0.78rem !important; line-height: 1.5; }
    .guide-body .guide-note, .guide-body code { font-size: 0.75rem; }
    .guide-body .guide-cta { font-size: 0.75rem; padding: 5px 12px; }
    .guide-body pre { font-size: 0.68rem; padding: 8px; white-space: pre-wrap; word-break: break-word; }
    .guide-body table { min-width: 0; font-size: 0.6rem; }
    .guide-body table th, .guide-body table td { padding: 5px 6px; }
    .guide-body table td:first-child { white-space: normal; }
    .guide-num { width: 28px; height: 28px; font-size: 0.8rem; }
    .guide-img { max-width: 100%; }
  }

  /* ── Guide TOC ── */
  .guide-toc {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    margin-top: 32px;
  }
  .guide-toc h3 {
    margin: 0 0 16px; font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--dim);
  }
  .guide-toc-grid {
    display: flex; flex-direction: column; gap: 2px;
  }
  .guide-toc-sect {
    color: var(--acc); text-decoration: none; font-size: 0.88rem;
    font-weight: 600; padding: 4px 0; margin-top: 6px;
  }
  .guide-toc-sect:first-child { margin-top: 0; }
  .guide-toc-item {
    color: var(--dim); text-decoration: none; font-size: 0.85rem;
    padding: 3px 0 3px 20px; border-left: 1px solid var(--border);
    margin-left: 4px; transition: color 0.15s, border-color 0.15s;
  }
  .guide-toc-item:hover {
    color: var(--acc); border-left-color: var(--acc);
  }

  /* ── Firmware Section ── */
  .fmw {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
  }
  .fmw-hdr { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
  .fmw-note { color: var(--dim); font-size: 0.85rem; flex: 1; min-width: 200px; }
  .fmw-st { font-size: 0.8rem; color: var(--dim); font-family: var(--mono); }
  .fmw-variant { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
  .fmw-vl { font-size: 0.85rem; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
  .fmw-vl input { accent-color: var(--acc); }
  .fmw-vn { font-size: 0.78rem; color: var(--dim); margin-left: auto; }
  .fmw-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
  .fmw-flash { display: flex; gap: 8px; align-items: center; }
  .fmw-flash select {
    background: var(--bg); color: var(--fg); border: 1px solid var(--border);
    border-radius: 4px; padding: 6px 10px; font-size: 0.85rem;
    cursor: pointer;
  }
  .fw-or { color: var(--dim); font-size: 0.78rem; }
  .fmw-log {
    background: #000; color: var(--acc); font-family: var(--mono);
    font-size: 0.78rem; padding: 12px; border-radius: 6px;
    height: 140px; overflow-y: auto; white-space: pre-wrap; line-height: 1.5;
  }
  .fmw-bar-wrap {
    height: 4px; background: var(--border); border-radius: 2px;
    margin-top: 10px; overflow: hidden;
  }
  .fmw-bar {
    height: 100%; width: 0%; background: var(--acc);
    transition: width 0.2s;
  }
  #daemonSetup { border: 1px solid var(--border); }
  .btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

  /* ─── gradient text ─── */
  .grad-text {
    background: linear-gradient(135deg, var(--acc) 0%, #00cc66 50%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* ─── CYD device mockup ─── */
  /* ─── stats ─── */
  .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 48px auto 0;
    padding: 0 20px;
  }
  .stat {
    text-align: center;
    padding: 24px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s;
  }
  .stat:hover {
    border-color: rgba(0,255,136,0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  }
  .stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--acc);
    line-height: 1;
    margin-bottom: 6px;
  }
  .stat-label {
    font-size: 0.7rem;
    color: var(--dim);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
  }
  @media (max-width: 640px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
  }

  /* ─── feature cards glow effect ─── */
  .f-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(0,255,136,0.1), transparent 40%, transparent 60%, rgba(0,255,136,0.05));
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: -1;
  }
  .f-card:hover::after { opacity: 1; }

  /* ─── about section ─── */
  .about-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .abt {
    text-align: center;
    max-width: 100%;
  }
  .abt .abt-top {
    margin-bottom: 40px;
  }
  .abt .abt-top p {
    color: var(--dim);
    font-size: 1rem;
    max-width: 600px;
    margin: 12px auto 0;
    line-height: 1.6;
  }
  .abt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
  }
  .abt-card {
    text-align: left;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s;
  }
  .abt-card:hover {
    border-color: rgba(0,255,136,0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .abt-card h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--acc);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .abt-card p {
    font-size: 0.82rem;
    color: var(--dim);
    line-height: 1.6;
  }
  .abt-links {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin-top: 32px;
  }
  .abt-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.82rem; font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    transition: all 0.2s;
  }
  .abt-link:hover {
    border-color: var(--acc);
    color: var(--acc);
    text-decoration: none;
    transform: translateY(-1px);
  }
  .abt-link svg { width: 16px; height: 16px; flex-shrink: 0; }
  .abt-by {
    color: var(--dim);
    font-size: 0.82rem;
    margin-top: 32px;
  }
  .abt-by strong { color: var(--text); }
  .abt-tags {
    font-size: 0.7rem;
    color: var(--dim);
    letter-spacing: 0.3px;
    margin-top: 8px;
  }

  footer {
    text-align: center;
    padding: 32px 20px;
    border-top: 1px solid var(--border);
    color: var(--dim);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }
  footer a { color: var(--acc); }


  .section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .section-reveal.in { opacity: 1; transform: translateY(0); }

  #showcase {
    padding: 60px 20px;
  }
  .showcase-img {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
  }

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

  /* ─── comparison table ─── */
  .cmp-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 48px;
  }
  .cmp-wrap .cmp-table {
    min-width: 520px;
  }
  .cmp-table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    font-size: 0.82rem;
  }
  .cmp-table th {
    background: var(--surface2);
    color: #fff;
    font-weight: 700;
    padding: 14px 16px;
    text-align: left;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }
  .cmp-table th:first-child { background: transparent; }
  .cmp-table th.hl { color: var(--acc); }
  .cmp-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    color: var(--dim);
  }
  .cmp-table tr:first-child td { border-top: none; }
  .cmp-table td:first-child {
    font-weight: 600;
    color: var(--text);
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .cmp-table td.hl {
    background: rgba(0,255,136,0.03);
    color: var(--text);
  }
  .cmp-table td.hl .check { color: var(--acc); }
  .cmp-table .check { color: var(--acc); font-weight: 700; }
  .cmp-table .cross { color: var(--danger); opacity: 0.6; }
  .cmp-table .price {
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--acc);
    white-space: nowrap;
  }
  .cmp-table .price-strike {
    font-size: 0.75rem;
    color: var(--dim);
    text-decoration: line-through;
  }
  .cmp-footnote {
    text-align: center;
    font-size: 0.78rem;
    color: var(--dim);
    margin-top: 16px;
    line-height: 1.6;
  }

  /* ─── shop gallery (buy page) ─── */
  .shop-gallery {
    max-width: 600px;
    margin: 40px auto 0;
  }
  .shop-main {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
  }
  .shop-main img {
    display: block;
    width: 100%;
    height: auto;
  }
  .shop-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
  }
  .shop-thumbs img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.2s;
  }
  .shop-thumbs img:hover {
    border-color: var(--acc);
  }

  @media (max-width: 540px) {
    .shop-thumbs { grid-template-columns: repeat(3, 1fr); }
    .shop-thumbs img { height: 80px; }
  }

  /* ─── pricing / buy section ─── */
  .pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 48px auto 0;
  }
  .pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .pricing-card:hover {
    border-color: rgba(0,255,136,0.2);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  }
  .pricing-card.featured {
    border-color: var(--acc);
    background: linear-gradient(135deg, rgba(0,255,136,0.06) 0%, var(--surface) 100%);
    box-shadow: 0 0 0 1px rgba(0,255,136,0.15), 0 8px 40px rgba(0,0,0,0.35);
  }
  .pricing-card.featured h3 {
    color: var(--acc);
  }
  .pricing-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .pricing-card .big-price {
    font-family: var(--mono);
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
  }
  .pricing-card .big-price .cur { color: var(--acc); font-size: 1.4rem; }
  .pricing-card .price-note {
    font-size: 0.72rem;
    color: var(--dim);
    margin-bottom: 18px;
  }
  .pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
  }
  .pricing-card ul li {
    padding: 6px 0;
    font-size: 0.8rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .pricing-card ul li .check { color: var(--acc); font-weight: 700; }
  .pricing-card ul li .dim { color: var(--dim); }
  .btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    background: var(--acc);
    color: var(--bg);
  }
  .btn-large:hover {
    background: #00cc6a;
    box-shadow: 0 0 30px rgba(0,255,136,0.3);
    transform: translateY(-2px);
  }
  .btn-large.sec {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
  }
  .btn-large.sec:hover {
    background: rgba(255,255,255,0.03);
    border-color: var(--dim);
    box-shadow: none;
  }
  .pricing-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
  }
  .pricing-email {
    font-family: var(--mono);
    font-size: 0.78rem;
    margin-top: 12px;
    letter-spacing: 0.3px;
  }
  .pricing-email a {
    color: var(--dim);
    text-decoration: none;
    transition: color 0.2s;
  }
  .pricing-email a:hover {
    color: var(--text);
  }

  /* ─── FAQ ─── */
  .faq-grid {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--surface);
  }
  .faq-item:hover {
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  }
  .faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    user-select: none;
    transition: background 0.15s;
  }
  .faq-q:hover { background: rgba(255,255,255,0.02); }
  .faq-q .faq-arrow {
    font-size: 0.7rem;
    color: var(--dim);
    transition: transform 0.2s;
  }
  .faq-q.open .faq-arrow { transform: rotate(180deg); }
  .faq-a {
    display: none;
    padding: 0 20px 16px;
    font-size: 0.82rem;
    color: var(--dim);
    line-height: 1.7;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 0;
  }
  .faq-a.open { display: block; }
  .faq-a code {
    background: rgba(0,255,136,0.08);
    color: var(--acc);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 0.78rem;
  }

  @media (max-width: 640px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .cmp-table { overflow: visible; }
  }

  @media (max-width: 380px) {
    nav .nls a { padding: 3px 5px; font-size: 0.55rem; }
    .pricing-card { padding: 20px 12px; }
    .btn { font-size: 0.6rem; padding: 4px 8px; }
    .shop-thumbs img { height: 70px; }
  }

  .ts-pill {
    display:inline-block;
    padding:4px 10px;
    border-radius:12px;
    background:var(--surface2);
    border:1px solid var(--border);
    font-size:0.65rem;
    cursor:pointer;
    color:var(--dim);
    transition:border-color .15s;
  }
  .ts-pill:hover { border-color:var(--acc); }

  /* ─── drag-drop ─── */
  .gb.drag-src { opacity:0.4; }
  .gb.drag-over { outline:2px dashed var(--acc); outline-offset:-2px; transform:scale(1.08); }

  /* ─── flow builder ─── */
  /* ─── flow builder ─── */
  .flow-box {
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
  }
  .fc {
    background:var(--bg); border:1px solid var(--border); border-radius:6px;
    margin-top:6px; overflow:hidden;
  }
  .fc-hdr {
    display:flex; align-items:center; gap:6px; padding:6px 8px; cursor:pointer;
    font-size:0.7rem; transition:background 0.1s;
  }
  .fc-hdr:hover { background:rgba(255,255,255,0.02); }
  .fc-idx { color:var(--dim); font-family:var(--mono); font-size:0.6rem; min-width:20px; }
  .fc-type {
    background:var(--surface); color:var(--text); border:1px solid var(--border);
    border-radius:3px; padding:2px 4px; font-size:0.65rem; font-family:var(--font); cursor:pointer;
  }
  .fc-summary {
    flex:1; color:var(--acc); font-family:var(--mono); font-size:0.65rem;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  .fc-edit { display:none; flex-direction:column; gap:6px; padding:6px 8px 8px; border-top:1px solid var(--border); }
  .fc-edit.open { display:flex; }
  .fc-body {
    display:flex; flex-direction:column; gap:4px;
  }
  .fc-field {
    display:flex; gap:6px; align-items:center;
  }
  .fc-field label {
    font-size:0.6rem; color:var(--dim); min-width:32px;
  }
  .fc-field input, .fc-field select {
    background:var(--surface); color:var(--text); border:1px solid var(--border);
    border-radius:3px; padding:3px 6px; font-size:0.7rem; font-family:var(--mono); flex:1; min-width:0;
  }
  .fc-raw {
    margin-top:4px; display:flex; flex-direction:column; gap:2px;
  }
  .fc-raw textarea {
    background:var(--surface); color:var(--acc); border:1px solid var(--border);
    border-radius:3px; padding:4px 6px; font-family:var(--mono); font-size:0.6rem;
    resize:vertical; width:100%; min-height:34px;
  }


