/* ==========================================================================
   ForgeBI Core Design System & CSS Reset
   ========================================================================== */

/* Design Tokens (CSS Custom Properties) */
:root {
    /* Color Palette - Beige Theme with Premium Gold Accent */
    --color-bg-primary: #FAF8F5;       /* Warm beige-white */
    --color-bg-secondary: #F3EFEA;     /* Slightly darker warm beige */
    --color-bg-contrast: #110F0C;      /* Deep off-black with warm hue */
    --color-bg-contrast-light: #1C1814;/* Highlighted dark panels */
    
    --color-accent-gold: #C8A04D;      /* Premium satin gold */
    --color-accent-gold-hover: #B58E3B;/* Hover gold shade */
    --color-accent-gold-rgba: rgba(200, 160, 77, 0.15);
    
    --color-text-primary: #1A1612;     /* Warm charcoal off-black */
    --color-text-secondary: #6E655B;   /* Warm medium charcoal */
    --color-text-muted: #9E958C;       /* Soft grey-beige */
    --color-text-light: #FAF8F5;       /* Text for dark backgrounds */
    
    --color-border-light: rgba(200, 160, 77, 0.12);
    --color-border-contrast: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --max-width-container: 1200px;
    --navbar-height: 80px;
    
    /* Animation Speeds */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-size: 3.5rem; letter-spacing: -0.03em; }
h2 { font-size: 2.75rem; letter-spacing: -0.02em; }
h3 { font-size: 2rem; letter-spacing: -0.01em; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

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

ul {
    list-style: none;
}

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

/* Common Layout Components */
.container {
    width: 100%;
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-gold {
    background-color: var(--color-accent-gold);
    color: var(--color-bg-contrast);
    box-shadow: 0 4px 14px rgba(200, 160, 77, 0.25);
}

.btn-gold:hover {
    background-color: var(--color-accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 160, 77, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-text-primary);
}

.btn-secondary:hover {
    background-color: rgba(26, 22, 18, 0.04);
    transform: translateY(-2px);
}

.btn-secondary-light {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid rgba(250, 248, 245, 0.3);
}

.btn-secondary-light:hover {
    background-color: rgba(250, 248, 245, 0.08);
    border-color: var(--color-text-light);
    transform: translateY(-2px);
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(253, 251, 247, 0.88);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    box-shadow: 0 10px 30px -15px rgba(26, 22, 18, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.glass-card:hover {
    border-color: rgba(200, 160, 77, 0.3);
}

/* Common Section Layouts */
section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4.5rem;
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-gold);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.section-tag-light {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-gold);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.section-title {
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.15rem;
}

.text-center {
    text-align: center;
}

/* Utility Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Responsive adjustments */
@media (max-width: 992px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    section { padding: 5rem 0; }
}

@media (max-width: 576px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    .container { padding: 0 1.25rem; }
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple-span {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background-color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

