* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

:root {
    --bg-color: #0d0f14;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-color: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

/* Dynamic Background Glow */
.background-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(13, 15, 20, 0) 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    animation: floatGlow 15s ease-in-out infinite alternate;
}

.background-glow-2 {
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, rgba(13, 15, 20, 0) 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    animation: floatGlowReverse 12s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

@keyframes floatGlowReverse {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, -50px) scale(1.1); }
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(13, 15, 20, 0.8);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    text-align: center;
    flex-direction: column;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.cta-button {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-color), #818cf8);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px -10px var(--accent-glow);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.6s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px var(--accent-glow);
    filter: brightness(1.1);
}

/* Feature Grid */
.features {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

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

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
}

.card.visible {
    animation: fadeUpCard 0.8s ease forwards;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

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

/* Legal Pages (Privacy / Terms) */
.legal-container {
    padding: 8rem 5% 5rem;
    max-width: 800px;
    margin: 0 auto;
}

.legal-container h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-meta {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: #fff;
    margin: 2.5rem 0 1rem;
}

.legal-content p, .legal-content ul {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: #e2e8f0;
}

/* Footer */
footer {
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    color: #64748b;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUpCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* App UI Demo */
.demo-showcase {
    position: relative;
    max-width: 280px;
    margin: 4rem auto 0;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards 0.8s;
}

.iphone-frame {
    background: #1e293b;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #334155;
    position: relative;
    transform: rotateX(5deg) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.iphone-frame:hover {
    transform: rotateX(0deg) rotateY(0deg) scale(1.02);
}

.iphone-screen {
    background: #0f172a;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 9/19.5;
    display: flex;
    flex-direction: column;
    position: relative;
}

.screen-header {
    padding: 10px;
    text-align: center;
    color: white;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.screen-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.face-box {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 24px;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile nav */
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
