:root {
    --bg-dark: #07090e;
    --bg-surface: #0f141f;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(26, 36, 56, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(56, 189, 248, 0.35);
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.25);
    --accent: #818cf8;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Consolas', 'Cascadia Code', monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Ambient Glows */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
.glow-1 { top: -100px; left: 15%; background: #38bdf8; }
.glow-2 { top: 300px; right: 5%; background: #8b5cf6; }
.glow-3 { top: 1200px; left: 10%; background: #06b6d4; }
.glow-4 { top: 2200px; right: 15%; background: #ec4899; }

/* Container & Layout */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(7, 9, 14, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.logo-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}
.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.logo-sub {
    font-size: 11px;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
}
.nav-link:hover {
    color: #fff;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.6);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}
.btn-outline:hover {
    color: #fff;
    border-color: var(--primary);
}
.btn-sm {
    padding: 6px 14px;
    font-size: 12.5px;
    border-radius: 8px;
}
.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 12px;
}

/* Hero Section */
.hero-section {
    padding: 90px 0 60px;
    text-align: center;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}
.hero-pill-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}
.hero-title {
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 20px;
}
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-description {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.5;
}
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* App Showcase Mockup */
.mockup-wrapper {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    border-radius: 18px;
    padding: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow: 0 25px 80px -15px rgba(0, 0, 0, 0.9), 0 0 60px rgba(56, 189, 248, 0.15);
}
.mockup-inner {
    border-radius: 12px;
    overflow: hidden;
    background: #0d1117;
    border: 1px solid var(--border-color);
}
.mockup-titlebar {
    height: 38px;
    background: #161b22;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}
.window-dots {
    display: flex;
    gap: 7px;
}
.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}
.mockup-content {
    background: #080c14;
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    text-align: left;
    color: #e2e8f0;
    min-height: 340px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
}
.mockup-sidebar {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border-color);
}
.mockup-sidebar-header {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.mockup-tree-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
    cursor: default;
}
.mockup-tree-item.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    font-weight: 600;
}
.mockup-editor {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mockup-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}
.mockup-tab {
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: var(--text-muted);
}
.mockup-tab.active {
    background: #1e293b;
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.code-line { line-height: 1.7; }
.code-kw { color: #f43f5e; font-weight: 600; }
.code-str { color: #34d399; }
.code-fn { color: #38bdf8; }
.code-comm { color: #64748b; font-style: italic; }

/* Features Section */
.features-section {
    padding: 100px 0;
}
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}
.section-badge {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.section-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.section-description {
    color: var(--text-muted);
    font-size: 17px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
}
.feature-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
}
.feature-card:nth-child(2) .feature-icon-box { background: rgba(129, 140, 248, 0.1); border-color: rgba(129, 140, 248, 0.2); color: var(--accent); }
.feature-card:nth-child(3) .feature-icon-box { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.2); color: var(--success); }
.feature-card:nth-child(4) .feature-icon-box { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.2); color: var(--warning); }
.feature-card:nth-child(5) .feature-icon-box { background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.2); color: #f43f5e; }
.feature-card:nth-child(6) .feature-icon-box { background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.2); color: #a855f7; }

.feature-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-text {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    position: relative;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    transition: all 0.3s;
    position: relative;
}
.pricing-card.featured {
    border-color: var(--primary);
    background: rgba(17, 24, 39, 0.9);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.18);
    transform: scale(1.03);
}
.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.pricing-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.pricing-desc {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 24px;
    min-height: 40px;
}
.pricing-price {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.pricing-period {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 500;
}
.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.check-icon {
    color: var(--success);
    font-weight: bold;
    font-size: 16px;
}

/* Download Section */
.download-section {
    padding: 80px 0;
}
.download-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.1);
    position: relative;
    overflow: hidden;
}
.download-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 14px;
}
.download-specs {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin: 28px 0 36px;
    color: var(--text-muted);
    font-size: 14px;
}
.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover {
    border-color: var(--border-highlight);
}
.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    display: none;
}
.faq-item.active .faq-answer {
    display: block;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    background: #05070a;
    color: var(--text-dim);
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-desc {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-top: 12px;
    max-width: 320px;
}
.footer-col-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-card {
    background: #0f172a;
    border: 1px solid var(--border-highlight);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.2);
    position: relative;
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #fff;
}
.modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.modal-subtitle {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Toast Alerts */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 20px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    gap: 12px;
}
.toast.active {
    display: flex;
    animation: toastIn 0.3s ease;
}
.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--danger); }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-title { font-size: 38px; }
    .mockup-content { grid-template-columns: 1fr; }
    .mockup-sidebar { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
}
