/* BlockMind Website — iOS 26 Liquid Glass Design */

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0e0e14;
    --text-primary: #f5f5f7;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-strong: rgba(255, 255, 255, 0.18);
    --glass-blur: 40px;
    --glass-specular: rgba(255, 255, 255, 0.15);
    --accent-cyan: #5de0d8;
    --accent-blue: #5b9bf5;
    --accent-pink: #e05b9f;
    --accent-purple: #9b7af5;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════
   LIQUID GLASS UTILITIES
   ═══════════════════════════════════════ */

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    border: 1px solid var(--glass-border);
    box-shadow:
        inset 0 1px 0 0 var(--glass-specular),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.03),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════
   AMBIENT BACKGROUND
   ═══════════════════════════════════════ */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(93, 224, 216, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% 30%, rgba(91, 155, 245, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 60% 80%, rgba(155, 122, 245, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 30% 70%, rgba(224, 91, 159, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════
   NAVIGATION — Liquid Glass Pill
   ═══════════════════════════════════════ */

nav {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(50px) saturate(1.8);
    -webkit-backdrop-filter: blur(50px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        inset 0 -0.5px 0 0 rgba(255, 255, 255, 0.05),
        0 4px 24px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1);
    width: auto;
    max-width: 90vw;
}

nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.logo span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

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

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

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 100px;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.app-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 28px;
    filter: drop-shadow(0 0 20px rgba(93, 224, 216, 0.3)) drop-shadow(0 0 40px rgba(91, 155, 245, 0.2));
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.045em;
    line-height: 1.05;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero .description {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════
   FEATURES — Glass Cards
   ═══════════════════════════════════════ */

.features {
    padding: 100px 20px 120px;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.035em;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 20px rgba(0, 0, 0, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--accent-cyan);
}

.feature-card:nth-child(2) .feature-icon { color: var(--accent-blue); }
.feature-card:nth-child(3) .feature-icon { color: var(--accent-purple); }
.feature-card:nth-child(4) .feature-icon { color: var(--accent-pink); }
.feature-card:nth-child(5) .feature-icon { color: var(--accent-blue); }
.feature-card:nth-child(6) .feature-icon { color: var(--accent-cyan); }

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

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

/* ═══════════════════════════════════════
   SCREENSHOTS — Glass Cards
   ═══════════════════════════════════════ */

.screenshots {
    padding: 100px 20px 120px;
    position: relative;
    z-index: 1;
}

.screenshots-showcase {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}

.screenshot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 28px 16px 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 20px rgba(0, 0, 0, 0.15);
}

.screenshot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.screenshot-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 12px 40px rgba(0, 0, 0, 0.25);
}

.screenshot-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.screenshot-wrapper::before {
    display: none;
}

.screenshot {
    width: 170px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
}

.screenshot-card:hover .screenshot {
    transform: scale(1.03);
}

.screenshot-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.screenshot-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ═══════════════════════════════════════
   AI FRIEND SECTION
   ═══════════════════════════════════════ */

.ai-friend-section {
    padding: 100px 20px 120px;
    position: relative;
    z-index: 1;
}

.ai-friend-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(93, 224, 216, 0.06) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
}

.ai-friend-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.ai-friend-mascot-preview {
    position: relative;
    flex-shrink: 0;
}

.preview-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(93, 224, 216, 0.12) 0%, transparent 70%);
    filter: blur(30px);
}

.preview-mascot {
    width: 180px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 25px rgba(93, 224, 216, 0.12));
}

.ai-friend-text {
    flex: 1;
}

.ai-friend-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.ai-friend-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.btn-ai-friend {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: inherit;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-ai-friend:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Responsive AI Friend */
@media (max-width: 768px) {
    .ai-friend-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    .preview-mascot { width: 150px; }
    .ai-friend-text h2 { font-size: 1.6rem; }
}

/* ═══════════════════════════════════════
   DOWNLOAD — Glass CTA
   ═══════════════════════════════════════ */

.download {
    padding: 100px 20px 120px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.download-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 56px 40px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 40px rgba(0, 0, 0, 0.2);
}

.download h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.download p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.app-store-badge {
    height: 48px;
    transition: opacity 0.2s ease;
}

.app-store-badge:hover {
    opacity: 0.8;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 20px 24px;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-section h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════ */

.legal-page {
    padding: 120px 20px 80px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.legal-page h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.legal-page .last-updated {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.3rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.legal-page p, .legal-page ul {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-page ul { padding-left: 24px; }
.legal-page li { margin-bottom: 8px; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 1200px) {
    .screenshots-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 10px 20px;
    }

    nav ul {
        display: none;
    }

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

    .hero .tagline {
        font-size: 1.05rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .section-title h2 {
        font-size: 1.75rem;
    }

    .download-content {
        padding: 40px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .screenshots-showcase {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .screenshot {
        width: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
