/* SmartPayW public site */
:root {
    --spw-primary: #5b21b6;
    --spw-primary-dark: #4c1d95;
    --spw-accent: #8b5cf6;
    --spw-gold: #f59e0b;
    --spw-gold-dark: #d97706;
    --spw-bg: #0f0a1a;
    --spw-surface: #ffffff;
    --spw-muted: #6b7280;
    --spw-text: #1f2937;
    --spw-radius: 16px;
    --spw-font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

.spw-body {
    font-family: var(--spw-font);
    background: #f8f7fc;
    margin: 0;
    color: var(--spw-text);
}

/* Header */
.spw-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 10, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.spw-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 0;
}

.spw-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -.02em;
}

.spw-brand span { color: var(--spw-gold); }

.spw-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--spw-gold), var(--spw-gold-dark));
    color: #1a1625;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
}

.spw-brand-icon.sm { width: 28px; height: 28px; font-size: .75rem; border-radius: 8px; }

.spw-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.spw-nav a {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    padding: .45rem .85rem;
    border-radius: 8px;
    transition: color .2s, background .2s;
}

.spw-nav a:hover,
.spw-nav a.active { color: #fff; background: rgba(255,255,255,.08); }

.spw-nav-download {
    background: linear-gradient(135deg, var(--spw-gold), var(--spw-gold-dark)) !important;
    color: #1a1625 !important;
    margin-left: .35rem;
}

.spw-nav-download:hover { opacity: .92; color: #1a1625 !important; }

.spw-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    padding: .35rem;
}

/* Main */
.spw-main-home { padding: 0; max-width: none; }

.spw-main:not(.spw-main-home) {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.pub-card {
    background: #fff;
    border-radius: var(--spw-radius);
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 1px solid #f3f4f6;
}

.pub-card h1 { font-size: 1.75rem; font-weight: 800; color: var(--spw-primary-dark); margin-bottom: .5rem; }
.pub-card h2 { font-size: 1.1rem; font-weight: 700; margin-top: 1.5rem; color: var(--spw-text); }
.pub-card p, .pub-card li { color: #4b5563; line-height: 1.7; }

/* Hero */
.spw-hero {
    background: linear-gradient(160deg, #0f0a1a 0%, #2e1065 40%, #5b21b6 75%, #7c3aed 100%);
    color: #fff;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.spw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(245,158,11,.18) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(139,92,246,.25) 0%, transparent 50%);
    pointer-events: none;
}

.spw-hero .container { position: relative; z-index: 1; }

.spw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    padding: .4rem 1rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,.9);
}

.spw-hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.1rem;
    letter-spacing: -.03em;
}

.spw-hero h1 span {
    background: linear-gradient(90deg, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.spw-hero-lead {
    font-size: 1.08rem;
    color: rgba(255,255,255,.82);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.spw-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }

.spw-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.4rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.spw-btn:hover { transform: translateY(-2px); text-decoration: none; }

.spw-btn-gold {
    background: linear-gradient(135deg, #fcd34d, var(--spw-gold));
    color: #1a1625;
    box-shadow: 0 8px 24px rgba(245,158,11,.35);
}

.spw-btn-gold:hover { color: #1a1625; box-shadow: 0 12px 32px rgba(245,158,11,.45); }

.spw-btn-ghost {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
}

.spw-btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

.spw-btn-ghost-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.4);
}

.spw-btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }

.spw-btn-white {
    background: #fff;
    color: var(--spw-primary-dark);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.spw-btn-white:hover { color: var(--spw-primary-dark); }

.spw-btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }

.spw-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.12);
}

.spw-hero-stats strong { display: block; font-size: 1rem; font-weight: 800; }
.spw-hero-stats span { font-size: .75rem; color: rgba(255,255,255,.65); }

/* Phone mockup */
.spw-phone-mock { position: relative; display: flex; justify-content: center; }

.spw-phone-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(245,158,11,.35) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.spw-phone-frame {
    position: relative;
    z-index: 1;
    width: 260px;
    background: #1a1625;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 32px 64px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.08);
}

.spw-phone-screen {
    background: linear-gradient(180deg, #2e1065, #1a1625);
    border-radius: 28px;
    overflow: hidden;
    min-height: 420px;
    padding: 1.25rem 1rem;
}

.spw-phone-notch {
    width: 80px;
    height: 22px;
    background: #0f0a1a;
    border-radius: 0 0 14px 14px;
    margin: -1.25rem auto 1rem;
}

.spw-phone-balance {
    background: rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,.1);
}

.spw-phone-balance small { color: rgba(255,255,255,.6); font-size: .7rem; display: block; }
.spw-phone-balance strong { color: #fff; font-size: 1.5rem; font-weight: 800; }
.spw-phone-balance strong span { color: var(--spw-gold); font-size: .85rem; font-weight: 600; }

.spw-phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }

.spw-phone-tile {
    border-radius: 12px;
    padding: 1rem .75rem;
    text-align: center;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
}

.spw-phone-tile i { display: block; font-size: 1.25rem; margin-bottom: .35rem; }
.spw-phone-tile.purple { background: linear-gradient(135deg, #6d28d9, #5b21b6); }
.spw-phone-tile.gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.spw-phone-tile.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.spw-phone-tile.green { background: linear-gradient(135deg, #10b981, #059669); }

/* Download section */
.spw-download {
    padding: 3.5rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.spw-download-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 24px 60px rgba(91,33,182,.12);
    border: 1px solid #ede9fe;
}

.spw-download-card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--spw-primary-dark);
    margin-bottom: .5rem;
}

.spw-download-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0 .75rem;
}

.spw-download-meta { font-size: .88rem; color: var(--spw-muted); font-weight: 600; }

.spw-download-soon {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #faf5ff;
    border: 1px dashed #c4b5fd;
    border-radius: 14px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.spw-download-soon i { font-size: 1.5rem; color: var(--spw-accent); margin-top: .15rem; }

.spw-link { color: var(--spw-primary); word-break: break-all; }

.spw-qr-wrap {
    background: #fafafa;
    border-radius: 20px;
    padding: 1.5rem;
    display: inline-block;
    border: 1px solid #f3f4f6;
}

.spw-qr-img {
    border-radius: 12px;
    display: block;
    background: #fff;
}

.spw-qr-label {
    margin: .85rem 0 0;
    font-size: .88rem;
    font-weight: 700;
    color: var(--spw-primary-dark);
}

.spw-qr-placeholder {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: var(--spw-muted);
    font-size: .82rem;
    padding: 1rem;
    text-align: center;
}

.spw-qr-placeholder i { font-size: 3rem; opacity: .4; }

/* Schedule */
.spw-schedule { padding: 0 0 2rem; }

.spw-schedule-card {
    background: linear-gradient(135deg, #faf5ff, #f5f3ff);
    border: 1px solid #e9d5ff;
    border-radius: var(--spw-radius);
    padding: 1.75rem;
}

.spw-schedule-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--spw-primary-dark); }

.spw-icon-purple { color: var(--spw-accent); }

.spw-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.spw-schedule-item {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #f3e8ff;
}

.spw-schedule-item strong { display: block; font-size: .85rem; color: var(--spw-primary-dark); margin-bottom: .2rem; }
.spw-schedule-item span { font-size: .8rem; color: var(--spw-muted); }

/* Features */
.spw-features { padding: 3rem 0 4rem; }

.spw-section-head { margin-bottom: 2.5rem; }
.spw-section-head h2 { font-size: 1.85rem; font-weight: 800; color: var(--spw-primary-dark); margin-bottom: .35rem; }
.spw-section-head p { color: var(--spw-muted); margin: 0; }

.spw-section-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--spw-accent);
    margin-bottom: .5rem;
}

.spw-feature-card {
    background: #fff;
    border-radius: var(--spw-radius);
    padding: 1.5rem;
    height: 100%;
    border: 1px solid #f3f4f6;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: transform .25s, box-shadow .25s;
}

.spw-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(91,33,182,.1);
}

.spw-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.spw-feature-icon.purple { background: #ede9fe; color: #6d28d9; }
.spw-feature-icon.gold { background: #fef3c7; color: #d97706; }
.spw-feature-icon.pink { background: #fce7f3; color: #db2777; }
.spw-feature-icon.green { background: #d1fae5; color: #059669; }
.spw-feature-icon.blue { background: #dbeafe; color: #2563eb; }
.spw-feature-icon.orange { background: #ffedd5; color: #ea580c; }

.spw-feature-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .45rem; }
.spw-feature-card p { font-size: .9rem; color: var(--spw-muted); line-height: 1.65; margin: 0; }

/* Steps */
.spw-steps { padding: 0 0 4rem; }

.spw-steps-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

.spw-step { text-align: center; padding: .5rem; }

.spw-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--spw-primary), var(--spw-accent));
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
    font-size: .95rem;
}

.spw-step h4 { font-size: .95rem; font-weight: 800; margin-bottom: .3rem; }
.spw-step p { font-size: .82rem; color: var(--spw-muted); margin: 0; line-height: 1.5; }

/* CTA */
.spw-cta { padding: 0 0 4rem; }

.spw-cta-card {
    background: linear-gradient(135deg, var(--spw-primary-dark), #7c3aed);
    border-radius: 24px;
    padding: 3rem 2rem;
    color: #fff;
}

.spw-cta-card h2 { font-size: 1.65rem; font-weight: 800; margin-bottom: .5rem; }
.spw-cta-card p { opacity: .88; margin-bottom: 1.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Footer */
.spw-footer {
    background: var(--spw-bg);
    color: rgba(255,255,255,.75);
    padding: 2.5rem 0;
    text-align: center;
}

.spw-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: .35rem;
}

.spw-footer-tagline { font-size: .85rem; margin-bottom: 1rem; opacity: .7; }

.spw-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.25rem;
    margin-bottom: 1rem;
}

.spw-footer-links a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
}

.spw-footer-links a:hover { color: var(--spw-gold); }

.spw-footer-copy { font-size: .8rem; opacity: .5; margin: 0; }

/* Responsive */
@media (max-width: 991px) {
    .spw-hero { padding: 3rem 0 4rem; text-align: center; }
    .spw-hero-lead { margin-left: auto; margin-right: auto; }
    .spw-hero-actions { justify-content: center; }
    .spw-hero-stats { grid-template-columns: repeat(2, 1fr); }
    .spw-phone-mock { margin-top: 1.5rem; }
}

@media (max-width: 768px) {
    .spw-menu-btn { display: block; }

    .spw-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15, 10, 26, .98);
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .spw-nav.open { display: flex; }

    .spw-nav a { width: 100%; text-align: center; padding: .75rem; }

    .spw-header-inner { position: relative; }

    .spw-download-card { padding: 1.5rem; }
    .spw-download-actions { flex-direction: column; align-items: stretch; }
    .spw-btn-lg { justify-content: center; }
}

@media (max-width: 576px) {
    .spw-hero-stats { grid-template-columns: 1fr 1fr; gap: .75rem; }
}

/* Legacy gc- classes for inner pages */
.gc-landing { --gc-primary: #6d28d9; --gc-dark: #5b21b6; }
