/* 
   CLOUD WEB - Modern Dark Tech Theme
*/

:root {
    /* Colors */
    --bg-dark: #050A14;
    --bg-card: #0F172A;
    --bg-card-hover: #1E293B;

    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;

    --accent-primary: #00F0FF;
    /* Neon Cyan */
    --accent-glow: rgba(0, 240, 255, 0.4);

    --brand-discord: #5865F2;

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 8rem;
    /* 128px */

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: opacity 0.4s ease-in-out;
    position: relative;
    cursor: none;
    /* Hide default cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 2147483647;
    /* Max Z-Index */
    pointer-events: none;
    display: block;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: white;
    /* Clean white dot */
    box-shadow: 0 0 10px var(--accent-primary);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Cursor Hover State */
body.hovering .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

/* Ensure all interactive elements hide cursor */
a,
button,
input,
textarea,
select,
.service-card {
    cursor: none !important;
}

/* --- Advanced Background Architecture --- */
.bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
}

/* 1. The Grid */
.cyber-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridFloat 20s linear infinite;
    opacity: 0.5;
    mask-image: radial-gradient(circle, black 30%, transparent 80%);
}

@keyframes gridFloat {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* 2. Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--brand-discord), transparent 70%);
    bottom: 10%;
    right: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #7000ff, transparent 70%);
    top: 40%;
    left: 40%;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* 3. Floating Geometric Shapes */
.floating-shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    z-index: -5;
    animation: spinFloat 15s linear infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    border-color: rgba(0, 240, 255, 0.2);
    transform: rotate(45deg);
    animation-duration: 25s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border-style: dashed;
    top: 70%;
    right: 15%;
    border-color: rgba(88, 101, 242, 0.2);
    animation-duration: 35s;
    animation-direction: reverse;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 40%;
    border: 2px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    animation-duration: 20s;
}

@keyframes spinFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, 40px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}


/* Global Polish */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent-glow);
}

::selection {
    background: var(--accent-primary);
    color: var(--bg-dark);
    text-shadow: none;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.text-accent {
    color: var(--accent-primary);
    text-shadow: 0 0 20px var(--accent-glow);
}

.center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Parallax overrides using JS variables */
.bg-fixed {
    --move-x: calc((var(--mouse-x-norm, 0.5) - 0.5) * -50px);
    --move-y: calc((var(--mouse-y-norm, 0.5) - 0.5) * -50px);
}

.glow-orb {
    transform: translate(var(--move-x), var(--move-y));
    transition: transform 0.1s linear;
}

.floating-shape {
    margin-left: calc(var(--move-x) * 2);
    margin-top: calc(var(--move-y) * 2);
    transition: margin 0.1s linear;
}

.btn-primary {
    background-color: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    box-shadow:
        0 0 10px var(--accent-glow),
        inset 0 0 10px var(--accent-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    opacity: 0.1;
    z-index: -1;
    transition: opacity 0.3s;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s;
    z-index: -1;
}

.btn-primary:hover {
    box-shadow:
        0 0 30px var(--accent-primary),
        inset 0 0 20px var(--accent-primary);
    color: #fff;
    text-shadow: 0 0 10px #fff;
    transform: scale(1.05);
}

.btn-primary:hover::before {
    opacity: 0.8;
}

.btn-primary:hover::after {
    opacity: 0.4;
    transform: scale(1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.btn-discord {
    background-color: var(--brand-discord);
    color: white;
}

.btn-discord:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
}


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo i {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    overflow: hidden;
}



.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3) 51%);
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.15;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    mask-image: linear-gradient(to bottom, transparent, black 40%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 40%, black 80%, transparent);
    z-index: -1;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    z-index: -2;
}

.glow-1 {
    top: -20%;
    left: 20%;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
}

.glow-2 {
    bottom: -20%;
    right: 20%;
    background: radial-gradient(circle, var(--brand-discord), transparent 70%);
    animation: float 10s infinite alternate-reverse;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
}

.hero-content h1 .text-accent {
    display: inline-block;
    position: relative;
    /* animation: pulseGlow 3s infinite alternate; */
    /* Replaced with glitch below */
}

.hero-content h1 .text-accent::before,
.hero-content h1 .text-accent::after {
    content: attr(data-text);
    /* Requires JS to set data-text, or we just rely on visual glitch */
    content: 'Our System.';
    /* Hardcoded for CSS-only simplicity or use JS to sync */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    /* Match bg to hide original */
    background: transparent;
    opacity: 0.8;
}

.hero-content h1 .text-accent {
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.hero-content h1 .text-accent::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.hero-content h1 .text-accent::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(38px, 9999px, 81px, 0);
        transform: skew(0.55deg);
    }

    5% {
        clip: rect(66px, 9999px, 19px, 0);
        transform: skew(0.2deg);
    }

    10% {
        clip: rect(6px, 9999px, 12px, 0);
        transform: skew(0.06deg);
    }

    /* ... shortened for brevity, usually has many steps ... */
    100% {
        clip: rect(58px, 9999px, 50px, 0);
        transform: skew(0.7deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(10px, 9999px, 86px, 0);
        transform: skew(0.8deg);
    }

    50% {
        clip: rect(30px, 9999px, 4px, 0);
        transform: skew(0.2deg);
    }

    100% {
        clip: rect(18px, 9999px, 63px, 0);
        transform: skew(0.1deg);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    10% {
        transform: skew(-1deg);
    }

    20% {
        transform: skew(1deg);
    }

    30% {
        transform: skew(0deg);
    }

    100% {
        transform: skew(0deg);
    }
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.cta-group {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

/* Trust Strip */
.trust-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md) 0;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    /* Mask the marquee */
    position: relative;
    white-space: nowrap;
}

.trust-content {
    display: inline-flex;
    justify-content: flex-start;
    /* Changed from center for marquee */
    flex-wrap: nowrap;
    /* Prevent wrapping */
    align-items: center;
    gap: var(--spacing-md);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: marquee 20s linear infinite;
    /* padding-left removed for seamless loop */
}

/* Pause on hover for readability */
.trust-strip:hover .trust-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}



.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item i {
    color: var(--text-secondary);
}

.trust-separator {
    color: var(--text-secondary);
    opacity: 0.3;
}

.trust-subtext {
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    z-index: 2;
    /* Ensure it stays above any marquee elements if they overlap */
}

/* Section Common */
.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Services Horizontal Layout */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    /* Wider columns for horizontal cards */
    gap: var(--spacing-md);
    padding-bottom: 0;
}

/* Reset Curve Layout (removed margin hacks) */
@media (min-width: 1024px) {
    .service-card:nth-child(n) {
        margin-top: 0;
    }
}

.service-card {
    background:
        linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
    backdrop-filter: blur(20px);

    /* Horizontal Flex Layout */
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-align: left;
    /* Align text to left */

    padding: var(--spacing-md);
    /* Reduced padding used for compact horizontal look */
    border-radius: 20px;
    /* Slightly less round for horizontal bars */

    /* Gradient Border Magic */
    border: 1px solid transparent;
    background:
        linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), var(--accent-primary), rgba(255, 255, 255, 0.1));
    background-origin: border-box;
    background-clip: padding-box, border-box;

    transition: transform 0.1s ease-out, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Holographic Sheen */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 200%;
    height: 100%;
    background: linear-gradient(115deg, transparent, transparent, rgba(255, 255, 255, 0.1), rgba(0, 240, 255, 0.2), transparent, transparent);
    transform: skewX(-20deg);
    transition: left 0.5s;
    pointer-events: none;
    z-index: 3;
}

.service-card:hover::after {
    left: 150%;
    transition: left 0.6s ease-in-out;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 2;
}

.service-card:hover {
    border-color: var(--accent-primary);
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.3),
        inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 0;
    /* Remove bottom margin */
    flex-shrink: 0;
    /* Don't shrink icon */
    background: rgba(0, 240, 255, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Make it round */
    border: 1px solid var(--accent-primary);
    /* Add border around */
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    /* Glow for the border */
}



/* Enhancing Hover for Service Cards */
.service-card:hover {
    border-color: var(--accent-primary);
    box-shadow:
        0 0 30px rgba(0, 240, 255, 0.2),
        inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.service-card:hover h3 {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes iconPulse {
    0% {
        filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
        transform: translateZ(30px) scale(1);
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.8));
        transform: translateZ(30px) scale(1.1);
    }

    100% {
        filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
        transform: translateZ(30px) scale(1);
    }
}

.service-card:hover .card-icon {
    animation: none;
    transform: scale(1.15) rotate(5deg) translateZ(50px);
    filter: drop-shadow(0 0 30px var(--accent-primary));
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
    transform: translateZ(30px);
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    transform: translateZ(30px);
    line-height: 1.7;
}



/* Why Us */
.why-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.why-list {
    margin-top: var(--spacing-md);
}

.why-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.why-list i {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

.system-monitor {
    background: var(--bg-card);

    /* Gradient Border Upgrade */
    border: 1px solid transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), var(--accent-primary));
    background-origin: border-box;
    background-clip: padding-box, border-box;

    border-radius: 20px;
    /* Rounder as requested */
    padding: var(--spacing-sm);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.monitor-header {
    display: flex;
    gap: 6px;
    margin-bottom: var(--spacing-sm);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.dot:nth-child(1) {
    background: #FF5F56;
}

.dot:nth-child(2) {
    background: #FFBD2E;
}

.dot:nth-child(3) {
    background: #27C93F;
}

.code-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 8px;
}

.width-80 {
    width: 80%;
}

.width-60 {
    width: 60%;
}

.width-90 {
    width: 90%;
}

.width-40 {
    width: 40%;
}

.status-box {
    margin-top: var(--spacing-md);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 8px;
    text-align: center;
    font-family: monospace;
    font-size: 0.8rem;
    background: rgba(0, 240, 255, 0.05);
}

.status-box::after {
    content: '_';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Code Line Animations */
.code-line {
    animation: loadLine 3s ease-in-out infinite alternate;
}

.code-line:nth-child(2) {
    animation-delay: 0.5s;
}

.code-line:nth-child(3) {
    animation-delay: 1.0s;
}

.code-line:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes glitch-box {
    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);
    }
}

/* --- Visual Scan Animation --- */
.scan-overlay {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.8), transparent);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
}

.system-monitor.scanning .scan-overlay {
    opacity: 1;
    animation: scanMove 1.5s linear infinite;
}

@keyframes scanMove {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

/* Progress Bar (Hidden Default) */
.scan-progress {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.system-monitor.scanning .scan-progress {
    display: flex;
}

.system-monitor.scanning .code-line {
    display: none;
    /* Hide lines during scan */
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    transition: width 0.1s linear;
}

.progress-text {
    font-family: 'Source Code Pro', monospace;
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Dot Blinking */
.dot {
    animation: pulseDot 2s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulseDot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Process */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: var(--spacing-lg);
    position: relative;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.step {
    flex: 1;
    text-align: center;
    min-width: 200px;
    z-index: 2;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
    font-family: 'Space Grotesk', sans-serif;

    /* Gradient Border Upgrade */
    border: 1px solid transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)),
        linear-gradient(135deg, var(--accent-primary), var(--brand-discord));
    background-origin: border-box;
    background-clip: padding-box, border-box;

    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.step-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, var(--accent-primary) 50%, rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    margin-top: 30px;
    display: none;
    /* Hidden on mobile */
    animation: flowConnector 3s linear infinite;
}

@keyframes flowConnector {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(to top, rgba(0, 240, 255, 0.05), transparent);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    background: #03060c;
}

.footer-content {
    margin-bottom: var(--spacing-md);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.footer-legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.9rem;
    font-family: monospace;
    text-transform: uppercase;
}

.footer-legal-links a:hover {
    color: var(--bg-dark);
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    border-color: var(--accent-primary);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Animations */
.fade-in,
.fade-up,
.fade-right,
.fade-left {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
    transform: scale(0.95);
}

.fade-up {
    transform: translateY(30px);
}

.fade-right {
    transform: translateX(-30px);
}

.fade-left {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (min-width: 768px) {
    .step-connector {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .why-container {
        grid-template-columns: 1fr;
    }

    .why-visual {
        order: -1;
        margin-bottom: var(--spacing-md);
        display: flex;
        justify-content: center;
        /* Center the monitor */
    }

    .system-monitor {
        max-width: 100%;
        /* Ensure it fits */
        margin: 0 auto;
    }

    .nav-container {
        justify-content: center;
    }

    .navbar .btn {
        display: none;
    }

    /* Simplify nav on mobile */

    /* Restore Trust Strip */
    .trust-strip {
        display: block;
        /* Show it */
        padding: var(--spacing-sm) 0;
        /* Reduced padding */
    }

    /* Ensure marquee flows horizontally, not stacked */
    .trust-strip .container {
        flex-direction: row;
        gap: 0;
        /* Remove gap, let separator handle spacing */
    }

    .trust-content {
        font-size: 0.9rem;
        /* Smaller text for mobile marquee */
    }

    .trust-separator {
        display: block;
        /* Restore dots */
        opacity: 1;
        /* Make visible */
        color: var(--accent-primary);
        /* Make them glow/visible */
        margin: 0 10px;
        /* Space them out */
        font-size: 1.2rem;
        line-height: 0;
        position: relative;
        top: 2px;
    }

    .trust-item {
        white-space: nowrap;
    }

    .trust-subtext {
        font-size: 0.75rem;
        /* Smaller subtext */
        margin-top: var(--spacing-sm);
        padding: 0 var(--spacing-sm);
        line-height: 1.4;
        white-space: normal;
        /* Allow text to wrap */
    }

    /* --- Responsive Services Fix --- */
    .services-grid {
        grid-template-columns: 1fr;
        /* Force single column on mobile */
        gap: var(--spacing-sm);
    }

    .service-card {
        padding: var(--spacing-sm);
        /* Keep tight padding */
        flex-direction: row;
        /* Horizontal on mobile */
        text-align: left;
        /* Left align text */
        gap: var(--spacing-sm);
        /* Smaller gap */
        align-items: center;
    }

    .card-icon {
        width: 50px;
        /* Even smaller icon for tight fit */
        height: 50px;
        font-size: 1.5rem;
        margin: 0;
        /* Reset margin */
        flex-shrink: 0;
        /* Ensure icon doesn't squish */
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    /* --- Responsive Process Fix --- */
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
        /* Larger gap for vertical steps */
    }

    .step {
        width: 100%;
        /* Full width steps */
    }

    /* --- Global Resizing --- */
    .section {
        padding: var(--spacing-lg) 0;
        /* Reduce from XL (8rem) to LG (4rem) */
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
    }

    body {
        overflow-x: hidden;
        /* Ensure no horizontal scroll from background or cards */
    }
}

/* Tablet / Small Laptop Fixes */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* Single column usually looks better on portrait tablet for wide cards */
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    /* Fix Broken Grid -> Vertical Timeline */
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
    }

    .step-connector {
        display: none;
        /* Hide horizontal lines on tablet */
    }

    .step {
        width: 100%;
        max-width: 600px;
        /* Nice readable width */
        margin-bottom: var(--spacing-sm);
    }
}

/* Extra Small Mobile (iPhone SE etc) */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }
}

/* Legal & Page Content */
.page-content {
    padding-top: calc(var(--header-height) + var(--spacing-lg));
    padding-bottom: var(--spacing-xl);
    min-height: 60vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.page-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.05), transparent 40%);
    pointer-events: none;
}

.page-content h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--accent-primary);
    text-shadow: 0 0 20px var(--accent-glow);
}

.page-content h2 {
    font-size: 1.8rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: white;
    background: linear-gradient(135deg, white 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Global H2 Gradient */
.section-header h2 {
    background: linear-gradient(135deg, white 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.page-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.05rem;
}

.page-content ul {
    list-style: disc;
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.page-content li {
    margin-bottom: 8px;
}

.page-content a {
    color: var(--accent-primary);
    transition: var(--transition-fast);
}

.page-content a:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Footer Upgrade - Extreme II */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    background: radial-gradient(circle at bottom center, #0f172a, #03060c);
    position: relative;
    overflow: hidden;
}

/* Scanner Light Effect */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    box-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary);
    animation: scanLight 4s linear infinite;
    z-index: 2;
}

@keyframes scanLight {
    0% {
        left: -50%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Glitch/Neon Logo Effect */
.footer-brand .logo {
    position: relative;
    transition: transform 0.3s;
    display: inline-flex;
}

.footer-brand .logo:hover {
    transform: scale(1.05);
}

.footer-brand .logo:hover .logo-img {
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.8)) drop-shadow(0 0 20px rgba(88, 101, 242, 0.6));
    animation: glitchShake 0.4s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitchShake {
    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);
    }
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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: 50px 50px;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
    pointer-events: none;
    z-index: 0;
}

.footer-content,
.footer-bottom {
    position: relative;
    z-index: 1;
}