/* =====================================================
   ANAIZEL TECHNOLOGIES — DESIGN SYSTEM
   GLOBAL CSS & DESIGN TOKENS
   Inspired by Enterprise Engineering & Modern SaaS
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    /* -------------------------------------------------
       BRAND COLOR SYSTEM
       Primary Dark, Deep Navy, Primary Blue, Accents
    -------------------------------------------------- */
    --color-primary-dark: #0A1E3A;
    --color-primary-navy: #0A1E3A;
    --color-deep-navy: #102A43;
    --color-navy-surface: #0E2445;
    --color-navy-elevated: #132D54;
    --color-navy-card: rgba(14, 36, 69, 0.85);

    --color-primary-blue: #2563A6;
    --color-primary-blue-hover: #1D4ED8;
    --color-electric-blue: #3B82F6;
    --color-light-blue: #EFF6FF;
    --color-ice-blue: #E0E7FF;

    --color-accent-teal: #147C91;
    --color-accent-amber: #F59E0B;

    --color-white: #FFFFFF;
    --color-base-bg: #F8FAFC;
    --color-light-bg: #F8FAFC;
    --color-surface-soft: #F1F5F9;

    --color-ambient-blue: rgba(37, 99, 235, 0.07);
    --color-ambient-blue-soft: rgba(59, 130, 246, 0.05);
    --color-ambient-teal: rgba(20, 124, 145, 0.05);

    --color-text-primary: #0F172A;
    --color-text-secondary: #475569;
    --color-text-muted: #94A3B8;
    --color-text-inverse: #F8FAFC;
    --color-text-inverse-muted: #94A3B8;

    --color-border: #E2E8F0;
    --color-border-subtle: #EDF2F7;
    --color-border-dark: rgba(255, 255, 255, 0.12);
    --color-border-dark-hover: rgba(59, 130, 246, 0.5);

    /* -------------------------------------------------
       TYPOGRAPHY SYSTEM (Manrope + Inter)
       Responsive, Balanced & Enterprise Proportioned
    -------------------------------------------------- */
    --font-heading: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-sans: var(--font-body);

    /* Centralized Modular Typography Scale */
    --text-xs: 0.75rem;                       /* 12px */
    --text-sm: 0.84375rem;                    /* 13.5px */
    --text-base: 0.9375rem;                   /* 15px */
    --text-md: 1rem;                          /* 16px */
    --text-lg: 1.0625rem;                     /* 17px */
    --text-xl: 1.125rem;                      /* 18px */
    --text-2xl: clamp(1.1875rem, 1.4vw, 1.375rem); /* 19px - 22px */
    --text-3xl: clamp(1.375rem, 1.8vw, 1.75rem);   /* 22px - 28px */
    --text-4xl: clamp(1.625rem, 2.4vw, 2.125rem);  /* 26px - 34px */
    --text-5xl: clamp(2rem, 3.2vw, 2.75rem);       /* 32px - 44px */
    --text-hero: clamp(2.25rem, 4vw, 3.625rem);    /* 36px - 58px */

    /* -------------------------------------------------
       HEADER & NAVIGATION SPACING
    -------------------------------------------------- */
    --header-height: 88px;
    --navbar-height: 62px;
    --header-offset: clamp(10px, 1.4vw, 16px);

    /* -------------------------------------------------
       LAYOUT & SPACING
    -------------------------------------------------- */
    --container-max: 1200px;
    --container-padding: clamp(16px, 2.5vw, 28px);
    --section-spacing: clamp(54px, 6vw, 90px);
    --section-spacing-sm: clamp(32px, 3.5vw, 54px);

    /* -------------------------------------------------
       ELEVATIONS & SHADOWS
    -------------------------------------------------- */
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 24px 60px rgba(7, 26, 51, 0.14);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.25);
    --shadow-glow-teal: 0 0 30px rgba(20, 124, 145, 0.22);

    /* -------------------------------------------------
       RADIUS & TRANSITIONS
    -------------------------------------------------- */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background-color: var(--color-base-bg);
    background-image: 
        radial-gradient(circle at 10% 8%, rgba(37, 99, 235, 0.06), transparent 45%),
        radial-gradient(circle at 90% 22%, rgba(124, 58, 237, 0.035), transparent 40%),
        radial-gradient(circle at 50% 75%, rgba(59, 130, 246, 0.04), transparent 48%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    line-height: 1.62;
    font-weight: 400;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

img, svg, picture, video {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font-family: var(--font-body);
    font-size: inherit;
}

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

ul, ol {
    list-style: none;
}

/* =====================================================
   TYPOGRAPHY HIERARCHY (Confident, Modern & Enterprise)
===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--text-hero);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(26px, 2.8vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

h3 {
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 700;
    letter-spacing: -0.018em;
    line-height: 1.25;
}

h4 {
    font-size: clamp(15px, 1.3vw, 19px);
    font-weight: 600;
    letter-spacing: -0.012em;
    line-height: 1.3;
}

h5 {
    font-size: clamp(13.5px, 1vw, 15.5px);
    font-weight: 600;
    letter-spacing: -0.008em;
    line-height: 1.35;
}

p {
    font-family: var(--font-body);
    font-size: clamp(14px, 0.95vw, 15.5px);
    color: var(--color-text-secondary);
    line-height: 1.62;
    font-weight: 400;
}

p.lead {
    font-size: clamp(15.5px, 1.1vw, 18px);
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

/* =====================================================
   CONTAINER & SECTION LAYOUTS
===================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-narrow {
    max-width: 960px;
}

.container-wide {
    max-width: 1280px;
}

/* =====================================================
   PAGE HERO / HEADER (Insights & Subpages)
===================================================== */
.page-header,
.insights-hero {
    position: relative;
    padding-top: clamp(40px, 5vw, 64px);
    padding-bottom: clamp(36px, 4.5vw, 56px);
    background: 
        radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.06), transparent 42%),
        radial-gradient(circle at 15% 25%, rgba(124, 58, 237, 0.035), transparent 38%),
        var(--color-base-bg);
    border-bottom: 1px solid var(--color-border-subtle);
    width: 100%;
    overflow: hidden;
}

.page-header-content {
    max-width: 860px;
    position: relative;
    z-index: 2;
}

.page-header h1,
.insights-hero h1 {
    font-family: var(--font-heading);
    font-size: var(--text-hero);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--color-primary-dark);
    margin-bottom: 14px;
}

.page-header .lead,
.insights-hero .lead {
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    line-height: 1.65;
    color: var(--color-text-secondary);
    max-width: 680px;
}

.section {
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
    position: relative;
    background-color: #FFFFFF;
    width: 100%;
    overflow-x: clip;
}

.section-sm {
    padding-top: var(--section-spacing-sm);
    padding-bottom: var(--section-spacing-sm);
}

.section-light {
    background-color: var(--color-base-bg);
    background-image: 
        radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.045), transparent 42%),
        radial-gradient(circle at 12% 85%, rgba(124, 58, 237, 0.03), transparent 38%);
}

.section-ambient {
    background-color: var(--color-base-bg);
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.07), transparent 42%),
        radial-gradient(circle at 85% 75%, rgba(124, 58, 237, 0.04), transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(59, 130, 246, 0.04), transparent 45%);
}

.section-dark {
    background: 
        radial-gradient(circle at 80% 15%, rgba(37, 99, 235, 0.16), transparent 50%),
        radial-gradient(circle at 20% 85%, rgba(124, 58, 237, 0.1), transparent 50%),
        var(--color-primary-dark);
    color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-white);
}

.section-dark p {
    color: var(--color-text-inverse-muted);
}

.section-header {
    margin-bottom: clamp(28px, 3.5vw, 48px);
}

.section-header.text-center {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   SECTION LABELS & TAGS (Enterprise Style)
===================================================== */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-blue);
    margin-bottom: 12px;
}

.section-tag::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--color-primary-blue);
}

.section-tag-light {
    color: var(--color-electric-blue);
}

.section-tag-light::before {
    background: var(--color-electric-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.08);
    color: var(--color-primary-blue);
    border: 1px solid rgba(37, 99, 235, 0.15);
    margin-bottom: 16px;
}

.pill-badge-dark {
    background: rgba(255, 255, 255, 0.06);
    color: #93C5FD;
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

/* =====================================================
   GRID UTILITIES
===================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 3vw, 36px);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.2vw, 28px);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.8vw, 22px);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(32px, 4.5vw, 64px);
    align-items: center;
}

.split-layout.reversed {
    grid-template-columns: 1.1fr 1fr;
}

/* =====================================================
   BACKGROUND ACCENTS & GRIDS
===================================================== */
.bg-grid-subtle {
    background-image: radial-gradient(circle, rgba(37, 99, 235, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
}

.bg-grid-dark {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.glow-blue {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 70%);
}

.glow-teal {
    background: radial-gradient(circle, rgba(20, 124, 145, 0.35), transparent 70%);
}

/* =====================================================
   SCROLL REVEAL ANIMATIONS
===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Accessible 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 {
        opacity: 1 !important;
        transform: none !important;
    }
}
