/* ==========================================================================
   MAEL GARBE - PORTFOLIO DESIGN SYSTEM
   Premium Apple/Luxury Aesthetic
   garbewajda.com
   ========================================================================== */

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* ---- Core Palette ---- */
    --black: #000000;
    --white: #fafafa;
    --surface-0: #0a0a0a;
    --surface-1: #111111;
    --surface-2: #1a1a1a;
    --surface-3: #222222;
    --surface-4: #2a2a2a;

    /* ---- Neutral Scale ---- */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* ---- Accent Colors ---- */
    --accent: #2563eb;
    --accent-light: #3b82f6;
    --accent-dark: #1d4ed8;
    --accent-violet: #7c3aed;
    --accent-violet-light: #8b5cf6;

    /* ---- Brand Colors ---- */
    --orbitech: #06b6d4;
    --orbitech-light: #22d3ee;
    --orbitech-dark: #0891b2;
    --lbo: #f59e0b;
    --lbo-light: #fbbf24;
    --lbo-dark: #d97706;
    --lbo-red: #ef4444;

    /* ---- Gradients ---- */
    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #a855f7 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #a5b4fc 40%, #c4b5fd 70%, #e9d5ff 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(37, 99, 235, 0.12) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(124, 58, 237, 0.08) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(6, 182, 212, 0.06) 0px, transparent 50%),
                     radial-gradient(at 80% 80%, rgba(245, 158, 11, 0.04) 0px, transparent 50%);
    --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.06), transparent 40%);
    --orbitech-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --lbo-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --resources-gradient: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);

    /* ---- Typography ---- */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Responsive type scale (clamp: min, preferred, max) */
    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
    --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --text-lg: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    --text-xl: clamp(1.15rem, 1rem + 0.5vw, 1.25rem);
    --text-2xl: clamp(1.4rem, 1.2rem + 0.8vw, 1.5rem);
    --text-3xl: clamp(1.75rem, 1.4rem + 1.2vw, 2rem);
    --text-4xl: clamp(2rem, 1.5rem + 2vw, 2.75rem);
    --text-5xl: clamp(2.5rem, 1.8rem + 3vw, 3.5rem);
    --text-6xl: clamp(3rem, 2rem + 4vw, 4.5rem);
    --text-7xl: clamp(3.5rem, 2.2rem + 5vw, 6rem);

    /* ---- Spacing Scale ---- */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* ---- Layout ---- */
    --container-max: 1200px;
    --container-wide: 1400px;
    --section-padding: 120px 5%;

    /* ---- Transitions (Apple Spring Curve) ---- */
    --ease-apple: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
    --duration-slower: 0.8s;
    --duration-slowest: 1.2s;
    --transition-fast: 0.15s var(--ease-apple);
    --transition-normal: 0.3s var(--ease-apple);
    --transition-slow: 0.5s var(--ease-apple);
    --transition-slower: 0.8s var(--ease-apple);

    /* ---- Shadows (Layered Premium) ---- */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow-blue: 0 0 20px rgba(37, 99, 235, 0.15), 0 0 60px rgba(37, 99, 235, 0.08);
    --shadow-glow-violet: 0 0 20px rgba(124, 58, 237, 0.15), 0 0 60px rgba(124, 58, 237, 0.08);
    --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.15), 0 0 60px rgba(6, 182, 212, 0.08);
    --shadow-glow-amber: 0 0 20px rgba(245, 158, 11, 0.15), 0 0 60px rgba(245, 158, 11, 0.08);

    /* ---- Border Radius (Apple) ---- */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;

    /* ---- Borders ---- */
    --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
    --border-light: 1px solid rgba(255, 255, 255, 0.08);
    --border-medium: 1px solid rgba(255, 255, 255, 0.12);

    /* ---- Z-Index Scale ---- */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-overlay: 900;
    --z-modal: 1000;
    --z-cursor: 10000;
    --z-grain: 10001;
}

/* ==========================================================================
   MODERN CSS RESET
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
    hanging-punctuation: first last;
}

/* Lenis smooth scroll integration */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    background-color: var(--black);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    overflow-x: hidden;
    cursor: none;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

h1 { font-size: var(--text-6xl); font-weight: 800; }
h2 { font-size: var(--text-5xl); font-weight: 700; }
h3 { font-size: var(--text-4xl); font-weight: 700; }
h4 { font-size: var(--text-3xl); font-weight: 600; }
h5 { font-size: var(--text-2xl); font-weight: 600; }
h6 { font-size: var(--text-xl); font-weight: 600; }

p {
    text-wrap: pretty;
    max-width: 70ch;
}

a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 3px;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

textarea {
    white-space: revert;
}

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Selection */
::selection {
    background: rgba(37, 99, 235, 0.3);
    color: var(--white);
}

::-moz-selection {
    background: rgba(37, 99, 235, 0.3);
    color: var(--white);
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--surface-0);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ==========================================================================
   GRAIN TEXTURE OVERLAY
   ========================================================================== */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-grain);
}

.grain::before {
    content: '';
    position: absolute;
    inset: -200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    opacity: 0.03;
    animation: grain-drift 8s steps(10) infinite;
}

@keyframes grain-drift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: var(--z-cursor);
    transition: transform var(--duration-fast) var(--ease-apple),
                background-color var(--duration-fast) var(--ease-apple),
                border-color var(--duration-fast) var(--ease-apple),
                width var(--duration-fast) var(--ease-apple),
                height var(--duration-fast) var(--ease-apple),
                opacity var(--duration-fast) var(--ease-apple);
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    will-change: transform;
}

.cursor.active {
    transform: translate(-50%, -50%) scale(0.5);
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(37, 99, 235, 0.15);
    border-color: var(--accent);
}

.cursor.hover-orbitech {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(6, 182, 212, 0.15);
    border-color: var(--orbitech);
}

.cursor.hover-lbo {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(245, 158, 11, 0.15);
    border-color: var(--lbo);
}

.cursor.hover-resources {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

/* ==========================================================================
   PAGE LOADER
   ========================================================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s var(--ease-apple),
                visibility 0.6s var(--ease-apple);
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: var(--text-6xl);
    font-weight: 800;
    color: var(--white);
    overflow: hidden;
    letter-spacing: -0.03em;
}

.loader-bar {
    width: 100%;
    max-width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--white);
    border-radius: 2px;
    animation: loaderFill 1.6s var(--ease-apple) 0.3s forwards;
}

.loader-text span {
    display: inline-block;
    animation: slideUp 0.5s var(--ease-apple) forwards;
    opacity: 0;
    transform: translateY(100%);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-modal);
    transition: all 0.4s var(--ease-apple);
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    padding: 0.875rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Nav Container */
.nav-container {
    max-width: var(--container-wide);
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo,
.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo:hover,
.nav-logo:hover {
    opacity: 0.7;
}

/* Nav Menu (ul-based) */
.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    color: var(--gray-400);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-normal);
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.01em;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--gradient);
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-apple);
}

.nav-menu a:hover {
    color: var(--white);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-menu a.active {
    color: var(--white);
}

.nav-menu a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Backward compat: nav-links (div-based) */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--gray-400);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--transition-normal);
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--gradient);
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-apple);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a.active {
    color: var(--white);
}

.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: calc(var(--z-modal) + 1);
    padding: 8px;
    margin: -8px;
}

.menu-toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--white);
    border-radius: var(--radius-full);
    transition: all 0.4s var(--ease-apple);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   SECTION UTILITIES
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    letter-spacing: -0.03em;
}

.section-header p {
    color: var(--gray-400);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.4s var(--ease-apple);
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-200) 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(250, 250, 250, 0.15),
                0 0 60px rgba(37, 99, 235, 0.08);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.btn-ghost::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-apple);
    z-index: -1;
}

.btn-ghost:hover {
    color: var(--black);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-ghost:hover::before {
    transform: scaleX(1);
}

.btn-ghost:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-gradient {
    background: var(--gradient);
    color: white;
    border: none;
}

.btn-gradient:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25),
                0 0 60px rgba(124, 58, 237, 0.12);
}

.btn-gradient:active {
    transform: translateY(0) scale(0.98);
}

/* Magnetic class (JS-driven) */
.magnetic {
    transition: transform 0.3s var(--ease-apple);
}

/* ==========================================================================
   BADGES
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-default {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--accent-light);
}

.badge-orbitech {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--orbitech-light);
}

.badge-lbo {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--lbo-light);
}

/* ==========================================================================
   GRADIENT TEXT
   ========================================================================== */
.gradient-text,
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-orbitech {
    background: var(--orbitech-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-lbo {
    background: var(--lbo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-resources {
    background: var(--resources-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   MARQUEE COMPONENT
   ========================================================================== */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: var(--space-6) 0;
}

.marquee::before,
.marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--black), transparent);
}

.marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--black), transparent);
}

.marquee-track {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    padding: 0 var(--space-8);
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-600);
    transition: color var(--transition-normal);
    flex-shrink: 0;
}

.marquee-item::after {
    content: '\2726';
    color: var(--gray-700);
    font-size: var(--text-lg);
}

.marquee-item:hover {
    color: var(--white);
}

/* ==========================================================================
   BENTO GRID
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: var(--container-max);
    margin: 0 auto;
}

.bento-card {
    position: relative;
    background: var(--surface-1);
    border: var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    overflow: hidden;
    transition: transform 0.5s var(--ease-apple),
                border-color 0.4s var(--ease-apple);
    cursor: pointer;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                rgba(255, 255, 255, 0.04), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-apple);
    pointer-events: none;
    border-radius: inherit;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.bento-card:hover::before {
    opacity: 1;
}

/* Bento card spanning */
.bento-card--wide {
    grid-column: span 2;
}

.bento-card--tall {
    grid-row: span 2;
}

.bento-card--hero {
    grid-column: span 2;
    grid-row: span 2;
}

/* Brand accent variants */
.bento-card--orbitech {
    border-color: rgba(6, 182, 212, 0.12);
}

.bento-card--orbitech::before {
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                rgba(6, 182, 212, 0.06), transparent 40%);
}

.bento-card--orbitech:hover {
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: var(--shadow-glow-cyan);
}

.bento-card--lbo {
    border-color: rgba(245, 158, 11, 0.12);
}

.bento-card--lbo::before {
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                rgba(245, 158, 11, 0.06), transparent 40%);
}

.bento-card--lbo:hover {
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: var(--shadow-glow-amber);
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-6xl);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-top: var(--space-2);
}

/* ==========================================================================
   GLASS MORPHISM
   ========================================================================== */
.glass {
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: var(--border-subtle);
    border-radius: var(--radius-xl);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: saturate(200%) blur(40px);
    backdrop-filter: saturate(200%) blur(40px);
    border: var(--border-light);
    border-radius: var(--radius-xl);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    padding: var(--space-16) 5% var(--space-8);
    background: var(--black);
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.45);
    font-size: var(--text-sm);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
    transition: color var(--transition-normal),
                transform var(--transition-normal);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: var(--text-xs);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--surface-2);
    border: var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.4s var(--ease-apple);
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-blue);
}

/* ==========================================================================
   SCROLL REVEAL SYSTEM
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    filter: blur(4px);
    transition: opacity 0.8s var(--ease-apple),
                transform 0.8s var(--ease-apple),
                filter 0.8s var(--ease-apple);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Direction variants */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    filter: blur(4px);
    transition: opacity 0.8s var(--ease-apple),
                transform 0.8s var(--ease-apple),
                filter 0.8s var(--ease-apple);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    filter: blur(4px);
    transition: opacity 0.8s var(--ease-apple),
                transform 0.8s var(--ease-apple),
                filter 0.8s var(--ease-apple);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(4px);
    transition: opacity 0.8s var(--ease-apple),
                transform 0.8s var(--ease-apple),
                filter 0.8s var(--ease-apple);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: var(--delay, 0.05s); }
.stagger > *:nth-child(2) { transition-delay: calc(var(--delay, 0.05s) * 2); }
.stagger > *:nth-child(3) { transition-delay: calc(var(--delay, 0.05s) * 3); }
.stagger > *:nth-child(4) { transition-delay: calc(var(--delay, 0.05s) * 4); }
.stagger > *:nth-child(5) { transition-delay: calc(var(--delay, 0.05s) * 5); }
.stagger > *:nth-child(6) { transition-delay: calc(var(--delay, 0.05s) * 6); }
.stagger > *:nth-child(7) { transition-delay: calc(var(--delay, 0.05s) * 7); }
.stagger > *:nth-child(8) { transition-delay: calc(var(--delay, 0.05s) * 8); }
.stagger > *:nth-child(9) { transition-delay: calc(var(--delay, 0.05s) * 9); }
.stagger > *:nth-child(10) { transition-delay: calc(var(--delay, 0.05s) * 10); }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes blurIn {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loaderFill {
    to {
        width: 100%;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.4);
    }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-15deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================================================
   DARK MODE TOGGLE
   ========================================================================== */
.dark-mode-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--surface-2);
    border: var(--border-subtle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s var(--ease-apple);
    z-index: 999;
    -webkit-tap-highlight-color: transparent;
}

.dark-mode-toggle:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.12);
}

.dark-mode-toggle .icon-sun,
.dark-mode-toggle .icon-moon {
    position: absolute;
    transition: all 0.4s var(--ease-apple);
}

.dark-mode-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.dark-mode-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ==========================================================================
   DARK MODE (data-theme="dark") — TRUE BLACK
   ========================================================================== */
[data-theme="dark"] {
    --black: #000000;
    --white: #fafafa;
    --surface-0: #0a0a0a;
    --surface-1: #111111;
    --surface-2: #1a1a1a;
    --surface-3: #222222;
    --surface-4: #2a2a2a;
    /* Gray scale INVERTED for dark mode */
    --gray-50: #171717;
    --gray-100: #262626;
    --gray-200: #404040;
    --gray-300: #525252;
    --gray-400: #737373;
    --gray-500: #a3a3a3;
    --gray-600: #d4d4d4;
    --gray-700: #e5e5e5;
    --gray-800: #f5f5f5;
    --gray-900: #fafafa;
}

[data-theme="dark"] body {
    background-color: #000000;
    color: #fafafa;
}

[data-theme="dark"] .dark-mode-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .dark-mode-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .gradient-text,
[data-theme="dark"] .text-gradient {
    text-shadow: 0 0 30px rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .gradient-text-orbitech {
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.15);
}

[data-theme="dark"] .gradient-text-lbo {
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

[data-theme="dark"] .bento-card {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .btn-primary {
    box-shadow: 0 0 30px rgba(250, 250, 250, 0.05);
}

[data-theme="dark"] nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .cursor {
    border-color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .cursor.hover {
    border-color: var(--accent);
    background-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .loader {
    background: #000000;
}

[data-theme="dark"] .loader-text {
    color: #fafafa;
}

/* Light mode overrides */
[data-theme="light"] {
    --black: #ffffff;
    --white: #171717;
    --surface-0: #ffffff;
    --surface-1: #f5f5f5;
    --surface-2: #e5e5e5;
    --surface-3: #d4d4d4;
    --surface-4: #c4c4c4;
    --border-subtle: 1px solid rgba(0, 0, 0, 0.06);
    --border-light: 1px solid rgba(0, 0, 0, 0.08);
    --border-medium: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] body {
    background-color: #ffffff;
    color: #171717;
}

[data-theme="light"] nav.scrolled {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .cursor {
    border-color: rgba(0, 0, 0, 0.4);
    mix-blend-mode: normal;
}

[data-theme="light"] .menu-toggle span {
    background: var(--white);
}

[data-theme="light"] .bento-card {
    border-color: rgba(0, 0, 0, 0.06);
    background: var(--surface-1);
}

[data-theme="light"] .marquee::before {
    background: linear-gradient(to right, #ffffff, transparent);
}

[data-theme="light"] .marquee::after {
    background: linear-gradient(to left, #ffffff, transparent);
}

[data-theme="light"] .loader {
    background: #ffffff;
}

[data-theme="light"] .loader-text {
    color: #171717;
}

[data-theme="light"] .dark-mode-toggle {
    background: var(--surface-1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-social a {
    background: var(--surface-1);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] footer {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .glass {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .stat-number {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ==========================================================================
   MOBILE BOTTOM NAV
   ========================================================================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-modal);
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-2) 0;
    padding-bottom: max(var(--space-2), env(safe-area-inset-bottom));
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-2) var(--space-3);
    color: var(--gray-500);
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-normal);
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i,
.mobile-nav-item svg {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.mobile-nav-item.active {
    color: var(--accent-light);
}

.mobile-nav-item:active {
    transform: scale(0.9);
}

[data-theme="light"] .mobile-nav {
    background: rgba(255, 255, 255, 0.72);
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   RESPONSIVE - TABLET (1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 5%;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card--hero {
        grid-column: span 2;
        grid-row: span 1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE (768px)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 5%;
    }

    /* Disable custom cursor on mobile */
    body {
        cursor: auto;
    }

    .cursor {
        display: none !important;
    }

    /* Navigation Mobile */
    nav {
        padding: 1rem 5%;
    }

    nav.scrolled {
        padding: 0.75rem 5%;
    }

    .logo,
    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-links,
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--black);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-8);
        transition: right 0.5s var(--ease-apple);
        padding: var(--space-8);
        z-index: var(--z-modal);
    }

    .nav-links.active,
    .nav-menu.active {
        right: 0;
    }

    .nav-links a,
    .nav-menu a {
        font-size: var(--text-3xl);
        font-weight: 600;
        padding: var(--space-2) 0;
        color: var(--white);
    }

    .menu-toggle {
        display: flex;
    }

    /* Section headers */
    .section-header {
        margin-bottom: var(--space-10);
    }

    .section-header p {
        font-size: var(--text-base);
    }

    /* Buttons - Touch friendly */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: var(--text-sm);
        min-height: 48px;
        justify-content: center;
    }

    /* Bento grid stacks */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card--wide,
    .bento-card--hero {
        grid-column: span 1;
    }

    /* Stats */
    .stat-number {
        font-size: var(--text-5xl);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-links {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-social a {
        width: 44px;
        height: 44px;
    }

    /* Mobile bottom nav */
    .mobile-nav {
        display: block;
    }

    /* Dark mode toggle repositioned */
    .dark-mode-toggle {
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    /* Loader */
    .loader-text {
        font-size: var(--text-4xl);
    }

    /* Marquee */
    .marquee-item {
        font-size: var(--text-2xl);
    }
}

/* ==========================================================================
   RESPONSIVE - SMALL MOBILE (480px)
   ========================================================================== */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px 4%;
    }

    nav {
        padding: 0.875rem 4%;
    }

    .nav-links a,
    .nav-menu a {
        font-size: var(--text-2xl);
    }

    .btn {
        width: 100%;
        padding: 1rem;
    }

    .footer-brand h3 {
        font-size: var(--text-xl);
    }

    .footer-brand p,
    .footer-links a {
        font-size: var(--text-sm);
    }

    .marquee-item {
        font-size: var(--text-xl);
        gap: var(--space-4);
        padding: 0 var(--space-4);
    }
}

/* ==========================================================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    .cursor {
        display: none !important;
    }

    body {
        cursor: auto;
    }

    /* Larger tap targets */
    .btn {
        min-height: 48px;
    }

    .nav-links a,
    .nav-menu a {
        padding: 0.75rem 0;
    }

    .footer-social a {
        width: 48px;
        height: 48px;
    }

    /* Disable hover transforms on touch */
    .btn:hover {
        transform: none;
    }

    .btn-ghost:hover::before {
        transform: scaleX(0);
    }

    .btn-ghost:hover {
        color: var(--white);
    }

    .footer-social a:hover {
        transform: none;
    }

    .bento-card:hover {
        transform: none;
    }

    .footer-links a:hover {
        transform: none;
    }
}

/* ==========================================================================
   SAFE AREA INSETS (Notched phones)
   ========================================================================== */
@supports (padding: max(0px)) {
    nav {
        padding-left: max(5%, env(safe-area-inset-left));
        padding-right: max(5%, env(safe-area-inset-right));
    }

    footer {
        padding-bottom: max(var(--space-8), env(safe-area-inset-bottom));
    }

    .nav-links,
    .nav-menu {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-nav {
        padding-bottom: max(var(--space-2), env(safe-area-inset-bottom));
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        filter: none;
    }

    html {
        scroll-behavior: auto;
    }

    .grain::before {
        animation: none;
    }

    .marquee-track {
        animation: none;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* ---- Container ---- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 5%;
}

/* ---- Typography ---- */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }
.text-7xl { font-size: var(--text-7xl); }

.font-body { font-family: var(--font-body); }
.font-heading { font-family: var(--font-heading); }
.font-mono { font-family: var(--font-mono); }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.75; }

.tracking-tight { letter-spacing: -0.02em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.04em; }
.tracking-wider { letter-spacing: 0.1em; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }

.text-muted { color: var(--gray-500); }
.text-subtle { color: var(--gray-400); }
.text-accent { color: var(--accent-light); }

/* ---- Spacing ---- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

/* ---- Flexbox ---- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* ---- Grid ---- */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.place-items-center { place-items: center; }

/* ---- Gap ---- */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* ---- Width / Height ---- */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; min-height: 100dvh; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

/* ---- Display ---- */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* ---- Overflow ---- */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* ---- Position ---- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }

/* ---- Border Radius ---- */
.rounded { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ---- Shadows ---- */
.shadow { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* ---- Opacity ---- */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ---- Pointer events ---- */
.pointer-events-none { pointer-events: none; }

/* ---- Transition ---- */
.transition-all { transition: all var(--transition-normal); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }

/* ---- Responsive Grid ---- */
@media (max-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-1 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .md\:grid-cols-1 { grid-template-columns: 1fr; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:flex-col { flex-direction: column; }
    .md\:text-center { text-align: center; }
    .md\:w-full { width: 100%; }
    .md\:hidden { display: none; }
}

@media (max-width: 480px) {
    .sm\:grid-cols-1 { grid-template-columns: 1fr; }
    .sm\:hidden { display: none; }
    .sm\:text-sm { font-size: var(--text-sm); }
}

/* ---- Visual / Decorative ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Divider line */
.divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
}

[data-theme="light"] .divider {
    background: rgba(0, 0, 0, 0.06);
}
