/* ============================================
   SHARED STYLES — Clairva Website
   Variables, Reset, Nav, Footer, Utilities
   ============================================ */

:root {
    --bg-primary: #0A0E1A;
    --bg-secondary: #111827;
    --bg-tertiary: #1F2937;
    --bg-card: #151C2C;
    --accent-violet: #7C3AED;
    --accent-violet-light: #A78BFA;
    --accent-amber: #F59E0B;
    --accent-amber-light: #FCD34D;
    --accent-teal: #14B8A6;
    --accent-emerald: #10B981;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border-dark: #1E293B;
    --border-subtle: #334155;
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ============================================
   UTILITIES
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--accent-violet-light), var(--accent-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-violet {
    background: linear-gradient(135deg, var(--accent-violet-light), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-amber);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent-amber);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--accent-violet);
    background: rgba(124, 58, 237, 0.05);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dark);
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

/* Pill-shaped nav links container */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
}

.nav-links a {
    display: block;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-links a.nav-active {
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.1);
}

/* Nav CTA buttons */
.nav-ctas {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.nav-cta-primary {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--accent-amber);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.8125rem;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.nav-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.nav-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8125rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.nav-cta-secondary:hover {
    border-color: var(--accent-violet);
    color: var(--text-primary);
}

/* Mobile nav CTA buttons */
.mobile-nav-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 80%;
    max-width: 300px;
    margin-top: 16px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-dark);
    background: var(--bg-secondary);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-dark);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--accent-violet-light);
}

/* ============================================
   RESPONSIVE — Nav & Footer
   ============================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-ctas {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
