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

:root {
    /* Light mode colors from app */
    --bg: #FAFAF9;
    --surface: #FFFFFF;
    --elevated: #F3F4F2;
    --text-primary: #1F2A30;
    --text-secondary: #5F6B73;
    --text-tertiary: #9AA6AD;
    --divider: #E3E7E5;

    /* Accent colors */
    --accent: #F0B37E;
    --accent-light: #F6CFA8;
    --success: #7FB7A6;
    --warning: #D6B26A;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 96px;

    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0F1417;
        --surface: #161D22;
        --elevated: #253038;
        --text-primary: #E6ECEF;
        --text-secondary: #B7C2C8;
        --text-tertiary: #7A8A94;
        --divider: #253038;
    }
}

html {
    scroll-behavior: smooth;
}

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

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--divider);
    backdrop-filter: blur(20px);
    background: rgba(250, 250, 249, 0.8);
}

@media (prefers-color-scheme: dark) {
    nav {
        background: rgba(15, 20, 23, 0.8);
    }
}

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

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

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

/* Main Content */
main {
    position: relative;
    z-index: 2;
    padding-top: 64px;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    min-height: calc(100vh - 64px);
    padding-top: var(--spacing-lg);
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--elevated);
    color: var(--text-secondary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(240, 179, 126, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 179, 126, 0.4);
}

.btn-primary.large {
    padding: 18px 36px;
    font-size: 18px;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--divider);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Floating Cards */
.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: 16px;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 50%;
    right: 20%;
    animation: float 7s ease-in-out infinite 1s;
}

.card-3 {
    bottom: 20%;
    left: 30%;
    animation: float 8s ease-in-out infinite 2s;
}

.card-icon {
    font-size: 32px;
}

.card-text {
    font-weight: 600;
    color: var(--text-primary);
}

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

/* Features Section */
.features {
    background: var(--surface);
    border-radius: 24px;
    margin: var(--spacing-xl) auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature {
    text-align: left;
}

.feature-number {
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-xs);
}

.feature h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.5px;
}

.feature p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Why Section */
.why {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    border-radius: 24px;
    color: #1F2A30;
    margin: var(--spacing-xl) auto;
}

.why-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.why h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: var(--spacing-sm);
    color: #1F2A30;
}

.why p {
    font-size: 18px;
    margin-bottom: var(--spacing-md);
    color: rgba(31, 42, 48, 0.85);
}

.check-list {
    list-style: none;
}

.check-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: var(--spacing-xs);
    font-size: 16px;
    color: rgba(31, 42, 48, 0.85);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 18px;
    color: #1F2A30;
}

.why-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: var(--spacing-md);
    backdrop-filter: blur(10px);
}

.stat-large {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    color: #1F2A30;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(31, 42, 48, 0.75);
    margin-top: var(--spacing-xs);
}

/* Privacy Section */
.privacy-first {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
}

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

.lock-icon {
    font-size: 64px;
    margin-bottom: var(--spacing-sm);
}

.privacy-first h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: var(--spacing-sm);
}

.privacy-first p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* CTA Final */
.cta-final {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.cta-final h2 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: var(--spacing-md);
}

.cta-note {
    margin-top: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Footer */
footer {
    background: var(--surface);
    border-top: 1px solid var(--divider);
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--divider);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: var(--spacing-md);
    }

    .hero-visual {
        display: none;
    }

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

    .cta-group {
        justify-content: center;
        flex-direction: column;
    }

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

    .why-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .nav-links {
        gap: var(--spacing-sm);
    }

    .nav-links a {
        font-size: 14px;
    }
}

/* Legal Pages Styling */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.legal-page h1 {
    font-size: 48px;
    margin-bottom: var(--spacing-xs);
}

.legal-page .updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--spacing-lg);
}

.legal-page h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.legal-page h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.legal-page p, .legal-page li {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.legal-page ul {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.legal-page a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.legal-page a:hover {
    border-bottom-color: var(--accent);
}

.legal-page strong {
    color: var(--text-primary);
    font-weight: 600;
}
