/**
 * InvoiceLink Landing — Ink & Indigo (brand/marketing layer)
 */

:root {
    --lp-ink: #0f172a;
    --lp-ink-soft: #1e293b;
    --lp-accent: #4f46e5;
    --lp-accent-hover: #4338ca;
    --lp-accent-soft: #eef2ff;
    --lp-surface: #ffffff;
    --lp-canvas: #f8fafc;
    --lp-border: #e2e8f0;
    --lp-muted: #64748b;
    --lp-hero: linear-gradient(145deg, #0f172a 0%, #1e293b 40%, #312e81 100%);
    --lp-header-h: 72px;
}

html {
    scroll-behavior: smooth;
}

body.landing-page {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: var(--lp-ink);
    background: var(--lp-canvas);
    margin: 0;
    overflow-x: hidden;
}

/* ── Header ── */
.lp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--lp-header-h);
    display: flex;
    align-items: center;
    padding: 0 clamp(16px, 4vw, 32px);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.lp-header.is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--lp-border);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.08);
}

.lp-header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--lp-ink);
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}

.lp-logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    background: var(--lp-accent-hover);
    padding: 5px;
    border-radius: 10px;
}

.lp-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-nav a {
    color: var(--lp-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
}

.lp-nav a:hover,
.lp-nav a.is-active {
    color: var(--lp-accent);
    background: var(--lp-accent-soft);
}

.lp-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lp-btn-ghost {
    color: var(--lp-accent-hover);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 12px;
    transition: background 0.2s;
}

.lp-btn-ghost:hover {
    background: var(--lp-accent-soft);
}

.lp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-accent) 100%);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.lp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}

.lp-btn-primary-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 16px;
}

.lp-btn-white {
    background: white;
    color: var(--lp-accent-hover);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.lp-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 2px solid var(--lp-border);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.lp-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--lp-accent-hover);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.lp-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.lp-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.lp-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.lp-mobile-nav {
    display: none;
    position: fixed;
    top: var(--lp-header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--lp-border);
    padding: 16px;
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.1);
    z-index: 999;
}

.lp-mobile-nav.is-open {
    display: block;
}

.lp-mobile-nav a {
    display: block;
    padding: 14px 16px;
    color: var(--lp-ink);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
}

.lp-mobile-nav a:hover,
.lp-mobile-nav a.is-active {
    background: var(--lp-accent-soft);
    color: var(--lp-accent);
}

.lp-mobile-nav .lp-mobile-cta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--lp-border);
    display: grid;
    gap: 8px;
}

/* ── Layout ── */
.lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 32px);
}

.lp-section {
    padding: clamp(64px, 10vw, 100px) 0;
    scroll-margin-top: calc(var(--lp-header-h) + 16px);
}

.lp-section-label {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--lp-accent-soft);
    color: var(--lp-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.lp-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--lp-ink);
    margin: 0 0 16px;
    line-height: 1.15;
}

.lp-section-desc {
    color: var(--lp-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 640px;
    margin: 0;
}

.lp-section-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.lp-section-header .lp-section-desc {
    margin: 0 auto;
}

/* ── Hero ── */
.lp-hero {
    background: var(--lp-hero);
    color: white;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--lp-header-h) + 48px) 0 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.lp-hero::before,
.lp-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.lp-hero::before {
    width: min(560px, 80vw);
    height: min(560px, 80vw);
    top: -160px;
    right: -80px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
}

.lp-hero::after {
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    bottom: -120px;
    left: -80px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
}

.lp-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.lp-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
}

.lp-hero-text {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin: 0 0 36px;
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.lp-hero-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

/* Workflow card */
.lp-workflow {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 36px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2);
}

.lp-workflow-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.lp-workflow-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    font-size: 22px;
}

.lp-workflow-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.lp-workflow-head p {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.lp-steps {
    display: grid;
    gap: 12px;
}

.lp-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lp-step.is-done {
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(255, 255, 255, 0.2);
}

.lp-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.lp-step.is-done .lp-step-num {
    background: white;
    color: var(--lp-accent-hover);
}

.lp-step-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.lp-step.is-done .lp-step-label {
    color: white;
}

/* ── About / Tentang ── */
.lp-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
}

.lp-about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.lp-stat {
    background: white;
    border: 1px solid var(--lp-border);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.06);
}

.lp-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--lp-accent);
    margin-bottom: 6px;
}

.lp-stat span {
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-muted);
}

/* ── Features ── */
.lp-features {
    background: linear-gradient(180deg, #ffffff 0%, var(--lp-surface) 100%);
}

.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lp-feature-card {
    background: white;
    border: 1px solid var(--lp-border);
    border-radius: 24px;
    padding: 32px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.lp-feature-card:hover {
    transform: translateY(-6px);
    border-color: #c4b5fd;
    box-shadow: 0 24px 48px rgba(79, 70, 229, 0.12);
}

.lp-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--lp-accent-soft) 0%, #ede9fe 100%);
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.lp-feature-card h4 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--lp-ink);
}

.lp-feature-card p {
    margin: 0;
    color: var(--lp-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* ── Ciri (benefits) ── */
.lp-benefits {
    background: var(--lp-surface);
}

.lp-benefit-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 880px;
    margin: 0 auto;
}

.lp-benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    background: white;
    border: 1px solid var(--lp-border);
    border-radius: 18px;
}

.lp-benefit-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent));
    color: white;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.lp-benefit strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--lp-ink);
}

.lp-benefit span {
    font-size: 14px;
    color: var(--lp-muted);
    line-height: 1.5;
}

/* ── Harga ── */
.lp-pricing {
    background: white;
}

.lp-price-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(180deg, var(--lp-canvas) 0%, white 100%);
    border: 2px solid var(--lp-border);
    border-radius: 32px;
    padding: clamp(36px, 6vw, 48px);
    box-shadow: 0 24px 60px rgba(79, 70, 229, 0.1);
}

.lp-price-amount {
    font-size: clamp(3rem, 8vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin: 16px 0;
}

.lp-price-card ul {
    list-style: none;
    padding: 0;
    margin: 28px 0 32px;
    text-align: left;
    display: grid;
    gap: 12px;
}

.lp-price-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--lp-ink);
    font-weight: 600;
}

.lp-price-card li::before {
    content: '✓';
    color: var(--lp-accent);
    font-weight: 800;
}

/* ── CTA ── */
.lp-cta {
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #4338ca 100%);
    color: white;
    text-align: center;
}

.lp-cta .lp-section-title {
    color: white;
}

.lp-cta .lp-section-desc {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 32px;
}

/* ── Footer ── */
.lp-footer {
    padding: 32px 0 40px;
    text-align: center;
    background: white;
    border-top: 1px solid var(--lp-border);
    color: var(--lp-muted);
    font-size: 14px;
    font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .lp-nav,
    .lp-header-actions .lp-btn-ghost {
        display: none;
    }

    .lp-menu-toggle {
        display: inline-flex;
    }

    .lp-hero-grid,
    .lp-about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lp-hero-text,
    .lp-section-desc:not(.lp-section-header .lp-section-desc) {
        margin-left: auto;
        margin-right: auto;
    }

    .lp-hero-actions {
        justify-content: center;
    }

    .lp-feature-grid {
        grid-template-columns: 1fr;
    }

    .lp-benefit-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .lp-about-stats {
        grid-template-columns: 1fr;
    }

    .lp-header-actions .lp-btn-primary {
        display: none;
    }
}
