.lp-v2 {
    --lp-blue: #0074bf;
    --lp-blue-hover: #005a94;
    --lp-blue-light: #e8f4fd;
    --lp-dark: #1a1a2e;
    --lp-text: #374151;
    --lp-text-muted: #6b7280;
    --lp-bg: #ffffff;
    --lp-bg-alt: #f8f9fb;
    --lp-border: #e5e7eb;
    --lp-code-bg: #080a10;
    --lp-code-header: #10121c;
    --lp-radius: 8px;
    --lp-radius-lg: 12px;
    --lp-nav-h: 64px;
    --lp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --lp-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", Menlo, Monaco, Consolas, monospace;
    --lp-serif: "LyonDisplay", "LyonText", Georgia, serif;
}

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

.lp-v2 {
    font-family: var(--lp-font);
    color: var(--lp-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------------- */
/* Navigation                               */
/* ---------------------------------------- */

.lp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--lp-nav-h);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lp-border);
    transition: box-shadow 0.2s ease;
}
.lp-nav.lp-nav-scrolled {
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.lp-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
a.lp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--lp-dark);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    font-family: var(--lp-serif);
}
.lp-logo svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.lp-nav-links a {
    text-decoration: none;
    color: var(--lp-text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.15s ease;
}
.lp-nav-links a:hover {
    color: var(--lp-dark);
}
a.lp-nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--lp-blue);
    color: #fff !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease;
}
a.lp-nav-cta:hover {
    background: var(--lp-blue-hover);
}
.lp-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.lp-mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--lp-dark);
    border-radius: 1px;
    transition: all 0.2s ease;
}

/* ---------------------------------------- */
/* Buttons                                  */
/* ---------------------------------------- */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.3;
}
.lp-btn-primary {
    background: var(--lp-blue);
    color: #fff;
    border-color: var(--lp-blue);
}
.lp-btn-primary:hover {
    background: var(--lp-blue-hover);
    border-color: var(--lp-blue-hover);
    color: #fff;
}
.lp-btn-secondary {
    background: transparent;
    color: var(--lp-blue);
    border-color: var(--lp-blue);
}
.lp-btn-secondary:hover {
    background: var(--lp-blue);
    color: #fff;
}
.lp-btn-ghost {
    background: transparent;
    color: var(--lp-blue);
    border-color: transparent;
    padding-left: 4px;
    padding-right: 4px;
}
.lp-btn-ghost:hover {
    color: var(--lp-blue-hover);
}

/* ---------------------------------------- */
/* Hero                                     */
/* ---------------------------------------- */

.lp-hero {
    padding: 140px 0 80px;
    background: linear-gradient(170deg, #f8faff 0%, #fff 40%, var(--lp-bg) 100%);
}
.lp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}
.lp-hero-text h1 {
    font-family: var(--lp-serif);
    font-size: 62px;
    line-height: 1.12;
    font-weight: 700;
    color: var(--lp-dark);
    letter-spacing: -0.025em;
    margin: 0 0 20px;
}
.lp-hero-text p {
    font-size: 19px;
    color: var(--lp-text-muted);
    line-height: 1.6;
    margin: 0 0 36px;
    max-width: 440px;
}
.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

/* ---------------------------------------- */
/* Code Window                              */
/* ---------------------------------------- */

.lp-hero-demo {
    min-width: 0;
}
.lp-code-window {
    background: var(--lp-code-bg);
    border-radius: var(--lp-radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.lp-code-header {
    display: flex;
    align-items: center;
    background: var(--lp-code-header);
    padding: 0 16px;
    border-bottom: 1px solid #333;
}
.lp-code-dots {
    display: flex;
    gap: 7px;
    margin-right: 20px;
    padding: 16px 0;
}
.lp-code-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.lp-code-dot:nth-child(1) { background: #ed6a5e; }
.lp-code-dot:nth-child(2) { background: #f5bf4f; }
.lp-code-dot:nth-child(3) { background: #62c554; }
.lp-code-tabs {
    display: flex;
    gap: 0;
}
.lp-code-tab {
    padding: 12px 16px;
    background: none;
    border: none;
    color: #6c7086;
    font-size: 13px;
    font-family: var(--lp-font);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    margin-bottom: -1px;
}
.lp-code-tab:hover { color: #a6adc8; }
.lp-code-tab.active {
    color: #cdd6f4;
    border-bottom-color: var(--lp-blue);
}
.lp-code-body {
    position: relative;
    min-height: 200px;
}
.lp-code-panel {
    display: none;
    padding: 20px 20px 16px;
    margin: 0;
    overflow-x: auto;
    max-width: 100%;
    background: var(--lp-code-bg);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    visibility: hidden;
    border: none;
}
.lp-code-panel.active {
    display: block;
    position: relative;
    visibility: visible;
}
.lp-code-panel.lp-measure {
    display: block;
    position: absolute;
    visibility: hidden;
}
.lp-code-panel code {
    font-family: var(--lp-mono);
    font-size: 13.5px;
    line-height: 1.65;
    color: #cdd6f4;
    white-space: pre;
    background: none;
    padding: 0;
}
.lp-code-divider {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c7086;
    border-top: 1px solid #333;
    background: rgba(255,255,255,0.02);
}
.lp-code-response {
    padding: 16px 20px 20px;
    margin: 0;
    overflow-x: auto;
    background: var(--lp-code-bg);
    border: none;
    border-top: 1px solid #333;
}
.lp-code-response code {
    font-family: var(--lp-mono);
    font-size: 13px;
    line-height: 1.6;
    color: #cdd6f4;
    white-space: pre;
    background: none;
    padding: 0;
}
.lp-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #6c7086;
    font-size: 12px;
    font-family: var(--lp-font);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 2;
}
.lp-copy-btn:hover {
    background: rgba(255,255,255,0.14);
    color: #cdd6f4;
}

/* Syntax highlighting */
.hl-kw { color: #cba6f7; }
.hl-str { color: #a6e3a1; }
.hl-fn { color: #89b4fa; }
.hl-cm { color: #6c7086; }
.hl-num { color: #fab387; }
.hl-key { color: #89dceb; }
.hl-op { color: #94e2d5; }
.hl-flag { color: #f38ba8; }

/* ---------------------------------------- */
/* Section base                             */
/* ---------------------------------------- */

.lp-section {
    padding: 100px 0;
}
.lp-section-alt {
    background: var(--lp-bg-alt);
}
.lp-section-header {
    text-align: center;
    margin-bottom: 64px;
}
.lp-section-header h2 {
    font-family: var(--lp-serif);
    font-size: 40px;
    font-weight: 700;
    color: var(--lp-dark);
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    line-height: 1.2;
}
.lp-section-header p {
    font-size: 18px;
    color: var(--lp-text-muted);
    max-width: 580px;
    margin: 0 auto;
}

/* ---------------------------------------- */
/* Pillars                                  */
/* ---------------------------------------- */

.lp-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.lp-pillar {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    padding: 36px 32px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.lp-pillar:hover {
    border-color: #d0d5dd;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.lp-pillar-icon {
    width: 48px;
    height: 48px;
    background: var(--lp-blue-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--lp-blue);
}
.lp-pillar-icon svg {
    width: 24px;
    height: 24px;
}
.lp-pillar h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--lp-dark);
    margin: 0 0 12px;
}
.lp-pillar > p {
    font-size: 15px;
    color: var(--lp-text-muted);
    line-height: 1.6;
    margin: 0 0 20px;
}
.lp-pillar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.lp-pillar-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--lp-bg-alt);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--lp-text-muted);
}
.lp-pillar-endpoint {
    display: block;
    font-family: var(--lp-mono);
    font-size: 13px;
    color: var(--lp-blue);
    padding: 10px 14px;
    background: #f0f7fc;
    border-radius: 6px;
    overflow-x: auto;
    white-space: nowrap;
}

/* ---------------------------------------- */
/* Why Instaparser                          */
/* ---------------------------------------- */

.lp-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 64px;
}
.lp-why-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--lp-dark);
    margin: 0 0 10px;
}
.lp-why-item p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--lp-text);
    margin: 0;
}

/* ---------------------------------------- */
/* Playground                               */
/* ---------------------------------------- */

.lp-playground-box {
    max-width: 860px;
    margin: 0 auto;
}
.lp-playground-input {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.lp-playground-input input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    font-family: var(--lp-font);
    border: 2px solid var(--lp-border);
    border-radius: var(--lp-radius);
    outline: none;
    transition: border-color 0.15s ease;
    color: var(--lp-dark);
    background: #fff;
}
.lp-playground-input input:focus {
    border-color: var(--lp-blue);
}
.lp-playground-input button {
    padding: 14px 32px;
    background: var(--lp-blue);
    color: #fff;
    border: none;
    border-radius: var(--lp-radius);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--lp-font);
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}
.lp-playground-input button:hover {
    background: var(--lp-blue-hover);
}
.lp-playground-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    align-items: center;
}
.lp-playground-examples span {
    font-size: 14px;
    color: var(--lp-text-muted);
    margin-right: 4px;
}
.lp-playground-example {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 20px;
    font-size: 13px;
    font-family: var(--lp-mono);
    color: var(--lp-text);
    cursor: pointer;
    transition: all 0.15s ease;
}
.lp-playground-example:hover,
.lp-playground-example.active {
    border-color: var(--lp-blue);
    color: var(--lp-blue);
    background: var(--lp-blue-light);
}
.lp-playground-result {
    background: var(--lp-code-bg);
    border-radius: var(--lp-radius-lg);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}
.lp-playground-result pre {
    background-color: var(--lp-code-bg);
    border: 1px solid #333;
}
.lp-playground-result.visible {
    max-height: 500px;
    opacity: 1;
}
.lp-playground-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lp-playground-result-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c7086;
}
.lp-playground-result-status {
    font-size: 12px;
    color: #a6e3a1;
    font-family: var(--lp-mono);
}
.lp-playground-result pre {
    padding: 16px 20px 20px;
    margin: 0;
    overflow-x: auto;
}
.lp-playground-result code {
    font-family: var(--lp-mono);
    font-size: 13px;
    line-height: 1.6;
    color: #cdd6f4;
    white-space: pre;
    background: none;
    padding: 0;
}
.lp-playground-cta {
    text-align: center;
    margin-top: 32px;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}
.lp-playground-cta.visible { opacity: 1; }
.lp-playground-cta a {
    color: var(--lp-blue);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}
.lp-playground-cta a:hover { text-decoration: underline; }

/* ---------------------------------------- */
/* Trust                                    */
/* ---------------------------------------- */

.lp-trust {
    padding: 64px 0;
    border-top: 1px solid var(--lp-border);
    border-bottom: 1px solid var(--lp-border);
    text-align: center;
}
.lp-trust p {
    font-family: var(--lp-serif);
    font-size: 22px;
    color: var(--lp-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ---------------------------------------- */
/* Pricing                                  */
/* ---------------------------------------- */

.lp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.lp-price-card {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    padding: 36px 28px 32px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.2s ease;
}
.lp-price-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.lp-price-featured {
    border-color: var(--lp-blue);
    box-shadow: 0 8px 30px rgba(0,116,191,0.12);
}
.lp-price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lp-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.lp-price-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--lp-dark);
    margin: 0 0 8px;
}
.lp-price-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--lp-dark);
    line-height: 1.1;
    margin-bottom: 4px;
}
.lp-price-amount span {
    font-size: 18px;
    font-weight: 500;
    color: var(--lp-text-muted);
}
.lp-price-period {
    font-size: 14px;
    color: var(--lp-text-muted);
    margin-bottom: 28px;
}
.lp-price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}
.lp-price-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--lp-text);
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
}
.lp-price-features li:last-child { border-bottom: none; }
.lp-price-features .lp-feat-label { color: var(--lp-text-muted); }
.lp-price-features .lp-feat-value { font-weight: 600; color: var(--lp-dark); }
.lp-price-card .lp-btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
}
.lp-pricing-note {
    text-align: center;
    font-size: 16px;
    color: var(--lp-text-muted);
}
.lp-pricing-note a {
    color: var(--lp-blue);
    text-decoration: none;
    font-weight: 600;
}

/* ---------------------------------------- */
/* Footer                                   */
/* ---------------------------------------- */

.lp-footer {
    background: var(--lp-dark);
    color: #9ca3af;
    padding: 72px 0 40px;
}
.lp-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 56px;
}
.lp-footer-col h4 {
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 20px;
}
.lp-footer-col a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.15s ease;
}
.lp-footer-col a:hover { color: #fff; }
.lp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.lp-footer-bottom a {
    color: #9ca3af;
    text-decoration: none;
}
.lp-footer-bottom a:hover { color: #fff; }

/* ---------------------------------------- */
/* Responsive: Tablet                       */
/* ---------------------------------------- */

@media (max-width: 1024px) {
    .lp-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .lp-hero-text h1 { font-size: 42px; }
    .lp-pillars-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
    .lp-pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------- */
/* Responsive: Mobile                       */
/* ---------------------------------------- */

@media (max-width: 768px) {
    .lp-nav-links { display: none; }
    .lp-nav-links.lp-nav-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--lp-nav-h);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--lp-border);
        padding: 16px 24px 24px;
        gap: 16px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    }
    .lp-nav-links.lp-nav-open a.lp-nav-cta {
        text-align: center;
        justify-content: center;
    }
    .lp-mobile-toggle { display: flex; }

    .lp-hero { padding: 100px 0 60px; }
    .lp-hero-text h1 { font-size: 34px; }
    .lp-hero-text p { font-size: 17px; }
    .lp-hero-actions { flex-direction: column; align-items: stretch; }
    .lp-hero-actions .lp-btn { text-align: center; justify-content: center; }

    .lp-section { padding: 64px 0; }
    .lp-section-header h2 { font-size: 30px; }
    .lp-section-header { margin-bottom: 40px; }

    .lp-why-grid { grid-template-columns: 1fr; gap: 36px; }
    .lp-pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 48px; }

    .lp-playground-input { flex-direction: column; }
    .lp-playground-examples { justify-content: center; }

    .lp-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .lp-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    .lp-trust p { font-size: 18px; padding: 0 16px; }
}

@media (max-width: 480px) {
    .lp-hero-text h1 { font-size: 28px; }
    .lp-code-panel code,
    .lp-code-response code { font-size: 12px; }
    .lp-price-amount { font-size: 36px; }
}
