/* Reset and Core Variables */
:root {
    --bg-dark: #0b0f19;
    --bg-card: #151b2d;
    --border-color: #242f4c;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #38bdf8;
    --primary-hover: #0ea5e9;
    --secondary: #34d399;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', 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;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    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;
}

.btn-primary {
    background: var(--gradient);
    color: #000;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.4);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background-color: rgba(56, 189, 248, 0.08);
    transform: translateY(-2px);
}

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

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* Navbar */
.navbar {
    background-color: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 75px;
}

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

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

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

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

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

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

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.08) 0%, rgba(11, 15, 25, 0) 60%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

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

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 45px;
}

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

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

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

/* App Mockup Visual */
.app-mockup {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(56, 189, 248, 0.05);
}

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

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

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

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

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

.mockup-body {
    padding: 20px;
    font-family: monospace;
    font-size: 12px;
}

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

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

.mockup-progress {
    margin-top: 25px;
    background-color: #0e1320;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
}

.progress-bar-container {
    background-color: var(--border-color);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    background: var(--gradient);
    width: 42%;
    height: 100%;
}

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

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

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

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

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

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.05);
}

.feature-card .icon {
    font-size: 32px;
    margin-bottom: 20px;
}

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

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

/* Pricing Section */
.pricing {
    padding: 100px 0;
}

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

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

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

.price-card.popular {
    border-color: var(--primary);
    background-color: #1a223a;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
}

.pop-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

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

.price-card .price {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

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

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

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

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

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

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

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

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 460px;
    padding: 35px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    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;
}

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

/* Form Styles */
form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #cbd5e1;
}

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

form input:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Free Key box */
.key-box {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

#free-key-value {
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 1px;
}

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

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

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 40px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .navbar {
        height: auto;
        padding: 15px 0;
    }
    .nav-links, .nav-cta {
        display: none; /* simple burger implementation skipped for styling length */
    }
}
