/* ==========================================================================
   SI Filings Pro — Premium SaaS Cloud Design System
   Engineered for Cloudflare Pages high-speed static deployment
   ========================================================================== */

:root {
    --bg-dark: #090d16;
    --bg-card: rgba(21, 27, 45, 0.75);
    --bg-card-solid: #151b2d;
    --border-color: #242f4c;
    --border-highlight: rgba(56, 189, 248, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #38bdf8;
    --primary-hover: #0ea5e9;
    --secondary: #34d399;
    --danger: #ef4444;
    --amber: #f59e0b;
    --gradient: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
    --gradient-glow: 0 0 45px rgba(56, 189, 248, 0.2);
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(52, 211, 153, 0.06) 0%, transparent 45%);
    background-attachment: fixed;
}

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

/* Typography & Gradients */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-emerald { color: #10b981; }
.text-amber { color: #f59e0b; }
.text-cyan { color: #38bdf8; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-align: center;
    font-size: 15px;
}

.btn-primary {
    background: var(--gradient);
    color: #090d16;
    box-shadow: 0 4px 22px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.5);
    filter: brightness(1.05);
}

.btn-secondary {
    background-color: #1e263e;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #283353;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(56, 189, 248, 0.04);
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(56, 189, 248, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.2);
}

.btn-full {
    width: 100%;
    display: flex;
}

.btn-sm {
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-dl-huge {
    padding: 18px 42px;
    font-size: 18px;
    border-radius: 12px;
}

/* Navbar */
.navbar {
    background-color: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 78px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
}

.logo-accent {
    color: var(--primary);
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-right: 28px;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 90px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 45px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 54px;
    font-weight: 900;
    line-height: 1.14;
    margin-bottom: 22px;
    letter-spacing: -1px;
}

.hero-lead {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 45px;
    border-top: 1px solid var(--border-color);
    padding-top: 28px;
}

.stat-item strong {
    display: block;
    font-size: 26px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
}

.stat-item span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* App Mockup Visual & Live Terminal */
.app-mockup {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), var(--gradient-glow);
    backdrop-filter: blur(12px);
}

.mockup-header {
    background-color: #0e1422;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.dots {
    display: flex;
    gap: 7px;
    margin-right: 20px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot.red { background-color: var(--danger); }
.dot.yellow { background-color: var(--amber); }
.dot.green { background-color: var(--secondary); }

.mockup-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.mockup-body {
    padding: 24px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
}

.status-row-bar {
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 1px dashed rgba(36, 47, 76, 0.4);
}

.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 14px 0;
}

.mockup-row {
    display: grid;
    grid-template-columns: 1.3fr 1.2fr 1.1fr 1.2fr;
    padding: 10px 0;
    border-bottom: 1px solid rgba(36, 47, 76, 0.4);
    color: var(--text-muted);
    font-size: 12px;
}

.header-row {
    color: var(--primary);
    font-weight: bold;
    border-bottom: 1px solid var(--border-color);
}

/* Interactive Wallet Widget inside Mockup */
.wallet-check-box {
    margin-top: 22px;
    background-color: #0e1422;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.wallet-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.wallet-check-box p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-family: var(--font-body);
}

.wallet-input-wrap {
    display: flex;
    gap: 8px;
}

.wallet-input-wrap input {
    flex-grow: 1;
    padding: 8px 12px;
    background: #090d16;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #f8fafc;
    font-family: monospace;
    font-size: 13px;
}

.wallet-input-wrap input:focus {
    border-color: var(--primary);
    outline: none;
}

.wallet-feedback {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    background: #10b98122;
    border: 1px solid #10b981;
    color: #a7f3d0;
}

/* Features Section */
.features {
    padding: 110px 0;
    border-top: 1px solid var(--border-color);
    background-color: #0e1422;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 65px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 17px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 34px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.1);
}

.feature-card .icon {
    font-size: 38px;
    margin-bottom: 22px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Comparison Section */
.comparison {
    padding: 110px 0;
    background-color: var(--bg-dark);
}

.comparison-table-wrapper {
    overflow-x: auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(36, 47, 76, 0.5);
    font-size: 15px;
}

.comparison-table th {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
}

.comparison-table th:first-child {
    width: 25%;
    color: var(--text-muted);
}

.competitor-col {
    color: var(--text-muted);
    background-color: rgba(0, 0, 0, 0.2);
}

.brand-col {
    color: var(--text-main);
}

.brand-col.highlight {
    color: var(--secondary);
    font-weight: 600;
}

.comparison-table th.brand-col {
    color: var(--primary);
    font-size: 21px;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Pricing Section */
.pricing {
    padding: 110px 0;
    background-color: #0e1422;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.price-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(12px);
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.price-card.popular {
    border-color: var(--primary);
    background-color: #162038;
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.15);
}

.pop-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #090d16;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.price-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.price-card .price {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 6px;
}

.price-card .price span {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.price-card hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin-bottom: 28px;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 38px;
    flex-grow: 1;
}

.plan-features li {
    font-size: 15px;
    color: #e2e8f0;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

.plan-features li::before {
    content: "⚡";
    margin-right: 12px;
    color: var(--secondary);
    font-size: 12px;
}

/* Download Section Banner */
.download-banner {
    padding: 110px 0;
    background: var(--bg-dark);
}

.download-card {
    background: radial-gradient(circle at center, #1e2942 0%, #151b2d 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(56, 189, 248, 0.15);
}

.dl-text h2 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 18px;
    color: #fff;
}

.dl-text p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 35px;
}

.dl-button-group {
    margin-bottom: 25px;
}

.dl-meta {
    font-size: 13px;
    color: #64748b;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg-card-solid);
    border: 1px solid var(--border-highlight);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), var(--gradient-glow);
    animation: modalSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlide {
    from { transform: translateY(35px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 26px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--danger);
}

.modal h2 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-size: 26px;
}

.modal p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
}

/* Form Styles */
form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #e2e8f0;
}

form input[type="text"],
form input[type="email"] {
    width: 100%;
    padding: 14px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    margin-bottom: 18px;
    transition: border-color 0.2s;
}

form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.form-help {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -12px;
    margin-bottom: 25px;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #0e1422;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.radio-card:hover {
    border-color: var(--primary);
}

.radio-card input {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

/* Key Display Box in Modal */
.key-box {
    background-color: var(--bg-dark);
    border: 1px dashed var(--primary);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

#display-license-key {
    font-family: monospace;
    font-size: 19px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 1.5px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 45px 0;
    text-align: center;
    background: #070a12;
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive Grid & Media Queries */
@media (max-width: 960px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 42px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .navbar {
        height: auto;
        padding: 16px 0;
    }
    .nav-links {
        display: none;
    }
}
