/* ============================================
   SKRIBE LANDING - SHARED STYLES
   ============================================ */

/* CSS Variables */
:root {
    --bg-deep: #0a0a0b;
    --bg-surface: #121214;
    --bg-elevated: #1a1a1d;
    --bg-mock: #0f0f10;
    --gold: #c9a227;
    --gold-dim: #8a7019;
    --gold-glow: rgba(201, 162, 39, 0.15);
    --text-primary: #e8e6e3;
    --text-secondary: #9a9590;
    --text-dim: #5a5550;
    --border: rgba(255, 255, 255, 0.06);
    --success: #4ade80;
    --warning: #fbbf24;
    --error: #f87171;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Instrument Sans', -apple-system, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Atmospheric background */
.atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.atmosphere::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(201, 162, 39, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(201, 162, 39, 0.02) 0%, transparent 50%);
}

.atmosphere::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-deep) 0%, transparent 100%);
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.1em;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-cursor {
    display: inline-block;
    width: 0.6em;
    height: 0.08em;
    background: var(--gold);
    margin-left: 0.05em;
    animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.nav-cta {
    padding: 0.6rem 1.4rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary) !important;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-deep) !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--gold);
    color: var(--bg-deep);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #d4ad30;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--gold-glow);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background: var(--bg-elevated);
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-column h4 {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

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

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ============================================
   LEGAL PAGE STYLES (Privacy, Terms)
   ============================================ */
.legal-header {
    padding: 10rem 2rem 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.legal-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    margin-bottom: 1rem;
}

.legal-header .last-updated {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    position: relative;
    z-index: 1;
}

.legal-content section {
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

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

.legal-content ul {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.legal-content a:hover {
    opacity: 0.8;
}

.legal-content .highlight-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

.legal-content .highlight-box p {
    margin-bottom: 0;
}

/* ============================================
   PAGE HEADER (Billing, etc.)
   ============================================ */
.page-header {
    padding: 10rem 2rem 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
}

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

/* ============================================
   RESPONSIVE - SHARED BREAKPOINTS
   ============================================ */
@media (max-width: 1024px) {
    nav {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .legal-header {
        padding: 8rem 1.5rem 3rem;
    }

    .legal-content {
        padding: 0 1.5rem 4rem;
    }

    .page-header {
        padding: 8rem 1.5rem 2rem;
    }

    footer {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}
