/* 🎨 Design System */
:root {
    --bg-primary: #0a0a0a;
    --bg-surface: #111111;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --gradient-main: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);

    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);

    --section-padding: 120px 0;
    --container-width: 1200px;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-cyan);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
    color: #fff;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 24px;
}

.gradient-blob {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168,85,247,0.4) 0%, rgba(6,182,212,0.4) 50%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    animation: rotateBlob 20s linear infinite;
    z-index: 0;
}

@keyframes rotateBlob {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0; /* For animation */
}

.tagline {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.sub-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

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

.pill {
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.float-card {
    position: absolute;
    width: 200px;
    height: 300px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    opacity: 0.6;
    filter: blur(2px);
    transition: transform 0.1s ease-out;
}

.card-1 {
    top: 20%;
    left: 10%;
    transform: rotate(-15deg);
    background-image: linear-gradient(135deg, #f43f5e, #f59e0b);
    animation: float1 6s ease-in-out infinite;
}

.card-2 {
    top: 50%;
    right: 5%;
    transform: rotate(10deg);
    background-image: linear-gradient(135deg, #3b82f6, #8b5cf6);
    animation: float2 8s ease-in-out infinite;
}

.card-3 {
    bottom: -10%;
    left: 30%;
    transform: rotate(-5deg);
    background-image: linear-gradient(135deg, #10b981, #3b82f6);
    animation: float3 7s ease-in-out infinite;
}

@keyframes float1 { 0%, 100% { transform: rotate(-15deg) translateY(0); } 50% { transform: rotate(-15deg) translateY(-20px); } }
@keyframes float2 { 0%, 100% { transform: rotate(10deg) translateY(0); } 50% { transform: rotate(10deg) translateY(-30px); } }
@keyframes float3 { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-15px); } }

/* Shared Section Styles */
section {
    padding: var(--section-padding);
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

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

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

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

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 24px;
}

.feature-card {
    padding: 32px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Gallery Section */
.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
    padding: 0 24px;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
}

.masonry-grid {
    column-count: 3;
    column-gap: 24px;
    padding: 0 24px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item .gradient-fill {
    width: 100%;
    /* aspect ratios applied inline via JS */
    border-radius: 20px;
}

.gallery-item .badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.gallery-item .item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .item-info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item h4 {
    margin-bottom: 8px;
}

.gallery-actions {
    display: flex;
    gap: 8px;
}

.gallery-actions button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.gallery-actions button:hover {
    background: rgba(255,255,255,0.4);
}

/* App Preview Section */
.preview-container {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 0 24px;
}

.preview-item {
    flex: 1;
    text-align: center;
}

.phone-mockup {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 32px;
    border-radius: 40px;
    padding: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.05), 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.phone-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.mockup-img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

.mockup-img.fallback {
    /* Styles for the placeholder if img fails */
    border-radius: 30px;
}

.preview-text h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.preview-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* How It Works Section */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 24px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.step h3 {
    margin-bottom: 16px;
}

.step p {
    color: var(--text-secondary);
}

.step-connector {
    flex: 0 0 100px;
    height: 2px;
    background: dashed 2px var(--glass-border);
    margin-top: 60px;
}

/* Solana Section */
.solana-web3 {
    position: relative;
    max-width: 100%;
    padding: 120px 0;
}

.solana-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(168,85,247,0.1), rgba(20,241,149,0.1));
    z-index: 0;
}

.solana-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 64px;
}

.solana-text {
    flex: 1;
}

.solana-text h2 {
    font-size: 3rem;
    background: linear-gradient(135deg, #a855f7, #14f195);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.solana-sub {
    font-size: 1.25rem;
    margin-bottom: 32px;
}

.solana-text h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.solana-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.solana-features {
    list-style: none;
}

.solana-features li {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.solana-mockup-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tip-card-mockup {
    width: 100%;
    max-width: 360px;
    padding: 32px;
    text-align: center;
}

.tip-card-mockup h4 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.tip-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.tip-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.tip-chips .chip {
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tip-chips .chip:hover {
    background: rgba(255,255,255,0.05);
}

.tip-chips .chip.active {
    background: var(--gradient-main);
    border-color: transparent;
}

.w-100 {
    width: 100%;
}

/* Settings Highlight Section */
.settings-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.setting-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.setting-item .icon {
    font-size: 2rem;
}

.setting-item h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.setting-item p {
    color: var(--text-secondary);
}

/* Download Section */
.download-section {
    text-align: center;
    padding: 160px 24px;
    position: relative;
}

.btn-gradient-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.25rem;
    background: var(--gradient-main);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.btn-gradient-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(6, 182, 212, 0.6);
    color: #fff;
}

.req-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 64px 24px 32px;
    background: #050505;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    border-radius: 10px;
}

.tagline-small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-links a, .footer-social a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover, .footer-social a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Utilities for Legal Pages */
.legal-page {
    padding-top: 120px;
    max-width: 800px;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--accent-cyan);
}

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

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

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

/* Animations Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .masonry-grid {
        column-count: 2;
    }

    .preview-container {
        flex-direction: column;
        align-items: center;
    }
    
    .preview-item {
        max-width: 400px;
        margin-bottom: 48px;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        width: 2px;
        height: 60px;
        margin: 24px 0;
    }

    .solana-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .tagline {
        font-size: 3.5rem;
    }

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

    .masonry-grid {
        column-count: 1;
    }

    .nav-links {
        display: none; /* Mobile menu needed */
    }

    .hamburger {
        display: flex;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }
}
