/* Sanctum presale — aligned with sanctumos.org retro-tech tokens */

:root {
    --retro-primary: #3c6e8f;
    --retro-accent: #d2691e;
    --light-gray: #e8e8e8;
    --lighter-gray: #f4f4f4;
    --dark-gray: #333333;
    --white: #ffffff;
    --off-white: #f9f9f9;
    --border-color: #cccccc;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --logo-primary: #1c80aa;
    --logo-secondary: #4d91aa;
    --logo-accent: #e16e0a;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--off-white);
    color: var(--dark-gray);
    line-height: 1.65;
    margin: 0;
}

h1, h2, h3, h4 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    color: var(--retro-primary);
}

.mono {
    font-family: 'Roboto Mono', ui-monospace, monospace;
}

.retro-header {
    background: linear-gradient(135deg, var(--retro-primary) 0%, #2a5a7a 100%);
    color: var(--white);
    padding: 1.25rem 0 1.5rem;
    border-bottom: 3px solid var(--retro-accent);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.retro-header a {
    color: var(--white);
    text-decoration: none;
}

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

.logo-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.logo-mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.1;
}

.tagline {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    opacity: 0.92;
}

.nav-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 3px;
}

.nav-links a:hover {
    border-color: var(--retro-accent);
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    padding: 2.5rem 0 2rem;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    margin-bottom: 0.5rem;
    color: var(--retro-primary);
}

.hero .lede {
    font-size: 1.15rem;
    max-width: 42rem;
    margin: 0 0 1.25rem;
}

.section {
    padding: 2rem 0;
}

.section-alt {
    background: linear-gradient(135deg, var(--lighter-gray) 0%, var(--white) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.35rem;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--logo-primary);
}

.card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.card li {
    margin-bottom: 0.5rem;
}

.pricing-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.price-pill {
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--logo-accent);
    margin: 0.25rem 0 0.5rem;
}

.prose {
    max-width: 46rem;
}

.prose p:last-child {
    margin-bottom: 0;
}

.retro-btn {
    display: inline-block;
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 3px;
    border: 2px solid var(--retro-primary);
    background: var(--white);
    color: var(--retro-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.retro-btn:hover {
    background: var(--lighter-gray);
    transform: translateY(-1px);
}

.retro-btn-primary {
    background: var(--logo-accent);
    border-color: var(--logo-accent);
    color: var(--white);
}

.retro-btn-primary:hover {
    background: #c55d09;
    border-color: #c55d09;
    color: var(--white);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}

.alert-error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #b71c1c;
}

.form-stack label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--retro-primary);
}

.form-stack input,
.form-stack textarea {
    width: 100%;
    max-width: 28rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-family: inherit;
    font-size: 1rem;
}

.form-stack textarea {
    min-height: 5rem;
    resize: vertical;
}

.form-stack .field {
    margin-bottom: 1rem;
}

footer.retro-footer {
    margin-top: 2rem;
    padding: 1.5rem 0 2rem;
    background: var(--dark-gray);
    color: var(--light-gray);
    font-size: 0.85rem;
}

footer.retro-footer a {
    color: var(--lighter-gray);
}

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

.badge-limited {
    display: inline-block;
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    background: var(--retro-primary);
    color: var(--white);
    margin-bottom: 0.75rem;
}

@media (max-width: 767px) {
    .nav-links {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}
