:root {
    --bg: #0a0a0f;
    --bg-secondary: #12121a;
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --primary: #8B5CF6;
    --primary-light: #A78BFA;
    --secondary: #06B6D4;
    --accent: #F472B6;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Grain texture overlay */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 1000;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-dot {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main */
main {
    position: relative;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h1 .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.cta-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
}

.app-badge:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.app-badge svg {
    width: 28px;
    height: 28px;
}

.badge-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-store {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    width: 180px;
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 10%;
    right: 5%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(var(--tx, 0)); }
    50% { transform: translateY(-20px) translateX(var(--tx, 0)); }
}

.card-3 {
    --tx: -50%;
}

.card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    margin-bottom: 1rem;
}

.card-lines .line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.card-lines .line.short {
    width: 60%;
}

.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.connection-lines svg {
    width: 100%;
    height: 100%;
}

.conn-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 3s ease forwards infinite;
}

@keyframes drawLine {
    0% { stroke-dashoffset: 200; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -200; }
}

/* Philosophy Section */
.philosophy {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
    position: relative;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient);
    opacity: 0.3;
}

.philosophy-content {
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.philosophy > .philosophy-content > p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 4rem;
}

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.phil-card {
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.phil-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.phil-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 14px;
    margin-bottom: 1.5rem;
}

.phil-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.phil-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.contact p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient);
    border-radius: 100px;
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.email-link:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.email-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.email-link:hover svg {
    transform: translateX(4px);
}

/* Footer */
footer {
    padding: 2rem;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 10rem;
    }

    .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .app-badges {
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
        margin-top: 2rem;
    }

    .floating-card {
        width: 140px;
        padding: 1rem;
    }

    .card-avatar {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 640px) {
    header {
        padding: 1rem;
    }

    .hero {
        padding: 8rem 1.5rem 2rem;
    }

    .badge {
        font-size: 0.75rem;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .app-badges {
        flex-direction: column;
        align-items: center;
    }

    .app-badge {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .floating-card {
        width: 120px;
        padding: 0.75rem;
    }

    .philosophy,
    .contact {
        padding: 4rem 1.5rem;
    }

    .phil-card {
        padding: 1.5rem;
    }
}

/* Smooth appearance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

.phil-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.phil-card:nth-child(1) { animation-delay: 0.1s; }
.phil-card:nth-child(2) { animation-delay: 0.2s; }
.phil-card:nth-child(3) { animation-delay: 0.3s; }
