/* ════════════════════════════════════════════
   re:educate — Global Design System
   ════════════════════════════════════════════ */

/* ─── FONTS ─── */
@font-face {
    font-family: 'Mersad';
    src: url('../assets/fonts/Mersad Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mersad';
    src: url('../assets/fonts/Mersad ExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mersad';
    src: url('../assets/fonts/Mersad Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mersad';
    src: url('../assets/fonts/Mersad Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mersad';
    src: url('../assets/fonts/Mersad Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mersad';
    src: url('../assets/fonts/Mersad SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mersad';
    src: url('../assets/fonts/Mersad Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mersad';
    src: url('../assets/fonts/Mersad ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mersad';
    src: url('../assets/fonts/Mersad Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

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

/* ─── TOKENS ─── */
:root {
    --bg: #04040b;
    --bg2: #07070f;
    --bg3: #0c0c18;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-h: rgba(255, 255, 255, 0.065);
    --surface-2: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 255, 255, 0.07);
    --border-h: rgba(255, 255, 255, 0.14);
    --accent: #00d47a;
    --accent-dim: rgba(0, 212, 122, 0.12);
    --accent-2: #6366f1;
    --accent-2dim: rgba(99, 102, 241, 0.12);
    --accent-3: #f472b6;
    --text: #f0f4ff;
    --text2: #94a3b8;
    --text3: #4b5563;
    --nav-h: 72px;
    --r: 16px;
    --rs: 8px;
    --rl: 24px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --t: .3s var(--ease);
    --max-w: 1240px;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

::selection {
    background: var(--accent);
    color: #000;
}

/* ─── BASE ─── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Mersad', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    text-transform: uppercase;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    border: none;
}

.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}

/* ─── TYPOGRAPHY ─── */
.grad {
    background: linear-gradient(135deg, #00d47a 0%, #818cf8 55%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grad-2 {
    background: linear-gradient(135deg, #6366f1 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grad-3 {
    background: linear-gradient(135deg, #f472b6 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── NAV ─── */
nav.main-nav {
    position: fixed;
    inset: 0 0 auto;
    height: var(--nav-h);
    z-index: 200;
    transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
    align-content: center;
}

nav.main-nav.scrolled {
    background: rgba(4, 4, 11, .92);
    backdrop-filter: blur(28px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.logo-mark {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-mark .col {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text2);
    padding: 8px 14px;
    border-radius: var(--rs);
    transition: color var(--t), background var(--t);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface);
}

.nav-links a.active {
    color: var(--accent);
    background: var(--accent-dim);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 100px;
    transition: opacity var(--t), transform var(--t), box-shadow var(--t);
}

.nav-cta:hover {
    opacity: .9;
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(0, 212, 122, .3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: var(--rs);
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--t);
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 4, 11, .97);
    backdrop-filter: blur(24px);
    padding: 24px 28px 40px;
    z-index: 199;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-size: 17px;
    font-weight: 500;
    color: var(--text2);
    padding: 14px 18px;
    border-radius: var(--rs);
    transition: color var(--t), background var(--t);
}

.mobile-nav a:hover {
    color: var(--text);
    background: var(--surface);
}

.mobile-nav a.active {
    color: var(--accent);
}

.mobile-nav .nav-cta {
    margin-top: 16px;
    justify-content: center;
}

/* ─── BUTTONS ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #000;
    font-size: 15px;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 100px;
    transition: all var(--t);
}

.btn-primary:hover {
    background: #00f090;
    box-shadow: 0 10px 40px rgba(0, 212, 122, .35);
    transform: translateY(-2px);
}

.btn-primary svg {
    transition: transform var(--t);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 100px;
    transition: all var(--t);
}

.btn-secondary:hover {
    background: var(--surface-h);
    border-color: var(--border-h);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    transition: gap var(--t);
}

.btn-ghost:hover {
    gap: 13px;
}

/* ─── BACKGROUNDS ─── */
.bg-grid {
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 52px 52px;
    position: absolute;
    inset: 0;
    opacity: .3;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
    pointer-events: none;
}

.bg-dots {
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 24px 24px;
    position: absolute;
    inset: 0;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite;
}

.o1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 212, 122, .18) 0%, transparent 70%);
    top: -300px;
    left: -180px;
    animation-duration: 15s;
}

.o2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(99, 102, 241, .2) 0%, transparent 70%);
    top: 60px;
    right: -150px;
    animation-duration: 18s;
    animation-delay: -6s;
}

.o3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 122, .1) 0%, transparent 70%);
    bottom: -100px;
    left: 40%;
    animation-duration: 11s;
    animation-delay: -4s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -40px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 25px) scale(.95);
    }
}

/* ─── SECTION HEADERS ─── */
.sec-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.sec-eyebrow::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.sec-title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.sec-desc {
    font-size: 17px;
    color: var(--text2);
    line-height: 1.75;
    max-width: 560px;
}

/* ─── BADGES ─── */
.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

.b-green {
    background: rgba(0, 212, 122, .15);
    color: #00d47a;
}

.b-blue {
    background: rgba(14, 165, 233, .15);
    color: #38bdf8;
}

.b-purple {
    background: rgba(167, 139, 250, .15);
    color: #a78bfa;
}

.b-orange {
    background: rgba(251, 146, 60, .15);
    color: #fb923c;
}

.b-pink {
    background: rgba(244, 114, 182, .15);
    color: #f472b6;
}

/* ─── FOOTER ─── */
footer.site-footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 36px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 52px;
}

.footer-brand .logo-mark {
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text2);
    font-size: 14px;
    line-height: 1.8;
    max-width: 300px;
    margin-bottom: 24px;
}

.socials {
    display: flex;
    gap: 10px;
}

.soc {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
}

.soc:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text2);
    transition: color var(--t);
}

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

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 13px;
    color: var(--text3);
}

.footer-tagline {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -.3px;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .wrap {
        padding: 0 20px;
    }
}