/* Global Reset & Base Variables */
:root {
    --bg-dark: #07090e;
    --bg-card: rgba(18, 24, 38, 0.7);
    --bg-card-hover: rgba(28, 36, 56, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.4);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #a855f7;
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.3);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    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;
    position: relative;
}

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

/* Background Glow Spheres */
.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(0,0,0,0) 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(0,0,0,0) 70%);
    top: 600px;
    left: 10%;
}

.glow-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: 1400px;
    right: 5%;
}

/* Typography Utilities */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text-main);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding-top: 170px;
    padding-bottom: 80px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 28px;
    font-size: 0.85rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.badge-text {
    color: var(--text-main);
    font-weight: 500;
}

.badge-tag {
    color: var(--primary);
    font-weight: 700;
    background: rgba(99, 102, 241, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    max-width: 900px;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 36px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    margin-bottom: 60px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 32px;
    background-color: var(--border-color);
}

/* App Mockup Preview */
.app-preview-card {
    width: 100%;
    max-width: 1050px;
    background: #0f1624;
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(99, 102, 241, 0.15);
    overflow: hidden;
    text-align: left;
}

.window-header {
    background: #141c2e;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.window-dots {
    display: flex;
    gap: 8px;
}

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

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.window-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
}

.window-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--accent);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
}

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

.window-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 480px;
}

.preview-sidebar {
    background: rgba(15, 23, 42, 0.7);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-item.active, .sidebar-item:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-main);
}

.sidebar-footer-box {
    margin-top: auto;
    background: rgba(99, 102, 241, 0.08);
    border: 1px dashed rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 14px;
}

.ai-prompt-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c084fc;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.ai-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.btn-ai-apply {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-ai-apply:hover {
    background: var(--primary-hover);
}

.preview-content {
    padding: 30px;
    background: #0b111e;
}

.proposal-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.client-tag {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.proposal-header-banner h2 {
    font-size: 1.4rem;
    margin: 6px 0;
}

.proposal-date {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.proposal-price-badge {
    text-align: right;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 10px 16px;
    border-radius: 12px;
}

.price-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}

.price-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.proposal-content-section h4 {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.proposal-content-section p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.milestones-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.milestone-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 10px;
    display: flex;
    gap: 12px;
}

.m-icon {
    font-size: 1.2rem;
}

.milestone-card h5 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.milestone-card p {
    font-size: 0.78rem;
    margin: 0;
}

.live-activity-bar {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #34d399;
}

.activity-pulse {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 10px #34d399;
}

/* Logos Section */
.logos-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.logos-title {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.logos-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logo-item {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    opacity: 0.6;
    transition: var(--transition);
}

.logo-item:hover {
    opacity: 1;
    color: var(--text-main);
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.sub-heading {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-section {
    padding: 100px 0;
}

.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;
    transition: var(--transition);
    backdrop-filter: blur(12px);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.gradient-1 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.gradient-2 { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.gradient-3 { background: linear-gradient(135deg, #10b981, #059669); }
.gradient-4 { background: linear-gradient(135deg, #f59e0b, #ec4899); }
.gradient-5 { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.gradient-6 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

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

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px 28px;
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(99, 102, 241, 0.3);
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.pricing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.toggle-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.discount-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px; width: 20px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
}

.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(24px); }

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

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    transition: var(--transition);
}

.pricing-card.featured {
    background: rgba(22, 30, 49, 0.9);
    border: 2px solid var(--primary);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.25);
    transform: scale(1.03);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.plan-header h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.plan-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 28px;
}

.plan-price .currency { font-size: 1.5rem; font-weight: 700; }
.plan-price .amount { font-size: 3rem; font-weight: 800; color: var(--text-main); }
.plan-price .period { color: var(--text-muted); font-size: 0.9rem; }

.plan-features {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    padding: 80px 0 120px;
}

.cta-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    padding: 60px 40px;
    backdrop-filter: blur(20px);
}

.cta-card h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.cta-note {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Footer */
.footer {
    background: #04060a;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 16px 0 24px;
    max-width: 300px;
}

.copyright {
    color: var(--text-dim);
    font-size: 0.82rem;
}

.footer-links h4 {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

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

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .window-body { grid-template-columns: 1fr; }
    .preview-sidebar { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .hero-title { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .stat-divider { width: 40px; height: 1px; }
    .milestones-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr; }
}
