/* ============================================
   NXTL - Main Stylesheet
   ============================================ */

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

:root {
    /* Colors */
    --bg-primary: #030305;
    --bg-surface: #12121a;
    --bg-elevated: #1a1a2e;
    --text-primary: #f0f0f5;
    --text-muted: #8888a0;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --border: #1e1e2e;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Page Layout (100vh grid) --- */
.page-wrapper {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

/* --- Header / Navigation --- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) clamp(var(--space-md), 5vw, var(--space-xl));
    border-bottom: 1px solid var(--border);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.site-logo img,
.site-logo svg {
    height: 32px;
    width: auto;
}

.site-logo span {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.site-nav {
    display: flex;
    gap: var(--space-md);
}

.site-nav a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

/* --- Hero / Main Content --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-lg);
    gap: var(--space-lg);
}

.hero-logo {
    max-width: clamp(400px, 80vw, 800px);
    height: auto;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 400;
    max-width: 500px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-mono);
    transition: all 0.2s ease;
    background: transparent;
}

.hero-cta:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
    background: rgba(99, 102, 241, 0.05);
}

/* --- Site Footer --- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: var(--space-md) clamp(var(--space-md), 5vw, var(--space-xl));
    text-align: center;
}

.footer-legal {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-legal span {
    display: inline;
}

.footer-legal .sep {
    margin: 0 0.5rem;
    opacity: 0.4;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: var(--space-md) clamp(var(--space-md), 5vw, var(--space-xl));
    display: none;
    z-index: 1000;
}

.cookie-banner.visible {
    display: block;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 250px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cookie-banner-text a {
    color: var(--accent);
}

.cookie-banner-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.btn-cookie {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.btn-cookie-reject {
    background: transparent;
    color: var(--text-muted);
}

.btn-cookie-reject:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.btn-cookie-accept {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-cookie-accept:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-sm) var(--space-md);
    }

    .site-nav {
        gap: var(--space-sm);
    }

    .site-nav a {
        font-size: 0.8rem;
    }

    .footer-legal span {
        display: block;
    }

    .footer-legal .sep {
        display: none;
    }

    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .btn-cookie {
        flex: 1;
    }
}
