/* CSS Reset & Basic Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Dark Theme variables */
    --bg-primary: #0b0c10;
    --bg-secondary: #181b22;
    --bg-elevated: #20242e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #00d2ff;
    --accent-secondary: #3a7bd5;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

body, html {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-darker {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Typography elements */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
}

.badge-accent {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-primary);
    border-color: rgba(0, 210, 255, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.full-width {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Above overlay */
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.mobile-link:hover {
    color: var(--text-primary);
}

/* Menu animate into X */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Space for navbar */
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(11, 12, 16, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

/* Features */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-card {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Apps Showcase */
.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.app-showcase.reverse {
    direction: rtl; /* simple way to reverse on desktop */
}
.app-showcase.reverse > * {
    direction: ltr; /* reset content direction */
}

.app-info h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.app-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.app-features-list {
    margin-bottom: var(--spacing-lg);
}

.app-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.app-features-list li svg {
    color: var(--accent-primary);
    width: 20px;
    height: 20px;
}

.app-mockup {
    position: relative;
}

.mockup-placeholder {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    aspect-ratio: 9/16;
    max-width: 320px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    /* simulated screen gradient */
    background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-primary) 100%);
}

.mockup-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
}

.development-banner {
    background: linear-gradient(90deg, rgba(32,36,46,1) 0%, rgba(11,12,16,1) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
}

/* Pricing Section */
.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center; /* helps popular card stand out */
}

.pricing-card {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.popular {
    background-color: #1a1e27;
    border-color: var(--accent-primary);
    transform: scale(1.05); /* slightly larger */
    z-index: 2;
}

.card-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.15);
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.price {
    display: flex;
    align-items: baseline;
    margin-bottom: var(--spacing-sm);
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.price .period {
    color: var(--text-secondary);
}

.plan-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-lg);
    min-height: 44px; /* Align heights */
}

.plan-features {
    flex-grow: 1;
    margin-bottom: var(--spacing-lg);
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li strong {
    color: var(--text-primary);
}

/* Footer */
.footer {
    background-color: var(--bg-elevated);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--accent-primary);
    padding-left: 5px; /* micro interaction */
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Variables & adjustments */
@media (max-width: 900px) {
    .app-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .app-showcase.reverse {
        direction: ltr; /* turn off reverse */
    }
    .app-features-list li {
        justify-content: center;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        margin: 10px auto;
    }
    .section-header h2 {
        font-size: 2rem;
    }
}
