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

:root {
    --color-bg: #0a0e17;
    --color-surface: rgba(255, 255, 255, 0.04);
    --color-surface-hover: rgba(255, 255, 255, 0.08);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-text-faint: #64748b;
    --color-accent: #6366f1;
    --color-accent-glow: rgba(99, 102, 241, 0.3);
    --color-accent-2: #0ea5e9;
    --color-accent-2-glow: rgba(14, 165, 233, 0.2);
    --radius-lg: 20px;
    --radius-md: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

/* ===== Background Glows ===== */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--color-accent-glow);
    top: -200px;
    right: -100px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--color-accent-2-glow);
    bottom: -150px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.03); }
}

/* ===== Header / Nav ===== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.logo:hover {
    color: var(--color-accent);
}

.logo-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
    border-radius: 2px;
    transition: width var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* ===== Main Content ===== */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* ===== Hero (Index page) ===== */
.hero {
    text-align: center;
    padding: 5rem 0 3rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--color-accent) 50%, var(--color-accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 550px;
    margin: 0 auto 3rem;
    animation: fadeUp 0.8s ease-out 0.15s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Card Grid ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    animation: fadeUp 0.8s ease-out 0.3s both;
}

.card {
    text-decoration: none;
    color: inherit;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(14, 165, 233, 0.06));
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--color-accent-glow);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.card h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

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

.card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: var(--transition);
}

.card:hover .card-link {
    color: var(--color-accent-2);
}

/* ===== Policy / Legal Page Styles ===== */
.policy-page {
    padding: 3rem 0;
    animation: fadeUp 0.6s ease-out;
}

.policy-page h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.policy-date {
    color: var(--color-text-faint);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    display: block;
}

.policy-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3.5rem);
}

.policy-content h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.policy-content p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.policy-content ul, .policy-content ol {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.policy-content li {
    margin-bottom: 0.4rem;
}

.policy-content a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

.policy-content a:hover {
    color: var(--color-accent-2);
    text-decoration: underline;
}

.policy-content strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ===== Footer ===== */
footer {
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

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

.footer-content p {
    color: var(--color-text-faint);
    font-size: 0.85rem;
}

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

.footer-links a {
    color: var(--color-text-faint);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

/* ===== Responsive ===== */
@media (max-width: 640px) {
    nav {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    main {
        padding: 1rem;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    .policy-content {
        padding: 1.5rem;
    }

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