/* ================= GLOBAL ================= */
* {
    box-sizing: border-box;
}

body {
    background-color: #080808;
    color: #fff;
    overflow-x: hidden;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px; /* base = 1rem */
    line-height: 1.6;
}

/* Minimum readable font sizes — only on actual text containers */
p, li, label, td, th {
    font-size: max(0.9375rem, 1em); /* min 15px — never render body text below 15px */
}

body.overflow-hidden {
    overflow: hidden !important;
}

/* ================= BACKGROUND ================= */
.fixed-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -50;
    pointer-events: none;
    overflow: hidden;
    background-color: #080808;
}

/* Aurora — top-center light source */
.bg-aurora {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 130%;
    height: 70vh;
    background: radial-gradient(
        ellipse 75% 60% at 50% 0%,
        rgba(34,211,238,0.20) 0%,
        rgba(99,102,241,0.10) 40%,
        transparent 70%
    );
    filter: blur(50px);
    pointer-events: none;
}

/* Floating glow orbs */
.background-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 22s ease-in-out infinite;
    pointer-events: none;
}

.background-glow:nth-child(2) {
    width: 700px;
    height: 700px;
    top: -15%;
    left: -5%;
    background: radial-gradient(circle, rgba(34,211,238,0.05) 0%, transparent 70%);
    animation-duration: 22s;
}

.background-glow:nth-child(3) {
    width: 600px;
    height: 600px;
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 70%);
    animation-duration: 28s;
    animation-delay: -8s;
}

.background-glow:nth-child(4) {
    width: 500px;
    height: 500px;
    top: 40%;
    left: 35%;
    background: radial-gradient(circle, rgba(34,211,238,0.03) 0%, transparent 70%);
    animation-duration: 34s;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33%       { transform: translate(40px, 60px); }
    66%       { transform: translate(-25px, 30px); }
}

/* Diagonal sweep lines */
.background-line {
    position: absolute;
    width: 220%;
    height: 1px;
    left: -60%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    animation: slide linear infinite;
}

.background-line.slow   { top: 25%; animation-duration: 20s; opacity: 1; }
.background-line.medium { top: 55%; animation-duration: 14s; opacity: 0.85; }
.background-line.fast   { top: 78%; animation-duration: 10s; opacity: 0.6; }

@keyframes slide {
    from { transform: translateX(-100%) rotate(var(--angle)); }
    to   { transform: translateX(100%)  rotate(var(--angle)); }
}

/* Film grain overlay */
.bg-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.045;
}

/* ================= NAVIGATION ================= */
nav.site-nav {
    transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

nav.site-nav.nav-scrolled {
    background-color: rgba(8,8,8,0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

/* ================= SURFACE CARDS ================= */
.surface-card {
    background: #111111;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.3s ease;
}

.surface-card:hover {
    border-color: rgba(255,255,255,0.12);
}

/* Keep glass-panel for modals and Nav — but simplified */
.glass-panel {
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.glass-panel:hover {
    border-color: rgba(255,255,255,0.14);
}

.glass-static:hover {
    background: rgba(17,17,17,0.85) !important;
    transform: none !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
}

/* ================= SCROLL REVEAL ================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ================= HERO ENTRANCE ================= */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

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

/* ================= CHART ANIMATIONS (Hero Mockup) ================= */
.chart-draw-intense {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation: drawLineIntense 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawLineIntense {
    to { stroke-dashoffset: 0; }
}

.signal-pop {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Ticker price flash */
@keyframes flashGreenText {
    0%   { color: #4ade80; }
    100% { color: white; }
}
@keyframes flashRedText {
    0%   { color: #f87171; }
    100% { color: white; }
}
.text-flash-green { animation: flashGreenText 0.8s ease-out; }
.text-flash-red   { animation: flashRedText 0.8s ease-out; }

/* Scan line on mockup */
@keyframes scan {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* ================= BUTTONS ================= */
.btn-primary {
    background: #22D3EE;
    color: #080808;
    font-weight: 700;
    border-radius: 6px;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 0 2px rgba(34,211,238,0.45), 0 0 20px rgba(34,211,238,0.2);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
    border-color: rgba(34,211,238,0.5);
    color: #22D3EE;
}

/* ================= FORMS ================= */
.modern-input {
    background: rgba(8,8,8,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modern-input:focus {
    border-color: #22D3EE;
    box-shadow: 0 0 0 3px rgba(34,211,238,0.12);
    outline: none;
    background: rgba(8,8,8,1);
}

/* ================= MISC ================= */
.dropdown-animate {
    animation: fadeInDown 0.18s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

.legal-scroll::-webkit-scrollbar { width: 6px; }
.legal-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
.legal-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.legal-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* ================= SWIPER / TESTIMONIALS ================= */
.swiper { width: 100%; overflow: visible !important; }

.testimonial-carousel-container {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 80px 0;
    margin-top: -60px;
    margin-bottom: -60px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
    min-height: 400px;
}

.testimonial-carousel-container.ready {
    opacity: 1;
    visibility: visible;
}

.swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    width: 10000px;
}

.swiper:not(.swiper-initialized) .swiper-slide { width: 33.333% !important; flex-shrink: 0 !important; }
.swiper-wrapper { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

.swiper-slide {
    height: auto !important;
    opacity: 0.15;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.82);
    filter: blur(6px);
    pointer-events: none;
    padding: 20px;
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1.06) translateY(-10px);
    filter: blur(0);
    z-index: 10;
    pointer-events: auto;
}

.swiper-slide-prev,
.swiper-slide-next {
    opacity: 0.65;
    transform: scale(0.96);
    filter: blur(0);
    pointer-events: auto;
}

/* ================= BUSINESS WIRE ================= */
.business-wire {
    position: absolute;
    top: -48px;
    left: 40px;
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 100%);
    z-index: 0;
}

.business-wire::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px;
    width: 5px; height: 5px;
    background: #22D3EE;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34,211,238,0.6);
}
