﻿/* Heading: Berlin Sans FB Demi Bold; Body: Glacial Indifference */

:root {
    --primary: #fc9630;
    --primary-bright: #ffb57a;
    --secondary: #1f5d61;
    --accent: #1f5d61;
    --accent-warm: #fc9630;
    --success: #34d399;
    --dark-bg: #2f2f2f;
    --darker-bg: #232323;
    --card-bg: rgba(47, 47, 47, 0.85);
    --text-primary: #f6fae4;
    --text-secondary: rgba(246, 250, 228, 0.8);
    --primary-rgb: 252,150,48;
    --secondary-rgb: 31,93,97;
    --light-rgb: 246,250,228;
    --dark-rgb: 47,47,47;
    --accent-rgb: 31,93,97;
    --accent-glow: rgba(var(--primary-rgb), 0.25);
    --border-color: rgba(var(--primary-rgb), 0.18);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--secondary), var(--primary));
    /* Layout / scale tokens */
    --container-width: 1200px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 24px;
    --space-lg: 48px;
    --radius: 12px;
}

/* Minimal / Apple-like overrides: reduce decorative noise for a clean, spacious layout */
.bg-pattern,
.glow-orb,
.floating-shape {
    display: none !important;
}

[data-theme="light"] {
    --primary: #fc9630;
    --primary-bright: #ffb57a;
    --secondary: #1f5d61;
    --accent: #1f5d61;
    --accent-warm: #fc9630;
    --success: #10b981;
    --dark-bg: #f6fae4;
    --darker-bg: #f4f4f5;
    --card-bg: rgba(var(--light-rgb), 0.95);
    --text-primary: #2f2f2f;
    --text-secondary: rgba(var(--dark-rgb), 0.7);
    --accent-glow: rgba(var(--secondary-rgb), 0.12);
    --border-color: rgba(var(--secondary-rgb), 0.12);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--secondary), var(--primary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Glacial Indifference', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Subtle Background */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.02;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--primary) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--accent) 1px, transparent 1px);
    background-size: 50px 50px;
    transition: opacity 0.4s ease;
}

[data-theme="light"] .bg-pattern {
    opacity: 0.01;
}

.glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

[data-theme="light"] .glow-orb {
    opacity: 0.04;
}

.glow-orb-1 {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    top: -200px;
    right: -200px;
    animation: gentleFloat 25s ease-in-out infinite;
}

.glow-orb-2 {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    bottom: -200px;
    left: -200px;
    animation: gentleFloat 30s ease-in-out infinite reverse;
}

.glow-orb-3 {
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: gentleFloat 35s ease-in-out infinite;
    opacity: 0.06;
}

@keyframes gentleFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* Floating Decorative Shapes */
.floating-shape {
    position: fixed;
    width: 96px;
    height: 96px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.12;
    filter: drop-shadow(0 6px 18px rgba(var(--primary-rgb), 0.06));
    transition: transform 0.6s ease, opacity 0.4s ease;
}

[data-theme="light"] .floating-shape {
    opacity: 0.1;
}

.floating-shape .shape-glow {
    position: absolute;
    inset: -28px;
    border-radius: 20px;
    background: radial-gradient(circle at 30% 30%, rgba(var(--primary-rgb), 0.14), transparent 28%), radial-gradient(circle at 70% 70%, rgba(var(--secondary-rgb), 0.08), transparent 28%);
    filter: blur(18px);
    z-index: -1;
}

.floating-shape .shape-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    opacity: 0.95;
}

.floating-shape svg {
    width: 64px;
    height: 64px;
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 0.8;
    opacity: 0.9;
}

.bot-1 { top: 12%; left: 3%; animation: floatShape 28s ease-in-out infinite; animation-delay: 0s; }
.bot-2 { top: 42%; right: 6%; animation: floatShape 32s ease-in-out infinite; animation-delay: -6s; }
.bot-3 { bottom: 18%; left: 10%; animation: floatShape 26s ease-in-out infinite; animation-delay: -10s; }
.bot-4 { top: 68%; right: 12%; animation: floatShape 30s ease-in-out infinite; animation-delay: -14s; }
.bot-5 { top: 22%; right: 22%; animation: floatShape 24s ease-in-out infinite; animation-delay: -8s; }

@keyframes floatShape {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-18px) rotate(3deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(12px) rotate(-3deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Modern Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    animation: slideDown 0.6s ease-out;
    background: transparent;
}

nav.scrolled {
    background: rgba(12, 10, 29, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 0.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] nav.scrolled {
    background: rgba(246, 250, 228, 0.95);
    border-bottom-color: rgba(var(--secondary-rgb), 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    transition: height 0.3s ease;
}

.nav-glass {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    height: 60px;
    width: 180px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateX(2px);
}

.logo img {
    height: 48px;
    width: auto;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
}

.logo-dark {
    opacity: 1;
}

.logo-light {
    opacity: 0;
}

[data-theme="light"] .logo-dark {
    opacity: 0;
}

[data-theme="light"] .logo-light {
    opacity: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .nav-links a {
    color: rgba(var(--dark-rgb), 0.65);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cta-nav {
    padding: 0.65rem 1.4rem;
    background: linear-gradient(135deg, var(--primary), #ff7e4d);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 8px;
    color: white;
    font-family: 'Glacial Indifference', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.18);
}

.cta-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(var(--primary-rgb), 0.28);
    border-color: rgba(var(--primary-rgb), 0.5);
}

.cta-nav:active {
    transform: translateY(-1px);
}

/* Modern Theme Toggle Switch */
.theme-switch {
    position: relative;
    width: 56px;
    height: 30px;
    flex-shrink: 0;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    border: 1.5px solid rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.theme-slider::before {
    position: absolute;
    content: '';
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(253, 230, 138, 0.5);
}

.theme-slider .sun-icon,
.theme-slider .moon-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.theme-slider .sun-icon {
    right: 8px;
    opacity: 0.6;
}

.theme-slider .moon-icon {
    left: 8px;
    opacity: 0;
}

input:checked + .theme-slider {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border-color: rgba(14, 165, 233, 0.3);
}

input:checked + .theme-slider::before {
    transform: translateX(26px);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
}

input:checked + .theme-slider .sun-icon {
    opacity: 0;
}

input:checked + .theme-slider .moon-icon {
    opacity: 0.7;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger span {
    display: block;
    height: 2.5px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hamburger span:nth-child(1) { width: 100%; }
.hamburger span:nth-child(2) { width: 75%; }
.hamburger span:nth-child(3) { width: 50%; }

.mobile-menu-btn:hover .hamburger span {
    width: 100%;
    background: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 2rem;
    z-index: 1;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    max-width: 680px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.full-form-banner {
    font-family: 'Glacial Indifference', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--secondary-rgb), 0.08));
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out 0.35s backwards;
}

.full-form-banner .acronym {
    color: var(--primary-bright);
    font-weight: 700;
    font-size: 1.25rem;
}

[data-theme="light"] .full-form-banner {
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.08), rgba(var(--primary-rgb), 0.08));
}

[data-theme="light"] .full-form-banner .acronym {
    color: var(--primary);
}

h1 {
    font-family: 'Berlin Sans FB Demi', 'Berlin Sans FB', 'Glacial Indifference', sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.06;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    text-transform: none;
    letter-spacing: 0.2px;
}

h1 .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
    max-width: 680px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn-primary {
    padding: 0.9rem 1.6rem;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Glacial Indifference', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.12);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 18px 60px rgba(var(--primary-rgb), 0.14);
}

.btn-secondary {
    padding: 0.9rem 1.6rem;
    background: transparent;
    border: 1px solid rgba(var(--secondary-rgb), 0.12);
    border-radius: 12px;
    color: rgb(var(--dark-rgb));
    font-family: 'Glacial Indifference', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn-secondary:hover {
    background: rgba(var(--primary-rgb), 0.06);
    border-color: rgba(var(--primary-rgb), 0.18);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.5s backwards;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Security Visualization */
.security-visualization {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--secondary-rgb), 0.05));
    border: 1px solid rgba(var(--secondary-rgb), 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.grid-cell {
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.08), rgba(var(--secondary-rgb), 0.04));
    border: 1px solid rgba(var(--secondary-rgb), 0.12);
    border-radius: 12px;
    transition: all 0.4s ease;
    cursor: pointer;
    animation: cellPulse 2s ease-in-out infinite;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cell-icon {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(var(--secondary-rgb), 0.5);
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.grid-cell.active .cell-icon {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    animation: iconPulse 0.6s ease-in-out infinite;
}

.grid-cell.bot-detected {
    animation: botDetectedPulse 2s ease-in-out infinite;
}

.grid-cell.bot-detected .cell-icon {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    animation: botEmojiBounce 2s ease-in-out infinite;
}

.detection-x {
    position: absolute;
    font-size: 1.2rem;
    font-weight: 900;
    color: #ff4757;
    opacity: 0;
    z-index: 3;
    animation: detectionXPulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.8);
}

.grid-cell.active {
    background: linear-gradient(135deg, var(--primary), rgba(var(--primary-rgb), 0.6));
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    animation: cellActivePulse 0.6s ease-in-out infinite;
}

.grid-cell.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    animation: cellGlow 0.6s ease-in-out infinite;
    border-radius: 12px;
}

.grid-cell:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes botEmojiBounce {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.15) translateY(-2px);
        opacity: 0.9;
    }
}

@keyframes detectionXPulse {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    30% {
        opacity: 1;
        transform: scale(1.2) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    70% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
}

@keyframes cellGlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes cellPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes botDetectedPulse {
    0%, 100% {
        background: linear-gradient(135deg, rgba(255, 71, 87, 0.3), rgba(255, 71, 87, 0.15));
        border-color: rgba(255, 71, 87, 0.4);
        box-shadow: 0 0 0 rgba(255, 71, 87, 0);
    }
    25% {
        background: linear-gradient(135deg, rgba(255, 71, 87, 0.5), rgba(255, 71, 87, 0.3));
        border-color: rgba(255, 71, 87, 0.6);
        box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
    }
    50% {
        background: linear-gradient(135deg, rgba(255, 71, 87, 0.3), rgba(255, 71, 87, 0.15));
        border-color: rgba(255, 71, 87, 0.4);
        box-shadow: 0 0 0 rgba(255, 71, 87, 0);
    }
    75% {
        background: linear-gradient(135deg, rgba(255, 71, 87, 0.5), rgba(255, 71, 87, 0.3));
        border-color: rgba(255, 71, 87, 0.6);
        box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
    }
}

@keyframes cellActivePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    }
}

.detection-pulse {
    position: absolute;
    width: 60%;
    height: 60%;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: detectionRadar 2.5s ease-out infinite;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.6), transparent);
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    animation: scanLineMove 3s ease-in-out infinite;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 20px;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.8);
    animation: floatParticle 2s ease-in-out infinite;
    animation-delay: var(--delay);
}

.status-indicator {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: statusBlink 1.5s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.8);
}

@keyframes detectionRadar {
    0% {
        width: 60%;
        height: 60%;
        opacity: 1;
        border-color: rgba(var(--primary-rgb), 0.6);
    }
    100% {
        width: 100%;
        height: 100%;
        opacity: 0;
        border-color: rgba(var(--primary-rgb), 0);
    }
}

@keyframes scanLineMove {
    0% {
        top: 0%;
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 1;
    }
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    25% {
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--x) - 50%), calc(var(--y) - 50%)) scale(1);
    }
}

@keyframes statusBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

[data-theme="light"] .scan-grid {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03), rgba(var(--secondary-rgb), 0.02));
    border-color: rgba(var(--secondary-rgb), 0.08);
}

[data-theme="light"] .grid-cell {
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.06), rgba(var(--secondary-rgb), 0.02));
    border-color: rgba(var(--secondary-rgb), 0.1);
}

[data-theme="light"] .cell-icon {
    color: rgba(var(--secondary-rgb), 0.4);
}

[data-theme="light"] .grid-cell.bot-detected {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.25), rgba(255, 71, 87, 0.12));
}

@media (max-width: 1024px) {
    .security-visualization {
        max-width: 360px;
    }
    .scan-grid {
        gap: 10px;
        padding: 16px;
    }
    .hero-container {
        gap: 2.4rem;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .security-visualization {
        max-width: 300px;
        margin-top: 0.6rem;
    }
    .scan-grid {
        gap: 8px;
        padding: 12px;
    }
}
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.shield-container {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-visual {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-ring {
    position: absolute;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 50%;
    animation: ringRotate 30s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
}

.ring-2 {
    width: 85%;
    height: 85%;
    animation-direction: reverse;
    animation-duration: 25s;
}

.ring-3 {
    width: 70%;
    height: 70%;
    animation-duration: 20s;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.center-shield {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--secondary-rgb), 0.15));
    border: 2px solid var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.2);
    animation: gentlePulse 4s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.2); }
    50% { box-shadow: 0 25px 70px rgba(var(--primary-rgb), 0.3); }
}

/* Floating Bot Indicators */
.bot-indicator {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: floatIndicator 5s ease-in-out infinite;
}

.bot-indicator-1 {
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.bot-indicator-2 {
    bottom: 15%;
    left: 10%;
    animation-delay: -1.5s;
}

.bot-indicator-3 {
    top: 40%;
    left: 5%;
    animation-delay: -3s;
}

.bot-indicator-blocked {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.2);
}

.bot-indicator-allowed {
    border-color: var(--success);
    box-shadow: 0 8px 30px rgba(52, 211, 153, 0.2);
}

@keyframes floatIndicator {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Connection Lines */
.connection-line {
    position: absolute;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
    animation: pulseLine 3s ease-in-out infinite;
}

.line-1 {
    top: 35%;
    left: 20%;
    transform: rotate(-30deg);
}

.line-2 {
    bottom: 35%;
    right: 20%;
    transform: rotate(30deg);
    animation-delay: -1s;
}

@keyframes pulseLine {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* Features Section */
.features {
    position: relative;
    padding: 3rem 2rem;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Berlin Sans FB Demi', 'Berlin Sans FB', 'Glacial Indifference', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0.6px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.team-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: transparent;
    border: 1px solid rgba(var(--secondary-rgb), 0.06);
    border-radius: 14px;
    padding: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="light"] .feature-card {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
    border-color: rgba(var(--secondary-rgb), 0.06);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.1);
}

[data-theme="light"] .feature-card:hover {
    box-shadow: 0 15px 40px rgba(var(--secondary-rgb), 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: transparent;
    border: 1px solid rgba(var(--secondary-rgb), 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--secondary-rgb), 0.06));
    border-color: rgba(var(--primary-rgb), 0.18);
    transform: translateY(-4px) scale(1.03);
}

.feature-title {
    font-family: 'Berlin Sans FB Demi', 'Berlin Sans FB', 'Glacial Indifference', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0.4px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Stats Section */
.stats {
    position: relative;
    padding: 3rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(var(--primary-rgb), 0.03), transparent);
    z-index: 1;
    transition: background 0.4s ease;
}

[data-theme="light"] .stats {
    background: linear-gradient(180deg, transparent, rgba(var(--secondary-rgb), 0.02), transparent);
}

.stats-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Glacial Indifference', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* How It Works */
.how-it-works {
    position: relative;
    padding: 3rem 2rem;
    z-index: 1;
}

.process-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.process-step {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateX(5px);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--secondary-rgb), 0.08));
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Glacial Indifference', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.28s ease;
}

.process-step:hover .step-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.step-content h3 {
    font-family: 'Berlin Sans FB Demi', 'Berlin Sans FB', 'Glacial Indifference', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0.3px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 3rem 2rem;
    z-index: 1;
}

.cta-box {
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
    border: 1px solid rgba(var(--secondary-rgb), 0.06);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

[data-theme="light"] .cta-box {
    background: #ffffff;
    box-shadow: 0 12px 48px rgba(15, 23, 42, 0.04);
    border-color: rgba(var(--secondary-rgb), 0.06);
}

.cta-box h2 {
    font-family: 'Berlin Sans FB Demi', 'Berlin Sans FB', 'Glacial Indifference', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0.4px;
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .hero-cta {
    justify-content: center;
}

/* Footer */
footer {
    position: relative;
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 2rem;
    z-index: 1;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand {
    font-family: 'Berlin Sans FB Demi', 'Berlin Sans FB', 'Glacial Indifference', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: 0.6px;
}

.footer-fullform {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-fullform strong {
    color: var(--primary);
    font-weight: 600;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer-section h4 {
    font-family: 'Berlin Sans FB Demi', 'Berlin Sans FB', 'Glacial Indifference', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0.3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Contact Form Styling */
.contact-form {
    background: var(--card-bg);
    border: 1px solid rgba(var(--secondary-rgb), 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .contact-form {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
    border-color: rgba(var(--secondary-rgb), 0.08);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form label {
    font-family: 'Berlin Sans FB Demi', 'Glacial Indifference', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0.3px;
    margin-bottom: 0.4rem;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(var(--secondary-rgb), 0.15);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    color: var(--text-primary);
    font-family: 'Glacial Indifference', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    line-height: 1.6;
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    background: #f8f9fa;
    border-color: rgba(var(--secondary-rgb), 0.1);
    color: #2f2f2f;
}

[data-theme="light"] .contact-form input::placeholder,
[data-theme="light"] .contact-form textarea::placeholder {
    color: rgba(47, 47, 47, 0.5);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(246, 250, 228, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: transparent;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
    font-family: 'Glacial Indifference', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.contact-form .btn-primary {
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.75rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .shield-container {
        height: 350px;
    }

    .security-visual {
        width: 280px;
        height: 280px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .nav-glass {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-right {
        gap: 0.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step-number {
        margin: 0 auto 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .floating-shape {
        display: none;
    }

    .bot-indicator {
        display: none;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Security core 3D visuals (central lock + orbiting nodes) */
.security-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 260px;
    height: 260px;
    transform: translate(-50%, -50%) rotateX(12deg);
    transform-style: preserve-3d;
    z-index: 4;
    pointer-events: none;
}

.core-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%) translateZ(40px);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(var(--secondary-rgb), 0.04));
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    box-shadow: 0 18px 48px rgba(var(--primary-rgb), 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-glow {
    position: absolute;
    inset: -20px;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%, rgba(var(--primary-rgb), 0.16), transparent 40%);
    filter: blur(20px);
    z-index: -1;
    pointer-events: none;
}

.lock-wrap svg {
    width: 86px;
    height: 86px;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(var(--primary-rgb), 0.14));
}

.security-nodes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform-style: preserve-3d;
}

.node {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    transform-origin: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 36px rgba(var(--primary-rgb), 0.14);
    animation: orbitNode var(--d, 14s) linear infinite;
}

.node[title] { cursor: default; }

.node svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.node.node-allowed { background: linear-gradient(135deg, var(--success), var(--primary)); box-shadow: 0 10px 30px rgba(16,185,129,0.10); color: #fff; }
.node.node-blocked { background: linear-gradient(135deg, var(--accent), var(--primary)); box-shadow: 0 10px 28px rgba(var(--primary-rgb),0.12); color: #fff; }
.node.node-threat { background: linear-gradient(135deg, #ff6b6b, #fc9630); box-shadow: 0 10px 28px rgba(252,100,40,0.12); color: #fff; }
.node.node-scan { background: linear-gradient(135deg, var(--secondary), var(--primary)); box-shadow: 0 8px 20px rgba(var(--secondary-rgb),0.08); color: #fff; }

@keyframes orbitNode {
    from { transform: rotate(0deg) translateX(var(--r)) translateZ(var(--z, 0px)) rotate(0deg); }
    to { transform: rotate(360deg) translateX(var(--r)) translateZ(var(--z, 0px)) rotate(-360deg); }
}

.security-core.js-active, .security-nodes.js-active { transition: transform 0.12s linear; animation-play-state: paused !important; }

@media (max-width: 768px) {
    .security-core, .security-nodes { display: none; }
}
