@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700&family=Syne:wght@600;700;800&display=swap');

/* ─── DESIGN TOKENS ────────────────────────────────────────────────────────── */
:root {
    /* Colors */
    --clr-primary: #0057FF;
    --clr-primary-dark: #003DBF;
    --clr-accent: #00D4FF;
    --clr-accent-2: #A8FF3E;
    --clr-bg-deep: #070B18;
    --clr-bg-surface: #0E1425;
    --clr-bg-glass: #141929;
    
    /* Text */
    --clr-text-main: #E8ECF7;
    --clr-text-muted: #7A83A0;
    --clr-text-dim: #4A5068;
    
    /* Glassmorphism */
    --glass-fill: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-blur: blur(20px) saturate(1.8);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* Spacing & Radius */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-pill: 100px;
    
    --container-max: 1280px;
    --section-pad: 96px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--clr-bg-deep);
    color: var(--clr-text-main);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-syne {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

/* ─── LAYOUT UTILITIES ──────────────────────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-pad) 0;
}

.grid {
    display: grid;
    gap: 24px;
}

.flex {
    display: flex;
    gap: 16px;
    align-items: center;
}

.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ─── GLASSMORPHISM RECIPE ─────────────────────────────────────────────────── */
.glass {
    background: var(--glass-fill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--r-lg);
}

.glass-hover:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-5px);
}

/* ─── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--r-pill);
    font-weight: 600;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary) 0%, #2678FF 50%, var(--clr-primary) 100%);
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 24px rgba(0, 87, 255, 0.3);
}

.btn-primary:hover {
    background-position: right center;
    box-shadow: 0 0 32px rgba(0, 87, 255, 0.5);
    transform: translateY(-2px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--clr-text-main);
}

.btn-outline:hover {
    background: var(--glass-fill);
    border-color: var(--clr-accent);
}

/* ─── SHARED COMPONENTS ────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    background: rgba(0, 212, 255, 0.1);
    color: var(--clr-accent);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* ─── NAVIGATION ───────────────────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 24px 0;
}

header.scrolled {
    padding: 12px 0;
    background: rgba(7, 11, 24, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 14px;
    position: relative;
    color: var(--clr-text-muted);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--clr-accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* ─── FOOTER ───────────────────────────────────────────────────────────────── */
footer {
    background: var(--clr-bg-surface);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px;
}

.footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 24px;
    color: white;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--clr-text-muted);
}

.footer-links a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--clr-text-dim);
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --section-pad: 64px; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
}
