/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #666666;
    --color-accent: #0066ff;
    --color-accent-hover: #0052cc;
    --color-border: #e5e5e5;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --max-width: 1100px;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.06);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    flex-shrink: 0;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero */
.hero {
    padding: 160px 24px 100px;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--color-text);
    color: white;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    border-color: #ccc;
    transform: translateY(-1px);
}

/* Products Grid */
.products {
    padding: 40px 0 100px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.product-card:hover {
    border-color: #ccc;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.product-icon {
    color: var(--color-text);
    margin-bottom: 24px;
}

.product-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.product-card p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-link {
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.9375rem;
}

/* About */
.about {
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
}

.about h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.about p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    max-width: 650px;
    margin-bottom: 16px;
    line-height: 1.7;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer p {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

/* Apps Page Styles */
.page-header {
    padding: 140px 24px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding-bottom: 100px;
}

.app-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.2s ease;
}

.app-card:hover {
    border-color: #ccc;
    box-shadow: var(--shadow);
}

.app-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-icon svg {
    color: white;
}

.app-icon-img {
    background: none;
    padding: 0;
    overflow: hidden;
}

.app-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.app-info .platform {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

.app-card > p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 600;
    font-size: 1.125rem;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9375rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--color-text-secondary);
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text);
}

/* Hardware Coming Soon */
.coming-soon {
    padding: 100px 24px;
    text-align: center;
}

.coming-soon-content {
    max-width: 500px;
    margin: 0 auto;
}

.coming-soon-icon {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.coming-soon h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.coming-soon p {
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* New Releases Carousel */
.new-releases {
    padding: 80px 0;
    overflow: hidden;
}

.new-releases h2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    text-align: center;
}

.carousel-container {
    position: relative;
    max-width: 100%;
}

.carousel {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    max-width: 900px;
    margin: 0 auto;
}

.release-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0a0a15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.release-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.release-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 48px;
    color: white;
}

.release-banner-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin: 0 auto 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.release-banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.release-banner h3 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.release-banner .tagline {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 28px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.release-banner .btn-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.release-banner .btn-banner:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.release-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.02em;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background: var(--color-text);
    width: 24px;
    border-radius: 4px;
}

.carousel-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
}

.carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.carousel-arrow:hover {
    background: var(--color-bg);
    transform: scale(1.05);
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--color-text);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }

    .hero {
        padding: 140px 20px 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.0625rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .release-banner {
        aspect-ratio: 4 / 3;
    }

    .release-banner h3 {
        font-size: 1.75rem;
    }

    .release-banner .tagline {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .release-banner-content {
        padding: 32px 24px;
    }

    .release-banner-icon {
        width: 64px;
        height: 64px;
        border-radius: 14px;
        margin-bottom: 16px;
    }

    .carousel-arrows {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 14px 16px;
    }

    .nav-links {
        gap: 16px;
        font-size: 0.875rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .app-header {
        flex-direction: column;
    }

    .app-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .app-footer .btn {
        text-align: center;
    }

    /* Banner mobile optimizations */
    .new-releases {
        padding: 60px 0;
    }

    .new-releases h2 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .release-banner {
        aspect-ratio: 3 / 4;
        border-radius: 16px;
    }

    .release-banner-content {
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .release-banner-icon {
        width: 56px;
        height: 56px;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .release-banner h3 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .release-banner .tagline {
        font-size: 0.9375rem;
        margin-bottom: 16px;
    }

    .release-banner .btn-banner {
        padding: 12px 24px;
        font-size: 0.9375rem;
    }

    .release-badge {
        top: 12px;
        left: 12px;
        padding: 5px 12px;
        font-size: 0.75rem;
    }

    .carousel-nav {
        margin-top: 16px;
    }
}
