/* ============================================================================
 * ZeroPanel 2027 — Flagship Landing Styles (Zero-CDN, Mobile-First)
 * ============================================================================ */

/* Architectural Top Backdrop */
.zph-backdrop {
    position: absolute; inset: -68px 0 auto 0; height: 780px;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.zph-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 76% 62% at 50% 24%, #000 12%, transparent 100%);
    mask-image: radial-gradient(ellipse 76% 62% at 50% 24%, #000 12%, transparent 100%);
}
.zph-glow {
    position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
    width: min(900px, 130vw); height: 480px;
    background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.13) 0%, transparent 70%);
}

/* Section Rhythm */
.zph-sec { padding: clamp(48px, 6.5vw, 84px) 0; position: relative; z-index: 1; }
.zph-sec-head { max-width: 680px; margin: 0 auto clamp(26px, 4vw, 40px); text-align: center; }
.zph-sec-title { font-size: clamp(1.48rem, 3.1vw, 2.3rem); margin: 10px 0 10px; }
.zph-sec-sub { font-size: clamp(0.86rem, 1.3vw, 0.95rem); color: var(--fg-2); line-height: 1.85; }

/* ============================================================================
 * 1. HERO + INTERACTIVE LIVE ORDER CONSOLE
 * ============================================================================ */
.zph-hero { padding: clamp(32px, 5vw, 68px) 0 clamp(28px, 4vw, 44px); position: relative; z-index: 1; }
.zph-hero-grid {
    display: grid; grid-template-columns: 1.04fr 0.96fr;
    gap: clamp(24px, 4vw, 44px); align-items: center;
}
.zph-pill {
    display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px; border-radius: 999px;
    background: var(--surface-1); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    font-size: 0.77rem; font-weight: 700; color: var(--fg-2); margin-bottom: 18px;
}
.zph-h1 {
    font-size: clamp(1.92rem, 4.3vw, 3.25rem); line-height: 1.24; margin-bottom: 16px;
}
.zph-h1 em { font-style: normal; color: var(--brand); }
.zph-lead {
    font-size: clamp(0.9rem, 1.4vw, 1.02rem); color: var(--fg-2); line-height: 1.9;
    max-width: 550px; margin-bottom: 26px;
}
.zph-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.zph-metrics {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
    padding-top: 22px; border-top: 1px solid var(--border); max-width: 530px;
}
.zph-metric strong {
    display: block; font-family: var(--font-mono); font-size: clamp(1.04rem, 1.8vw, 1.28rem);
    font-weight: 700; color: var(--fg); direction: ltr; text-align: right;
}
.zph-metric span { display: block; font-size: 0.74rem; color: var(--fg-3); margin-top: 2px; }

/* Interactive Pre-Order Console */
.zph-console {
    background: var(--surface-1); border: 1px solid var(--border-strong);
    border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden;
}
.zph-con-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.zph-con-title {
    display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 700;
}
.zph-con-title svg { color: var(--brand); }
.zph-con-eta {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
    color: var(--ok); background: var(--ok-soft); padding: 4px 10px; border-radius: 999px; direction: ltr;
}
.zph-con-tabs-wrap {
    position: relative; border-bottom: 1px solid var(--border);
}
.zph-con-tabs {
    display: flex; gap: 5px; padding: 10px 14px; overflow-x: auto;
    scrollbar-width: none; scroll-snap-type: x proximity;
}
.zph-con-tabs::-webkit-scrollbar { display: none; }
.zph-con-tab {
    flex-shrink: 0; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 9px; font-size: 0.77rem; font-weight: 700;
    color: var(--fg-2); border: 1px solid transparent; transition: all .15s ease; min-height: 36px;
}
.zph-con-tab:hover { color: var(--fg); background: var(--surface-2); }
.zph-con-tab.is-active { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-ring); }
.zph-con-body { padding: 18px; display: flex; flex-direction: column; gap: 15px; }
.zph-con-lbl { display: flex; align-items: center; justify-content: space-between; font-size: 0.76rem; font-weight: 700; color: var(--fg-2); margin-bottom: 7px; }
.zph-con-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.zph-pack {
    padding: 11px 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg);
    text-align: right; transition: border-color .15s ease, background-color .15s ease;
    display: flex; flex-direction: column; gap: 4px; min-height: 62px;
}
.zph-pack:hover { border-color: var(--border-strong); }
.zph-pack.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.zph-pack-n { font-size: 0.79rem; font-weight: 700; color: var(--fg); line-height: 1.35; }
.zph-pack-p { font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-2); direction: ltr; align-self: flex-start; }
.zph-pack.is-selected .zph-pack-p { color: var(--brand); font-weight: 700; }
.zph-con-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-top: 14px; border-top: 1px solid var(--border);
}
.zph-con-total-lbl { display: block; font-size: 0.73rem; color: var(--fg-3); }
.zph-con-total-val { font-family: var(--font-mono); font-size: 1.08rem; font-weight: 700; color: var(--fg); }

/* ============================================================================
 * 2. LIVE API TELEMETRY STRIP
 * ============================================================================ */
.zph-tele-wrap { padding: 8px 0 clamp(32px, 5vw, 52px); position: relative; z-index: 1; }
.zph-tele {
    background: var(--surface-1); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.zph-tele-head {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 0.8rem;
}
.zph-tele-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1px; background: var(--border);
}
.zph-tele-cell {
    background: var(--surface-1); padding: 12px 15px; display: flex; align-items: center;
    justify-content: space-between; gap: 8px; transition: background-color .15s ease;
}
.zph-tele-cell:hover { background: var(--surface-2); }
.zph-tele-name { font-size: 0.78rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zph-tele-stat { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--ok); flex-shrink: 0; direction: ltr; }

/* ============================================================================
 * 3. ELASTIC INTERACTIVE BENTO SHOWCASE (9 ECOSYSTEMS)
 * ============================================================================ */
.zph-bento-ecos {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px;
}
.zph-eco-card {
    grid-column: span 2; padding: 22px; display: flex; flex-direction: column;
    justify-content: space-between; gap: 16px;
}
.zph-eco-card.is-featured { grid-column: span 3; }
.zph-eco-card:hover { border-color: var(--brand-ring); transform: translateY(-2px); }
.zph-eco-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.zph-eco-id { display: flex; align-items: center; gap: 12px; }
.zph-eco-ic {
    width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2);
    border: 1px solid var(--border); color: var(--brand); display: grid; place-items: center; flex-shrink: 0;
}
.zph-eco-card:hover .zph-eco-ic { background: var(--brand-soft); border-color: var(--brand-ring); }
.zph-eco-t { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.zph-eco-en { font-family: var(--font-en); font-size: 0.72rem; color: var(--fg-3); display: block; margin-top: 2px; }
.zph-eco-desc { font-size: 0.84rem; color: var(--fg-2); line-height: 1.8; margin: 12px 0 14px; }
.zph-eco-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.zph-eco-tag {
    font-size: 0.72rem; padding: 4px 9px; border-radius: 7px;
    background: var(--bg); border: 1px solid var(--border); color: var(--fg-2);
}
.zph-eco-foot {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.77rem;
}
.zph-eco-price { color: var(--fg-3); }
.zph-eco-price strong { color: var(--fg); font-family: var(--font-mono); font-size: 0.84rem; }
.zph-eco-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); }
.zph-eco-cta:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================================
 * 4. 3-STEP BEGINNER-SAFE WORKFLOW RAIL
 * ============================================================================ */
.zph-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.zph-step { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.zph-step-num {
    width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft);
    border: 1px solid var(--brand-ring); color: var(--brand); font-family: var(--font-mono);
    font-size: 0.86rem; font-weight: 700; display: grid; place-items: center;
}
.zph-step h3 { font-size: 1rem; font-weight: 700; }
.zph-step p { font-size: 0.84rem; color: var(--fg-2); line-height: 1.8; }

/* ============================================================================
 * 5. DEVELOPERS & REST API CONSOLE (ALWAYS DARK)
 * ============================================================================ */
.zph-api-grid { display: grid; grid-template-columns: 0.96fr 1.04fr; gap: 32px; align-items: center; }
.zph-api-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 26px; }
.zph-api-feat { padding: 14px; border-radius: 12px; background: var(--surface-1); border: 1px solid var(--border); }
.zph-api-feat strong { display: block; font-size: 0.85rem; margin-bottom: 4px; }
.zph-api-feat span { display: block; font-size: 0.76rem; color: var(--fg-2); line-height: 1.65; }

.zph-code-card {
    background: #0C0C10; color: #F4F4F5; border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); direction: ltr;
}
.zph-code-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; background: #131318; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.zph-code-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.zph-code-tab {
    font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700;
    padding: 6px 11px; border-radius: 7px; color: #A1A1AA; transition: all .15s ease;
}
.zph-code-tab.is-active { background: rgba(249, 115, 22, 0.16); color: #FB923C; }
.zph-code-copy {
    font-size: 0.73rem; font-weight: 700; padding: 5px 12px; border-radius: 7px;
    background: #1C1C24; border: 1px solid rgba(255, 255, 255, 0.12); color: #E4E4E7; flex-shrink: 0;
}
.zph-code-copy[data-ok="1"] { color: #34D399; border-color: rgba(52, 211, 153, 0.45); }
.zph-code-pre {
    margin: 0; padding: 18px; overflow-x: auto; font-family: var(--font-mono);
    font-size: 0.79rem; line-height: 1.75; display: none;
}
.zph-code-pre.is-active { display: block; }
.zph-code-res {
    padding: 11px 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); background: #08080B;
    font-family: var(--font-mono); font-size: 0.73rem; color: #A1A1AA;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ============================================================================
 * 6. SECURITY & PAYMENTS BENTO + COMPARISON MATRIX
 * ============================================================================ */
.zph-sec-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.zph-bcard { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.zph-span-7 { grid-column: span 7; }
.zph-span-5 { grid-column: span 5; }
.zph-bcard-ic {
    width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft);
    color: var(--brand); display: grid; place-items: center; margin-bottom: 14px;
}
.zph-bcard h3 { font-size: 1rem; font-weight: 700; margin-bottom: 7px; }
.zph-bcard p { font-size: 0.84rem; color: var(--fg-2); line-height: 1.85; }
.zph-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.zph-chip {
    padding: 5px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border);
    font-family: var(--font-mono), var(--font-fa); font-size: 0.73rem; font-weight: 700;
}

/* Comparison Table (Desktop) -> Zero-Scroll Stacked Cards (Mobile) */
.zph-cmp-box {
    background: var(--surface-1); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
}
.zph-cmp-table { width: 100%; border-collapse: collapse; }
.zph-cmp-table th, .zph-cmp-table td {
    padding: 16px 20px; text-align: right; border-bottom: 1px solid var(--border); font-size: 0.86rem; line-height: 1.65;
}
.zph-cmp-table thead th { background: var(--surface-2); font-size: 0.83rem; font-weight: 700; }
.zph-cmp-table tbody tr:last-child td { border-bottom: none; }
.zph-cmp-zp { background: rgba(249, 115, 22, 0.055); }
.zph-cmp-cell { display: inline-flex; align-items: flex-start; gap: 8px; }
.zph-cmp-cell svg { flex-shrink: 0; margin-top: 3px; }
.zph-cmp-lbl-m { display: none; font-size: 0.71rem; font-weight: 700; color: var(--fg-3); margin-bottom: 3px; }

/* ============================================================================
 * 7. FAQ ACCORDION + REAL BLOG CARDS + FINAL CTA
 * ============================================================================ */
.zph-faq-list { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.zph-faq-item { background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color .16s ease; }
.zph-faq-item.is-open { border-color: var(--brand-ring); }
.zph-faq-q {
    width: 100%; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between;
    gap: 14px; text-align: right; font-size: 0.9rem; font-weight: 700; min-height: 54px;
}
.zph-faq-q svg { color: var(--fg-3); flex-shrink: 0; transition: transform .2s ease; }
.zph-faq-item.is-open .zph-faq-q svg { transform: rotate(180deg); color: var(--brand); }
.zph-faq-a { display: none; padding: 0 20px 18px; font-size: 0.85rem; line-height: 1.88; color: var(--fg-2); }
.zph-faq-item.is-open .zph-faq-a { display: block; }

.zph-blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.zph-blog-card { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.zph-blog-card:hover { border-color: var(--brand-ring); transform: translateY(-2px); }
.zph-blog-t { font-size: 0.96rem; font-weight: 700; line-height: 1.5; margin: 8px 0; }
.zph-blog-ex { font-size: 0.82rem; color: var(--fg-2); line-height: 1.8; }

.zph-cta {
    position: relative; overflow: hidden; background: var(--surface-1); border: 1px solid var(--border);
    border-radius: 22px; padding: clamp(32px, 5vw, 58px) clamp(18px, 4vw, 32px); text-align: center;
}
.zph-cta-in { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.zph-cta-btns { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 24px 0 20px; }
.zph-cta-trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; font-size: 0.78rem; color: var(--fg-3); }
.zph-cta-trust span { display: inline-flex; align-items: center; gap: 7px; }

/* ============================================================================
 * 8. RESPONSIVE PRECISION (TABLET, MOBILE, SMALL MOBILE, LANDSCAPE)
 * ============================================================================ */
@media (max-width: 1023px) {
    .zph-hero-grid, .zph-api-grid { grid-template-columns: 1fr; }
    .zph-bento-ecos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zph-eco-card, .zph-eco-card.is-featured { grid-column: span 1; }
    .zph-steps { grid-template-columns: 1fr; }
    .zph-span-7, .zph-span-5 { grid-column: span 12; }
}

@media (max-width: 767px) {
    .zph-bento-ecos { grid-template-columns: 1fr; }
    .zph-api-feats { grid-template-columns: 1fr; }
    .zph-hero-ctas .zp-btn, .zph-cta-btns .zp-btn { width: 100%; }
    .zph-con-foot { flex-direction: column; align-items: stretch; }
    .zph-con-foot .zp-btn { width: 100%; }

    /* Transform Comparison Table into Clean Stacked Cards on Mobile */
    .zph-cmp-table thead { display: none; }
    .zph-cmp-table, .zph-cmp-table tbody, .zph-cmp-table tr, .zph-cmp-table td { display: block; width: 100%; }
    .zph-cmp-table tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
    .zph-cmp-table td { padding: 6px 0; border-bottom: none; }
    .zph-cmp-table td.zph-cmp-zp { padding: 10px 12px; border-radius: 10px; margin: 6px 0; }
    .zph-cmp-lbl-m { display: block; }
}

@media (max-width: 413px) {
    .zph-con-packs { grid-template-columns: 1fr; }
}