/* ===== CashSystem Suite — Omni Platform Portal ===== */

:root {
    --bg-deep: #0a0a14;
    --bg-base: #0e0e1a;
    --bg-card: rgba(255,255,255,0.03);
    --bg-card-hover: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(168,85,247,0.25);
    --text: #f0f0f5;
    --text-muted: rgba(255,255,255,0.50);
    --text-dim: rgba(255,255,255,0.65);
    --purple-start: #7c3aed;
    --purple-mid: #a855f7;
    --purple-end: #d946ef;
    --purple-glow: rgba(168,85,247,0.15);
    --accent: #a855f7;
    --accent-light: #c084fc;
    --danger: #ef4444;
    --radius: 16px;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

    /* Noise texture overlay */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
        pointer-events: none;
        z-index: 0;
    }

/* ===== TOPBAR ===== */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    height: 64px;
    background: rgba(10,10,20,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

    .topbar::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(168,85,247,0.3), rgba(217,70,239,0.2), transparent);
    }

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.topbar-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #c084fc, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.topbar-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ===== BUTTONS ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.01em;
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-start), var(--purple-end));
    color: #fff;
    box-shadow: 0 4px 20px rgba(168,85,247,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(168,85,247,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
    }

.btn-outline {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
}

    .btn-outline:hover {
        background: rgba(255,255,255,0.08);
        border-color: rgba(168,85,247,0.3);
        color: #fff;
        transform: translateY(-1px);
    }

.btn-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 15px rgba(34,197,94,0.3);
}

    .btn-green:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(34,197,94,0.4);
    }

/* ===== HERO ===== */

.hero {
    position: relative;
    text-align: center;
    padding: 10rem 2rem 6rem;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        top: -20%;
        left: 50%;
        transform: translateX(-50%);
        width: 800px;
        height: 600px;
        background: radial-gradient(ellipse at center, rgba(124,58,237,0.15) 0%, rgba(168,85,247,0.05) 40%, transparent 70%);
        animation: heroGlow 8s ease-in-out infinite alternate;
        pointer-events: none;
    }

    .hero::after {
        content: "";
        position: absolute;
        top: 10%;
        right: 15%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(217,70,239,0.08) 0%, transparent 60%);
        animation: heroGlow 6s ease-in-out 2s infinite alternate-reverse;
        pointer-events: none;
    }

@keyframes heroGlow {
    0% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.15);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 8px;
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.15);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #c084fc;
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.8s ease both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #a855f7;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(168,85,247,0.6);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: fadeSlideUp 0.8s ease 0.1s both;
}

.text-gradient {
    background: linear-gradient(135deg, #c084fc 0%, #e879f9 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
    font-weight: 400;
    animation: fadeSlideUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.8s ease 0.3s both;
}

.hero-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-deep) 100%), linear-gradient(90deg, rgba(168,85,247,0.03) 1px, transparent 1px), linear-gradient(0deg, rgba(168,85,247,0.03) 1px, transparent 1px);
    background-size: 100% 100%, 60px 60px, 60px 60px;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 100%);
    pointer-events: none;
}

/* ===== METRICS BAR ===== */

.metrics-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
    animation: fadeSlideUp 0.8s ease 0.4s both;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #c084fc, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
    letter-spacing: 0.03em;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168,85,247,0.15), transparent);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FEATURES ===== */

.features {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
    display: block;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .feature-card:hover {
        background: var(--bg-card-hover);
        border-color: var(--border-hover);
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 60px rgba(168,85,247,0.05);
    }

    .feature-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100px;
        height: 100px;
        background: radial-gradient(circle at 0 0, rgba(168,85,247,0.08), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .feature-card:hover::before {
        opacity: 1;
    }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(217,70,239,0.08));
    border: 1px solid rgba(168,85,247,0.12);
}

.feature-card h3 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ===== SHOWCASE ===== */

.showcase {
    padding: 5rem 2rem;
    position: relative;
    z-index: 2;
}

.showcase-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.showcase-text p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.showcase-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .showcase-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text-dim);
        font-size: 0.9rem;
    }

.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(217,70,239,0.15));
    border: 1px solid rgba(168,85,247,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
    color: #c084fc;
}

.showcase-visual {
    position: relative;
}

.showcase-mockup {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(217,70,239,0.04));
    border: 1px solid rgba(168,85,247,0.12);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 0 80px rgba(168,85,247,0.06);
}

.mockup-header {
    height: 32px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.mockup-body {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    height: calc(100% - 32px);
}

.mockup-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 12px;
}

.mockup-card-title {
    width: 60%;
    height: 8px;
    background: rgba(168,85,247,0.2);
    border-radius: 4px;
    margin-bottom: 8px;
}

.mockup-card-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.04);
    border-radius: 3px;
    margin-bottom: 6px;
}

    .mockup-card-bar.filled {
        background: linear-gradient(90deg, rgba(124,58,237,0.3), rgba(217,70,239,0.2));
    }

/* ===== CTA SECTION ===== */

.cta-section {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-card {
    max-width: 640px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(217,70,239,0.04));
    border: 1px solid rgba(168,85,247,0.15);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    position: relative;
    overflow: hidden;
}

    .cta-card::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 30% 30%, rgba(168,85,247,0.06), transparent 50%);
        pointer-events: none;
    }

    .cta-card h2 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 0.8rem;
        letter-spacing: -0.02em;
        position: relative;
    }

    .cta-card p {
        color: var(--text-muted);
        font-size: 1rem;
        margin-bottom: 2rem;
        position: relative;
    }

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ===== AUTH PAGES ===== */

.auth-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 6rem 2rem 4rem;
    flex: 1;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

    .auth-card h2 {
        color: var(--text);
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
        letter-spacing: -0.02em;
    }

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

    .form-group label {
        display: block;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--text-dim);
        margin-bottom: 0.35rem;
    }

    .form-group input {
        width: 100%;
        padding: 10px 14px;
        background: rgba(0,0,0,.25);
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 10px;
        color: var(--text);
        font-family: var(--font);
        font-size: 0.95rem;
        transition: border-color 0.2s;
    }

        .form-group input::placeholder {
            color: var(--text-muted);
        }

        .form-group input:focus {
            outline: none;
            border-color: rgba(168,85,247,0.4);
            background: rgba(0,0,0,.35);
            box-shadow: 0 0 0 3px rgba(168,85,247,0.1);
        }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

    .auth-footer a {
        color: var(--accent-light);
        text-decoration: none;
        font-weight: 500;
    }

        .auth-footer a:hover {
            text-decoration: underline;
        }

/* ===== ALERTS ===== */

.alert {
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

/* ===== DASHBOARD ===== */

.dashboard {
    padding: 2.5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
}

.dashboard-header {
    margin-bottom: 2rem;
    text-align: center;
}

    .dashboard-header h1 {
        font-size: 1.8rem;
        color: var(--text);
        font-weight: 700;
        margin-bottom: 0.3rem;
        letter-spacing: -0.02em;
    }

.dashboard-subtitle {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
    transition: all 0.2s ease;
}

    .dash-card:hover {
        background: var(--bg-card-hover);
        border-color: var(--border-hover);
    }

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.8rem;
}

.card-icon {
    font-size: 1.4rem;
}

.card-header h3 {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
}

.card-hint {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.6rem;
}

/* License display */
.license-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    padding: 10px 14px;
}

    .license-display code {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--accent-light);
        letter-spacing: 0.05em;
        flex: 1;
        font-family: var(--font-mono);
    }

.card-license {
    border-color: rgba(168,85,247,0.2);
}

.card-download p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Status */
.status-items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

    .status-row:last-child {
        border-bottom: none;
    }

    .status-row span:first-child {
        color: var(--text-muted);
    }

.status-online {
    color: #22c55e;
    font-weight: 500;
}

.status-offline {
    color: var(--text-muted);
}

/* Guide */
.guide-steps {
    list-style: none;
    counter-reset: step;
}

    .guide-steps li {
        counter-increment: step;
        padding: 0.5rem 0 0.5rem 2.5rem;
        position: relative;
        color: var(--text-dim);
        font-size: 0.88rem;
        line-height: 1.5;
    }

        .guide-steps li::before {
            content: counter(step);
            position: absolute;
            left: 0;
            top: 0.45rem;
            width: 1.5rem;
            height: 1.5rem;
            background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(217,70,239,0.15));
            color: var(--accent-light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 700;
        }

        .guide-steps li strong {
            color: var(--text);
        }

/* ===== FOOTER ===== */

.site-footer {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.footer-links {
    margin-top: 0.5rem;
}

    .footer-links a {
        color: rgba(168,85,247,0.6);
        text-decoration: none;
        font-size: 0.78rem;
        transition: color 0.2s;
    }

        .footer-links a:hover {
            color: #c084fc;
        }

/* ===== ANIMATIONS ===== */

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .showcase-visual {
        order: -1;
    }

    .metrics-bar {
        gap: 32px;
        flex-wrap: wrap;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .topbar {
        padding: 0 16px;
    }

    .hero {
        padding: 8rem 1.5rem 4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .metrics-bar {
        gap: 24px;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .brand-wordmark {
        display: none;
    }

    .auth-card {
        padding: 20px;
    }
}

main {
    flex: 1;
}
