/* Import premium fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;700;800&display=swap');

:root {
    /* Refined Color Palette */
    --primary: #000000; /* Vibrant Blue */
    --primary-gradient: linear-gradient(135deg, #0055FF 0%, #0033CC 100%);
    --primary-light: rgba(0, 85, 255, 0.08);
    
    --bg-body: #FAFAFA;
    --bg-surface: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.7);
    
    --text-main: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    
    --border-light: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 85, 255, 0.2);
    
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 0 4px rgba(0, 85, 255, 0.15);

    --grid-dot-color: rgba(0, 0, 0, 0.08);
    --grid-dot-size: 1px;
    --grid-cell-size: 24px;
    
    --container-width: 1100px;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    background-image: radial-gradient(circle, var(--grid-dot-color) var(--grid-dot-size), transparent var(--grid-dot-size));
    background-size: var(--grid-cell-size) var(--grid-cell-size);
    background-position: 0 0;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Background Gradients (Mesh Effect) */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #E0E7FF 0%, rgba(255,255,255,0) 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #DBEAFE 0%, rgba(255,255,255,0) 70%);
    animation-delay: -5s;
}

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

/* Floating Navbar */
.nav-wrapper {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 90%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 20px;
}

.logo-img {
    width: 32px;
    height: 32px;
    background-image: url('favicon.png');
    background-size: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

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

.nav-btn {
    background: var(--text-main);
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    animation: fadeUp 0.8s ease-out;
}

.hero h1 {
    font-size: 72px;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #3CDFFF 0%, #FFFFFF 180%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeUp 0.8s ease-out 0.1s backwards;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 48px;
    animation: fadeUp 0.8s ease-out 0.2s backwards;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    animation: fadeUp 0.8s ease-out 0.3s backwards;
}

.app-store-btn {
    transition: transform 0.2s ease;
}
.app-store-btn:hover {
    transform: translateY(-3px) scale(1.02);
}
.app-store-btn img {
    height: 56px;
    width: auto;
    display: block;
}

/* Bento Grid Features */
.features-section {
    padding: 80px 0 120px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

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

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

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

.bento-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

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

.card-tall {
    grid-row: span 2;
    background: linear-gradient(160deg, #FFFFFF 0%, #F0F9FF 100%);
}

.icon-box {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--primary);
}

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

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

/* Visual elements inside cards */
.visual-mockup {
    margin-top: auto;
    background: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    height: 120px;
    width: 100%;
    position: relative;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-tertiary);
}

.visual-mockup.visual-media {
    height: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.visual-mockup:not(.visual-media)::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    top: 10px;
    background: #F1F5F9;
    border-radius: 8px;
}

.timeline-visual {
    margin-top: 30px;
    align-self: center;
}

.audio-visual {
    margin-top: auto;
    align-self: center;
}

.timeline-visual video,
.audio-visual video {
    display: block;
    height: clamp(220px, 28vw, 340px);
    aspect-ratio: 886 / 1920;
    width: auto;
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    background: #000;
    object-fit: cover;
}

/* Legal Pages Styling */
.legal-page {
    background-color: transparent;
    min-height: 100vh;
}

.legal-container {
    max-width: 760px;
    margin: 140px auto 80px;
    padding: 0 24px;
}

.legal-title {
    font-size: 48px;
    margin-bottom: 8px;
}

.legal-meta {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-bottom: 64px;
    display: block;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.legal-content h2 {
    font-size: 24px;
    margin-top: 48px;
    margin-bottom: 20px;
}

.legal-content h3 {
    font-size: 18px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p, .legal-content li {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 24px;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(0, 85, 255, 0.3);
}

.legal-content a:hover {
    text-decoration-color: var(--primary);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-light);
    background: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .card-large, .card-tall {
        grid-column: auto;
        grid-row: auto;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .navbar {
        gap: 20px;
        padding: 12px 16px;
    }
    
    .nav-links {
        display: none; /* Simplify for mobile for now */
    }

    .timeline-visual,
    .audio-visual {
        width: 100%;
    }

    .timeline-visual video,
    .audio-visual video {
        width: min(280px, 82vw);
        height: auto;
        max-height: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}
