:root {
    --primary-color: #0071e3;
    --primary-hover: #0077ed;
    --background-color: #fbfbfd;
    --card-background: #ffffff;
    --text-color: #1d1d1f;
    --text-secondary: #86868b;
    --border-color: rgba(0, 0, 0, 0.1);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    --border-radius: 24px;
    --font-family: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1100px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

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

/* Header */
header {
    background-color: rgba(251, 251, 253, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mac-badge {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Language Dropdown (Minimalist) */
.lang-dropdown {
    position: relative;
    /* Removed margin-inline-start as it's now in a flex gap container */
}

.lang-toggle {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-color);
}

.lang-toggle:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.lang-menu {
    position: absolute;
    top: 100%;
    margin-top: 8px;
    inset-inline-end: 0;
    /* Align to end */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 60px;
    /* Slimmer */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: var(--transition);
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    background: none;
    border: none;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.4rem;
    /* Larger flag */
    transition: background-color 0.2s;
}

.lang-option:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 20px 100px;
}

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

.platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.04);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.apple-icon {
    font-size: 1.1rem;
    position: relative;
    top: -1px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 50px;
    font-weight: 400;
    line-height: 1.5;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.app-store-badge {
    display: inline-block;
    transition: var(--transition);
}

.app-store-badge img {
    height: 140px;
    /* Increased size for better visibility */
    width: auto;
    display: block;
}

.app-store-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.coming-soon-badge {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(255, 149, 0, 0.2);
    display: inline-block;
}

/* Features Section (Bento Grid) */
.features {
    padding: 60px 0 120px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 70px;
    letter-spacing: -0.015em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

/* Grid Spans for Symmetrical 3-2 Layout */
.feature-card {
    grid-column: span 2;
    /* Default: 3 items per row (6/2=3) */
}

/* Make the last two items share the second row (2 items -> span 3 each) */
.feature-card:nth-child(4),
.feature-card:nth-child(5) {
    grid-column: span 3;
}

.feature-card {
    background: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-card:hover {
    transform: scale(1.015);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(0, 113, 227, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon {
    font-size: 32px;
    color: var(--primary-color);
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Showcase Section */
.showcase {
    padding: 80px 0;
    background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
}

.media-layout {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.video-scroll-container {
    display: flex;
    gap: 30px;
    width: 100%;
    overflow-x: auto;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.video-scroll-container::-webkit-scrollbar {
    display: none;
}

.video-item {
    min-width: 80%;
    /* Show part of next video */
    max-width: 800px;
    background: white;
    padding: 16px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    scroll-snap-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.video-label {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.app-video {
    width: 100%;
    border-radius: 16px;
    display: block;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-wrapper {
    width: 100%;
    max-width: 1000px;
}

.gallery-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-color);
}

.gallery-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-img {
    height: 400px;
    /* Fixed height for uniformity */
    width: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    scroll-snap-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Usage Section */
.usage {
    padding: 60px 0 120px;
    background-color: white;
}

.usage-content {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    margin-bottom: 50px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: #e6e6e8;
    line-height: 1;
    flex-shrink: 0;
}

.step-details h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-details p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: #fbfbfd;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card:first-child,
    .feature-card:nth-child(4) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

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

    .feature-card {
        grid-column: auto !important;
    }

    .nav-right {
        gap: 12px;
    }
}