@import url('../../vendor/fonts/inter.css');

:root {
    --ru-black: #0A0A0B;
    --ru-white: #E2E8F0;
    --ru-accent: #7BA8F5;
    --ru-gradient: linear-gradient(135deg, #85E4F8 0%, #7BA8F5 50%, #AE90F5 100%);
    --ru-gradient-glow: rgba(123, 168, 245, 0.35);
    
    --on-accent: #000000;
    --ru-border: rgba(255, 255, 255, 0.08);
    --ru-dark-gray: rgba(20, 20, 23, 0.74);
    
    --primary-blue:    #7BA8F5; 
    --dark-blue:       #5a88d4;
    --primary-yellow:  #ffffff;
    --off-white:       #141417;
    --color-dark:      #E2E8F0;
    --color-green:     #4ADE80;
    --color-accent:    #FF5F56;
    --radius-sm:  6px;
    --radius-md:  8px;
    --radius-lg:  10px;
    --radius-xl:  12px;
    --bg:              #0A0A0B;
    --card-bg:         rgba(20, 20, 23, 0.74);
    --text-primary:    #E2E8F0;
    --text-secondary:  #94A3B8;
    --text-muted:      #64748B;
    --border-light:    rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', 'PingFang SC', -apple-system, BlinkMacSystemFont, 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:
        linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, rgba(123,168,245,0.14), transparent 34rem);
    background-size: 40px 40px, 40px 40px, auto;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'PingFang SC', -apple-system, BlinkMacSystemFont, 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: rgba(255,255,255,0.16); border-radius: 999px; }
::-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 {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    border: 1px solid var(--ru-border);
    border-radius: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.brutalist-border:hover {
    border-color: var(--ru-accent);
    box-shadow: 0 0 30px rgba(123, 168, 245, 0.16);
    transform: translateY(-2px);
}

.glass {
    background: rgba(20, 20, 23, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-card:hover {
    border-color: var(--ru-accent);
    box-shadow: 0 0 30px rgba(123, 168, 245, 0.15);
    transform: translateY(-2px);
}

.btn-glow {
    background: var(--ru-gradient);
    box-shadow: 0 0 15px rgba(123, 168, 245, 0.4);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(123, 168, 245, 0.6);
    transform: scale(1.02);
}

.scan-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    z-index: 10;
    background: var(--ru-gradient);
    box-shadow: 0 0 18px rgba(123, 168, 245, 0.4);
    opacity: 0.28;
    pointer-events: none;
    animation: scan 3s linear infinite;
}

.hero-mini-svg {
    position: relative;
    z-index: 1;
}

.hero-device-panel {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.16);
}

.stats-number {
    color: rgba(255, 255, 255, 0.3);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 0 10px rgba(123, 168, 245, 0.06);
}

.ru-title { text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.92; }
.ru-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(123, 168, 245, 0.1);
    color: var(--ru-accent);
    border: 1px solid rgba(123, 168, 245, 0.22);
    border-radius: 999px;
    padding: 4px 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
}
.ru-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--ru-gradient);
    box-shadow: 0 0 12px rgba(123, 168, 245, 0.75);
}

.scanline {
    display: none;
}
@keyframes scan { from { top: 0; } to { top: 100%; } }

.btn-ru {
    background: var(--ru-gradient); color: var(--on-accent);
    font-weight: 800; text-transform: uppercase; padding: 12px 24px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: none; text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(123, 168, 245, 0.34);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.btn-ru:hover { opacity: 0.88; color: var(--on-accent); box-shadow: 0 0 28px rgba(123, 168, 245, 0.55); transform: scale(1.02); }

.btn-ru-outline {
    background: transparent;
    color: var(--ru-white);
    border: 1px solid rgba(255,255,255,0.14);
    font-weight: 800; text-transform: uppercase; padding: 10px 22px;
    cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-ru-outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(123,168,245,0.5); color: var(--ru-accent); }

input, select, textarea {
    border-radius: 8px; border: 1px solid var(--ru-border); padding: 12px 16px;
    font-size: 16px; background: rgba(20, 20, 23, 0.72); color: var(--ru-white);
    transition: all 0.2s ease; font-family: 'Inter', 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; }

.tm-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 9999px;
    background: var(--ru-gradient);
    color: var(--on-accent);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
    box-shadow: 0 0 18px rgba(123,168,245,0.35);
    outline: none;
    line-height: 1;
}
.tm-btn-primary:hover {
    opacity: 0.88;
    color: var(--on-accent);
    box-shadow: 0 0 28px rgba(123,168,245,0.55);
    transform: translateY(-1px);
}
.tm-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0 12px rgba(123,168,245,0.35);
}

.tm-nav-link {
    color: #e5e5e5;
    text-decoration: none;
    transition: color 0.2s;
}
.tm-nav-link:hover { color: var(--ru-accent, #7BA8F5); }
.tm-nav-link.active { color: var(--ru-accent, #7BA8F5) !important; }

/* ── Footer ─────────────────────────────────────────── */
.tf-root {
    background: #05050a;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}
.tf-root::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7BA8F5 40%, #AE90F5 60%, transparent);
    opacity: 0.55;
}
.tf-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4.5rem 3rem 2rem;
}
/* Head row: logo left, tagline right */
.tf-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}
.tf-logo {
    display: inline-block;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}
.tf-tagline {
    font-size: 0.83rem;
    color: rgba(229, 229, 229, 0.38);
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.03em;
    text-align: right;
    max-width: 320px;
}
/* Thin divider */
.tf-rule {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin-bottom: 3rem;
}
/* 3-column link grid */
.tf-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 5vw, 6rem);
    margin-bottom: 3.5rem;
    align-items: start;
}
.tf-col {
    min-width: 0;
}
.tf-col-label {
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--ru-accent, #7BA8F5);
    margin-bottom: 1.35rem;
    opacity: 0.9;
}
.tf-col-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.tm-footer-link {
    display: inline-flex;
    width: fit-content;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(229, 229, 229, 0.5);
    text-decoration: none;
    transition: color 0.18s, transform 0.18s;
    letter-spacing: 0.01em;
}
.tm-footer-link:hover {
    color: rgba(229, 229, 229, 0.9);
    transform: translateX(3px);
}
/* Contact column */
.tf-contact-text {
    max-width: 240px;
    margin-bottom: 1.1rem;
    color: rgba(229, 229, 229, 0.4);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.75;
}
.tf-contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(229, 229, 229, 0.7);
    text-decoration: none;
    transition: color 0.18s, transform 0.18s;
    word-break: break-all;
    letter-spacing: 0.01em;
}
.tf-contact-email svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.tf-contact-email:hover {
    color: var(--ru-accent, #7BA8F5);
    transform: translateX(2px);
}
.tf-contact-email:hover svg {
    opacity: 1;
}
/* Bottom bar */
.tf-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1.5rem;
    padding-bottom: 0.25rem;
}
.tf-copy {
    font-size: 0.75rem;
    color: rgba(229, 229, 229, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.tf-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(123, 168, 245, 0.5);
    border: 1px solid rgba(123, 168, 245, 0.2);
    border-radius: 4px;
    padding: 0.28rem 0.65rem;
    white-space: nowrap;
}

@media (max-width: 1040px) {
    .tf-inner {
        padding: 3.5rem 1.5rem 1.75rem;
    }
    .tf-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .tf-tagline {
        text-align: left;
        max-width: 420px;
    }
    .tf-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 2.5rem;
    }
    .tf-col:last-child {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(255,255,255,0.06);
        padding-top: 2rem;
    }
    .tf-contact-text {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .tf-inner {
        padding: 3rem 1.25rem 1.5rem;
    }
    .tf-head {
        margin-bottom: 2.25rem;
    }
    .tf-rule {
        margin-bottom: 2.25rem;
    }
    .tf-cols {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
        margin-bottom: 2.5rem;
    }
    .tf-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .tf-copy {
        font-size: 0.7rem;
    }
}

.acrylic,
.glass-panel,
[class*="bg-[#111]"],
[class*="bg-[#151515]"],
[class*="bg-[#1a1a1a]"],
[class*="bg-[#0a0a0a]"],
[class*="via-[#0a0a0a]"],
[class*="to-[#0a0a0a]"] {
    background: rgba(20, 20, 23, 0.72) !important;
    backdrop-filter: blur(14px);
}

[class*="border-[#333]"],
[class*="border-[#222]"],
[class*="border-cyan-400"],
[class*="border-cyan-500"] {
    border-color: rgba(255,255,255,0.08) !important;
}

[class*="border-cyan-400"]:hover,
[class*="hover:border-cyan-400"]:hover,
.acrylic:hover {
    border-color: rgba(123,168,245,0.72) !important;
    box-shadow: 0 0 30px rgba(123, 168, 245, 0.15);
}

[class*="rounded-[2.5rem]"],
[class*="rounded-[28px]"],
.rounded-2xl {
    border-radius: 12px !important;
}

.text-cyan-400,
.text-\[\#C1FF72\],
.text-\[\#7BA8F5\] {
    color: var(--ru-accent) !important;
}

.bg-cyan-500,
.bg-\[\#C1FF72\],
.bg-\[\#7BA8F5\] {
    background-color: var(--ru-white) !important;
    color: var(--on-accent) !important;
}

.btn-primary,
.inst-btn-primary {
    background: var(--ru-white) !important;
    color: var(--on-accent) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 9999px !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,.35) !important;
}

.btn-primary:hover,
.inst-btn-primary:hover {
    background: #cccccc !important;
    color: var(--on-accent) !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,.5) !important;
}
