/* ============================================================
   FRC 8551 — Global Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
    --purple: #5D17EA;
    --purple-dark: #4711b3;
    --purple-glow: rgba(93, 23, 234, 0.18);
    --black: #0A0A0A;
    --gray-900: #111111;
    --gray-800: #1A1A1A;
    --gray-700: #252525;
    --gray-600: #333333;
    --gray-400: #666666;
    --gray-200: #AAAAAA;
    --gray-100: #DDDDDD;
    --white: #F5F5F5;

    --nav-height: 68px;

    --font-display: 'Barlow Condensed', sans-serif;
    --font-body: 'Barlow', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.05;
}

h1 {
    font-size: clamp(52px, 10vw, 120px);
}

h2 {
    font-size: clamp(36px, 6vw, 72px);
}

h3 {
    font-size: clamp(22px, 3vw, 32px);
}

h4 {
    font-size: 18px;
}

p {
    color: var(--gray-200);
    max-width: 60ch;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.2s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity 0.15s;
}

.btn:hover::after {
    opacity: 0.08;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--purple);
    color: white;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-primary:hover {
    background: var(--purple-dark);
    box-shadow: 0 0 24px var(--purple-glow);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-600);
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-outline:hover {
    border-color: var(--gray-200);
}

/* ── Navbar ── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s;
}

.nav-inner.scrolled {
    background: rgba(10, 10, 10, 0.95);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    width: 50px;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-logo-number {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.04em;
    color: var(--purple);
}

.nav-logo-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--gray-200);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-200);
    padding: 6px 14px;
    position: relative;
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--purple);
    transform: scaleX(0);
    transition: transform 0.2s var(--ease-out-expo);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.active {
    color: var(--white);
}

.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    font-size: 13px;
    padding: 9px 22px;
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.25s var(--ease-out-expo);
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--gray-900);
    border-bottom: 1px solid var(--gray-700);
    padding: 16px 0 24px;
    z-index: 999;
}

.nav-mobile-menu.open {
    display: block;
}

.nav-mobile-menu a {
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-200);
    padding: 12px 40px;
    border-bottom: 1px solid var(--gray-800);
    transition: color 0.15s, padding-left 0.2s;
}

.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
    color: var(--white);
    padding-left: 52px;
}

.nav-mobile-menu a.active {
    color: var(--purple);
}

/* ── Footer ── */
#footer {}

.footer-inner {
    background: var(--gray-900);
    border-top: 1px solid var(--gray-700);
    padding: 60px 40px 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {}

.footer-brand-image {
    width: 50px;
    margin-bottom: 4px;
}

.footer-brand-logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 36px;
    color: var(--purple);
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 4px;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.6;
    max-width: 28ch;
}

.footer-col h5 {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--gray-200);
    margin-bottom: 10px;
    transition: color 0.15s, padding-left 0.2s;
}

.footer-col a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    border-top: 1px solid var(--gray-800);
    font-size: 13px;
    color: var(--gray-400);
}

.footer-bottom-right {
    display: flex;
    gap: 20px;
}

.footer-bottom-right a {
    color: var(--gray-400);
    transition: color 0.15s;
}

.footer-bottom-right a:hover {
    color: var(--white);
}

/* ── Page wrapper (accounts for fixed nav) ── */
.page-content {
    padding-top: var(--nav-height);
}

/* ── Section utility ── */
.section {
    padding: 100px 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--purple);
}

/* ── Divider ── */
.divider {
    border: none;
    border-top: 1px solid var(--gray-800);
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-inner {
        padding: 0 20px;
    }

    .section {
        padding: 60px 20px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-inner {
        padding: 40px 20px 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}