:root {
    --bg: #0a0a0a;
    --text: #e8e4de;
    --text-dim: #6b6560;
    --text-muted: #2e2b28;
    --accent: #d4a03c;
    --accent-glow: rgba(212, 160, 60, 0.35);
    --accent-soft: rgba(212, 160, 60, 0.08);
    --grid-dot: rgba(255, 255, 255, 0.04);
    --mono: 'Azeret Mono', monospace;
    --serif: 'Instrument Serif', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Vignette */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Noise texture overlay */
.noise {
    position: fixed;
    inset: 0;
    z-index: 99;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Grid glow that follows mouse */
.grid-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

body:hover .grid-glow {
    opacity: 1;
}

/* ── Hero ── */
.hero {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--text-muted);
    border-radius: 100px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 3rem;
    animation: fadeIn 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-glow); }
    50% { opacity: 0.4; box-shadow: 0 0 4px var(--accent-glow); }
}

/* Brand name */
.brand {
    font-family: var(--mono);
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text);
    animation: fadeIn 1s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    min-height: 1.2em;
}

.brand-text .char {
    display: inline-block;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.brand-text .char.dot {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.brand-text .char:hover {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

/* Blinking cursor */
.cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
    font-weight: 400;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Subtitle */
.subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.05rem, 2.5vw, 1.45rem);
    color: var(--text-dim);
    letter-spacing: 0.01em;
    margin-bottom: 0;
    animation: fadeIn 1s 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Footer ── */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1.5rem 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.build-info {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    font-family: var(--mono);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.link-btn {
    background: none;
    border: none;
    text-decoration: none;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.link-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.link-btn:hover {
    color: var(--accent);
}

.link-btn:hover::after {
    width: 100%;
}

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #141414;
    border: 1px solid var(--text-muted);
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    padding: 2.5rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--text-muted);
}

.modal-header h2 {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.close-btn {
    background: none;
    border: 1px solid var(--text-muted);
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    border-color: var(--text-dim);
    color: var(--text);
}

.modal-body h3 {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.8;
    opacity: 0.8;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .hero {
        padding: 1.5rem;
    }

    .status-badge {
        margin-bottom: 2rem;
    }

    .brand {
        margin-bottom: 1rem;
    }

    .subtitle {
        margin-bottom: 2rem;
    }

    .footer-content {
        padding: 0 0.5rem;
    }

    .modal-content {
        padding: 1.5rem;
    }
}
