﻿/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --bg: #08090b;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #60a5fa;
    --accent-glow: rgba(96, 165, 250, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
    user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

    /* Starfield background (CSS-only) */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background: radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent), radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.2), transparent), radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.3), transparent), radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.2), transparent), radial-gradient(2px 2px at 90% 60%, rgba(255, 255, 255, 0.25), transparent), radial-gradient(1px 1px at 33% 80%, rgba(255, 255, 255, 0.2), transparent), radial-gradient(1px 1px at 75% 40%, rgba(255, 255, 255, 0.3), transparent);
        background-size: 200% 200%;
        pointer-events: none;
        /* Subtle drift for parallax feel */
        animation: starDrift 120s linear infinite;
    }

a {
    cursor: pointer;
}

@keyframes starDrift {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 200% 200%, 200% 200%, 200% 200%, 200% 200%, 200% 200%, 200% 200%, 200% 200%;
    }
}

/* ============================================
   Skip Link
   ============================================ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--accent);
    color: var(--bg);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    z-index: 1000;
}

    .skip-link:focus {
        top: 20px;
    }

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Header
   ============================================ */
.header {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.brand {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text);
}

nav {
    display: flex;
    gap: 32px;
}

    nav a {
        color: var(--muted);
        text-decoration: none;
        font-size: 14px;
        letter-spacing: 0.5px;
        transition: color 0.3s ease;
    }

        nav a:hover,
        nav a:focus {
            color: var(--accent);
            outline: 2px solid var(--accent);
            outline-offset: 4px;
        }

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 120px 0 100px;
    text-align: center;
}

.crest {
    display: block;
    margin: 0 auto 32px;
}

/* Animated crest glow */
.crest-animated {
    animation: crestPulse 6s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--accent));
    will-change: transform, filter;
}

@keyframes crestPulse {

    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px var(--accent));
    }

    50% {
        transform: scale(1.025);
        filter: drop-shadow(0 0 22px var(--accent));
    }
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid var(--accent-glow);
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

h1 {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 18px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 48px;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: #3b82f6;
        box-shadow: 0 0 20px var(--accent-glow);
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

    .btn-secondary:hover,
    .btn-secondary:focus {
        border-color: var(--accent);
        color: var(--accent);
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

/* ============================================
   Rulers Section
   ============================================ */
.rulers {
    padding: 100px 0;
}

h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 64px;
}

.rulers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

    .card:hover {
        border-color: var(--accent-glow);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px var(--accent-glow);
        transform: translateY(-4px);
    }

.sigil {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.6;
}

.card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.role {
    font-size: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.blurb {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.5;
}

/* ============================================
   Ethos Section
   ============================================ */
.ethos {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.01);
}

.ethos-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

    .ethos-list li {
        padding: 20px 0 20px 40px;
        border-left: 2px solid var(--accent-glow);
        margin-bottom: 24px;
        font-size: 17px;
        color: var(--muted);
        position: relative;
    }

        .ethos-list li::before {
            content: '';
            position: absolute;
            left: -6px;
            top: 26px;
            width: 10px;
            height: 10px;
            background: var(--accent);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--accent-glow);
        }

/* ============================================
   Myth Section
   ============================================ */
.myth {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.myth-wrap {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.myth-text p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 16px;
}

.myth-sig {
    margin-top: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    text-transform: uppercase;
}

.myth-moon {
    max-width: 320px;
    width: 100%;
    justify-self: center;
    animation: moonBreath 10s ease-in-out infinite;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

@keyframes moonBreath {

    0%, 100% {
        transform: translateY(0);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ============================================
   Signal Section
   ============================================ */
.signal {
    padding: 100px 0;
    text-align: center;
}

    .signal p {
        font-size: 16px;
        color: var(--muted);
        max-width: 600px;
        margin: 0 auto;
        font-style: italic;
    }

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--line);
    text-align: center;
}

    .footer p {
        font-size: 14px;
        color: var(--muted);
    }

/* ============================================
   Focus States (Accessibility)
   ============================================ */
*:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 48px;
        letter-spacing: 4px;
    }

    h2 {
        font-size: 32px;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .rulers,
    .ethos,
    .signal,
    .myth {
        padding: 60px 0;
    }

    .myth-text p {
        font-size: 14px;
    }

    .rulers-grid {
        grid-template-columns: 1fr;
    }

    nav {
        gap: 14px;
    }

    nav a {
        gap: 12px;
    }
}

/* Responsive myth layout */
@media (max-width: 900px) {
    .myth-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .myth-moon {
        order: -1;
    }
}

/* ============================================
   Reduced Motion Support
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .card:hover {
        transform: none;
    }

    .crest-animated,
    .myth-moon,
    body::before {
        animation: none !important;
        transform: none !important;
        filter: none !important;
    }
}
