/* Core Styling System */
:root {
    --bg: #090a10;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.06);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #6366f1; /* Electric Indigo */
    --accent-glow: rgba(99, 102, 241, 0.15);
    --success: #10b981;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Dynamic Ambient Glow Blobs */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    transition: var(--transition);
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    top: 600px;
    right: -100px;
}

/* Floating Navigation Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(9, 10, 16, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--accent);
    font-size: 20px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

.github-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 8px 16px;
    border-radius: 99px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.github-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
    filter: brightness(1.1);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

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

.badge {
    background-color: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px 14px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Interactive Device Representation */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.phone-frame {
    width: 320px;
    height: 650px;
    background-color: #0d0f1a;
    border: 10px solid #27272a;
    border-radius: 40px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    user-select: none;
}

.phone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #0b0c16;
    color: #e2e8f0;
    font-family: inherit;
    position: relative;
}

.phone-header {
    height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.phone-header .icons {
    display: flex;
    gap: 6px;
}

/* Launcher Interface in Screen */
.launcher-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    overflow: hidden;
    position: relative;
}

.context-block {
    margin-bottom: 24px;
}

.context-block .date {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.context-block .weather {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Home-screen widget slot in the phone mockup */
.widget-mock {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(6, 182, 212, 0.10));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.widget-mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.widget-mock-streak {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-mock-streak i {
    color: #f59e0b;
}

.widget-mock-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 99px;
}

.widget-mock-days {
    display: flex;
    gap: 6px;
}

.widget-mock-days span {
    flex: 1;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 0;
    border-radius: 8px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.widget-mock-days span.on {
    color: #fff;
    background: var(--accent);
}

.launcher-scroll-area {
    flex: 1;
    overflow-y: hidden;
    padding-right: 28px;
    position: relative;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.fav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.fav-item:hover {
    transform: translateX(4px);
}

.app-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chrome-icon { background: linear-gradient(135deg, #ea4335, #fbbc05); color: #fff; }
.messages-icon { background: linear-gradient(135deg, #4285f4, #34a853); color: #fff; }
.spotify-icon { background: #1ed760; color: #000; }

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

.app-name {
    font-size: 14px;
    font-weight: 500;
}

.app-notif {
    font-size: 11px;
    color: var(--text-secondary);
}

.app-notif-badge {
    background-color: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
}

.all-apps-section {
    margin-top: 24px;
    height: 250px;
    overflow-y: hidden;
}

.app-group {
    margin-bottom: 16px;
    scroll-margin-top: 10px;
}

.group-letter {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.app-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 30px;
    font-size: 13px;
    color: var(--text-secondary);
}

.item-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    opacity: 0.5;
}

/* Wave Alphabet Scrollbar */
.wave-slider {
    position: absolute;
    right: 8px;
    top: 50px;
    bottom: 50px;
    width: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    z-index: 10;
}

.wave-slider:active {
    cursor: grabbing;
}

.letter {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    width: 100%;
    text-align: center;
    transition: transform 0.15s ease-out, color 0.15s ease-out;
    pointer-events: none; /* Mouse captures on parent div */
}

.letter.active {
    color: var(--text-primary);
    font-weight: 800;
}

.phone-navigation-bar {
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-pill {
    width: 72px;
    height: 4px;
    background-color: var(--text-muted);
    border-radius: 99px;
    opacity: 0.5;
}

.visual-hint {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Bento Features Grid */
.features-section {
    padding: 100px 0;
    position: relative;
}

.section-heading {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.section-subheading {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.text-center { text-align: center; }

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

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

.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.card-large {
    grid-column: span 2;
}

.card-medium {
    grid-column: span 1;
}

.card-content {
    z-index: 2;
}

.card-icon {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 16px;
}

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

.bento-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Previews inside cards */
.card-preview {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45%;
    height: 100%;
    opacity: 0.7;
    pointer-events: none;
}

/* Wave Preview Animation */
.wave-preview-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-line {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.wave-node {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.active-node {
    color: var(--accent);
    transform: translateX(-15px) scale(1.4);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Inline Notification Mock Preview */
.notification-mock {
    width: 50%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 24px;
}

.notif-bubble {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 12px;
    font-size: 11px;
    width: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.notif-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.notif-author {
    font-weight: 600;
    color: var(--text-primary);
}

.notif-time {
    color: var(--text-muted);
}

.notif-body {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.notif-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
}

.action-btn.dismiss {
    color: var(--text-muted);
}

/* Color Picker dot utilities */
.palette-picker {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.palette-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.palette-dot:hover {
    transform: scale(1.1);
}

.palette-dot.active {
    border-color: #fff;
    transform: scale(1.1);
}

.dot-indigo { background-color: #6366f1; }
.dot-emerald { background-color: #10b981; }
.dot-rose { background-color: #f43f5e; }
.dot-amber { background-color: #f59e0b; }

/* Download Section */
.download-section {
    padding: 100px 0;
}

.download-box {
    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), transparent 50%),
                var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 60px;
    text-align: center;
}

.download-box h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-box p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 48px;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.download-card {
    background-color: rgba(9, 10, 16, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.card-head i {
    font-size: 32px;
    color: var(--accent);
}

.download-card h3 {
    font-size: 20px;
    font-weight: 700;
}

.download-card p {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 24px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 14px;
}

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .card-large, .card-medium {
        grid-column: span 1;
    }
    
    .card-preview {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }
    
    .nav {
        display: none; /* Hide standard nav link lists on narrow screens */
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .download-box {
        padding: 40px 24px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
