/* 
 * Signifai Design System - Institutional Gravity 
 * v2026 - Premium Edition
 */

:root {
    /* --- Palette: Institutional Dark --- */
    --bg-deep: #030303;
    --bg-surface: #0a0a0a;
    --bg-card: rgba(15, 15, 18, 0.8);
    --bg-card-hover: rgba(25, 25, 30, 0.9);

    /* --- Palette: AI Modern (Logo Inspired) --- */
    --accent-primary: #7C3AED;
    --accent-secondary: #5B21B6;
    --accent-light: #A78BFA;
    --accent-gradient: linear-gradient(135deg, #7C3AED 0%, #4F46E5 50%, #2563EB 100%);
    --accent-gradient-subtle: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    --accent-glow: 0 0 40px rgba(124, 58, 237, 0.4);
    --accent-glow-strong: 0 0 80px rgba(124, 58, 237, 0.6);

    /* --- Palette: Financial Trust (Goldman Touch) --- */
    --gold-muted: #B8860B;
    --gold-bright: #FFD700;
    --gold-gradient: linear-gradient(135deg, #B8860B 0%, #FFD700 100%);
    --signal-red: #EF4444;
    --signal-green: #10B981;
    --signal-blue: #3B82F6;

    /* --- Typography --- */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* --- Spacing & Layout --- */
    --container-width: 1400px;
    --header-height: 80px;
    --section-padding: 120px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    /* --- Effects --- */
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.06);
    --glass-border-hover: 1px solid rgba(255, 255, 255, 0.12);
    --shadow-subtle: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 8px 32px rgba(124, 58, 237, 0.2);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: #E4E4E7;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

::selection {
    background: var(--accent-primary);
    color: white;
}

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

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

.container-sm {
    max-width: 900px;
}

.container-lg {
    max-width: 1600px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: white;
}

h1 {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
}

h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    color: #A1A1AA;
    font-size: 1.125rem;
    line-height: 1.7;
}

.lead {
    font-size: 1.375rem;
    color: #D4D4D8;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold {
    color: var(--gold-bright);
}

.text-muted {
    color: #71717A;
}

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

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--accent-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--accent-light);
    padding: 8px 0;
}

.btn-ghost:hover {
    color: white;
}

/* --- Glass Panels --- */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
}

.glass-panel:hover {
    background: var(--bg-card-hover);
    border: var(--glass-border-hover);
}

.glass-panel-glow {
    position: relative;
}

.glass-panel-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--accent-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-smooth);
}

.glass-panel-glow:hover::before {
    opacity: 0.5;
    filter: blur(20px);
}

/* --- Badges & Pills --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-light);
}

.badge-gold {
    background: rgba(184, 134, 11, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    color: var(--gold-bright);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--signal-green);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

/* --- Utility Classes --- */
.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mt-5 {
    margin-top: 48px;
}

.mt-6 {
    margin-top: 64px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.mb-5 {
    margin-bottom: 48px;
}

.mb-6 {
    margin-bottom: 64px;
}

.p-3 {
    padding: 24px;
}

.p-4 {
    padding: 32px;
}

.p-5 {
    padding: 48px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

.gap-4 {
    gap: 32px;
}

/* --- Grid System --- */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* --- Section Styling --- */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-header p {
    margin-top: 24px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 80px 0;
}