/* --- CSS Variables & Reset --- */
:root {
    --primary-color: #00d9ff;
    --secondary-color: #7b2cbf;
    --dark-bg: #0a0c10;
    --dark-surface: #161b22;
    --light-text: #f0f6fc;
    --muted-text: #8b949e;
    --border-color: #30363d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: var(--muted-text); }

/* --- Header & Navigation --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--muted-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--light-text);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.2);
}

/* --- Hero Section --- */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(10, 12, 16, 0.7), rgba(10, 12, 16, 1)), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?q=80&w=2070') no-repeat center center/cover;
    position: relative;
}

.hero-content h1 {
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--dark-surface);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* --- Stats Section --- */
.bg-dark {
    background-color: var(--dark-surface);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
}

/* --- Product Page --- */
.page-header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.product-card.reverse .product-image {
    order: 2;
}

.product-image .img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--dark-surface);
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-text);
    border-radius: 8px;
}

.product-info h2 {
    color: var(--light-text);
}

.product-tagline {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.product-details ul {
    list-style: none;
    padding-left: 0;
}

.product-details li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.product-separator {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 4rem 0;
}

/* --- App Page --- */
.app-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.screenshot-gallery {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item img {
    width: 300px;
    max-width: 100%;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

/* --- About Page --- */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.contact-list {
    list-style: none;
    margin-top: 1rem;
}

.contact-list li {
    margin-bottom: 0.5rem;
}

.about-image .img-placeholder.large {
    height: 100%;
    min-height: 300px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--dark-surface);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: var(--muted-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .product-card, .product-card.reverse {
        grid-template-columns: 1fr;
    }
    .product-card .product-image {
        order: 1;
    }
    .product-card .product-info {
        order: 2;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
}