/*
 * Sovereign Investor Core - v4 (Full Replacement Rebuild)
 * Pure Investor Pitch Deck Architecture
 */

:root {
    --inv-navy: #020617;
    --inv-navy-light: #0f172a;
    --inv-gold: #D4AF37;
    --inv-gold-bright: #F5D061;
    --inv-gold-glow: rgba(212, 175, 55, 0.4);
    --inv-gold-dim: rgba(212, 175, 55, 0.15);
    --inv-white: #ffffff;
    --inv-offwhite: #F8FAFC;
    --inv-glass-border: rgba(255, 255, 255, 0.08);
    --inv-glass-bg: rgba(255, 255, 255, 0.02);
    --inv-text-muted: #94A3B8;
    --inv-text-light: #475569;
    --inv-danger: #ef4444;
    --ease-inv: cubic-bezier(0.16, 1, 0.3, 1);
}

.inv-page-wrapper {
    background-color: var(--inv-navy);
    color: var(--inv-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Typography Base */
.inv-hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.inv-section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.inv-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--inv-gold);
    display: inline-block;
    margin-bottom: 1.5rem;
}

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

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

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

/* Sections */
.inv-section-dark {
    background: radial-gradient(circle at top right, rgba(15, 23, 42, 1), var(--inv-navy) 60%);
    color: var(--inv-white);
    padding: 10rem 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.inv-section-light {
    background: radial-gradient(circle at bottom left, #ffffff, var(--inv-offwhite) 70%);
    color: var(--inv-navy);
    padding: 10rem 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.inv-section-midnight {
    background: radial-gradient(circle at center, #111827, var(--inv-navy-light) 80%);
    color: var(--inv-white);
    padding: 10rem 0;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Gradients and Lines */
.inv-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--inv-gold-dim), transparent);
    position: relative;
    z-index: 5;
}

.inv-divider::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -100%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--inv-gold), transparent);
    filter: blur(2px);
    animation: divider-sweep 10s linear infinite;
}

@keyframes divider-sweep {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* Advanced Background Graphics */
.inv-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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: 50px 50px;
    opacity: 0.5;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.inv-glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--inv-gold-dim) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* Hero */
.inv-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    overflow: hidden;
}

.inv-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 60% 40%, rgba(212, 175, 55, 0.12), transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(15, 23, 42, 1), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Scanning Beam */
.inv-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--inv-gold), transparent);
    opacity: 0.15;
    z-index: 5;
    animation: scan-inv 8s linear infinite;
}

@keyframes scan-inv {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

/* Floating Hero Elements */
.inv-hero-floating-elements {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    pointer-events: none;
    z-index: 1;
}

.inv-hero-card-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: float-inv 6s ease-in-out infinite;
}

.inv-hero-card-float-1 {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.inv-hero-card-float-2 {
    top: 55%;
    right: 35%;
    animation-delay: -2s;
}

.inv-hero-card-float-3 {
    top: 40%;
    right: 5%;
    animation-delay: -4s;
}

@keyframes float-inv {

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

    33% {
        transform: translateY(-30px) rotate(2deg) scale(1.02);
    }

    66% {
        transform: translateY(-15px) rotate(-1deg) scale(0.98);
    }
}

/* SVG Data Lines */
.inv-hero-svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.2;
}

.inv-data-path {
    fill: none;
    stroke: var(--inv-gold);
    stroke-width: 1;
    stroke-dasharray: 5, 5;
    animation: dash-inv 20s linear infinite;
}

@keyframes dash-inv {
    to {
        stroke-dashoffset: -100;
    }
}

/* Premium Cards */
.inv-card-glass {
    background: var(--inv-glass-bg);
    border: 1px solid var(--inv-glass-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 3.5rem 3rem;
    border-radius: 12px;
    transition: all 0.6s var(--ease-inv);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Simple hover state without mouse tracking */
.inv-card-glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.inv-card-light {
    background: var(--inv-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 3.5rem 3rem;
    border-radius: 12px;
    transition: all 0.6s var(--ease-inv);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.inv-card-light:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--inv-gold-dim);
}

.inv-card-accent-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--inv-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-inv);
}

.inv-card-glass:hover .inv-card-accent-top,
.inv-card-light:hover .inv-card-accent-top {
    transform: scaleX(1);
}

/* Data / Metrics */
.inv-data-giant {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    margin-bottom: 1rem;
}

.inv-data-giant span {
    font-size: 2rem;
    color: var(--inv-gold);
    vertical-align: super;
}

.inv-data-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Icons */
.inv-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--inv-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
}

.inv-card-glass:hover .inv-icon-box,
.inv-card-light:hover .inv-icon-box {
    background: var(--inv-gold);
    color: var(--inv-white);
    transform: scale(1.1) rotate(5deg);
}

/* Custom Buttons */
.btn-inv-primary {
    background: var(--inv-gold);
    color: var(--inv-navy) !important;
    font-weight: 700;
    padding: 1.25rem 3rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    transition: all 0.4s var(--ease-inv);
    border: 1px solid var(--inv-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-inv-primary:hover {
    background: transparent;
    color: var(--inv-gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--inv-gold-dim);
}

.inv-cta-energy {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--inv-gold-dim), transparent);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: width 0.6s, height 0.6s, opacity 0.6s;
}

.btn-inv-primary:hover .inv-cta-energy {
    width: 300px;
    height: 300px;
    opacity: 0.3;
}

.btn-inv-secondary {
    background: transparent;
    color: var(--inv-white) !important;
    font-weight: 600;
    padding: 1.25rem 3rem;
    border-radius: 4px;
    transition: all 0.4s var(--ease-inv);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-inv-secondary:hover {
    border-color: var(--inv-white);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.05);
}

/* Grids and Lists */
.inv-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inv-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.inv-check-list i {
    color: var(--inv-gold);
    font-size: 1.25rem;
    margin-top: 2px;
}

.inv-check-list h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.inv-check-list p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Animations Trigger Layer */
.inv-reveal {
    opacity: 0;
    transform: translateY(40px);
}

.inv-clip-reveal {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transition: clip-path 1.5s var(--ease-inv), opacity 0.5s linear;
}

.inv-founder-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(212, 175, 55, 0.1), transparent 50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

/* Image Wrapper */
.inv-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.inv-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), transparent);
    pointer-events: none;
}

/* Progress Bars */
.inv-progress-track {
    background: rgba(255, 255, 255, 0.05);
    height: 4px;
    width: 100%;
    border-radius: 2px;
    overflow: hidden;
}

.inv-progress-fill {
    height: 100%;
    background: var(--inv-gold);
    width: 0%;
    /* Animated via JS */
}

/* Utilities */
.inv-max-700 {
    max-width: 700px;
}

.inv-max-900 {
    max-width: 900px;
}