:root {
    --bg-base: #0a0510;
    --text-primary: #ffffff;
    --text-secondary: #a8a0b5;
    --accent-main: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.4);
    --accent-secondary: #ec4899;
    --glass-bg: rgba(20, 15, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Mesh Background & Overlays */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    background: radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.12), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.12), transparent 30%),
        radial-gradient(circle at 60% 40%, rgba(14, 165, 233, 0.08), transparent 40%);
    filter: blur(80px);
    animation: meshShift 25s ease-in-out infinite alternate;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    /* Let noise sit slightly above background but not block clicks */
    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.05"/%3E%3C/svg%3E');
    pointer-events: none;
    opacity: 0.6;
}

@keyframes meshShift {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(2%, 2%);
    }

    100% {
        transform: scale(1) translate(-2%, -2%);
    }
}

/* Typography & Core */
h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.1;
}

h1 {
    font-size: 4.5rem;
    letter-spacing: -2px;
}

h2 {
    font-size: 3rem;
    letter-spacing: -1px;
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--accent-main);
}

.gradient-text {
    background: linear-gradient(to right, #a855f7, #ec4899, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* UI Elements */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px var(--glass-highlight),
        0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-panel:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: inset 0 0 0 1px var(--glass-highlight),
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(168, 85, 247, 0.15);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(135deg, var(--accent-main), var(--accent-secondary));
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 10px 25px -5px var(--accent-glow);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 35px -5px var(--accent-glow);
}

.cta-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-main);
}

/* Nav */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 5, 16, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    fill: url(#logoGradient);
}

.logo-text {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-main);
    transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Layout */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 5% 0;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85vh;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e9d5ff;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.status-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    animation: shimmerBadge 3s infinite ease-out;
}

@keyframes shimmerBadge {
    100% {
        left: 200%;
    }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-main);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-main);
    animation: pulseBase 2s infinite;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.button-group {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 200;
}

/* Hero Graphic / Radar */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

.radar-container {
    width: 400px;
    height: 400px;
    position: relative;
    border-radius: 50%;
    transform-style: preserve-3d;
    transform: rotateX(20deg) rotateY(-15deg);
    animation: floatHologram 8s ease-in-out infinite alternate;
}

@keyframes floatHologram {
    0% {
        transform: rotateX(20deg) rotateY(-15deg) translateY(0px);
    }

    100% {
        transform: rotateX(24deg) rotateY(-10deg) translateY(-25px);
    }
}

.radar-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    box-shadow: inset 0 0 40px rgba(168, 85, 247, 0.05);
}

.radar-ring:nth-child(2) {
    inset: 15%;
    border-color: rgba(168, 85, 247, 0.3);
}

.radar-ring:nth-child(3) {
    inset: 30%;
    border-color: rgba(168, 85, 247, 0.4);
}

.radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(168, 85, 247, 0.4) 100%);
    animation: sweep 4s linear infinite;
}

.radar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--accent-main);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--accent-main);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    animation: pulseCore 3s ease-in-out infinite alternate;
}

@keyframes pulseCore {
    0% {
        box-shadow: 0 0 30px var(--accent-main), 0 0 60px var(--accent-main);
    }

    100% {
        box-shadow: 0 0 15px var(--accent-main), 0 0 30px var(--accent-main);
    }
}

.mic-icon {
    width: 32px;
    height: 32px;
    fill: white;
}

.threat-blip {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--danger);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--danger);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.blip-1 {
    top: 20%;
    left: 70%;
    animation-delay: 0.5s;
}

.blip-2 {
    top: 60%;
    left: 20%;
    background: var(--success);
    box-shadow: 0 0 15px var(--success);
    animation-delay: 1.5s;
}

/* Bento Box Features section */
.bento-section {
    margin-top: 8rem;
    margin-bottom: 8rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.bento-item {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.bento-wide {
    grid-column: span 2;
}

.bento-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.bento-item:hover .bento-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(168, 85, 247, 0.5);
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.bento-item p {
    color: var(--text-secondary);
}

/* Animations & Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes sweep {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes ping {

    75%,
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes pulseBase {
    0% {
        box-shadow: 0 0 0 0 var(--accent-glow);
    }

    70% {
        box-shadow: 0 0 0 10px transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 5% 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin-top: 6rem;
}

/* Legal Pages (Privacy, Terms, FAQ) */
.legal-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 5% 4rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.legal-content-wrapper {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.legal-sidebar {
    position: sticky;
    top: 120px;
    width: 280px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s;
    border-left: 2px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-main);
    border-left-color: var(--accent-main);
}

.legal-document {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.legal-section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.legal-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 3rem 0;
}

.info-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
}

.info-text strong {
    color: var(--accent-main);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-text {
    color: var(--text-secondary);
}

.highlight-inline {
    background: rgba(168, 85, 247, 0.2);
    color: #e9d5ff;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

/* FAQ Accordion Styles */
.faq-question {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-main);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.footer-wrap {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 4rem;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero p {
        max-width: 100%;
    }

    .radar-container {
        transform: scale(0.8) rotateX(10deg);
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-wide {
        grid-column: span 1;
    }

    .footer-wrap {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .legal-content-wrapper {
        flex-direction: column;
    }

    .legal-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 2rem;
    }
}