/* ==========================================================================
   YAZATA STYLESHEET
   Design System: Obsidian Cyberpunk (Dark Premium Hardware Theme)
   Inspired by UI.com & Cisco Enterprise aesthetics
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    --bg-base: #0a0b0d;
    --bg-surface: #181b22;
    --bg-surface-elevated: #232732;
    --bg-surface-glass: rgba(24, 27, 34, 0.75);
    
    --primary: #decbb7;
    --primary-glow: rgba(222, 203, 183, 0.25);
    --secondary: #a89a89;
    --secondary-glow: rgba(168, 154, 137, 0.15);
    
    --accent-blue: #786b5c;
    --accent-green: #00e676;
    --accent-red: #ff4d4d;
    --accent-orange: #ff9100;
    
    --text-primary: #decbb7;
    --text-secondary: #a89a89;
    --text-muted: #786b5c;
    
    --border-color: rgba(255, 255, 255, 0.09);
    --border-glowing: rgba(222, 203, 183, 0.25);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --border-radius: 12px;
    --container-width: 1200px;
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* --- Layout Utility Classes --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 7rem 0;
    position: relative;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text {
    color: #60a5fa;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--accent-green) !important;
}

.text-info {
    color: #60a5fa !important;
}

.text-danger {
    color: var(--accent-red) !important;
}

/* --- Common Components (Buttons, Badges) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #818cf8 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.tagline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* --- Sticky Glassmorphic Header --- */
.mobile-nav-toggle-checkbox {
    display: none;
}

@keyframes headerScroll {
    to {
        background-color: rgba(6, 8, 15, 0.9);
        padding: 0.5rem 0;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    }
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bg-surface-glass);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    
    /* Scroll-driven background/shadow transition */
    animation: headerScroll linear both;
    animation-timeline: scroll();
    animation-range: 0 50px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition-smooth);
}

.logo-container:hover .brand-logo {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.brand-logo-sm {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.brand-logo-sm:hover {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Body scroll lock when menu is open */
body:has(#mobile-nav-toggle-checkbox:checked) {
    overflow: hidden;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
    transform-origin: left center;
}

#mobile-nav-toggle-checkbox:checked ~ .main-header .mobile-nav-toggle span:nth-child(1) {
    transform: rotate(45deg);
}

#mobile-nav-toggle-checkbox:checked ~ .main-header .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
}

#mobile-nav-toggle-checkbox:checked ~ .main-header .mobile-nav-toggle span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-base);
    z-index: 999;
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
}

#mobile-nav-toggle-checkbox:checked ~ .mobile-drawer {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-cta {
    margin-top: 1rem;
    width: 100%;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 10rem;
    padding-bottom: 6rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* --- Slogan Bar at top of Hero Section --- */
.hero-slogan-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-slogan-bar:hover {
    border-color: var(--border-glowing);
    box-shadow: 0 4px 20px rgba(222, 203, 183, 0.1);
    transform: translateY(-1px);
}

.slogan-divider {
    color: rgba(222, 203, 183, 0.25);
    font-size: 0.75rem;
    user-select: none;
}

.slogan-segment {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .hero-slogan-bar {
        display: flex;
        justify-content: center;
        margin: 0 auto 1.5rem auto;
        max-width: fit-content;
        font-size: 0.75rem;
        gap: 0.5rem;
        padding: 0.35rem 1rem;
    }
}

.hero-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    top: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(222, 203, 183, 0.04) 0%, rgba(222, 203, 183, 0.005) 60%, rgba(0,0,0,0) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(222, 203, 183, 0.03) 0%, rgba(222, 203, 183, 0.002) 50%, rgba(0,0,0,0) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-top-full-width {
    grid-column: 1 / -1;
    margin-bottom: 2.5rem;
    width: 100%;
}

.huge-hero-top-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(2.2rem, 8vw, 5rem);
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0;
}

@media (max-width: 768px) {
    .huge-hero-top-title {
        text-align: center;
    }
    .hero-top-full-width {
        margin-bottom: 1.5rem;
    }
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    width: 100%;
    display: block;
}

/* Hero Interactive Threat Shield Visual */
.hero-interactive-shield {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 480px;
    background: rgba(11, 15, 25, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.hero-interactive-shield:hover {
    border-color: rgba(222, 203, 183, 0.2);
    box-shadow: 0 25px 60px rgba(129, 140, 248, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-interactive-shield canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

/* --- Summary Metrics Section --- */
.summary-section {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.metric-card {
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.metric-card:last-child {
    border-right: none;
}

.metric-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, #818cf8 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* --- Section Headers --- */
.section-header {
    max-width: 600px;
    margin: 0 auto 4.5rem auto;
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* --- Features Section --- */
.features-section {
    background-color: var(--bg-base);
}

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glowing);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.02);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(400px circle at center, rgba(222, 203, 183, 0.04), transparent 60%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover .card-glow {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 24px;
    height: 24px;
}

.feature-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.feature-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* --- Layer 2 / Architecture Section --- */
.architecture-section {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-list {
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.bullet-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.features-list li span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.features-list li span strong {
    color: var(--text-primary);
}

/* Interactive Network Diagram styling */
.architecture-diagram-container {
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.diagram-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.diagram-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.network-diagram {
    position: relative;
    height: 280px;
    margin: 2.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: rgba(3, 4, 7, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.diagram-column {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
}

.diagram-connector {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 15px;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 5;
}

.cable-line {
    height: 2px;
    width: 100%;
    background-color: var(--border-color);
}

.branch-connector {
    width: 50px;
    height: 190px;
    flex-shrink: 0;
    position: relative;
    align-self: center;
}

.branch-svg {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.8;
}

.branch-svg path {
    stroke: var(--border-color);
    stroke-width: 2px;
    transition: var(--transition-smooth);
}

.network-diagram:hover .branch-svg path {
    stroke: rgba(255, 255, 255, 0.1);
}

.device-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    flex-shrink: 0;
    z-index: 10;
}

.network-node {
    width: 60px;
    height: 60px;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    cursor: help;
    transition: var(--transition-smooth);
}

.network-node:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.node-icon {
    width: 26px;
    height: 26px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.network-node:hover .node-icon {
    color: var(--primary);
}

.node-name {
    position: absolute;
    bottom: -22px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    white-space: nowrap;
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Glowing Custom Yazata Node */
.node-yazata {
    width: 70px;
    height: 70px;
    background-color: #0a0b0d;
    border: 1px solid rgba(222, 203, 183, 0.3);
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(222, 203, 183, 0.1);
}

.node-yazata.glowing {
    animation: yazataPulse 3s infinite alternate;
}

@keyframes yazataPulse {
    0% {
        box-shadow: 0 0 15px rgba(222, 203, 183, 0.1), inset 0 0 10px rgba(222, 203, 183, 0.05);
        border-color: rgba(222, 203, 183, 0.2);
    }
    100% {
        box-shadow: 0 0 25px rgba(222, 203, 183, 0.3), inset 0 0 15px rgba(222, 203, 183, 0.15);
        border-color: rgba(222, 203, 183, 0.7);
    }
}

.node-icon-custom {
    width: 34px;
    height: 34px;
}

.badge-yazata {
    background: linear-gradient(135deg, #818cf8 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 0.7rem;
    bottom: -22px;
}

/* Packets Flowing */
.packet-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.packet-flow::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: flowGreen 2s infinite linear;
}

/* Mixed flow (includes threats before Yazata) */
.flow-mixed::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
    animation: flowRed 2.5s infinite linear 0.7s;
}

@keyframes flowGreen {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes flowRed {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Dynamic custom threat packets */
.temp-threat-packet {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
}



.device-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 145px;
    transition: var(--transition-smooth);
    cursor: help;
    position: relative;
}

.device-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(26, 140, 255, 0.15);
    transform: translateX(2px);
}

/* Compromised / Infected State for internal devices */
.device-item.compromised {
    border-color: rgba(255, 77, 77, 0.6) !important;
    background-color: rgba(255, 77, 77, 0.04) !important;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.35) !important;
    animation: deviceCompromisedPulse 1s infinite alternate;
}

.device-item.compromised .device-icon {
    color: var(--accent-red) !important;
}

.device-item.compromised span {
    color: var(--accent-red) !important;
}

@keyframes deviceCompromisedPulse {
    0% {
        border-color: rgba(255, 77, 77, 0.4);
        box-shadow: 0 0 10px rgba(255, 77, 77, 0.15);
    }
    100% {
        border-color: var(--accent-red);
        box-shadow: 0 0 25px rgba(255, 77, 77, 0.5);
    }
}

.device-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.device-item:hover .device-icon {
    color: var(--primary);
}

.device-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.device-item:hover span {
    color: var(--text-primary);
}

/* Tooltip Styling */
[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(6, 8, 15, 0.95);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: normal;
    width: max-content;
    max-width: 240px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Prevent tooltip clipping on left/right edges of flowchart */
.flowchart-layer .flowchart-node:first-child[data-tooltip]::before {
    left: 0;
    transform: translateX(0) translateY(10px);
}
.flowchart-layer .flowchart-node:first-child[data-tooltip]:hover::before {
    transform: translateX(0) translateY(0);
}

.flowchart-layer .flowchart-node:last-child[data-tooltip]::before {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(10px);
}
.flowchart-layer .flowchart-node:last-child[data-tooltip]:hover::before {
    transform: translateX(0) translateY(0);
}

.diagram-controls {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.control-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.shield-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-shield-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-shield-toggle:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.shield-toggle-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

/* Shield Active state */
.btn-shield-toggle.active {
    border-color: rgba(0, 230, 118, 0.3);
    background: rgba(0, 230, 118, 0.06);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.05);
}

.btn-shield-toggle.active:hover {
    border-color: rgba(0, 230, 118, 0.5);
    background: rgba(0, 230, 118, 0.1);
}

.btn-shield-toggle.active .shield-toggle-indicator {
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

/* Shield Disabled / Bypassed state */
.btn-shield-toggle.bypassed {
    border-color: rgba(255, 145, 0, 0.3);
    background: rgba(255, 145, 0, 0.06);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 145, 0, 0.05);
}

.btn-shield-toggle.bypassed:hover {
    border-color: rgba(255, 145, 0, 0.5);
    background: rgba(255, 145, 0, 0.1);
}

.btn-shield-toggle.bypassed .shield-toggle-indicator {
    background-color: var(--accent-orange);
    box-shadow: 0 0 10px var(--accent-orange);
}

/* Bypassed Yazata Node visual styling */
.node-yazata.bypassed {
    animation: none !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
    opacity: 0.45;
}

.node-yazata.bypassed svg path {
    stroke: var(--text-muted) !important;
    fill: rgba(255, 255, 255, 0.02) !important;
}

.node-yazata.bypassed svg circle {
    fill: var(--text-muted) !important;
}

.node-yazata.bypassed .badge-yazata {
    background: none !important;
    -webkit-text-fill-color: var(--text-muted) !important;
    color: var(--text-muted) !important;
}

/* Show red threat packets on Connector 3 when Yazata is bypassed */
.network-diagram.yazata-bypassed .connector-3 .packet-flow::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
    animation: flowRed 2.5s infinite linear 0.7s;
}

#diagramStatusMessage {
    display: block;
}

.status-msg {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: block;
    opacity: 1;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.status-normal {
    color: var(--accent-green);
}

.status-simulating {
    color: var(--accent-orange);
}

.status-blocked {
    color: var(--accent-green);
}

.status-bypassed {
    color: var(--accent-orange);
}

.status-breached {
    color: var(--accent-red);
    font-weight: 600;
    animation: statusBreachedBlink 1s infinite alternate;
}

@keyframes statusBreachedBlink {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Active threat simulation flashing Yazata Node Red */
.network-diagram.simulating-active #yazataNode {
    animation: flashBlocked 2.4s forwards;
}

@keyframes flashBlocked {
    0%, 45% {
        border-color: rgba(222, 203, 183, 0.3);
        box-shadow: 0 0 20px rgba(222, 203, 183, 0.1);
    }
    50% {
        border-color: var(--accent-red);
        box-shadow: 0 0 35px var(--accent-red), inset 0 0 20px var(--accent-red);
    }
    65% {
        box-shadow: 0 0 50px var(--accent-red), inset 0 0 30px var(--accent-red);
    }
    80% {
        border-color: var(--accent-red);
        box-shadow: 0 0 35px var(--accent-red), inset 0 0 20px var(--accent-red);
    }
    85%, 100% {
        border-color: rgba(222, 203, 183, 0.7);
        box-shadow: 0 0 25px rgba(222, 203, 183, 0.3);
    }
}

/* --- Threat Intelligence Section --- */
.threat-intel-section {
    background-color: var(--bg-base);
    position: relative;
    overflow: hidden;
}

.threat-intel-section .section-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    left: -200px;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.01) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.threat-intel-centered {
    max-width: 750px;
    margin: 0 auto;
}

.threat-intel-centered .section-desc {
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
}

/* Accordion Component */
.accordion {
    margin-top: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

details.accordion-item summary {
    list-style: none;
    outline: none;
}

details.accordion-item summary::-webkit-details-marker {
    display: none;
}

details.accordion-item[open] .accordion-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

details.accordion-item[open] .accordion-content {
    max-height: 150px;
    margin-top: 0.75rem;
}

.accordion-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Information Callout */
.info-callout {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-callout-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
    flex-shrink: 0;
}

.info-callout-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-callout-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- User Experience Section --- */
.ux-section {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ux-card {
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    transition: var(--transition-smooth);
}

.ux-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.ux-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.ux-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-icon {
    background-color: rgba(155, 93, 229, 0.08);
    color: var(--secondary);
    border: 1px solid rgba(155, 93, 229, 0.15);
}

.user-icon {
    background-color: rgba(26, 140, 255, 0.08);
    color: var(--accent-blue);
    border: 1px solid rgba(26, 140, 255, 0.15);
}

.ux-card-header h3 {
    font-size: 1.4rem;
}

.ux-card-lead {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.ux-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ux-list li:last-child {
    margin-bottom: 0;
}

.ux-list .tick {
    width: 18px;
    height: 18px;
    color: var(--accent-green);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.ux-list span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.ux-list span strong {
    color: var(--text-primary);
}

/* --- Adaptability Tabbed Section --- */
.adapt-section {
    background-color: var(--bg-base);
}

.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}

.tabs-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.tab-btn {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
    background-color: var(--bg-surface-elevated);
}

.tab-radio {
    display: none;
}

#tab-it-radio:checked ~ .tabs-nav .btn-it,
#tab-no-it-radio:checked ~ .tabs-nav .btn-no-it {
    color: var(--primary);
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.02);
}

.tab-icon {
    width: 22px;
    height: 22px;
}

.tabs-content-wrapper {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

#tab-it-radio:checked ~ .tabs-content-wrapper .pane-it,
#tab-no-it-radio:checked ~ .tabs-content-wrapper .pane-no-it {
    display: block;
}

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

.tab-pane-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.pane-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pane-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.pane-feature {
    margin-bottom: 1.5rem;
}

.pane-feature:last-child {
    margin-bottom: 0;
}

.pane-feat-title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.pane-feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Tab visual blocks (Code card & Plug and Play Card) */
.flow-code-card {
    background-color: #030407;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Gallery Layout */
.dashboard-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.dashboard-main-view {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background-color: var(--bg-surface);
    cursor: zoom-in;
    transition: var(--transition-smooth);
}

.gallery-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.gallery-zoom-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(6, 8, 15, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition-smooth);
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.dashboard-main-view:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.dashboard-main-view:hover .gallery-main-image {
    transform: scale(1.02);
}

.dashboard-main-view:hover .gallery-zoom-overlay {
    opacity: 1;
    transform: scale(1);
}

.zoom-icon {
    width: 18px;
    height: 18px;
}

/* Thumbnail Navigation */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.thumb-btn {
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    aspect-ratio: 16 / 10;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.thumb-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.thumb-btn:hover img {
    opacity: 0.8;
}

.thumb-btn.active {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(222, 203, 183, 0.2);
}

.thumb-btn.active img {
    opacity: 1;
}

.code-card-header {
    background-color: #0b0c10;
    padding: 0.6rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.flow-code-card pre {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    margin: 0;
    overflow-x: auto;
}

.c-key { color: #80cbc4; }
.c-val { color: #c3e88d; }

.plug-play-card {
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.step-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 180px;
}

.step-text strong {
    color: var(--text-primary);
}

.step-arrow {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.step-glowing {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(222, 203, 183, 0.2);
    animation: stepGlowPulse 2s infinite alternate;
}

@keyframes stepGlowPulse {
    from { box-shadow: 0 0 5px rgba(222, 203, 183, 0.1); }
    to { box-shadow: 0 0 15px rgba(222, 203, 183, 0.35); }
}

.text-glow {
    color: var(--primary) !important;
    font-weight: 600;
}

/* --- Call to Action Section --- */
.cta-section {
    background-color: var(--bg-base);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 0;
}

.cta-card {
    background: radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.01) 0%, rgba(0, 0, 0, 0) 60%), 
                radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 50%),
                #17191e;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}

.cta-card-content {
    max-width: 650px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.75rem, 6vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.cta-action-container {
    display: flex;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.cta-input {
    flex: 1;
    background-color: rgba(6, 8, 15, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.cta-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.form-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Footer --- */
.main-footer {
    background-color: #030407;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 3rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.logo-icon-sm {
    width: 28px;
    height: 28px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.copyright-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-email {
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.footer-email:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-link-illutrium {
    color: #818cf8;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-link-illutrium:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.cloudflare-logo {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
    height: 24px; /* match other footer icons */
    filter: none; /* keep original colors */
    opacity: 0.85;
}


.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    line-height: 1.6;
}

.footer-contact-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.cloudflare-logo-standalone {
    height: 38px;
    opacity: 0.85;
    filter: none;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

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

/* --- Deep DNS Filtering Section --- */
.dns-filtering-section {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Quote Card */
.dns-quote-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.002) 100%), #121419;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.25rem;
    position: relative;
    margin-bottom: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    overflow: hidden;
}

.quote-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    top: -75px;
    right: -75px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.05) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.quote-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-glow);
    margin-bottom: 1rem;
    opacity: 0.4;
}

.dns-quote-card blockquote {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary);
    line-height: 1.6;
    font-weight: 400;
}

/* Video Wrapper for responsive iframe */
.hero-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.hero-video-wrapper:hover {
    border-color: var(--border-glowing);
    box-shadow: 0 25px 50px rgba(129, 140, 248, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
    
    .metric-card {
        border-right: none;
    }
    
    .metric-card:nth-child(odd) {
        border-right: 1px solid var(--border-color);
    }
    
    .network-diagram {
        justify-content: space-around;
    }
    
    .branch-connector, .device-column {
        display: none; /* Hide device components on smaller screens to prevent crowding */
    }
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-interactive-shield {
        margin: 0 auto;
        height: 380px;
        max-width: 100%;
    }
    
    .hardware-container {
        margin: 0 auto;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .tabs-nav {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .tab-pane-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tab-pane-visual {
        order: -1;
    }
    
    .tabs-content-wrapper {
        padding: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
    }
    
    .metric-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    
    
    .cta-input {
        height: 50px;
    }
    
    .footer-links-group {
        grid-template-columns: 1fr;
    }
}

/* --- Success Modal (CSS-only) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(6, 8, 15, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay:target {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glowing);
    border-radius: var(--border-radius);
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay:target .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.2rem;
    color: var(--text-muted);
    line-height: 1;
    font-weight: 300;
}

.modal-close:hover {
    color: var(--text-primary);
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(0, 230, 118, 0.08);
    color: var(--accent-green);
    border: 1px solid rgba(0, 230, 118, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.success-icon {
    width: 32px;
    height: 32px;
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-btn-close {
    width: 100%;
}

/* --- Ultra-mobile adjustments for narrow screens --- */
@media (max-width: 360px) {
    .network-diagram {
        padding: 0.85rem;
    }
    .network-node {
        width: 50px;
        height: 50px;
    }
    .node-yazata {
        width: 60px;
        height: 60px;
    }
    .node-icon {
        width: 22px;
        height: 22px;
    }
    .node-icon-custom {
        width: 28px;
        height: 28px;
    }
    .node-name {
        font-size: 0.6rem;
        bottom: -20px;
    }
    .badge-yazata {
        font-size: 0.65rem;
        bottom: -20px;
    }
}

/* Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 8, 15, 0.98);
    backdrop-filter: blur(12px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: transparent;
    border: none;
    font-size: 3rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    z-index: 2600;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--text-primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2600;
    transition: var(--transition-smooth);
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    object-fit: contain;
}

.lightbox-caption {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 0.02em;
    text-align: center;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 0.5rem;
    }
    .lightbox-next {
        right: 0.5rem;
    }
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .lightbox-content {
        max-width: 90%;
    }
    .gallery-thumbnails {
        gap: 0.35rem;
    }
}

/* ==========================================================================
   YAZATA THREAT INTELLIGENCE FLOWCHART STYLES
   ========================================================================== */

.intel-flowchart-wrapper {
    margin-top: 4.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 45px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.02);
    position: relative;
    overflow: hidden;
}

.flowchart-header {
    margin-bottom: 3rem;
    text-align: center;
}

.flowchart-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.flowchart-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Grid layout for visual diagram + live log */
.intel-flowchart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

/* Visualization Canvas */
.intel-flowchart-visual {
    position: relative;
    height: 520px;
    background: rgba(3, 4, 7, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: inset 0 3px 15px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

/* Layers */
.flowchart-layer {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 0 1.5rem;
}

.layer-top {
    top: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    gap: 1.5rem;
}

.layer-middle {
    top: 215px;
    display: flex;
    justify-content: center;
}

.layer-bottom {
    bottom: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    gap: 1.5rem;
}

/* Node Styling */
.flowchart-node {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    cursor: help;
    user-select: none;
}

.flowchart-node:hover {
    border-color: rgba(222, 203, 183, 0.4);
    box-shadow: 0 0 20px rgba(222, 203, 183, 0.1);
    transform: translateY(-2px);
}

/* Node Icons */
.node-icon-wrapper {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.node-icon-wrapper svg {
    width: 18px;
    height: 18px;
}

.flowchart-node:hover .node-icon-wrapper {
    color: var(--primary);
    border-color: rgba(222, 203, 183, 0.3);
    background: rgba(222, 203, 183, 0.04);
}

/* Node Labels & Indicators */
.node-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-primary);
}

.node-indicator {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.node-indicator::before {
    content: '';
    width: 5px;
    height: 5px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-green);
    display: inline-block;
    animation: blink 1.5s infinite;
}

/* Research Node specifics */
.node-research {
    width: 150px;
    height: 90px;
}

/* Device Node specifics */
.node-device {
    width: 150px;
    height: 90px;
}

.node-device.pulse-active {
    animation: devicePulseGreen 1.2s ease-out;
}

@keyframes devicePulseGreen {
    0% {
        border-color: var(--border-color);
        box-shadow: 0 0 0 rgba(0, 230, 118, 0);
    }
    30% {
        border-color: var(--accent-green);
        box-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
    }
    100% {
        border-color: var(--border-color);
        box-shadow: 0 0 0 rgba(0, 230, 118, 0);
    }
}

/* Device Update Badge */
.device-update-badge {
    position: absolute;
    top: -10px;
    right: 50%;
    transform: translateX(50%) scale(0.8);
    background: linear-gradient(135deg, var(--accent-green) 0%, #00b0ff 100%);
    color: #06080f;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    z-index: 100;
}

.device-update-badge.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) scale(1);
}

/* Central Node (YAZATA Hub) */
.node-central {
    width: 420px;
    height: 140px;
    flex-direction: row;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(10, 11, 13, 0.9);
    border: 1px solid rgba(222, 203, 183, 0.35);
    box-shadow: 0 0 25px rgba(222, 203, 183, 0.08);
}

.node-central.glowing {
    animation: yazataHubPulse 3.5s infinite alternate;
}

@keyframes yazataHubPulse {
    0% {
        border-color: rgba(222, 203, 183, 0.25);
        box-shadow: 0 0 20px rgba(222, 203, 183, 0.05);
    }
    100% {
        border-color: rgba(222, 203, 183, 0.65);
        box-shadow: 0 0 35px rgba(222, 203, 183, 0.25);
    }
}

.node-icon-wrapper-large {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.central-logo-icon {
    width: 100%;
    height: 100%;
}

.central-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    text-align: left;
}

.central-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.central-stats {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.6rem;
    width: 100%;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stat-label {
    color: var(--text-muted);
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Connection Lines overlay */
.flowchart-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.connections-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wire {
    fill: none;
    stroke-width: 2px;
    transition: stroke 0.4s ease, stroke-width 0.4s ease;
}

.wire-continuous {
    stroke: rgba(222, 203, 183, 0.18);
    stroke-dasharray: 2 4;
    animation: flowMarch 0.35s infinite linear;
}

.wire-periodic {
    stroke: rgba(255, 255, 255, 0.03);
}

.wire-periodic.active-pulse {
    stroke: var(--accent-orange);
    stroke-width: 3px;
    filter: drop-shadow(0 0 4px var(--accent-orange));
}

@keyframes flowMarch {
    to {
        stroke-dashoffset: -20;
    }
}

/* Cyberpunk Log Terminal */
.intel-flowchart-log {
    background: rgba(6, 8, 15, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
    height: 520px;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.log-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.log-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: blink 2s infinite;
}

.log-terminal {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.6;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-right: 0.5rem;
    color: var(--text-secondary);
}

/* Custom scrollbar for log-terminal */
.log-terminal::-webkit-scrollbar {
    width: 4px;
}

.log-terminal::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.01);
}

.log-terminal::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
}

.log-terminal::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

.log-line {
    word-break: break-all;
    animation: lineFadeIn 0.3s ease-out forwards;
}

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

/* Responsive adjustments for flowchart */
@media (max-width: 1024px) {
    .intel-flowchart-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .intel-flowchart-log {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .intel-flowchart-wrapper {
        padding: 1.5rem;
    }
    
    .intel-flowchart-visual {
        height: 520px;
    }

    .node-central {
        width: 340px;
        height: 135px;
        gap: 1rem;
        padding: 1rem;
    }
    
    .central-title {
        font-size: 0.95rem;
    }
    
    .node-research, .node-device {
        width: 105px;
        height: 85px;
        padding: 0.5rem;
    }
    
    .node-label {
        font-size: 0.72rem;
    }
    
    .node-indicator {
        font-size: 0.55rem;
    }
    
    .layer-top, .layer-bottom {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .intel-flowchart-visual {
        height: 500px;
    }
    
    .layer-top {
        top: 15px;
    }
    
    .layer-middle {
        top: 200px;
    }
    
    .layer-bottom {
        bottom: 15px;
    }
    
    .node-central {
        width: 290px;
        height: 120px;
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
    }
    
    .node-icon-wrapper-large {
        width: 45px;
        height: 45px;
    }
    
    .node-research, .node-device {
        width: 85px;
        height: 80px;
    }
    
    .node-label {
        font-size: 0.65rem;
        line-height: 1.25;
    }
    
    .node-icon-wrapper {
        width: 32px;
        height: 32px;
        margin-bottom: 0.25rem;
    }
    
    .node-icon-wrapper svg {
        width: 15px;
        height: 15px;
    }
    
    .device-update-badge {
        font-size: 0.55rem;
        padding: 0.15rem 0.4rem;
    }
    
    /* Make SVG wire paths adjust to centers at y-coordinates */
    .connections-svg path[id^="path-honeypot-to"],
    .connections-svg path[id^="path-ai-to"],
    .connections-svg path[id^="path-partners-to"] {
        d: path("M 16.67 11.5 L 50 50");
    }
}
