:root {
    --cursor-size: 20px;
    --glow-color: #FF5722;
}

body {
    background-color: #ffffff;
    color: #0f172a;
    cursor: none;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- CUSTOM CURSOR (Orange Dot, Black Ring) --- */
#cursor-dot, #cursor-ring {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
}
#cursor-dot {
    width: 8px; height: 8px;
    background: #FF5722;
}
#cursor-ring {
    width: 40px; height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
body.hover-active #cursor-ring {
    width: 80px; height: 80px;
    background: rgba(255, 87, 34, 0.05);
    border-color: #FF5722;
}

/* --- UTILITIES --- */
.grain-overlay {
    position: fixed; inset: 0;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.4;
    mix-blend-mode: multiply;
    pointer-events: none; z-index: 9000;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

/* --- ANIMATION CLASSES --- */
.reveal-text { opacity: 0; transform: translateY(20px); }

.preserve-3d { transform-style: preserve-3d; }

/* Scanner Effect */
.scan-line {
    width: 100%; height: 2px;
    background: #FF5722;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
    position: absolute; top: 0; left: 0;
    animation: scan 3s ease-in-out infinite;
    opacity: 0.8;
}
@keyframes scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #FF5722; }

/* Feature preview */
.feature-preview {
    margin-top: 18px;
    background: rgba(255,255,255,0.94);
    border: 1px dashed rgba(15,23,42,0.16);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 12px 26px rgba(15,23,42,0.08);
    display: grid;
    gap: 8px;
    min-height: 140px;
}
.feature-preview.active {
    border-color: rgba(255,77,0,0.5);
    background: rgba(255,255,255,0.98);
}
.feature-preview-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
    font-family: 'JetBrains Mono', monospace;
}
.feature-preview-body {
    background: linear-gradient(135deg, rgba(255,77,0,0.08), rgba(255,77,0,0.03));
    border-radius: 10px;
    border: 1px solid rgba(255,77,0,0.15);
    padding: 12px;
    font-size: 14px;
    color: #0f172a;
    min-height: 90px;
    display: grid;
    align-content: center;
}

/* Rotating footer logo */
.footer-roller {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    padding: 26px 0;
    transform: scale(1.25);
}
.footer-roller .footer-base {
    height: 68px;
    width: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
}
.footer-roller .footer-carousel {
    position: relative;
    overflow: hidden;
    height: 70px;
    width: 260px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.footer-roller .footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.footer-roller .footer-list li {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 14px;
}
.footer-roller .footer-list img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}
.footer-roller .footer-list li.active img {
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}
@media (prefers-reduced-motion: reduce) {
    .footer-roller .footer-list { transition: none; }
}

/* Security flip cards */
.flip-card { perspective: 1200px; }
.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s ease;
}
.flip-card:hover .flip-inner,
.flip-card.flipped .flip-inner {
    transform: rotateY(180deg);
}
.flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    padding: 24px;
    display: grid;
    gap: 12px;
}
.flip-face.back {
    transform: rotateY(180deg);
}
.score-bubble {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.08);
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 14px 30px rgba(15,23,42,0.12);
    font-size: 12px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.score-bubble::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 18px;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-left: 1px solid rgba(15,23,42,0.08);
    border-top: 1px solid rgba(15,23,42,0.08);
    transform: rotate(45deg);
}
.score-card {
    position: relative;
}
.score-card:hover .score-bubble,
.score-card:focus-within .score-bubble {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Slide-in presentation nav */
.slide-nav {
    position: fixed;
    top: 50%;
    left: -240px;
    transform: translateY(-50%);
    width: 220px;
    background: linear-gradient(180deg, #ff6b35, #ff4d00);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(255,77,0,0.25);
    padding: 18px 16px 12px;
    display: grid;
    gap: 6px;
    z-index: 120;
    transition: left 0.45s ease, opacity 0.45s ease;
    opacity: 0;
}
.slide-nav.visible {
    left: 12px;
    opacity: 1;
}
.slide-nav .nav-logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: 0.14em;
    font-size: 16px;
    margin-bottom: 10px;
}
.slide-nav .nav-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin: 6px 0;
}
.slide-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}
.slide-nav a:hover {
    background: rgba(255,255,255,0.12);
    transform: translateX(4px);
}
.slide-nav a.active {
    background: rgba(255,255,255,0.16);
}
.slide-nav .nav-footer {
    display: grid;
    grid-auto-flow: column;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
    justify-content: center;
}
.slide-nav .nav-footer a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border 0.2s ease, background 0.2s ease;
    text-decoration: none;
}
.slide-nav .nav-footer a:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.2);
}
@media (max-width: 920px) {
    .slide-nav { display: none; }
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 30s linear infinite;
}
.group:hover .animate-marquee {
    animation-play-state: paused;
}
