:root {
    --bg-main: #0B0E14; /* Very dark navy/black */
    --bg-surface: #131722;
    --bg-card: #1A1F2C;
    
    --text-primary: #FFFFFF;
    --text-secondary: #8B95A5;
    
    --color-pink: #FF3B7C;
    --color-purple: #8C52FF;
    --color-blue: #38B6FF;
    --color-green: #00E676;
    --color-yellow: #FFD54F;
    --color-orange: #FF8C00;

    --gradient-play: linear-gradient(90deg, #FF2B6D, #FF6B00);
    --gradient-purple: linear-gradient(90deg, #8C52FF, #B552FF);
    --gradient-rainbow: linear-gradient(90deg, #FF3B7C, #FF8C00, #FFD54F, #00E676, #38B6FF, #8C52FF);

    --font-heading: 'Varela Round', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --border-subtle: rgba(255, 255, 255, 0.05);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Background Particles */
.background-particles {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 20px; height: 20px;
    background: var(--color-purple);
    opacity: 0.15;
    transform: rotate(45deg);
    animation: float 15s infinite linear;
}

.p1 { top: 10%; left: 10%; background: var(--color-pink); animation-duration: 25s; }
.p2 { top: 20%; left: 80%; background: var(--color-blue); animation-duration: 20s; }
.p3 { top: 70%; left: 15%; background: var(--color-green); animation-duration: 30s; }
.p4 { top: 80%; left: 75%; background: var(--color-yellow); animation-duration: 22s; }
.p5 { top: 40%; left: 90%; background: var(--color-orange); animation-duration: 18s; }
.p6 { top: 50%; left: 5%; background: var(--color-purple); animation-duration: 28s; }

@keyframes float {
    0% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-100px) rotate(90deg); }
    100% { transform: translateY(0) rotate(45deg); }
}

.relative-z {
    position: relative;
    z-index: 1;
}

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

a:hover {
    color: var(--color-pink);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Logo */
header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    font-family: var(--font-heading);
}

.logo-color {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.logo-flood {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 6px;
    margin-left: 6px; /* Offset for letter spacing */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-nav {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-primary {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
    background: var(--gradient-play);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 43, 109, 0.3);
}

.btn-primary .icon {
    margin-right: 10px;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 43, 109, 0.5);
    color: white;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 0;
    min-height: 80vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-logo-large {
    margin-bottom: 2rem;
}

.hero-logo-large .logo-color {
    font-size: 4.5rem;
    letter-spacing: 4px;
}

.hero-logo-large .logo-flood {
    font-size: 4.5rem;
    letter-spacing: 16px;
    margin-left: 16px;
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 450px;
    line-height: 1.8;
}

/* Board Mockup Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--color-purple);
    filter: blur(120px);
    opacity: 0.2;
    z-index: -1;
    border-radius: 50%;
}

.board-mockup {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.board-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.moves-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.moves-count {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
}

.moves-total {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    background: var(--bg-card);
    padding: 8px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.tile {
    aspect-ratio: 1;
    border-radius: 4px;
}

.t-pink { background: var(--color-pink); }
.t-purple { background: var(--color-purple); }
.t-blue { background: var(--color-blue); }
.t-green { background: var(--color-green); }
.t-yellow { background: var(--color-yellow); }
.t-orange { background: var(--color-orange); }

.color-selectors {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.selector {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.selector:hover {
    transform: scale(1.1) translateY(-4px);
}

.s-purple { background: var(--color-purple); }
.s-pink { background: var(--color-pink); }
.s-orange { background: var(--color-orange); }
.s-yellow { background: var(--color-yellow); }
.s-green { background: var(--color-green); }
.s-blue { background: var(--color-blue); }

/* Features */
.features {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-main), var(--bg-surface));
    border-top: 1px solid var(--border-subtle);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.feature-icon {
    font-size: 2rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

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

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}

.footer-logo {
    display: flex;
    justify-content: center;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

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

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

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Page Content (Privacy/Terms) */
.page-content {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.page-content h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-pink);
}

.page-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.page-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.page-content .last-updated, 
.page-content .effective-date {
    color: var(--color-blue);
    font-weight: 500;
    margin-bottom: 3rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 4rem 0;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-logo-large .logo-color {
        font-size: 3rem;
    }
    
    .hero-logo-large .logo-flood {
        font-size: 3rem;
    }
    
    .hero p {
        margin: 0 auto 2.5rem;
    }
}
