/* ══════════════════════════════════════════════════════════════
   BASE STYLES - ClaudeBlox
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #030303;
    --surface: #0a0a0a;
    --elevated: #111111;
    --card: #0d0d0d;
    --accent: #00ff88;
    --accent-secondary: #00d4ff;
    --accent-dim: rgba(0, 255, 136, 0.1);
    --accent-glow: rgba(0, 255, 136, 0.4);
    --white: #ffffff;
    --gray-50: rgba(255,255,255,0.95);
    --gray-100: rgba(255,255,255,0.85);
    --gray-200: rgba(255,255,255,0.6);
    --gray-300: rgba(255,255,255,0.4);
    --gray-400: rgba(255,255,255,0.2);
    --gray-500: rgba(255,255,255,0.1);
    --gray-600: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.08);
    --border-light: rgba(255,255,255,0.12);
    --gradient-border: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 212, 255, 0.1), rgba(255, 255, 255, 0.05));
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    max-width: 100vw;
}

/* Subtle noise overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' 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");
    opacity: 0.015;
    pointer-events: none;
    z-index: 10000;
}

/* Global glow effect */
.glow {
    position: fixed;
    width: 1000px;
    height: 1000px;
    top: -400px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 255, 136, 0.08) 0%, transparent 50%);
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

/* Grid background - double layer */
.grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 30px 30px, 30px 30px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 20%, black, transparent);
}

/* ══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent {
    color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent);
    color: var(--bg);
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 40px rgba(0, 255, 136, 0.5),
        0 10px 40px rgba(0, 255, 136, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--white);
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gray-300);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   CARDS - Premium glassmorphism
   ══════════════════════════════════════════════════════════════ */

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 255, 136, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   SECTION STYLES
   ══════════════════════════════════════════════════════════════ */

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-200);
    max-width: 600px;
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════════ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ══════════════════════════════════════════════════════════════
   PRELOADER - Geometric Animation
   ══════════════════════════════════════════════════════════════ */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* Content wrapper for text */
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

/* Geometric loader */
.preloader-geo {
    position: relative;
    width: 100px;
    height: 100px;
}

.preloader-ring {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: preloader-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.preloader-ring:nth-child(1) {
    inset: 0;
    animation-delay: -0.45s;
}

.preloader-ring:nth-child(2) {
    inset: 10px;
    border-top-color: rgba(0, 255, 136, 0.6);
    animation-delay: -0.3s;
}

.preloader-ring:nth-child(3) {
    inset: 20px;
    border-top-color: rgba(0, 255, 136, 0.3);
    animation-delay: -0.15s;
}

@keyframes preloader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Center dot */
.preloader-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent);
    animation: preloader-dot-pulse 1s ease-in-out infinite;
}

@keyframes preloader-dot-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.5; }
}

/* Brand */
.preloader-brand {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
}

/* Text */
.preloader-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: 1px;
}

/* Hide content until loaded */
body:not(.loaded) {
    overflow: hidden;
}
