/**
 * WB Cloud - Enterprise Design System
 * Nível: Stripe, Palantir, Cloudflare, Datadog
 * Data Center Tech / Neural Network Aesthetic
 */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* === COLOR PALETTE (Datacenter / Tech style) === */
    --color-primary: #00e19b;
    --color-primary-dim: rgba(0, 225, 155, 0.6);
    --color-primary-glow: rgba(0, 225, 155, 0.35);
    --color-primary-subtle: rgba(0, 225, 155, 0.08);

    --color-neon-green: #00e19b;
    --color-neon-green-dim: rgba(0, 225, 155, 0.6);
    --color-neon-green-glow: rgba(0, 225, 155, 0.35);
    --color-neon-green-subtle: rgba(0, 225, 155, 0.08);

    --color-bg-absolute: #0d1113;
    --color-bg-deep: #111111;
    --color-bg-surface: #1a1a1a;
    --color-bg-elevated: rgba(38, 41, 46, 0.92);
    --color-bg-card: rgba(38, 41, 46, 0.85);

    --color-metallic: #2A2F2E;
    --color-metallic-light: #374151;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-active: rgba(0, 225, 155, 0.4);

    --color-text-primary: #f1f5f9;
    --color-text-secondary: rgba(176, 186, 198, 0.9);
    --color-text-muted: rgba(148, 163, 184, 0.8);
    --color-text-accent: #00e19b;

    /* === SPACING SCALE (8px base) === */
    --space-0: 0;
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */

    /* === TYPOGRAPHY === */
    --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Orbitron', 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 2rem;       /* 32px */
    --text-4xl: 2.5rem;     /* 40px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */
    --text-7xl: 4.5rem;     /* 72px */

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --letter-spacing-tight: -0.02em;

    /* === BORDER RADIUS === */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* === SHADOWS === */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--color-primary-glow);
    --shadow-glow-strong: 0 0 50px var(--color-primary-glow);

    /* === MOTION === */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;

    /* === LAYOUT === */
    --container-max: 1280px;
    --container-narrow: 720px;
    --container-wide: 1440px;
    --grid-gap: var(--space-6);
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.container-narrow { max-width: var(--container-narrow); }
.container-wide { max-width: var(--container-wide); }

@media (min-width: 640px) {
    .container { padding-left: var(--space-6); padding-right: var(--space-6); }
}
@media (min-width: 1024px) {
    .container { padding-left: var(--space-8); padding-right: var(--space-8); }
}

/* ============================================
   BASE RESET
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background: var(--color-bg-absolute);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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");
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
}

::selection {
    background: var(--color-neon-green-subtle);
    color: var(--color-text-primary);
}

/* ============================================
   LIGHT MODE (future)
   ============================================ */
[data-theme="light"] {
    --color-bg-absolute: #f8faf9;
    --color-bg-deep: #e8f5e9;
    --color-text-primary: #0A0F0D;
    --color-text-secondary: rgba(10, 15, 13, 0.7);
    --color-border: rgba(10, 15, 13, 0.1);
}
