/* ============================================================
   FoundrIQ – Premium Design System
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
    /* Colors – Light Mode (Theme 3: Soft Light Mode + Coral) */
    --bg-primary: #f7f8fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f8;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.75);
    --text-primary: #1a1d2b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: rgba(26, 29, 43, 0.08);
    --border-glass: rgba(26, 29, 43, 0.15);

    /* Brand Colors (Coral & Soft Blue) */
    --accent-primary: #ff5e7e;
    --accent-primary-rgb: 255, 94, 126;
    --accent-secondary: #5a67ff;
    --accent-secondary-rgb: 90, 103, 255;
    --accent-tertiary: #ff8f9c;
    --accent-tertiary-rgb: 255, 143, 156;
    --accent-gradient: linear-gradient(135deg, #ff5e7e 0%, #5a67ff 100%);
    --accent-gradient-hover: linear-gradient(135deg, #ff3d63 0%, #4050ff 100%);
    --accent-glow: rgba(255, 94, 126, 0.15);
    --accent-glow-strong: rgba(255, 94, 126, 0.3);

    /* Button Tokens */
    --btn-primary-bg: var(--accent-primary);
    --btn-primary-text: #ffffff;
    --btn-primary-border: var(--accent-primary);
    --btn-primary-hover-bg: var(--accent-gradient);
    --btn-primary-hover-text: #ffffff;
    --btn-primary-hover-border: transparent;

    /* Status Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(26, 29, 43, 0.04);
    --shadow-md: 0 4px 12px rgba(26, 29, 43, 0.06);
    --shadow-lg: 0 12px 40px rgba(26, 29, 43, 0.08);
    --shadow-xl: 0 20px 60px rgba(26, 29, 43, 0.1);
    --shadow-glow: 0 0 40px rgba(255, 94, 126, 0.15);
    --shadow-card: 0 4px 24px rgba(26, 29, 43, 0.05);
    --shadow-card-hover: 0 12px 40px rgba(90, 103, 255, 0.12);

    /* Layout */
    --nav-height: 72px;
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Dark Mode (Theme 4: Matte Black + Cinematic Neon) ──── */
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    --bg-card: rgba(18, 18, 18, 0.85);
    --bg-glass: rgba(10, 10, 10, 0.6);
    --text-primary: #ededed;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(237, 237, 237, 0.08);
    /* Dark subtle border */
    --border-glass: rgba(255, 255, 255, 0.1);

    /* Brand Colors (Neon Blue -> Purple -> Pink) */
    --accent-primary: #00f0ff;
    --accent-primary-rgb: 0, 240, 255;
    --accent-secondary: #8b5cf6;
    --accent-secondary-rgb: var(--accent-secondary-rgb);
    --accent-tertiary: #ff2e93;
    --accent-tertiary-rgb: 255, 46, 147;
    --accent-gradient: linear-gradient(135deg, #00f0ff 0%, #8b5cf6 50%, #ff2e93 100%);
    --accent-gradient-hover: linear-gradient(135deg, #00d9e6 0%, #7c3aed 50%, #e6197a 100%);
    --accent-glow: rgba(0, 240, 255, 0.15);
    --accent-glow-strong: rgba(var(--accent-secondary-rgb), 0.25);

    /* Button Tokens: Matte Black + Neon glowing borders */
    --btn-primary-bg: #121212;
    --btn-primary-text: #ededed;
    --btn-primary-border: #00f0ff;
    --btn-primary-hover-bg: var(--accent-gradient);
    --btn-primary-hover-text: #ffffff;
    --btn-primary-hover-border: transparent;

    --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.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    /* Soft purple/blue glow for dark theme cards */
    --shadow-card-hover: 0 12px 40px rgba(var(--accent-secondary-rgb), 0.15);
}

/* ── Reset & Base ─────────────────────────── */
*,
*::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: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle premium noise texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.04;
}

[data-theme="dark"] body::after {
    opacity: 0.05;
    mix-blend-mode: soft-light;
}

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

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
}

ul,
ol {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navigation ───────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
}

.nav-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-search {
    position: relative;
}

.nav-search input {
    width: 200px;
    padding: 8px 16px 8px 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all var(--transition-base);
    outline: none;
}

.nav-search input:focus {
    width: 260px;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.nav-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── Theme Toggle ────────────────────────── */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ── Buttons ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 1px solid var(--btn-primary-border);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--btn-primary-hover-bg);
    color: var(--btn-primary-hover-text);
    border-color: var(--btn-primary-hover-border);
    box-shadow: 0 8px 24px var(--accent-glow-strong);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
}

.btn-ghost:hover {
    color: var(--accent-primary);
    background: var(--accent-glow);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}

/* Button ripple effect */
.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
}

.btn:active::after {
    transform: scale(2);
    opacity: 1;
    transition: 0s;
}

/* ── Hero Section ────────────────────────── */
.hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--accent-secondary-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

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

    33% {
        transform: translateY(-30px) rotate(5deg);
    }

    66% {
        transform: translateY(20px) rotate(-3deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.hero-stat .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.hero-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-smooth);
}

.hero-card:hover {
    transform: rotateY(0) rotateX(0);
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.hero-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.hero-card-score {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-primary) 0deg, var(--accent-primary) 280deg, var(--bg-tertiary) 280deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-card-score::after {
    content: '82';
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent-primary);
}

.hero-mini-chart {
    height: 80px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-bottom: 20px;
}

.hero-mini-chart .bar {
    flex: 1;
    background: var(--accent-gradient);
    border-radius: 4px 4px 0 0;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.hero-mini-chart .bar:hover {
    opacity: 1;
}

.hero-card-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hero-metric {
    background: var(--bg-tertiary);
    padding: 12px;
    border-radius: var(--radius-sm);
}

.hero-metric .metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-metric .metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 4px;
}

.hero-metric .metric-value.success {
    color: var(--success);
}

.hero-metric .metric-value.warning {
    color: var(--warning);
}

/* ── Section Helpers ─────────────────────── */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Feature Cards ───────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

/* Cursor-reactive glow overlay */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Cinematic shimmer sweep */
.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: none;
    pointer-events: none;
}

.feature-card:hover::after {
    animation: shimmer 0.8s ease-out forwards;
}

@keyframes shimmer {
    to {
        transform: translateX(100%);
    }
}

.feature-card:hover {
    box-shadow: var(--shadow-card-hover), 0 0 30px rgba(var(--accent-primary-rgb), 0.08);
    border-color: rgba(var(--accent-primary-rgb), 0.25);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-card:hover .feature-icon {
    background: var(--accent-gradient);
    transform: scale(1.15) rotate(-3deg);
    box-shadow: 0 8px 24px rgba(var(--accent-primary-rgb), 0.3);
}

.feature-card:hover .feature-icon span {
    filter: brightness(10);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color var(--transition-base);
}

.feature-card:hover h3 {
    color: var(--accent-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Problem / Solution ──────────────────── */
.problem-solution {
    background: var(--bg-tertiary);
}

.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.ps-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-card);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.ps-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(var(--accent-primary-rgb), 0.15);
}

.ps-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ps-card ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.ps-card ul li:last-child {
    border-bottom: none;
}

.ps-card ul li .icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.problem-card .icon {
    background: var(--danger-bg);
    color: var(--danger);
}

.solution-card .icon {
    background: var(--success-bg);
    color: var(--success);
}

/* ── How It Works ────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0.3;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.step-card:hover {
    transform: translateY(-6px);
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(var(--accent-primary-rgb), 0.3);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.step-card:hover .step-number {
    transform: scale(1.15);
    box-shadow: 0 8px 32px rgba(var(--accent-primary-rgb), 0.45);
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Testimonials ────────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
    transform: translateX(-100%);
    pointer-events: none;
}

.testimonial-card:hover::after {
    animation: shimmer 0.8s ease-out forwards;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(var(--accent-primary-rgb), 0.2);
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 16px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-info .name {
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-info .role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Pricing ─────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    transition: all var(--transition-smooth);
}

.pricing-card.featured {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-features li,
.pricing-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.pricing-card.featured .pricing-label {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
}

.pricing-card>p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

.pricing-card.featured .pricing-features li::before {
    color: rgba(255, 255, 255, 0.9);
}

/* ── CTA Section ─────────────────────────── */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before,
.cta-box::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.cta-box::before {
    top: -100px;
    left: -100px;
}

.cta-box::after {
    bottom: -100px;
    right: -100px;
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-box .btn {
    background: white;
    color: var(--accent-primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.cta-box .btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ── Footer ──────────────────────────────── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-2px);
}

/* ── Scroll Animations ───────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Cinematic Hover Effects ─────────────── */

/* 3D Tilt Card – reacts to cursor position via JS */
.tilt-card {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-card:hover {
    box-shadow: var(--shadow-xl), 0 0 40px rgba(var(--accent-primary-rgb), 0.1);
}

/* Magnetic hover glow – cursor-reactive spotlight */
.glow-card {
    position: relative;
    overflow: hidden;
}

.glow-card .glow-spot {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.15) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    z-index: 0;
}

.glow-card:hover .glow-spot {
    opacity: 1;
}

/* Zoom + Overlay – image zooms, glass overlay fades in */
.zoom-hover {
    overflow: hidden;
    border-radius: var(--radius-lg);
    position: relative;
}

.zoom-hover img {
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1), filter 0.7s ease;
    will-change: transform;
}

.zoom-hover:hover img {
    transform: scale(1.1);
}

.zoom-hover .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.85) 0%, rgba(var(--accent-secondary-rgb), 0.75) 100%);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    border-radius: var(--radius-lg);
    z-index: 1;
}

.zoom-hover .overlay span {
    transform: translateY(12px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
}

.zoom-hover:hover .overlay {
    opacity: 1;
}

.zoom-hover:hover .overlay span {
    transform: translateY(0);
    opacity: 1;
}

/* Blur-to-Focus – soft blur clears on hover */
.blur-hover {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.blur-hover img {
    filter: blur(3px) saturate(0.8);
    transition: filter 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.blur-hover:hover img {
    filter: blur(0) saturate(1.1);
    transform: scale(1.03);
}

/* Lift + Glow for any interactive card */
.cinematic-hover {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.cinematic-hover:hover {
    box-shadow: var(--shadow-card-hover), 0 0 0 1px rgba(var(--accent-primary-rgb), 0.1);
}

/* Border gradient glow on hover */
.border-glow {
    position: relative;
}

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

.border-glow:hover::before {
    opacity: 1;
}

/* Magnetic button – subtle pull toward cursor */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

/* Floating animation for hero elements */
@keyframes floatSmooth {

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

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

.float-anim {
    animation: floatSmooth 4s ease-in-out infinite;
}

/* Stagger delay utilities for reveal groups */
.stagger-1 {
    transition-delay: 0.05s;
}

.stagger-2 {
    transition-delay: 0.1s;
}

.stagger-3 {
    transition-delay: 0.15s;
}

.stagger-4 {
    transition-delay: 0.2s;
}

.stagger-5 {
    transition-delay: 0.25s;
}

.stagger-6 {
    transition-delay: 0.3s;
}

/* ── Mobile Nav Toggle ──────────────────── */
.mobile-toggle {
    display: none;
    width: 36px;
    height: 36px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: 1px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        display: none;
    }

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

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

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

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

    .steps-grid::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-search {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-glass);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .ps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ── Form Styles ─────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ── Auth Pages ──────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--bg-primary);
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow-strong), transparent 70%);
    border-radius: 50%;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.auth-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-card .auth-footer a {
    color: var(--accent-primary);
    font-weight: 600;
}

.auth-card .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.auth-card .error-message {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
}

.auth-card .error-message.show {
    display: block;
}

/* ── Dashboard Layout ────────────────────── */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 24px 0;
    position: fixed;
    top: var(--nav-height);
    bottom: 0;
    overflow-y: auto;
    transition: all var(--transition-base);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--accent-primary);
    background: var(--accent-glow);
    border-left-color: var(--accent-primary);
}

.dashboard-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    min-height: 100%;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

/* ── Dashboard Cards ─────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Shimmer sweep on hover */
.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
    transform: translateX(-100%);
    pointer-events: none;
}

.stat-card:hover::after {
    animation: shimmer 0.8s ease-out forwards;
}

.stat-card:hover {
    box-shadow: var(--shadow-card-hover), 0 0 30px rgba(var(--accent-primary-rgb), 0.08);
    border-color: rgba(var(--accent-primary-rgb), 0.2);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(-5deg);
}

.stat-card .stat-icon.purple {
    background: var(--accent-glow);
}

.stat-card .stat-icon.green {
    background: var(--success-bg);
}

.stat-card .stat-icon.orange {
    background: var(--warning-bg);
}

.stat-card .stat-icon.blue {
    background: var(--info-bg);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Chart Cards ─────────────────────────── */
.chart-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.chart-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(var(--accent-primary-rgb), 0.15);
}

.chart-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.chart-card canvas {
    width: 100%;
}

/* ── Risk Gauge ──────────────────────────── */
.gauge-container {
    width: 200px;
    height: 120px;
    margin: 0 auto;
    position: relative;
}

/* ── SWOT Quadrant ───────────────────────── */
.swot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.swot-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.swot-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(var(--accent-primary-rgb), 0.15);
}

.swot-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.swot-card.strengths h4 {
    color: var(--success);
}

.swot-card.weaknesses h4 {
    color: var(--danger);
}

.swot-card.opportunities h4 {
    color: var(--info);
}

.swot-card.threats h4 {
    color: var(--warning);
}

.swot-card li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.swot-card li:last-child {
    border-bottom: none;
}

/* ── Project List ────────────────────────── */
.project-list {
    margin-top: 32px;
}

.project-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.project-item:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.25);
    box-shadow: var(--shadow-card-hover);
    transform: translateX(6px);
}

.project-item .project-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.project-item .project-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-item .project-actions {
    display: flex;
    gap: 8px;
}

.project-item .score-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.score-badge.high {
    background: var(--success-bg);
    color: var(--success);
}

.score-badge.medium {
    background: var(--warning-bg);
    color: var(--warning);
}

.score-badge.low {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ── Strategy Steps ──────────────────────── */
.strategy-timeline {
    position: relative;
    padding-left: 32px;
}

.strategy-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-gradient);
    opacity: 0.3;
}

.strategy-step {
    position: relative;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.strategy-step::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 0 4px var(--bg-primary);
}

.strategy-step h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.strategy-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.strategy-step .step-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.75rem;
}

.strategy-step .step-meta span {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-weight: 600;
}

/* ── Analysis Form ───────────────────────── */
.analyze-section {
    max-width: 700px;
    margin: 0 auto;
}

.analyze-section .form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-card);
}

/* ── Loading Spinner ─────────────────────── */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    gap: 16px;
    color: white;
    font-weight: 600;
}

.loading-overlay.hidden {
    display: none;
}

/* ── Counter Animation ───────────────────── */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ── Parallax background ─────────────────── */
.parallax-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.parallax-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.parallax-bg .orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(var(--accent-primary-rgb), 0.3);
    top: -100px;
    right: -100px;
}

.parallax-bg .orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(var(--accent-secondary-rgb), 0.2);
    bottom: -50px;
    left: -50px;
}

.parallax-bg .orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(var(--accent-tertiary-rgb), 0.2);
    top: 50%;
    left: 50%;
}

/* ── Utility ─────────────────────────────── */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

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

.hidden {
    display: none !important;
}

/* ── Dashboard responsive ────────────────── */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .dashboard-main {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .swot-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}