/* 
   AA Plus - Premium Regulatory Intelligence 
   Theme: Midnight Aurora (Refined)
*/

:root {
    /* Core Palette - Deep Space & Neon */
    --color-bg: #0A0A0F;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.07);
    --color-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --color-text-main: #FFFFFF;
    --color-text-muted: #94A3B8;
    --color-text-dim: #64748B;

    /* Accents - High Luminosity for Dark Mode */
    --color-primary: #A78BFA;
    /* Lighter Violet */
    --color-secondary: #60A5FA;
    /* Lighter Blue */
    --color-accent-cyan: #22D3EE;
    /* Cyan */
    --color-accent-pink: #F472B6;
    /* Pink */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    --gradient-glow: linear-gradient(135deg, #60A5FA 0%, #A78BFA 50%, #F472B6 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 90px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Aurora Background Effect */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.12), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.12), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.08), transparent 40%);
    pointer-events: none;
}

.aurora-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-1%, -1%);
    }

    20% {
        transform: translate(1%, 1%);
    }

    30% {
        transform: translate(-2%, 2%);
    }

    40% {
        transform: translate(-1%, 3%);
    }

    50% {
        transform: translate(-1%, 1%);
    }

    60% {
        transform: translate(3%, 1%);
    }

    70% {
        transform: translate(0, 2%);
    }

    80% {
        transform: translate(-3%, -1%);
    }

    90% {
        transform: translate(2%, 1%);
    }
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    position: fixed;
    /* Fixed for sticky glass effect */
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 60px;
    /* Updated size */
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensure visibility on dark theme */
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 3.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-glow);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.gradient-text {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    background: var(--color-text-main);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    /* Gentle glass */
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    box-shadow: none;
    margin-left: 1rem;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Sections */
/* HERO PRODUCT SHOWCASE */
.hero {
    padding-top: 10rem;
    padding-bottom: 8rem;
    min-height: 100vh;
    /* Full viewport height for impact */
    display: flex;
    flex-direction: column;
    justify-content: center;
    perspective: 1000px;
    /* Enable 3D space */
    overflow-x: hidden;
    /* Prevent horizontal overflow from 3D elements */
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
    /* Ensure text is above any visual elements */
}

/* 3D Visual Container */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.visual-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    /* The magic 3D transform */
    transform: rotateY(-12deg) rotateX(5deg) rotateZ(2deg);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    /* For smooth mouse parallax */
    animation: float 6s ease-in-out infinite;
}

.hero-dashboard {
    width: 100%;
    border-radius: 20px;
    box-shadow:
        -20px 20px 60px rgba(0, 0, 0, 0.5),
        /* Deep shadow */
        0 0 0 1px rgba(255, 255, 255, 0.1);
    /* Thin border */
    position: relative;
    z-index: 2;
}

/* Glow Orb behind the dashboard */
.glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--gradient-glow);
    filter: blur(80px);
    /* Massive blur for nebula effect */
    opacity: 0.4;
    z-index: 1;
    animation: glow-pulse 4s ease-in-out infinite alternate;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: rotateY(-12deg) rotateX(5deg) rotateZ(2deg) translateY(0px);
    }

    50% {
        transform: rotateY(-12deg) rotateX(5deg) rotateZ(2deg) translateY(-20px);
    }
}

@keyframes glow-pulse {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Stat Strip Adjustment */
.stat-strip {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 0;
    border-top: none;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    padding: 1.5rem 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-box h4 {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property */
    -webkit-text-fill-color: transparent;
}


/* ... (Existing Components) ... */

/* Feature Grid & Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    /* Subtle purple tint */
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 1.75rem;
    color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.05);
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover .card-icon {
    background: var(--gradient-glow);
    color: white;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
    border-color: transparent;
}

/* ... (Rest of styles) ... */

/* Responsive */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
        max-width: 800px;
    }

    .hero-visual {
        margin-top: 2rem;
        /* Reset 3D for simpler mobile view, or keep it subtle */
        perspective: none;
    }

    .visual-container {
        transform: rotateY(0) rotateX(0) rotateZ(0);
        /* Flat on mobile for readability */
        animation: none;
        /* Disable complex animation on mobile */
        max-width: 100%;
    }

    .stat-strip {
        justify-content: center;
    }

    .reveal-up {
        /* Center flex items in reveals if needed */
        justify-content: center;
    }
}

@media (max-width: 900px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .nav-links {
        display: none;
    }

    .stat-strip {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.75rem;
    }

    .hero {
        padding-top: 8rem;
    }
}

/* Reveal Animation */
.reveal-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-nav.open {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.mobile-nav a:hover {
    color: var(--color-text-main);
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }
}