@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;700;900&display=swap');

:root {
    --ru-black: #0a0a0a;
    --ru-white: #e5e5e5;
    --ru-accent: #ff3e3e;
    --ru-border: #333333;
    --ru-dark-gray: #1a1a1a;
    
    --primary-blue:    #ff3e3e; /* overrides for old classes if they exist */
    --dark-blue:       #cc0000;
    --primary-yellow:  #ffffff;
    --off-white:       #111111;
    --color-dark:      #e5e5e5;
    --color-green:     #4ADE80;
    --color-accent:    #FF5F56;
    --radius-sm:  0px;
    --radius-md:  0px;
    --radius-lg:  0px;
    --radius-xl:  0px;
    --bg:              #0a0a0a;
    --card-bg:         #111111;
    --text-primary:    #e5e5e5;
    --text-secondary:  #888888;
    --text-muted:      #555555;
    --border-light:    #333333;
}

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

body {
    font-family: 'Space Grotesk', 'PingFang SC', sans-serif;
    background-color: var(--ru-black);
    color: var(--ru-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.grid-bg {
    background-image: radial-gradient(var(--ru-border) 1px, transparent 1px);
    background-size: 30px 30px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'PingFang SC', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ru-black); }
::-webkit-scrollbar-thumb { background: var(--ru-border); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--ru-accent); }

.container-custom {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.on { opacity: 1; transform: none; }

.brutalist-border {
    border: 2px solid var(--ru-border);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.brutalist-border:hover {
    border-color: var(--ru-accent);
    box-shadow: 4px 4px 0px var(--ru-accent);
}

.ru-title { text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.9; }
.ru-badge { background: var(--ru-accent); color: white; padding: 2px 8px; font-weight: bold; text-transform: uppercase; font-size: 0.75rem; }

.scanline {
    width: 100%; height: 100px; z-index: 10;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(255,255,255,0.02) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.1; position: fixed; pointer-events: none;
    animation: scan 4s linear infinite;
}
@keyframes scan { from { top: -100px; } to { top: 100%; } }

.btn-ru {
    background: var(--ru-white); color: var(--ru-black);
    font-weight: 800; text-transform: uppercase; padding: 12px 24px;
    display: inline-block; cursor: pointer; border: none; text-decoration: none;
}
.btn-ru:hover { background: var(--ru-accent); color: white; }

.btn-ru-outline {
    background: transparent;
    color: var(--ru-white);
    border: 2px solid var(--ru-white);
    font-weight: 800; text-transform: uppercase; padding: 10px 22px;
    cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.btn-ru-outline:hover { background: var(--ru-white); color: var(--ru-black); }

input, select, textarea {
    border-radius: 0; border: 2px solid var(--ru-border); padding: 12px 16px;
    font-size: 16px; background: var(--ru-dark-gray); color: var(--ru-white);
    transition: all 0.2s ease; font-family: 'Space Grotesk', sans-serif;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--ru-accent); background: var(--ru-black);
}
#modalContent h1, #modalContent h2, #modalContent h3, #modalContent h4 { color: #fff !important; }

/* ── Primary CTA button ───────────────────────── */
.tm-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: var(--ru-accent, #ff3e3e);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid var(--ru-accent, #ff3e3e);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
    box-shadow: 3px 3px 0px rgba(255,62,62,0.35);
    outline: none;
    line-height: 1;
}
.tm-btn-primary:hover {
    background: transparent;
    color: var(--ru-accent, #ff3e3e);
    box-shadow: 4px 4px 0px var(--ru-accent, #ff3e3e);
    transform: translate(-1px, -1px);
}
.tm-btn-primary:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--ru-accent, #ff3e3e);
}

/* ── Nav links ────────────────────────────────── */
.tm-nav-link {
    color: #e5e5e5;
    text-decoration: none;
    transition: color 0.2s;
}
.tm-nav-link:hover { color: var(--ru-accent, #ff3e3e); }
.tm-nav-link.active { color: var(--ru-accent, #ff3e3e) !important; }

/* ── Theme Footer (tf-*) ──────────────────────── */
.tf-root {
    background: #0a0a0a;
    border-top: 2px solid #333;
    font-family: 'Space Grotesk', sans-serif;
}
.tf-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 3rem 3rem;
}
.tf-body {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    margin-bottom: 5rem;
}
.tf-brand { flex: 0 0 300px; }
.tf-logo {
    display: inline-block;
    font-size: 3rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.02em;
    color: #e5e5e5;
    text-decoration: none;
    margin-bottom: 1.25rem;
    line-height: 1;
}
.tf-logo span { color: inherit; }
.tf-tagline {
    font-size: 1rem;
    color: #555;
    font-weight: 700;
    line-height: 1.9;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tf-cols {
    display: flex;
    flex: 1;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.tf-cols > div { flex: 1; min-width: 120px; }
.tf-col-label {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ru-accent, #ff3e3e);
    margin-bottom: 1.5rem;
}
.tf-col-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.tm-footer-link {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.04em;
}
.tm-footer-link:hover { color: #e5e5e5; }
.tf-contact-email {
    font-size: 0.95rem;
    font-weight: 700;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-all;
    letter-spacing: 0.02em;
}
.tf-contact-email:hover { color: #e5e5e5; }
.tf-bottom {
    border-top: 1px solid #333;
    padding-top: 2.5rem;
    padding-bottom: 0.5rem;
    text-align: center;
}
.tf-copy {
    font-size: 0.8rem;
    color: #555;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
