/* ============================================================
   InteriorSuite Investor Portal — Base Design System
   ============================================================ */

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

:root {
    /* Brand */
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-900: #134e4a;

    /* Neutrals */
    --bg-base: #0a0b0e;
    --bg-surface: #111318;
    --bg-card: #161b24;
    --bg-hover: #1c2333;
    --bg-border: #1e2738;

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --text-accent: #2dd4bf;

    /* Semantic */
    --green: #22c55e;
    --amber: #f59e0b;
    --red: #ef4444;
    --blue: #3b82f6;
    --purple: #a855f7;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(13, 148, 136, 0.15);

    /* Transitions */
    --trans-fast: 0.15s ease;
    --trans-base: 0.25s ease;
    --trans-slow: 0.4s ease;

    /* Typography */
    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--teal-700);
    border-radius: 3px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.375rem;
}

h4 {
    font-size: 1.125rem;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    color: var(--teal-400);
    text-decoration: none;
    transition: color var(--trans-fast);
}

a:hover {
    color: var(--teal-500);
}

/* Utility */
.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-accent {
    color: var(--text-accent) !important;
}

.text-green {
    color: var(--green) !important;
}

.text-amber {
    color: var(--amber) !important;
}

.text-red {
    color: var(--red) !important;
}

.font-display {
    font-family: var(--font-display);
}

.font-mono {
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.hidden {
    display: none !important;
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    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 countUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Glass card */
.glass {
    background: rgba(22, 27, 36, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
}

/* Section header */
.section-header {
    margin-bottom: var(--space-8);
}

.section-header .eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-500);
    margin-bottom: var(--space-2);
}

.section-header h2 {
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.section-header p {
    max-width: 600px;
    font-size: 1rem;
}

/* Teal gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-teal {
    background: rgba(13, 148, 136, 0.15);
    color: var(--teal-400);
    border: 1px solid rgba(13, 148, 136, 0.25);
}

.badge-green {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.12);
    color: var(--blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-purple {
    background: rgba(168, 85, 247, 0.12);
    color: var(--purple);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Divider */
.divider {
    height: 1px;
    background: var(--bg-border);
    margin: var(--space-6) 0;
}

/* Check / X icons */
.check {
    color: var(--green);
    font-weight: 700;
}

.cross {
    color: var(--text-muted);
}

.part {
    color: var(--amber);
}