/* 
 * Traffic Shield AI - Premium Cybersecurity Stylesheet
 * 2026 SaaS Aesthetic
 */

:root {
    --bg-dark: #050508;
    --bg-card: rgba(20, 20, 28, 0.6);
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.4);
    --secondary: #7000ff;
    --accent: #ff007a;
    --text-main: #e0e0e6;
    --text-dim: #a0a0b0;
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor - Only on Desktop */
@media (min-width: 769px) {
    /* Removed cursor: none to prevent mouse disappearing during lag */
    
    #custom-cursor {
        width: 10px;
        height: 10px;
        background: var(--primary);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 10000;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 15px var(--primary);
        transition: background 0.3s ease, width 0.3s ease, height 0.3s ease;
    }

    #custom-cursor::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 30px;
        height: 30px;
        border: 1px solid var(--primary);
        border-radius: 50%;
        opacity: 0.5;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 800;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-desc.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Stats Counter */
.stats-counter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin: 0 auto 3rem;
}

.counter-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.counter-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-outline {
    border-color: var(--glass-border);
    color: var(--text-main);
}

.btn-xl {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-glow:hover {
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

/* --- Nav --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
}

.highlight { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* --- Sections --- */
section {
    padding: 8rem 0;
}

/* Hero */
.hero-section {
    position: relative;
    padding: 12rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.glow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glow-sphere {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
}

.glow-1 {
    background: var(--primary-glow);
    top: -10%;
    left: -10%;
}

.glow-2 {
    background: rgba(112, 0, 255, 0.2);
    bottom: -10%;
    right: -10%;
}

.page-header {
    padding: 10rem 0 5rem;
    background: radial-gradient(circle at top, rgba(112, 0, 255, 0.05), transparent);
    border-bottom: 1px solid var(--glass-border);
}

.gap-ll { gap: 4rem; }
.mt-4 { margin-top: 4rem; }
.mt-ll { margin-top: 6rem; }

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Glass Box */
.glass-box {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Problem Section Misc */
.image-placeholder {
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, rgba(20,20,30,0.8), rgba(10,10,20,0.8));
    position: relative;
    overflow: hidden;
}

.threat-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--accent);
    opacity: 0.3;
}

.threat-line:nth-child(1) { top: 30%; transform: rotate(-5deg); }
.threat-line:nth-child(2) { top: 60%; transform: rotate(3deg); }

.placeholder-text {
    font-family: monospace;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

/* Solution Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card h3 {
    margin: 1.5rem 0 1rem;
}

.feature-icon {
    font-size: 2rem;
}

/* CTA */
.cta-card {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05) 0%, rgba(112, 0, 255, 0.05) 100%);
    text-align: center;
}

.input-group {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
}

.input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-footer {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-success { background: rgba(0, 255, 127, 0.15); color: #00ff7f; border: 1px solid rgba(0, 255, 127, 0.2); }
.alert-danger { background: rgba(255, 0, 74, 0.15); color: #ff004a; border: 1px solid rgba(255, 0, 74, 0.2); }
.alert-info { background: rgba(0, 242, 255, 0.15); color: var(--primary); border: 1px solid rgba(0, 242, 255, 0.2); }

/* Feature Details */
.feature-detail-card {
    padding: 3rem;
}

.list-checked {
    list-style: none;
    margin-top: 1.5rem;
}

.list-checked li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.list-checked li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1.5rem;
    display: inline-block;
}

/* Logo Bar Section */
.logo-bar-section {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.logo-marquee {
    display: flex;
    white-space: nowrap;
}

.logo-track {
    display: flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    align-items: center;
}

.logo-track span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-dim);
    opacity: 0.5;
    letter-spacing: 2px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin-top: 4rem;
}

.faq-item {
    margin-bottom: 1rem;
    cursor: pointer;
    text-align: left;
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    padding-right: 2rem;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-top: 0;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 1rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-author {
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.author-name {
    font-weight: 700;
    color: var(--primary);
}

.author-title {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Live Threat Ticker */
.threat-ticker {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--accent);
    padding: 0.5rem 1rem;
    display: flex;
    gap: 1.5rem;
    font-family: monospace;
    font-size: 0.75rem;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-label {
    color: var(--accent);
    font-weight: 800;
}

.threat-item {
    color: var(--text-dim);
    display: inline-block;
    animation: fadeSlideIn 0.5s forwards;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Footer */
.main-footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(to bottom, transparent, rgba(112, 0, 255, 0.05));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-col a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 1.5rem 0;
    max-width: 250px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    width: fit-content;
    border: 1px solid var(--glass-border);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff7f;
    border-radius: 50%;
}

.pulsing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 127, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 127, 0); }
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

/* Animations Logic */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }
.fade-in:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch-hover:hover {
    animation: glitch 0.3s cubic-bezier(.25,.46,.45,.94) both infinite;
}

.tilt-card {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

/* Responsive */
@media (max-width: 968px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 3rem; }
    .hero-title { font-size: 3.5rem; }
    .nav-links { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .input-group { flex-direction: column; }
    .hero-title { font-size: 2.8rem; }
}
