:root {
    --bg-base: #000000;
    --bg-surface: #0a0a0a;
    --bg-surface-hover: #141414;
    --border-color: #27272a; /* Zinc 800 */
    --border-hover: #3f3f46; /* Zinc 700 */

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa; /* Zinc 400 */
    
    --primary-color: #ffffff;
    --primary-invert: #000000;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--text-primary);
    color: var(--bg-base);
}

/* ==========================================
   Typography & Shared
   ========================================== */
h1, h2, h3 {
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border-radius: 8px; /* Flat modern rounding */
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--primary-invert);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn-primary .material-symbols-rounded {
    color: inherit;
}

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

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
}

/* ==========================================
   Navbar
   ========================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.nav-btn {
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 6px;
}

.nav-btn:hover {
    background: var(--text-primary);
    color: var(--bg-base) !important;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    border-radius: 20px;
    object-fit: cover;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 900;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ==========================================
   Screenshots Showcase (Marquee)
   ========================================== */
.showcase {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
    overflow: hidden;
}

.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: inline-flex;
    gap: 40px;
    padding: 20px 40px;
    animation: scroll-marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 20px)); }
}

/* Minimalist Phone Mockup */
.phone-mockup {
    flex-shrink: 0;
    position: relative;
    width: 280px;
    height: 600px;
    background-color: var(--bg-base);
    border: 10px solid var(--bg-base);
    border-radius: 36px;
    outline: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    display: flex;
    justify-content: center;
    transition: transform var(--transition-smooth);
}

.phone-mockup:hover {
    transform: scale(1.03);
}

.camera-hole {
    position: absolute;
    top: 12px;
    width: 16px;
    height: 16px;
    background-color: #111;
    border-radius: 50%;
    z-index: 10;
}

.status-bar {
    position: absolute;
    top: 12px;
    left: 24px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}

.status-icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.icon-small {
    font-size: 15px !important;
}

.phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding-top: 36px;
    background: #000;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* ==========================================
   Bento Box Features Section
   ========================================== */
.features {
    padding: 120px 24px;
    background: var(--bg-base);
}

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

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 24px;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.bento-wide {
    grid-column: span 2;
}

.bento-square {
    grid-column: span 1;
}

.bento-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: block;
}

.bento-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ==========================================
   Open Source Banner
   ========================================== */
.open-source {
    padding: 0 24px 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.os-card {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Minimal geometric accent */
.os-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--text-primary);
}

.os-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.os-card h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.os-card p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 500px;
    margin-bottom: 32px;
}

.badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-badge {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================
   Footer
   ========================================== */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-wide {
        grid-column: span 2;
    }
    .bento-square {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(40px, 10vw, 60px);
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(240px, auto);
    }
    
    .bento-wide, .bento-square {
        grid-column: span 1;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
