/* ============================================
   ionia automation technologies - Web Sitesi
   Ortak Stil Dosyasi (v5.0 - Dark Professional, Beckhoff-inspired)
   ============================================ */

/* --- Font (Inter loaded via Google Fonts in HTML <head>) --- */

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

:root {
    --primary: #ff6b35;
    --primary-dark: #e85d2c;
    --primary-light: rgba(255, 107, 53, 0.10);
    --navy: #0c1220;
    --navy-light: #152035;
    --blue: #4fc3f7;
    --blue-dark: #29b6f6;
    --teal: #00bfa5;
    --white: #e8eaed;
    --bg-primary: #0b0f14;
    --bg-secondary: #101720;
    --bg-card: #141c28;
    --bg-elevated: #1a2435;
    --bg-hover: #1e2a3d;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);
    --border-accent: rgba(255, 107, 53, 0.25);
    --gray-50: #1a2030;
    --gray-100: #1e2535;
    --gray-200: rgba(255, 255, 255, 0.06);
    --gray-300: rgba(255, 255, 255, 0.10);
    --gray-400: rgba(255, 255, 255, 0.25);
    --gray-600: rgba(255, 255, 255, 0.45);
    --gray-700: rgba(255, 255, 255, 0.55);
    --gray-800: rgba(255, 255, 255, 0.70);
    --text: #e8eaed;
    --text-light: #8b95a8;
    --text-muted: #5a6577;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --gradient-hero: linear-gradient(135deg, #0c1220 0%, #152035 50%, #0c1220 100%);
    /* --gradient-card removed: using flat var(--bg-card) */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', Consolas, monospace;
    --max-width: 1200px;
    --header-height: 86px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.3);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.4);
}

/* --- Light Theme --- */
[data-theme="light"] {
    --navy: #f0f2f5;
    --navy-light: #e4e7ec;
    --bg-primary: #f5f7fa;
    --bg-secondary: #edf0f4;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --bg-hover: #f0f2f5;
    --border: rgba(0, 0, 0, 0.10);
    --border-light: rgba(0, 0, 0, 0.05);
    --border-accent: rgba(255, 107, 53, 0.30);
    --gray-50: #f0f2f5;
    --gray-100: #e4e7ec;
    --gray-200: rgba(0, 0, 0, 0.06);
    --gray-300: rgba(0, 0, 0, 0.12);
    --gray-400: rgba(0, 0, 0, 0.30);
    --gray-600: rgba(0, 0, 0, 0.50);
    --gray-700: rgba(0, 0, 0, 0.60);
    --gray-800: rgba(0, 0, 0, 0.75);
    --text: #1a1a2e;
    --text-light: #555e6e;
    --text-muted: #8b95a8;
    --white: #1a1a2e;
    --gradient-hero: linear-gradient(135deg, #f0f2f5 0%, #e4e7ec 50%, #f0f2f5 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
}
[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
[data-theme="light"] .logo-brand {
    color: #1a1a2e;
}
[data-theme="light"] .logo-sub {
    color: #555e6e;
}
[data-theme="light"] .nav a {
    color: #333;
}
[data-theme="light"] .nav a:hover,
[data-theme="light"] .nav a.active {
    color: var(--primary);
}
[data-theme="light"] .footer {
    background: #1a1a2e;
    color: #e8eaed;
}
[data-theme="light"] .footer a {
    color: #ccc;
}
[data-theme="light"] code, [data-theme="light"] pre {
    background: #f0f2f5;
    color: #1a1a2e;
}
[data-theme="light"] table {
    border-color: rgba(0,0,0,0.10);
}
[data-theme="light"] th {
    background: #f0f2f5;
    color: #1a1a2e;
}
[data-theme="light"] td {
    border-color: rgba(0,0,0,0.08);
    color: #333;
}
[data-theme="light"] .hero-product {
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e7ec 100%);
}
[data-theme="light"] .hero-product h1 {
    color: #1a1a2e;
}
[data-theme="light"] .hero-product .subtitle {
    color: #555e6e;
}
[data-theme="light"] .page-sidebar {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .sidebar-nav a {
    color: #555e6e;
}
[data-theme="light"] .sidebar-nav a.active,
[data-theme="light"] .sidebar-nav a:hover {
    color: var(--primary);
    background: rgba(255,107,53,0.06);
}
[data-theme="light"] .mega-menu {
    background: rgba(255,255,255,0.98);
    border-color: rgba(0,0,0,0.10);
}
[data-theme="light"] .mega-title {
    color: #1a1a2e;
}
[data-theme="light"] .mega-desc {
    color: #555e6e;
}
[data-theme="light"] .search-overlay {
    background: rgba(0,0,0,0.5);
}
[data-theme="light"] .search-modal {
    background: #ffffff;
    border-color: rgba(0,0,0,0.10);
}

/* --- Theme Toggle Button --- */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-light);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}
.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.theme-toggle svg {
    width: 18px;
    height: 18px;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Header / Navbar --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-primary);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: #0a0e12;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: nowrap;
    text-decoration: none;
    gap: 1px;
    line-height: 1;
    flex-shrink: 0;
}

.logo-brand {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1.5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.5px;
    line-height: 1;
}

.logo:hover .logo-brand {
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    align-self: stretch;
}

.nav a {
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
}

.nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav a.active {
    color: var(--primary);
    background: rgba(255, 107, 53, 0.10);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 28, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
    min-width: 240px;
    padding: 8px;
    padding-top: 14px;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--text-light);
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 107, 53, 0.10);
    color: var(--text);
}

.dropdown-menu .sub-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.dropdown-menu a:hover .sub-label {
    color: rgba(255, 107, 53, 0.7);
}

/* Header right actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-light);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: var(--font-sans);
}

.lang-btn:hover {
    background: rgba(255, 107, 53, 0.10);
    border-color: rgba(255, 107, 53, 0.25);
    color: var(--text);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(20, 28, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
    min-width: 160px;
    padding: 8px;
    z-index: 1002;
}

.lang-dropdown.open {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 8px 12px;
    color: var(--text-light);
    font-size: 0.82rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lang-dropdown a:hover {
    background: rgba(255, 107, 53, 0.10);
    color: var(--text);
}

.lang-dropdown a.lang-active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(255, 107, 53, 0.10);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Mega Menu --- */
.nav-mega-trigger {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-mega-trigger > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mega-chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.nav-mega-trigger:hover .mega-chevron,
.nav-mega-trigger.mega-open .mega-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 740px;
    max-width: calc(100vw - 32px);
    background: rgba(14, 20, 30, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    height: 18px;
}

.nav-mega-trigger:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
    display: flex;
    padding: 28px 32px;
    gap: 0;
}

.mega-col {
    flex: 1;
    padding: 0 16px;
}

.mega-col:first-child {
    padding-left: 0;
}

.mega-col:last-child {
    padding-right: 0;
}

.mega-col-products {
    flex: 1.2;
}

.mega-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent 5%, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.08) 75%, transparent 95%);
    margin: 0 8px;
    flex-shrink: 0;
}

.mega-heading {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0 12px 12px;
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    margin-bottom: 2px;
}

.mega-item:hover {
    background: rgba(255, 107, 53, 0.05);
    border-left-color: var(--primary);
}

.mega-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 107, 53, 0.08);
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.mega-item:hover .mega-icon {
    background: rgba(255, 107, 53, 0.15);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.1);
}

.mega-icon svg {
    width: 20px;
    height: 20px;
}

.mega-text {
    display: flex;
    flex-direction: column;
    padding-top: 2px;
}

.mega-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s ease;
}

.mega-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.mega-item:hover .mega-title {
    color: var(--primary);
}

.mega-item:hover .mega-desc {
    color: var(--text-light);
}

.mega-guide-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.84rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mega-guide-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.mega-guide-icon {
    color: var(--teal);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mega-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 4px;
}

.mega-download-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
    font-size: 0.76rem;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.mega-download-item:hover {
    background: rgba(0, 191, 165, 0.10);
    color: var(--teal);
}

.mega-download-item svg {
    flex-shrink: 0;
}

/* --- Visual Diagrams --- */
.diagram {
    margin: 24px 0;
    padding: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.015), rgba(255,107,53,0.01));
    border-radius: 16px;
    border: 1px solid var(--border);
}

.diagram-flow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-node {
    text-align: center;
    padding: 0 8px;
}

.diagram-node-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.diagram-card {
    background: rgba(20, 28, 40, 0.6);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 14px;
    padding: 20px 24px;
    min-width: 150px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.diagram-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.06);
}

.diagram-card h4 {
    color: var(--primary);
    font-size: 0.95rem;
    margin: 0 0 4px;
}

.diagram-card p {
    color: var(--text-light);
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.3;
}

.diagram-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.6;
}

.diagram-note-ok {
    color: var(--teal);
}

/* Arrows */
.diagram-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px;
}

.diagram-arrow-line {
    width: 60px;
    height: 2px;
    background: var(--primary);
    position: relative;
    opacity: 0.5;
}

.diagram-arrow-line::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    border: 5px solid transparent;
    border-left: 7px solid var(--primary);
}

.diagram-arrow-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Wireless arrow (dashed teal) */
.diagram-arrow-wireless .diagram-arrow-line {
    background: none;
    border-top: 2px dashed var(--teal);
    height: 0;
    width: 80px;
    opacity: 0.6;
}

.diagram-arrow-wireless .diagram-arrow-line::after {
    border-left-color: var(--teal);
    top: -5px;
}

.diagram-arrow-wireless .diagram-arrow-label {
    color: var(--teal);
}

/* Bidirectional arrow */
.diagram-arrow-bidi .diagram-arrow-line::before {
    content: '';
    position: absolute;
    left: -6px;
    top: -4px;
    border: 5px solid transparent;
    border-right: 7px solid var(--primary);
}

.diagram-arrow-bidi.diagram-arrow-wireless .diagram-arrow-line::before {
    border-right-color: var(--teal);
    top: -5px;
}

/* Dashboard mockup */
.diagram-dashboard {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}

.diagram-dashboard-bar {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.68rem;
    color: var(--text-muted);
}

.diagram-dashboard-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    font-style: normal;
}

.diagram-dashboard-body {
    padding: 14px;
}

.diagram-dashboard-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.diagram-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
}

.diagram-badge-on {
    background: rgba(0, 191, 165, 0.12);
    color: var(--teal);
}

.diagram-badge-off {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
}

.diagram-badge-val {
    background: rgba(255, 107, 53, 0.08);
    color: var(--text-light);
}

/* Vertical topology */
.diagram-topo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 8px 0;
}

.diagram-topo-line {
    width: 2px;
    height: 20px;
    background: rgba(255, 107, 53, 0.25);
}

.diagram-topo-branch {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    position: relative;
}

.diagram-topo-branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    height: 2px;
    background: rgba(255, 107, 53, 0.2);
}

.diagram-topo-branch .diagram-node {
    position: relative;
}

.diagram-topo-branch .diagram-node::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    width: 2px;
    height: 12px;
    background: rgba(255, 107, 53, 0.25);
}

.diagram-card-sm {
    background: rgba(20, 28, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.78rem;
    color: var(--text-light);
    text-align: center;
}

.diagram-card-sm strong {
    color: var(--primary);
}

/* Scale visual */
.diagram-scale {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.diagram-scale-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.diagram-scale-text {
    font-size: 0.82rem;
    color: var(--text-light);
}

.diagram-scale-op {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
    .diagram { padding: 20px 16px; }
    .diagram-card { padding: 14px 18px; min-width: 110px; }
    .diagram-arrow { padding: 0 6px; }
    .diagram-arrow-line { width: 40px; }
    .diagram-arrow-wireless .diagram-arrow-line { width: 50px; }
    .diagram-topo-branch { gap: 16px; }
    .diagram-scale-num { font-size: 1.5rem; }
}

/* --- WENC2 Render Diagram --- */
.wenc2-render-diagram {
    text-align: center;
    margin: 24px 0;
}
.wenc2-render-diagram img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}
.wenc2-render-devices {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 24px 0 16px;
    flex-wrap: wrap;
}
.wenc2-device {
    text-align: center;
    max-width: 240px;
}
.wenc2-device img {
    height: 320px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}
.wenc2-device:hover img {
    transform: scale(1.05);
}
.wenc2-device h4 {
    color: var(--primary);
    font-size: 1rem;
    margin: 12px 0 4px;
}
.wenc2-device p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}
@media (max-width: 600px) {
    .wenc2-render-devices { gap: 24px; }
    .wenc2-device img { height: 220px; }
}

/* --- Copper Widget (Below hero, integrated dark card) --- */
.copper-widget {
    padding: 40px 24px;
    background: var(--bg-primary);
}

.copper-widget-inner {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(184,115,51,0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(184,115,51,0.06);
}

.copper-widget-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(184,115,51,0.10);
    background: linear-gradient(135deg, rgba(184,115,51,0.06) 0%, transparent 100%);
}

.copper-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #b87333, #d4956a);
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(184,115,51,0.25);
    position: relative;
}

.copper-symbol {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: 1px;
}

.copper-number {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    line-height: 1;
}

.copper-title h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #d4956a;
    margin: 0;
    line-height: 1.3;
}

.copper-title p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.copper-indicator {
    margin-left: auto;
    color: #d4956a;
    opacity: 0.5;
}

.copper-indicator svg {
    width: 22px;
    height: 22px;
}

.copper-chart-wrap {
    position: relative;
    height: 300px;
}

.copper-chart {
    width: 100%;
    height: 100%;
}

.copper-chart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
    background: transparent;
    transition: background 0.2s;
}

.copper-chart-overlay span {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(11,15,20,0.7);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    opacity: 0;
    transition: opacity 0.3s;
}

.copper-chart-overlay:hover span {
    opacity: 1;
}

@media (max-width: 768px) {
    .copper-widget {
        padding: 24px 16px;
    }
    .copper-widget-inner {
        border-radius: 12px;
    }
    .copper-widget-header {
        padding: 14px 16px;
        gap: 10px;
    }
    .copper-badge {
        width: 40px;
        height: 40px;
    }
    .copper-symbol {
        font-size: 0.95rem;
    }
    .copper-title h3 {
        font-size: 0.9rem;
    }
    .copper-chart-wrap {
        height: 240px;
    }
}

/* --- Hero Section (Full-screen, animated) --- */
.hero {
    background: var(--gradient-hero);
    padding: 0 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Hero background video */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.25;
    z-index: 0;
    filter: brightness(0.6) saturate(0.7);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(12,18,32,0.4) 0%, rgba(12,18,32,0.7) 60%, rgba(12,18,32,0.95) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.2;
    color: #ffffff;
}

.hero h1 span {
    color: var(--primary);
}

.hero .subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero .hero-cta {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn:hover {
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    color: #fff;
    background: var(--primary-dark);
    
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255,107,53,0.08);
}

/* --- Main Content --- */
.main {
    padding-top: var(--header-height);
}

.content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px;
}

.content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-accent);
}

.content h2:first-child {
    margin-top: 0;
}

.content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin: 32px 0 12px;
}

.content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 24px 0 8px;
}

.content p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

.content ul, .content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.content li {
    margin-bottom: 6px;
    color: var(--text-light);
    line-height: 1.6;
}

.content li strong {
    color: var(--text);
}

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

.content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 20px 0;
    background: rgba(255, 107, 53, 0.06);
    border-radius: 0 8px 8px 0;
}

.content blockquote p {
    color: var(--text);
    margin-bottom: 0;
    font-style: italic;
}

.content hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

/* --- Section with Background --- */
.section-gray {
    background: var(--bg-secondary);
    padding: 64px 24px;
    position: relative;
}

.section-gray .content {
    padding: 0;
}


/* --- Tables --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.9rem;
    overflow-x: auto;
    display: block;
    max-width: 100%;
}

@media (min-width: 768px) {
    table {
        display: table;
    }
}

thead {
    background: var(--bg-elevated);
    color: var(--text);
}

th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid rgba(255, 255, 255, 0.10);
    color: var(--text);
}

td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: var(--text-light);
}

tbody tr:hover {
    background: rgba(255, 107, 53, 0.05);
}

/* --- Code blocks --- */
pre {
    background: var(--bg-elevated);
    color: var(--text);
    padding: 20px 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}

code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--bg-elevated);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* Model codes (ION8-1212, WENC2-TX, BL-001 etc.) */
code.model {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.9em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255,107,53,0.2);
    box-shadow: 0 1px 3px rgba(255,107,53,0.12);
    white-space: nowrap;
}

/* --- Product Cards (Index page - Dark Professional) --- */
.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin: 32px 0;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 0;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    overflow: hidden;
}

.product-card:hover {
    border-color: rgba(255, 107, 53, 0.4);
}

.product-card-body {
    padding: 28px 28px 24px;
}

.product-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
}

.product-card-icon svg {
    width: 100%;
    height: 100%;
}

.product-card h3 {
    font-size: 1.35rem;
    color: var(--text);
    margin: 0 0 4px;
}

.product-card .product-tagline {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.product-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-card .card-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.product-card .card-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    padding: 6px 0;
    transition: color 0.2s;
}

.product-card .card-links a:hover {
    color: var(--primary-dark);
}

/* --- Placeholder Image --- */
.placeholder-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-secondary) 100%);
    border: 1px dashed var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 16px 0;
}

.placeholder-image svg {
    width: 32px;
    height: 32px;
    opacity: 0.4;
}

.placeholder-image.placeholder-card {
    margin: 0;
    border-radius: 8px 8px 0 0;
    border: none;
    border-bottom: 1px solid var(--border);
    height: 180px;
}

/* --- Product page hero (smaller, with gradient accent) --- */
.hero-product {
    background: var(--gradient-hero);
    padding: 100px 24px 60px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-product::before {
    display: none;
}

.hero-product::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.hero-product h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    color: #ffffff;
}

.hero-product .subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto 24px;
    position: relative;
}

.hero-product .badge {
    display: inline-block;
    background: rgba(255,107,53,0.15);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255,107,53,0.3);
    position: relative;
}

/* Product page icon */
.hero-product-icon {
    position: relative;
    margin-bottom: 20px;
}

.hero-product-icon svg {
    width: 72px;
    height: 72px;
}

/* --- Kilavuz (Manual) Layout with Sidebar TOC --- */
.kilavuz-layout {
    display: flex;
    gap: 0;
    max-width: 100%;
    padding-top: var(--header-height);
}

.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 280px;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    z-index: 100;
}

.sidebar-title {
    padding: 0 20px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.sidebar-nav a {
    display: block;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sidebar-nav a:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.sidebar-nav a.active {
    border-left-color: var(--primary);
    color: var(--text);
    font-weight: 600;
    background: rgba(255, 107, 53, 0.08);
}

.kilavuz-content {
    margin-left: 280px;
    flex: 1;
    padding: 48px 40px;
    max-width: calc(100% - 280px);
    min-height: calc(100vh - var(--header-height));
}

.kilavuz-content h2 {
    font-size: 1.6rem;
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.kilavuz-content h3 {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

/* --- Guide Hero Banner --- */
.guide-hero {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 28px 32px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(21,101,192,0.10) 0%, rgba(255,107,53,0.08) 50%, rgba(0,191,165,0.06) 100%);
    border: 1px solid rgba(255,107,53,0.15);
    border-radius: 16px;
    overflow: hidden;
}
.guide-hero-content {
    flex: 1;
    min-width: 0;
}
.guide-hero-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    border: none;
    padding: 0;
}
.guide-hero-subtitle {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 500;
    margin: 0 0 8px;
}
.guide-hero-version {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}
.guide-hero-img {
    flex-shrink: 0;
    max-width: 280px;
}
.guide-hero-img img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}

/* --- Product Showcase Image --- */
.product-showcase {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,107,53,0.04) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.product-showcase img {
    max-width: 420px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}
.img-caption {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- Wiring Diagram --- */
.wiring-diagram {
    margin: 20px 0 28px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,107,53,0.15);
    background: #0d1117;
}
.wiring-diagram svg {
    display: block;
}

/* --- Guide Section Styling --- */
.kilavuz-content section {
    padding-bottom: 8px;
}
.kilavuz-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-accent), transparent);
    margin: 32px 0;
}
.kilavuz-content section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.kilavuz-content section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

/* --- Alert Boxes (Guide) --- */
.alert-warning {
    background: rgba(211,47,47,0.08);
    border-left: 3px solid #d32f2f;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}
.alert-warning strong {
    color: #ef5350;
}
.alert-info {
    background: rgba(21,101,192,0.08);
    border-left: 3px solid #1565c0;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}
.alert-info strong {
    color: #42a5f5;
}

/* --- Kilavuz Table Enhancements --- */
.kilavuz-content table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.kilavuz-content thead {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(21,101,192,0.12) 100%);
}
.kilavuz-content th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--blue);
    border-bottom: 2px solid rgba(79,195,247,0.15);
}
.kilavuz-content td {
    font-size: 0.88rem;
}
.kilavuz-content tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.015);
}
.kilavuz-content ol {
    counter-reset: guide-step;
    padding-left: 0;
    list-style: none;
}
.kilavuz-content ol > li {
    counter-increment: guide-step;
    padding-left: 36px;
    position: relative;
    margin-bottom: 10px;
}
.kilavuz-content ol > li::before {
    content: counter(guide-step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 24px;
    height: 24px;
    background: rgba(255,107,53,0.12);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Page Layout with Sidebar (product & index pages) --- */
.page-layout {
    display: flex;
    padding-top: var(--header-height);
}

.page-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 240px;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    z-index: 100;
}

.page-sidebar .sidebar-title {
    padding: 0 20px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.page-sidebar .sidebar-nav a {
    display: block;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.page-sidebar .sidebar-nav a:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.page-sidebar .sidebar-nav a.active {
    border-left-color: var(--primary);
    color: var(--text);
    font-weight: 600;
    background: rgba(255, 107, 53, 0.08);
}

.page-content {
    margin-left: 240px;
    flex: 1;
    max-width: calc(100% - 240px);
}

.page-content .content {
    padding-top: 32px;
}

.page-content .content h2 {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

/* Product illustration SVG area */
.product-illustration {
    width: 100%;
    max-width: 600px;
    margin: 24px auto;
    display: block;
    background: var(--navy);
    border-radius: 12px;
    padding: 24px;
}

.product-illustration svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Product photo with diagram overlay */
.photo-diagram {
    width: 100%;
    max-width: 700px;
    margin: 32px auto;
}

.photo-diagram-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.photo-diagram-container img {
    width: 100%;
    display: block;
}

.photo-diagram-container svg.diagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.photo-diagram-caption {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* --- Back link --- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary-dark);
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    color: rgba(255,255,255,0.7);
    padding: 48px 24px 24px;
    margin-top: 64px;
    position: relative;
    border-top: none;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer a {
    color: var(--primary);
    font-size: 0.85rem;
}

.footer a:hover {
    color: #ff8f69;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

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

.footer-links li.footer-social {
    display: flex !important;
    gap: 16px;
    margin-top: 20px;
    list-style: none;
}

.footer-links li.footer-social a {
    width: 56px !important;
    height: 56px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-links li.footer-social a svg {
    width: 30px !important;
    height: 30px !important;
}

/* Instagram — brand color (pink/orange/purple gradient on hover) */
.footer-links li.footer-social a[aria-label="Instagram"] {
    color: #E1306C;
}
.footer-links li.footer-social a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(221, 42, 123, 0.45);
}

/* LinkedIn — brand blue */
.footer-links li.footer-social a[aria-label="LinkedIn"] {
    color: #0A66C2;
}
.footer-links li.footer-social a[aria-label="LinkedIn"]:hover {
    background: #0A66C2;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 102, 194, 0.45);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* --- Comparison Table --- */
.comparison-table {
    margin: 24px 0;
}

.comparison-table thead {
    background: var(--bg-elevated);
}

.comparison-table td:first-child {
    font-weight: 500;
    color: var(--text);
}

/* --- Section anchors --- */
section[id] {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

/* --- Section Title with Accent --- */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    border: none;
    padding: 0;
    margin: 0 0 12px;
    font-size: 2rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title .accent-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin: 16px auto 0;
}

/* --- Coming Soon Page --- */
.coming-soon {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: var(--gradient-hero);
    color: #ffffff;
}

.coming-soon h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff;
}

.coming-soon h1 span {
    color: var(--primary);
}

.coming-soon p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.7;
}


/* --- Steps Flow (How it works) --- */
.steps-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 32px 0;
    counter-reset: step;
}

.step-item {
    text-align: center;
    padding: 24px 16px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--shadow-sm);
}

.step-item:hover {
    border-color: var(--primary);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-item h4 {
    color: var(--text);
    margin: 0 0 8px;
    font-size: 1rem;
}

.step-item p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* --- FAQ Accordion --- */
.faq-list {
    margin: 32px 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    background: var(--bg-card);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: background 0.15s;
}

.faq-question:hover {
    background: var(--bg-elevated);
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-question::after {
    content: '\2212';
}

.faq-answer {
    display: none;
    padding: 0 20px 16px;
    background: var(--bg-card);
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* --- Product Comparison Table --- */
.comparison-grid {
    overflow-x: auto;
    margin: 32px 0;
}

.comparison-grid table {
    min-width: 600px;
}

@media (max-width: 768px) {
    .comparison-grid table {
        min-width: 100%;
        font-size: 0.75rem;
    }
    .comparison-grid th,
    .comparison-grid td {
        padding: 6px 8px;
        word-break: break-word;
    }
}

.comparison-grid th:first-child,
.comparison-grid td:first-child {
    font-weight: 600;
    color: var(--text);
    background: var(--bg-elevated);
    white-space: nowrap;
}

/* --- Sidebar Icon Enhancement --- */
.sidebar-nav a,
.page-sidebar .sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-icon svg {
    width: 100%;
    height: 100%;
}

/* Sidebar background and decoration */
.page-sidebar,
.sidebar {
    background: var(--bg-card);
}

.page-sidebar .sidebar-title,
.sidebar .sidebar-title {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 4px;
}

.page-sidebar .sidebar-title::after,
.sidebar .sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* Separator lines between sidebar links */
.sidebar-nav a,
.page-sidebar .sidebar-nav a {
    border-bottom: 1px solid var(--border-light);
}

.sidebar-nav a:last-child,
.page-sidebar .sidebar-nav a:last-child {
    border-bottom: none;
}

/* Enhanced active state */
.sidebar-nav a.active,
.page-sidebar .sidebar-nav a.active {
    background: rgba(255, 107, 53, 0.08);
    border-left-color: var(--primary);
    border-left-width: 4px;
}

.sidebar-nav a.active .sidebar-icon svg,
.page-sidebar .sidebar-nav a.active .sidebar-icon svg {
    color: var(--primary);
}

/* Hover icon color */
.sidebar-nav a:hover .sidebar-icon svg,
.page-sidebar .sidebar-nav a:hover .sidebar-icon svg {
    color: var(--primary);
}

/* --- ION8 Product Family Cards --- */
.ion8-family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.ion8-model-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ion8-model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.ion8-model-card:hover {
    border-color: var(--primary);
}

.ion8-model-card .model-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ion8-model-card .model-header code.model {
    font-size: 0.85em;
}

.ion8-model-card .model-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.ion8-model-card .model-config {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.ion8-model-card .model-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Nav dropdown sub-label improvements */
.dropdown-menu .sub-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    .kilavuz-content {
        margin-left: 240px;
        max-width: calc(100% - 240px);
        padding: 32px 24px;
    }
    .page-sidebar {
        width: 200px;
    }
    .page-content {
        margin-left: 200px;
        max-width: calc(100% - 200px);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .header-inner {
        padding: 0 10px;
    }

    .logo-brand {
        font-size: 1.3rem;
    }

    .logo-sub {
        font-size: 0.5rem;
    }

    .header-actions {
        gap: 4px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.72rem;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--bg-elevated);
        border-radius: 4px;
        margin-top: 4px;
        border: none;
        min-width: 0;
        width: 100%;
        transform: none;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-dropdown.dropdown-open .dropdown-menu {
        display: block;
    }

    /* Mega Menu Mobile */
    .nav-mega-trigger {
        height: auto;
        display: block;
        width: 100%;
    }

    .nav-mega-trigger > a {
        width: 100%;
        padding: 12px 16px;
        justify-content: space-between;
    }

    .mega-menu {
        position: static;
        width: 100%;
        max-width: none;
        transform: none;
        border-radius: 8px;
        border: none;
        box-shadow: none;
        background: var(--bg-elevated);
        margin-top: 4px;
        opacity: 1;
        visibility: visible;
        display: none;
        pointer-events: auto;
        transition: none;
    }

    .mega-menu::before {
        display: none;
    }

    .nav-mega-trigger:hover .mega-menu {
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-mega-trigger.mega-open .mega-menu {
        display: block;
    }

    .mega-menu-inner {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }

    .mega-col {
        padding: 0;
    }

    .mega-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
        margin: 4px 0;
    }

    .mega-item {
        padding: 10px;
    }

    .mega-icon {
        width: 36px;
        height: 36px;
    }

    .hero {
        min-height: auto;
        padding: 100px 16px 60px;
    }

    .hero-video {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero-product h1 {
        font-size: 1.8rem;
    }

    .hero-product {
        padding: 80px 16px 40px;
    }

    .content {
        padding: 32px 16px;
    }

    .product-cards {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Sidebar: off-canvas on mobile */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .kilavuz-content {
        margin-left: 0;
        max-width: 100%;
        padding: 24px 16px;
    }

    .guide-hero {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        text-align: center;
    }
    .guide-hero-content h1 {
        font-size: 1.8rem;
    }
    .guide-hero-img {
        max-width: 220px;
    }
    .product-showcase img {
        max-width: 280px;
    }

    /* Page sidebar (product & index pages) - off-canvas */
    .page-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        width: 240px;
    }

    .page-sidebar.open {
        transform: translateX(0);
    }

    .page-content {
        margin-left: 0;
        max-width: 100%;
    }

    .sidebar-toggle {
        display: flex;
    }

    table {
        font-size: 0.78rem;
        max-width: 100%;
    }

    th {
        white-space: normal;
        word-break: break-word;
    }

    th, td {
        padding: 6px 8px;
    }

    pre {
        max-width: calc(100vw - 32px);
        font-size: 0.75rem;
    }

    .placeholder-image {
        height: 150px;
    }

    .product-illustration {
        max-width: 100%;
    }

    .product-illustration svg {
        max-width: 100%;
    }

    .hero-product {
        padding: 80px 16px 40px;
    }

    .hero-product h1 {
        font-size: 1.6rem;
        word-break: break-word;
    }

    .content {
        padding: 24px 16px;
    }

    .section-gray {
        padding: 40px 16px;
    }

    .download-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    img, svg, video, canvas, iframe {
        max-width: 100%;
        height: auto;
    }
}

/* Sidebar toggle button (mobile only) */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 200;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(255,107,53,0.35);
    cursor: pointer;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
        bottom: 54px;
    }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    /* Push content up so footer isn't hidden */
    .footer { margin-bottom: 44px; }
}

/* --- Contact Form Section --- */
.contact-section {
    background: linear-gradient(135deg, rgba(255,107,53,0.05) 0%, rgba(0,191,165,0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    margin: 48px 0 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: flex-start;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 0 0 8px;
}

.contact-info .contact-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.6;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s, transform 0.2s;
    box-shadow: var(--shadow-sm);
}

.contact-channel:hover {
    border-color: var(--border-accent);
    transform: translateX(4px);
}

.contact-channel-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-channel-icon svg {
    width: 20px;
    height: 20px;
}

.contact-channel-icon.cci-email { background: rgba(255,107,53,0.12); color: var(--primary); }
.contact-channel-icon.cci-phone { background: rgba(0,191,165,0.12); color: var(--teal); }
.contact-channel-icon.cci-support { background: rgba(79,195,247,0.12); color: var(--blue); }

.contact-channel-text strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 2px;
}

.contact-channel-text span {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.3px;
}

.form-group label .required {
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%238b95a8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-elevated);
    color: var(--text);
}

.form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.5;
}

.form-consent input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.form-consent a {
    color: var(--primary);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.btn-submit:hover {
    box-shadow: var(--shadow-sm);
}

.btn-submit svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .contact-section {
        padding: 24px 16px;
        margin: 32px 0 0;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --- Download Button --- */
.download-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    margin: 24px 0;
    background: linear-gradient(135deg, rgba(255,107,53,0.08) 0%, rgba(0,191,165,0.05) 100%);
    border: 1px solid rgba(255,107,53,0.18);
    border-radius: 12px;
    flex-wrap: wrap;
}

.download-bar-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.download-bar-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,107,53,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-bar-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.download-bar-info h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 2px;
}

.download-bar-info p {
    font-size: 0.78rem;
    color: var(--text-light);
    margin: 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-download:hover {
    box-shadow: var(--shadow-sm);
    color: #fff;
}

.btn-download svg {
    width: 18px;
    height: 18px;
}

.btn-download-outline {
    background: transparent;
    border: 2px solid rgba(255,107,53,0.25);
    color: var(--primary);
}

.btn-download-outline:hover {
    border-color: var(--primary);
    background: rgba(255,107,53,0.06);
    color: var(--primary);
}

/* --- Search Overlay --- */
.search-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-light);
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    white-space: nowrap;
}

.search-btn:hover {
    background: rgba(255,107,53,0.10);
    border-color: rgba(255,107,53,0.25);
    color: var(--text);
}

.search-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.search-btn .search-shortcut {
    font-size: 0.7rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: var(--font-mono);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .search-btn .search-shortcut,
    .search-btn .search-label {
        display: none;
    }
    .search-btn {
        padding: 7px 10px;
    }
}

.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    animation: searchFadeIn 0.2s ease;
}

.search-overlay.open {
    display: flex;
}

@keyframes searchFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-container {
    width: 90%;
    max-width: 640px;
    background: rgba(20, 28, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    animation: searchSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes searchSlideIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
}

.search-input-wrapper svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-family: var(--font-sans);
    color: var(--text);
    caret-color: var(--primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-esc {
    font-size: 0.72rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    padding: 3px 8px;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.search-results {
    max-height: 50vh;
    overflow-y: auto;
    padding: 8px;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.20);
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover,
.search-result-item.active {
    background: rgba(255, 107, 53, 0.08);
}

.search-result-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.18);
}

.search-result-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.search-result-icon.icon-guide {
    background: rgba(0, 191, 165, 0.12);
    border-color: rgba(0, 191, 165, 0.18);
}

.search-result-icon.icon-guide svg {
    color: var(--teal);
}

.search-result-icon.icon-section {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.search-result-icon.icon-section svg {
    color: var(--text-muted);
}

.search-result-text {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.search-result-title mark {
    background: rgba(255, 107, 53, 0.20);
    color: var(--primary);
    border-radius: 2px;
    padding: 0 2px;
}

.search-result-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-tag {
    font-size: 0.68rem;
    color: var(--primary);
    background: rgba(255, 107, 53, 0.10);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    align-self: center;
}

.search-result-tag.tag-guide {
    color: var(--teal);
    background: rgba(0, 191, 165, 0.10);
}

.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.search-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.search-footer kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    }

@media (max-width: 768px) {
    }

/* --- Product Video Section --- */
.product-video {
    padding: 60px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.product-video-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.product-video-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.product-video-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.product-video-player {
    width: 100%;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border: 2px dashed rgba(255, 107, 53, 0.25);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.video-placeholder:hover {
    border-color: rgba(255, 107, 53, 0.5);
    background: var(--bg-elevated);
}

.video-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.video-placeholder:hover svg {
    opacity: 1;
}

.video-placeholder span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .product-video {
        padding: 40px 16px;
    }
    .product-video-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-video-text h3 {
        font-size: 1.2rem;
    }
}

.product-video-player video {
    width: 100%;
    border-radius: 12px;
    background: #000;
}

/* --- Product Photo Gallery --- */
.product-gallery {
    padding: 60px 24px;
    background: var(--bg);
}

.product-gallery-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.product-gallery h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.product-gallery .gallery-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-grid .gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid .gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.15);
}

.gallery-grid .gallery-item.featured {
    grid-column: 1 / -1;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.gallery-grid .gallery-item.featured img {
    max-height: 420px;
}

.gallery-grid .gallery-item:not(.featured) img {
    aspect-ratio: 4 / 3;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
}

/* Gallery lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.gallery-lightbox-close:hover {
    opacity: 1;
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

.gallery-lightbox-nav.prev {
    left: 20px;
}

.gallery-lightbox-nav.next {
    right: 20px;
}

@media (max-width: 768px) {
    .product-gallery {
        padding: 40px 16px;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .gallery-grid .gallery-item.featured img {
        max-height: 260px;
    }
    .product-gallery h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

/* --- Product Spec Tabs (cdebyte-inspired) --- */
.spec-section {
    max-width: 960px;
    margin: 0 auto;
}
.spec-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    margin-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.spec-tabs::-webkit-scrollbar { display: none; }
.spec-tab {
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.25s, border-color 0.25s;
    position: relative;
}
.spec-tab:hover {
    color: var(--text);
}
.spec-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.spec-tab-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: -2px;
    margin-right: 6px;
}
.spec-panel {
    display: none;
    animation: specFadeIn 0.35s ease;
}
.spec-panel.active {
    display: block;
}
@keyframes specFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spec Features Grid */
.spec-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 32px 0;
}
.spec-feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 24px 20px;
    transition: border-color 0.3s, transform 0.3s;
}
.spec-feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.spec-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,107,53,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.spec-feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.8;
}
.spec-feature-icon.teal { background: rgba(0,191,165,0.1); }
.spec-feature-icon.teal svg { stroke: var(--teal); }
.spec-feature-icon.blue { background: rgba(66,165,245,0.1); }
.spec-feature-icon.blue svg { stroke: #42a5f5; }
.spec-feature-card h4 {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 8px;
}
.spec-feature-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
}
.spec-feature-card .spec-value {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: 8px;
}

/* Spec Parameters Table */
.spec-params-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}
.spec-params-table th {
    background: rgba(255,107,53,0.08);
    color: var(--primary);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,107,53,0.2);
}
.spec-params-table td {
    padding: 11px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.85rem;
    color: var(--text-light);
}
.spec-params-table tr:hover td {
    background: rgba(255,255,255,0.02);
}
.spec-params-table td:first-child {
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}
.spec-params-table .param-category {
    background: rgba(0,191,165,0.06);
    color: var(--teal);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0,191,165,0.15);
}
.spec-params-table .param-category td {
    color: var(--teal);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0,191,165,0.06);
    border-bottom: 1px solid rgba(0,191,165,0.15);
}

/* Pin Table */
.spec-pin-group {
    margin-bottom: 32px;
}
.spec-pin-group h3 {
    font-size: 1rem;
    color: var(--text);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.spec-pin-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}
.spec-pin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.spec-pin-table th {
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    padding: 10px 12px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.spec-pin-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: var(--text-light);
}
.spec-pin-table tr:hover td {
    background: rgba(255,255,255,0.02);
}
.pin-func {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-weight: 600;
    color: var(--teal);
    font-size: 0.82rem;
}
.pin-power { color: #ef5350; }
.pin-gnd { color: #42a5f5; }
.pin-enc { color: #66bb6a; }
.pin-di { color: #ffd54f; }
.pin-rs485 { color: #ab47bc; }

/* Block Diagram Placeholder */
.spec-diagram-placeholder {
    text-align: center;
    padding: 48px 24px;
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 16px;
    margin: 24px 0;
    background: rgba(255,255,255,0.01);
}
.spec-diagram-placeholder svg {
    width: 48px;
    height: 48px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 12px;
}
.spec-diagram-placeholder p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Downloads Grid */
.spec-downloads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    padding: 24px 0;
}
.spec-download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.3s, transform 0.3s;
}
.spec-download-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.spec-download-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,107,53,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.spec-download-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
}
.spec-download-info h4 {
    font-size: 0.9rem;
    margin: 0 0 4px;
    color: var(--text);
}
.spec-download-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* Spec Tabs Responsive */
@media (max-width: 768px) {
    .spec-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .spec-feature-card {
        padding: 18px 14px;
    }
    .spec-tab {
        padding: 12px 16px;
        font-size: 0.82rem;
    }
    .spec-params-table td,
    .spec-params-table th {
        padding: 9px 10px;
        font-size: 0.8rem;
    }
}
@media (max-width: 480px) {
    .spec-features {
        grid-template-columns: 1fr;
    }
    .spec-tab {
        padding: 10px 12px;
        font-size: 0.78rem;
    }
}

/* --- Model Comparison Cards --- */
.model-compare {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 28px 0;
}
.model-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px 22px;
    position: relative;
    transition: border-color 0.3s, transform 0.3s;
}
.model-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.15);
}
.model-card.model-popular {
    border-color: var(--primary);
    background: rgba(255,107,53,0.04);
}
.model-card.model-popular:hover {
    border-color: var(--primary);
    box-shadow: 0 0 24px rgba(255,107,53,0.12);
}
.model-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    margin-bottom: 12px;
}
.model-badge.popular {
    background: var(--primary);
    color: #fff;
}
.model-card h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 0 0 4px;
    font-weight: 700;
}
.model-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 16px;
}
.model-enc-count {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}
.model-enc-dot {
    width: 28px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
}
.model-enc-dot.active {
    background: var(--primary);
}
.model-popular .model-enc-dot.active {
    background: var(--primary);
}
.model-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.model-features li {
    padding: 7px 0 7px 26px;
    position: relative;
    font-size: 0.85rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.model-features li:last-child { border-bottom: none; }
.model-features li::before {
    position: absolute;
    left: 0;
    top: 7px;
    font-size: 0.85rem;
}
.model-features li.included::before {
    content: "\2713";
    color: var(--teal);
}
.model-features li.excluded {
    color: var(--text-muted);
    opacity: 0.45;
}
.model-features li.excluded::before {
    content: "\2715";
    color: var(--text-muted);
}
.model-ideal {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
@media (max-width: 768px) {
    .model-compare {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* --- Cookie/KVKK Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.cookie-banner.visible {
    transform: translateY(0);
}
.cookie-banner p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    max-width: 600px;
}
.cookie-banner a {
    color: var(--primary);
    text-decoration: underline;
}
.cookie-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.cookie-btn:hover {
    background: var(--primary-dark);
}
@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        text-align: center;
    }
}

/* --- Print --- */
@media print {
    .header, .footer, .sidebar, .page-sidebar, .sidebar-toggle, .hamburger, .lang-selector, .header-actions {
        display: none;
    }
    .main { padding-top: 0; }
    .kilavuz-content { margin-left: 0; max-width: 100%; }
    .page-content { margin-left: 0; max-width: 100%; }
    .page-layout { padding-top: 0; }
    pre { white-space: pre-wrap; }
    .hero { min-height: auto; padding: 40px 24px; }
    body { background: #fff; color: #000; }
}


/* --- Logo: Real ionia, BIG, bright blue on dark / corporate blue on light --- */
.logo-img {
    height: 62px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease, filter 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 2px 8px rgba(74, 144, 255, 0.2));
}
[data-theme="light"] .logo-img {
    filter: none;
}
/* Dark theme: show bright blue, hide corporate blue */
.logo-dark-theme { display: block; }
.logo-light-theme { display: none; }
[data-theme="light"] .logo-dark-theme { display: none; }
[data-theme="light"] .logo-light-theme { display: block; }
.logo:hover .logo-img {
    opacity: 0.88;
}
@media (max-width: 900px) {
    .logo-img { height: 50px; max-width: 220px; }
}
@media (max-width: 600px) {
    .logo-img { height: 42px; max-width: 180px; }
}

/* --- Sidebar: Collapsed by default, expands on hover (desktop) --- */
@media (min-width: 901px) {
    .page-sidebar {
        width: 56px;
        overflow: hidden;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .page-sidebar:hover {
        width: 240px;
        box-shadow: 4px 0 16px rgba(0,0,0,0.3);
    }
    .page-sidebar .sidebar-title {
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    .page-sidebar:hover .sidebar-title {
        opacity: 1;
        transition-delay: 0.1s;
    }
    .page-sidebar .sidebar-nav a {
        white-space: nowrap;
        overflow: hidden;
    }
    .page-sidebar .sidebar-nav a span:not(.sidebar-icon) {
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    .page-sidebar:hover .sidebar-nav a span:not(.sidebar-icon) {
        opacity: 1;
        transition-delay: 0.1s;
    }
    /* Hide actual text (non-icon) content of sidebar links when collapsed */
    .page-sidebar .sidebar-nav a {
        padding-left: 16px;
    }
}
/* Sidebar toggle button not needed anymore for desktop hover */
.sidebar-toggle-desktop { display: none !important; }
@media (max-width: 900px) {
    .page-sidebar { width: 240px; }
}



/* --- Modern Sidebar Enhancement --- */
.page-sidebar {
    background: linear-gradient(180deg, rgba(20,28,40,0.95), rgba(11,15,20,0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255,255,255,0.06);
}
.page-sidebar .sidebar-nav a {
    position: relative;
    border-radius: 10px;
    margin: 4px 8px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}
.page-sidebar .sidebar-nav a::before {
    content: "";
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}
.page-sidebar .sidebar-nav a:hover::before,
.page-sidebar .sidebar-nav a.active::before {
    opacity: 1;
    transform: translateX(0);
}
.page-sidebar .sidebar-nav a:hover {
    background: rgba(255,107,53,0.08);
    color: #fff;
}
.page-sidebar .sidebar-nav a.active {
    background: rgba(255,107,53,0.12);
    color: var(--primary);
    font-weight: 600;
}
.page-sidebar .sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.page-sidebar .sidebar-nav a:hover .sidebar-icon {
    transform: scale(1.1);
    color: var(--primary);
}
[data-theme="light"] .page-sidebar {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(247,249,252,0.98));
    border-right: 1px solid rgba(0,0,0,0.06);
}

/* --- Modern Hero Redesign --- */
.hero {
    background:
        radial-gradient(ellipse 100% 70% at 50% 0%, rgba(255,107,53,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,191,165,0.10) 0%, transparent 60%),
        linear-gradient(180deg, #050810 0%, #0a1018 50%, #0b0f14 100%);
}

/* Model cards - clickable effect */
.model-card-link { cursor: pointer; }
.model-card-link .model-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.model-card-link:hover .model-card {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--primary);
}
.model-card-link:hover .model-card-link::after {
    opacity: 1;
}



/* --- Hero Minimal Corporate (Beckhoff-style) --- */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
    overflow: hidden;
    /* Clean professional dark gradient */
    background:
        linear-gradient(135deg, #0a1320 0%, #0b0f14 100%);
    border-bottom: 1px solid rgba(255, 107, 53, 0.15);
}

/* Subtle static grid - no animation */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

/* Single subtle accent glow - no movement */
.hero::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255,107,53,0.06) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-cable-anim { display: none !important; }
.hero-video { display: none !important; }
.hero-bg-overlay { display: none; }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}
.hero-content h1 {
    text-align: center;
    margin: 0 auto 24px auto;
    color: #ffffff !important;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}
.hero-content h1 span {
    color: #ff6b35;
    font-weight: 800;
}
.hero-content .subtitle {
    text-align: center;
    margin: 0 auto 40px auto;
    max-width: 640px;
    color: rgba(255,255,255,0.72) !important;
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 400;
}
.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
/* Light theme: keep hero dark for consistency */
[data-theme="light"] .hero {
    background: linear-gradient(135deg, #0a1320 0%, #0b0f14 100%);
    color: #ffffff;
}
[data-theme="light"] .hero-content h1 { color: #ffffff !important; }
[data-theme="light"] .hero-content .subtitle { color: rgba(255,255,255,0.72) !important; }

@media (max-width: 900px) {
    .hero { padding: 90px 20px; min-height: 440px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .subtitle { font-size: 1rem; }
}
@media (max-width: 500px) {
    .hero-content h1 { font-size: 1.7rem; }
}


/* --- Fix: Sidebar FLOATING (not taking up space) = content centered in viewport --- */
@media (min-width: 901px) {
    .page-layout {
        display: block !important; /* override any grid/flex */
        position: relative;
    }
    .page-sidebar {
        position: fixed;
        top: var(--header-height, 86px);
        left: 0;
        bottom: 0;
        width: 56px;
        z-index: 50;
        overflow-y: auto;
        padding-top: 20px;
    }
    .page-sidebar:hover {
        width: 240px;
        box-shadow: 4px 0 24px rgba(0,0,0,0.4);
    }
    .page-content {
        width: 100%;
        max-width: none;
        margin-left: 0 !important;
    }
    .content {
        max-width: 900px;
        margin: 0 auto;
        padding: 48px 24px;
    }
}

/* --- Hero: Professional pulse line + stats counter --- */
.hero-pulse-line {
    position: absolute;
    bottom: 20%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,107,53,0.1) 20%, rgba(255,107,53,0.5) 50%, rgba(255,107,53,0.1) 80%, transparent 100%);
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}
.hero-pulse-line::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -10%;
    width: 60px;
    height: 8px;
    background: radial-gradient(ellipse, rgba(255,107,53,0.9) 0%, rgba(255,107,53,0) 70%);
    animation: pulse-travel 6s ease-in-out infinite;
}
@keyframes pulse-travel {
    0% { left: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

/* Stat counters grid below hero CTA */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    margin-top: 56px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    z-index: 3;
    position: relative;
}
.hero-stat {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.hero-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 53, 0.3);
}
.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ff6b35;
    line-height: 1;
    display: block;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}
@media (max-width: 600px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }
    .hero-stat-number { font-size: 1.5rem; }
    .hero-stat-label { font-size: 0.7rem; }
}

/* --- Trust Section: Certifications --- */
.trust-section {
    padding: 60px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.trust-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
    font-weight: 600;
}
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: center;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-width: 140px;
    justify-content: center;
}
.trust-badge:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.trust-badge-icon {
    width: 22px;
    height: 22px;
    color: var(--primary);
}
@media (max-width: 600px) {
    .trust-badges { gap: 16px; }
    .trust-badge { min-width: 130px; font-size: 0.82rem; padding: 10px 14px; }
}

/* --- Sectors Grid --- */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.sector-card {
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.25s ease;
}
.sector-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.sector-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}
.sector-icon svg { width: 28px; height: 28px; }
.sector-card h4 {
    font-size: 1rem;
    color: var(--white);
    margin: 0 0 6px 0;
    font-weight: 700;
}
.sector-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* --- Use Cases (Case Studies) --- */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.case-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.case-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}
.case-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0.8;
}
.case-industry {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}
.case-card h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin: 0 0 10px 0;
    line-height: 1.3;
}
.case-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0 0 14px 0;
}
.case-result {
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    font-size: 0.82rem;
    color: var(--white);
}
.case-result strong { color: var(--primary); }

/* --- White Paper Pages --- */
.wp-hero {
    padding: 110px 24px 60px;
    background: var(--gradient-hero);
    text-align: center;
}
.wp-hero .wp-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(245, 124, 0, 0.12);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.wp-hero h1 {
    font-size: 2.2rem;
    color: var(--white);
    max-width: 880px;
    margin: 0 auto 14px;
    line-height: 1.25;
}
.wp-hero .wp-subtitle {
    color: var(--text-light);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
}
.wp-hero .wp-meta {
    margin-top: 22px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.wp-hero .wp-meta span { display: inline-flex; align-items: center; gap: 6px; }

.wp-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 24px 80px;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.75;
}
.wp-container h2 {
    color: var(--white);
    font-size: 1.6rem;
    margin: 48px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    line-height: 1.3;
}
.wp-container h2:first-child { margin-top: 0; }
.wp-container h3 {
    color: var(--white);
    font-size: 1.18rem;
    margin: 32px 0 10px;
}
.wp-container p { margin: 0 0 16px; }
.wp-container ul, .wp-container ol { margin: 0 0 18px; padding-left: 24px; }
.wp-container li { margin: 0 0 8px; }
.wp-container strong { color: var(--white); }
.wp-container .wp-tldr {
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(245, 124, 0, 0.08), rgba(245, 124, 0, 0.02));
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    margin: 0 0 32px;
}
.wp-container .wp-tldr h2 {
    margin: 0 0 8px;
    padding: 0;
    border: none;
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.wp-container .wp-tldr p { margin: 0; color: var(--white); font-size: 1.05rem; }
.wp-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 28px;
    font-size: 0.92rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.wp-container th {
    background: var(--bg-elevated);
    color: var(--white);
    text-align: left;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 0.86rem;
    border-bottom: 1px solid var(--border);
}
.wp-container td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
}
.wp-container tr:last-child td { border-bottom: none; }
.wp-container .wp-callout {
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 0 0 24px;
    font-size: 0.95rem;
}
.wp-container .wp-callout strong { color: var(--primary); }
.wp-container .wp-cta {
    margin-top: 48px;
    padding: 28px 24px;
    background: linear-gradient(135deg, rgba(245, 124, 0, 0.10), rgba(245, 124, 0, 0.02));
    border: 1px solid var(--primary);
    border-radius: 12px;
    text-align: center;
}
.wp-container .wp-cta p {
    font-size: 1.05rem;
    color: var(--white);
    margin: 0 0 16px;
}
.wp-container .wp-cta .btn-primary {
    display: inline-block;
    padding: 13px 32px;
    font-weight: 700;
}
.wp-container .wp-refs {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.86rem;
    color: var(--text-light);
}
.wp-container .wp-refs h2 {
    border: none;
    padding: 0;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.wp-container .wp-refs ol { padding-left: 22px; }
.wp-container .wp-refs li { margin-bottom: 6px; }

@media (max-width: 700px) {
    .wp-hero { padding: 80px 16px 36px; }
    .wp-hero h1 { font-size: 1.45rem; }
    .wp-hero .wp-subtitle { font-size: 0.95rem; }
    .wp-container { padding: 32px 16px 48px; font-size: 0.96rem; }
    .wp-container h2 { font-size: 1.25rem; margin: 32px 0 12px; }
    .wp-container h3 { font-size: 1.05rem; }
    .wp-container table { font-size: 0.85rem; }
    .wp-container th, .wp-container td { padding: 9px 10px; }
}

/* --- Pilot Assessment Section --- */
.pilot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}
@media (max-width: 880px) {
    .pilot-grid { grid-template-columns: 1fr; }
}
.pilot-step {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    position: relative;
    transition: all 0.25s ease;
    overflow: hidden;
}
.pilot-step:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}
.pilot-step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.28;
    line-height: 1;
    margin-bottom: 10px;
}
.pilot-step h4 {
    font-size: 1.12rem;
    color: var(--white);
    margin: 0 0 10px 0;
    line-height: 1.3;
}
.pilot-step p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}
.pilot-cta-row {
    margin-top: 36px;
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, rgba(245, 124, 0, 0.10), rgba(245, 124, 0, 0.02));
    border: 1px solid var(--primary);
    border-radius: 14px;
}
.pilot-cta-tagline {
    font-size: 1.15rem;
    color: var(--white);
    margin: 0 0 18px 0;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.pilot-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
}
@media (max-width: 600px) {
    .pilot-cta-tagline { font-size: 1rem; }
    .pilot-cta-row { padding: 24px 16px; }
}

/* --- Video Demo Section --- */
.video-section {
    padding: 64px 24px;
    text-align: center;
}
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 24px auto 0 auto;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
    aspect-ratio: 16/9;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.video-wrapper iframe, .video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    background: linear-gradient(135deg, #141c28, #0b0f14);
    gap: 12px;
}
.video-placeholder svg { width: 72px; height: 72px; opacity: 0.4; }
.video-placeholder span { font-size: 0.9rem; }

/* --- Industrial Split Hero (B2B Corporate) --- */
.hero {
    min-height: 620px !important;
    padding: 100px 5% 80px !important;
    background: 
        linear-gradient(135deg, #060910 0%, #0a1220 60%, #080c14 100%) !important;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(135deg, transparent 20%, #000 50%, transparent 80%);
    -webkit-mask-image: linear-gradient(135deg, transparent 20%, #000 50%, transparent 80%);
    z-index: 0;
    pointer-events: none;
}
/* Subtle corner accent */
.hero::after {
    content: "";
    position: absolute;
    top: 20%;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 60%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    display: grid !important;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1280px !important;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: left !important;
}

/* Left column: text */
.hero-text-side {
    text-align: left;
}
.hero-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 24px;
    color: #ff6b35;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero-content h1 {
    text-align: left !important;
    margin: 0 0 18px 0 !important;
    color: #ffffff !important;
    font-size: 3.5rem !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    font-weight: 800 !important;
}
.hero-content h1 span {
    color: #ff6b35;
    display: inline-block;
}
.hero-content .subtitle {
    text-align: left !important;
    margin: 0 0 32px 0 !important;
    max-width: 540px;
    color: rgba(255,255,255,0.72) !important;
    font-size: 1.15rem !important;
    line-height: 1.6 !important;
}
.hero-cta {
    justify-content: flex-start !important;
    gap: 14px !important;
    margin-bottom: 40px;
}

/* Right column: product visual */
.hero-visual-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}
.hero-product-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1/1;
    background: radial-gradient(circle at 50% 50%, rgba(255,107,53,0.12) 0%, rgba(0,191,165,0.06) 40%, transparent 70%);
}
.hero-product-frame::before {
    content: "";
    position: absolute;
    inset: 15%;
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 50%;
    animation: product-ring 6s linear infinite;
}
.hero-product-frame::after {
    content: "";
    position: absolute;
    inset: 5%;
    border: 1px dashed rgba(255, 107, 53, 0.15);
    border-radius: 50%;
    animation: product-ring 10s linear infinite reverse;
}
@keyframes product-ring {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hero-product-frame img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 40px rgba(255, 107, 53, 0.3));
    z-index: 2;
}

/* Stats section below hero (separate from hero) */
.hero-stats {
    margin-top: 0 !important;
    max-width: 1280px;
    padding: 48px 5%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    grid-template-columns: repeat(4, 1fr) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 0 !important;
}
.hero-stats .hero-stat {
    border: none !important;
    border-right: 1px solid var(--border) !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 20px 24px !important;
    backdrop-filter: none !important;
}
.hero-stats .hero-stat:last-child { border-right: none !important; }
.hero-stats .hero-stat:hover { transform: none !important; }
.hero-stats .hero-stat-number { font-size: 2.4rem !important; }

.hero-pulse-line { display: none !important; }

/* Mobile: stack hero columns */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center !important;
    }
    .hero-text-side { text-align: center; }
    .hero-content h1 {
        text-align: center !important;
        font-size: 2.2rem !important;
    }
    .hero-content .subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero-cta { justify-content: center !important; }
    .hero-visual-side {
        min-height: 280px;
        order: -1;
    }
    .hero-product-frame { max-width: 300px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr) !important; }
    .hero-stats .hero-stat:nth-child(2) { border-right: none !important; }
    .hero-stats .hero-stat:nth-child(1), .hero-stats .hero-stat:nth-child(2) {
        border-bottom: 1px solid var(--border) !important;
    }
}
@media (max-width: 500px) {
    .hero-content h1 { font-size: 1.7rem !important; }
}

/* --- Hero Background: Animated Gradient Mesh (subtle professional) --- */
.hero::before {
    background-image: 
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px) !important;
    background-size: 70px 70px !important;
    animation: grid-drift 120s linear infinite;
}
@keyframes grid-drift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 70px 70px, 70px 70px; }
}

/* Animated color orbs floating */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}
.hero-orb.orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #ff6b35 0%, transparent 70%);
    top: -100px; left: -50px;
    animation: orb-float-1 18s ease-in-out infinite;
}
.hero-orb.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #00bfa5 0%, transparent 70%);
    bottom: -150px; right: -80px;
    animation: orb-float-2 22s ease-in-out infinite;
}
.hero-orb.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #4a90ff 0%, transparent 70%);
    top: 40%; left: 50%;
    animation: orb-float-3 25s ease-in-out infinite;
    opacity: 0.2;
}
@keyframes orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, -30px) scale(1.2); }
}
@keyframes orb-float-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    33% { transform: translate(-60%, -40%) scale(1.1); }
    66% { transform: translate(-40%, -60%) scale(0.95); }
}

/* Data flow lines - diagonal accent */
.hero-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
    overflow: hidden;
}
.hero-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,107,53,0.5), transparent);
    width: 200px;
    animation: line-sweep 8s linear infinite;
}
.hero-line.l1 { top: 25%; animation-delay: 0s; }
.hero-line.l2 { top: 55%; animation-delay: -3s; }
.hero-line.l3 { top: 75%; animation-delay: -6s; }
@keyframes line-sweep {
    from { left: -200px; }
    to { left: 100vw; }
}

/* --- WENC2 Product Page Styles --- */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 24px 0;
}
.spec-item {
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}
.spec-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    font-weight: 600;
}
.spec-value {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}
.spec-value strong { color: var(--primary); }

.diagram-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 32px 0;
}
.diagram-card {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
    transition: all 0.25s ease;
}
.diagram-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}
.diagram-card img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
}
.diagram-card h4 {
    color: var(--white);
    margin: 8px 0 4px;
    font-size: 1rem;
    font-weight: 700;
}
.diagram-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.pinout-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.pinout-table thead {
    background: linear-gradient(135deg, rgba(255,107,53,0.15), rgba(0,191,165,0.08));
}
.pinout-table th {
    padding: 12px 16px;
    text-align: left;
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
}
.pinout-table td {
    padding: 10px 16px;
    color: var(--text);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}
.pinout-table tr:last-child td { border-bottom: none; }
.pinout-table td:first-child {
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    width: 70px;
}
.pinout-table tr:hover td { background: rgba(255,255,255,0.02); }

.feature-list-rich {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 28px 0;
}
.feature-rich {
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.feature-rich-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 107, 53, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.feature-rich-icon svg { width: 22px; height: 22px; }
.feature-rich h4 {
    color: var(--white);
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
}
.feature-rich p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.55;
}

/* --- Product Video Modern (Cinematic Technical) --- */
.product-video {
    padding: 80px 5% !important;
    background: linear-gradient(180deg, #0b0f14 0%, #0a0d13 100%);
    border-top: 1px solid rgba(255, 107, 53, 0.08);
    border-bottom: 1px solid rgba(255, 107, 53, 0.08);
    position: relative;
    overflow: hidden;
}
.product-video::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 65%);
    filter: blur(60px);
    transform: translateY(-50%);
    pointer-events: none;
}
.product-video-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 2;
}
.product-video-text {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}
.product-video-highlights {
    justify-content: center;
}
.product-video-text {
    position: relative;
}
.product-video-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(0, 191, 165, 0.1);
    border: 1px solid rgba(0, 191, 165, 0.3);
    border-radius: 20px;
    color: #00bfa5;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.product-video-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #00bfa5;
    border-radius: 50%;
    animation: eyebrow-blink 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(0,191,165,0.8);
}
@keyframes eyebrow-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
.product-video-text h3 {
    font-size: 2.2rem !important;
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin: 0 0 18px 0;
    letter-spacing: -0.02em;
}
.product-video-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 24px 0;
    max-width: 480px;
}
.product-video-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}
.pv-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    font-size: 0.95rem;
}
.pv-highlight svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
}
.pv-highlight strong { color: var(--white); }

/* Video player styling */
.product-video-player {
    position: relative;
}
.product-video-player video {
    width: 100% !important;
    max-width: none !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 107, 53, 0.25) !important;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 107, 53, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    background: #000;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.pv-frame {
    position: relative;
    border-radius: 16px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(0,191,165,0.08));
}
.pv-frame::before,
.pv-frame::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: rgba(255, 107, 53, 0.5);
    border-style: solid;
}
.pv-frame::before {
    top: -4px;
    left: -4px;
    border-width: 2px 0 0 2px;
    border-radius: 8px 0 0 0;
}
.pv-frame::after {
    bottom: -4px;
    right: -4px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 8px 0;
}

/* Meta info below video */
.pv-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.pv-meta-item { display: flex; align-items: center; gap: 6px; }
.pv-meta-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }

@media (max-width: 900px) {
    .product-video-inner {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    .product-video-text h3 { font-size: 1.6rem !important; }
    .product-video { padding: 50px 20px !important; }
}

/* --- Image Lightbox (clickable to zoom) --- */
.diagram-card {
    cursor: zoom-in;
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    cursor: zoom-out;
    padding: 40px;
}
.lightbox.open {
    opacity: 1;
    visibility: visible;
}
.lightbox-img {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 107, 53, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    cursor: default;
}
.lightbox.open .lightbox-img {
    transform: scale(1);
}
.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.lightbox-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}
.lightbox-hint {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- WENC2 SVG Animation in product-video --- */
.wenc2-svg-anim {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    aspect-ratio: 16/9;
    border-radius: 14px !important;
    background: #0b0f14;
    border: 1px solid rgba(255, 107, 53, 0.25);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 107, 53, 0.15);
    display: block;
}


/* ============ Cookie banner v2 (3-button) ============ */
.cookie-banner {
    gap: 16px;
}
.cookie-banner p {
    max-width: 700px;
}
.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.cookie-btn-secondary {
    background: transparent !important;
    color: var(--text-light) !important;
    border: 1px solid var(--border) !important;
}
.cookie-btn-secondary:hover {
    background: var(--bg-hover) !important;
    color: var(--text) !important;
}
.cookie-banner .cookie-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}
@media (max-width: 600px) {
    .cookie-actions {
        justify-content: center;
        width: 100%;
    }
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
}

/* ============ Legal pages (cookie / privacy policy) ============ */
.legal-hero {
    padding: 100px 24px 48px;
    background: var(--gradient-hero);
    text-align: center;
}
.legal-hero h1 { font-size: 2.4rem; margin-bottom: 12px; color: var(--white); }
.legal-hero p { color: var(--text-light); max-width: 680px; margin: 0 auto; font-size: 1rem; }
.legal-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 96px;
}
.legal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 32px;
    color: var(--text);
    line-height: 1.7;
}
.legal-content h2 {
    color: var(--white);
    font-size: 1.35rem;
    margin-top: 28px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
    color: var(--primary);
    font-size: 1.05rem;
    margin-top: 20px;
    margin-bottom: 8px;
}
.legal-content p, .legal-content li {
    color: var(--text-light);
    font-size: 0.95rem;
}
.legal-content ul, .legal-content ol {
    padding-left: 22px;
    margin-bottom: 14px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 0.88rem;
}
.legal-content th, .legal-content td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
    color: var(--text-light);
    vertical-align: top;
}
.legal-content th {
    background: var(--bg-elevated);
    color: var(--white);
    font-weight: 600;
}
.legal-content a { color: var(--primary); text-decoration: underline; }
.legal-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.legal-cta {
    margin-top: 24px;
    padding: 18px;
    background: var(--bg-elevated);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.legal-cta button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
}
.legal-cta button:hover { background: var(--primary-dark); }

/* Footer policy links row */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 12px 0 0 0;
    font-size: 0.82rem;
}
.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
}
.footer-legal a:hover { color: var(--primary); }
.footer-legal .cookie-prefs-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.82rem;
    padding: 0;
    font-family: inherit;
}
.footer-legal .cookie-prefs-btn:hover { color: var(--primary); }


/* ============ Transmission Cycle animation ============ */
.tx-cycle {
    margin: 20px 0 28px;
    background: linear-gradient(135deg, #0d141d 0%, #111926 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
}
.tx-cycle::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,107,53,0.05) 0%, transparent 40%),
                radial-gradient(circle at 80% 50%, rgba(0,191,165,0.05) 0%, transparent 40%);
    pointer-events: none;
}
.tx-cycle-row {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto;
}
.tx-cycle-node {
    background: rgba(15, 22, 33, 0.9);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.tx-cycle-node.tx { border-color: rgba(255,107,53,0.35); }
.tx-cycle-node.rx { border-color: rgba(0,191,165,0.35); }
.tx-cycle-node.ch { border-color: rgba(96,160,255,0.35); }
.tx-cycle-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.tx-cycle-node.tx .tx-cycle-label { color: #ff6b35; }
.tx-cycle-node.rx .tx-cycle-label { color: #00bfa5; }
.tx-cycle-node.ch .tx-cycle-label { color: #60a0ff; }
.tx-cycle-title {
    font-size: 0.92rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 3px;
}
.tx-cycle-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
}
.tx-cycle-node .pulse-dot {
    position: absolute;
    top: 8px; right: 8px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: txPulseDot 1.4s ease-in-out infinite;
}
.tx-cycle-node.rx .pulse-dot { background: #00bfa5; box-shadow: 0 0 10px #00bfa5; animation-delay: 0.7s; }
@keyframes txPulseDot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.35); }
}

/* Channel (middle) with animated sine waves */
.tx-cycle-channel-icon {
    width: 42px; height: 28px;
    margin: 0 auto 6px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.tx-cycle-channel-icon::before,
.tx-cycle-channel-icon::after {
    content: "";
    position: absolute;
    width: 100%; height: 16px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #60a0ff;
    animation: waveRadiate 2s ease-out infinite;
    opacity: 0;
}
.tx-cycle-channel-icon::after { animation-delay: 1s; }
@keyframes waveRadiate {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Arrow rails with flowing packets */
.tx-cycle-arrow {
    position: relative;
    height: 36px;
    width: 100%;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
}
.tx-cycle-rail {
    position: relative;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, rgba(255,107,53,0.15), rgba(0,191,165,0.15));
    border-radius: 2px;
    overflow: visible;
}
.tx-cycle-rail.rev {
    background: linear-gradient(-90deg, rgba(255,107,53,0.15), rgba(0,191,165,0.15));
}
.tx-cycle-packet {
    position: absolute;
    top: 50%;
    width: 18px; height: 8px;
    margin-top: -4px;
    background: linear-gradient(90deg, #ff6b35, #ff8a5b);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255,107,53,0.7);
    animation: packetFlow 2.2s linear infinite;
}
.tx-cycle-packet.p2 { animation-delay: 0.7s; }
.tx-cycle-packet.p3 { animation-delay: 1.4s; }
.tx-cycle-packet.ack {
    background: linear-gradient(90deg, #00bfa5, #3ddfc3);
    box-shadow: 0 0 8px rgba(0,191,165,0.7);
    width: 12px; height: 6px;
    margin-top: -3px;
    animation: packetFlowRev 2.2s linear infinite;
    animation-delay: 1.1s;
}
@keyframes packetFlow {
    0% { left: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 105%; opacity: 0; }
}
@keyframes packetFlowRev {
    0% { left: 105%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: -10%; opacity: 0; }
}
.tx-cycle-rail-label {
    position: absolute; bottom: -18px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
}
@media (max-width: 720px) {
    .tx-cycle-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .tx-cycle-arrow {
        height: 48px;
        width: 2px;
        writing-mode: vertical-rl;
    }
    .tx-cycle-rail {
        width: 2px; height: 48px;
        background: linear-gradient(180deg, rgba(255,107,53,0.15), rgba(0,191,165,0.15));
    }
    .tx-cycle-packet {
        width: 8px; height: 18px;
        left: 50%; top: auto; margin-left: -4px; margin-top: 0;
        animation: packetFlowV 2.2s linear infinite;
    }
    .tx-cycle-packet.ack {
        width: 6px; height: 12px; margin-left: -3px;
        animation: packetFlowVRev 2.2s linear infinite;
    }
    @keyframes packetFlowV {
        0% { top: -10%; opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: 105%; opacity: 0; }
    }
    @keyframes packetFlowVRev {
        0% { top: 105%; opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: -10%; opacity: 0; }
    }
    .tx-cycle-rail-label {
        position: static;
        transform: none;
        margin-top: 4px;
        writing-mode: horizontal-tb;
    }
}

/* ============ Terminal typing animation ============ */
.term-window {
    background: #0a0f14;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin: 18px 0 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.term-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    background: #12181f;
    border-bottom: 1px solid #1b2430;
}
.term-dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: #3b3b3b;
}
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febc2e; }
.term-dot.g { background: #28c840; }
.term-title {
    margin-left: 10px;
    font-size: 0.78rem;
    color: #8a96a7;
    font-family: 'SF Mono', Consolas, Menlo, monospace;
}
.term-body {
    padding: 16px 18px 22px;
    font-family: 'SF Mono', Consolas, Menlo, monospace;
    font-size: 0.82rem;
    color: #e0e6ef;
    line-height: 1.75;
    min-height: 200px;
}
.term-line { display: flex; white-space: pre; }
.term-prompt { color: #00bfa5; margin-right: 8px; user-select: none; }
.term-cmd { color: #e0e6ef; }
.term-comment { color: #6b7a8a; margin-left: 14px; font-style: italic; }
.term-body .term-line {
    opacity: 0;
    animation: termLineShow 0.4s forwards;
}
.term-body .term-line:nth-child(1) { animation-delay: 0.2s; }
.term-body .term-line:nth-child(2) { animation-delay: 1.0s; }
.term-body .term-line:nth-child(3) { animation-delay: 1.8s; }
.term-body .term-line:nth-child(4) { animation-delay: 2.6s; }
.term-body .term-line:nth-child(5) { animation-delay: 3.4s; }
.term-body .term-line:nth-child(6) { animation-delay: 4.2s; }
.term-body .term-line:nth-child(7) { animation-delay: 5.0s; }
@keyframes termLineShow {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.term-cursor {
    display: inline-block;
    width: 8px; height: 14px;
    background: #00bfa5;
    vertical-align: middle;
    margin-left: 2px;
    animation: termCursor 1s steps(1) infinite;
}
@keyframes termCursor {
    0%, 50% { opacity: 1; }
    50.1%, 100% { opacity: 0; }
}

/* ============ Hero Web UI — Frameless floating UI (blends with product) ============ */
/* Small hero feature hint (Web UI badge in text column) */
.hero-feature-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 6px 12px 6px 10px;
    background: rgba(0, 191, 165, 0.08);
    border: 1px solid rgba(0, 191, 165, 0.28);
    border-radius: 18px;
    font-size: 0.78rem;
    color: #c8d3e0;
    font-weight: 500;
    letter-spacing: 0.1px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    animation: hintFade 0.8s ease 0.7s forwards;
}
@keyframes hintFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-feature-hint svg {
    width: 14px; height: 14px;
    color: #3ddfc3;
    flex-shrink: 0;
}
.hero-feature-hint strong {
    color: #fff;
    font-weight: 600;
}
.hero-feature-hint .hint-sep {
    opacity: 0.45;
    margin: 0 2px;
}
.hero-feature-hint .hint-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #3ddfc3;
    box-shadow: 0 0 6px #3ddfc3;
    animation: webuiLiveDot 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .hero-feature-hint {
        font-size: 0.72rem;
        padding: 5px 10px 5px 9px;
    }
}

.hero-webui-float {
    position: absolute;
    top: 50%;
    right: -6%;
    width: 165px;
    z-index: 5;
    opacity: 0;
    transform: translateY(-50%) scale(0.92);
    animation: webuiAppear 1.1s cubic-bezier(0.2,0.8,0.2,1) 0.8s forwards,
               webuiFloat 7s ease-in-out 2s infinite;
    pointer-events: none;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
@keyframes webuiAppear {
    to { opacity: 1; transform: translateY(-50%) scale(1); }
}
@keyframes webuiFloat {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(calc(-50% - 8px)) scale(1); }
}

/* product-video-player layout: reverted to original (no flex override) */

/* Radial glow behind the UI (signals holographic projection) */
.webui-glow {
    position: absolute;
    inset: -30% -30%;
    background: radial-gradient(circle at 50% 50%, rgba(0,191,165,0.28) 0%, rgba(0,191,165,0.12) 30%, transparent 65%);
    filter: blur(8px);
    z-index: 0;
    animation: webuiGlowPulse 3s ease-in-out infinite;
}
@keyframes webuiGlowPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* UI screenshot with masked/faded edges (no frame) */
.webui-screenshot {
    position: relative;
    width: 100%;
    aspect-ratio: 168 / 230;
    overflow: hidden;
    border-radius: 10px;
    z-index: 1;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    box-shadow:
        0 0 0 1px rgba(0,191,165,0.3),
        0 14px 34px rgba(0,0,0,0.55);
}
.webui-screenshot picture,
.webui-screenshot img {
    display: block;
    width: 100%;
    height: auto;
    animation: webuiScroll 28s ease-in-out 2.5s infinite;
}
@keyframes webuiScroll {
    0%, 12% { transform: translateY(0); }
    22%, 36% { transform: translateY(-22%); }
    46%, 60% { transform: translateY(-45%); }
    70%, 84% { transform: translateY(-68%); }
    94%, 100% { transform: translateY(0); }
}

/* Subtle cyan scanline overlay */
.webui-screenshot::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,191,165,0.08) 0%, transparent 50%, rgba(0,191,165,0.04) 100%);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
}

/* Signal line hidden now — UI is centered between the 2 devices */
.webui-signal { display: none; }
@keyframes signalPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.6); opacity: 0; }
}
@keyframes webuiLiveDot {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Tiny caption floating below */
.webui-caption {
    position: absolute;
    bottom: -26px; left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    background: rgba(10, 16, 24, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0,191,165,0.3);
    border-radius: 12px;
    font-size: 0.62rem;
    color: #c8d3e0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.webui-caption strong { color: #fff; font-weight: 700; }
.webui-caption .sep { color: rgba(0,191,165,0.5); margin: 0 3px; }
.webui-caption-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #3ddfc3;
    box-shadow: 0 0 6px #3ddfc3;
    animation: webuiLiveDot 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .hero-webui-float { width: 140px; right: -2%; }
}
@media (max-width: 900px) {
    .hero-webui-float {
        top: 4%;
        right: 4%;
        width: 100px;
        transform: scale(0.92);
    }
    @keyframes webuiAppear { to { opacity: 1; transform: scale(1); } }
    @keyframes webuiFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-6px); }
    }
    .webui-caption { display: none; }
}
@media (max-width: 560px) {
    .hero-webui-float { width: 80px; top: 2%; right: 2%; }
}

/* ============ OLD phone mockup styles (unused, kept for reference) ============ */
.hero-webui-bubble {
    position: absolute;
    top: -4%;
    right: -6%;
    width: 168px;
    aspect-ratio: 168 / 340;
    background: #000;
    border-radius: 26px;
    padding: 6px;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.6),
        0 0 0 2px rgba(255,255,255,0.08),
        0 0 80px rgba(0,191,165,0.18);
    z-index: 5;
    opacity: 0;
    transform: translateY(16px) scale(0.9) rotate(6deg);
    animation: webuiAppear 1s cubic-bezier(0.2,0.8,0.2,1) 0.6s forwards,
               webuiFloat 7s ease-in-out 1.8s infinite;
    transform-origin: center center;
}
/* NOTE: old phone-mockup keyframes removed to let .hero-webui-float use its own */
.hero-webui-bubble:hover {
    animation-play-state: paused;
    transform: translateY(-4px) rotate(0deg) scale(1.05) !important;
    transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1);
    box-shadow:
        0 40px 70px rgba(0,0,0,0.7),
        0 0 0 2px rgba(0,191,165,0.35),
        0 0 100px rgba(0,191,165,0.3);
}
/* Side buttons (volume + power) for realism */
.hero-webui-bubble::before,
.hero-webui-bubble::after {
    content: "";
    position: absolute;
    background: #1a1a1a;
    border-radius: 2px;
    z-index: -1;
}
.hero-webui-bubble::before {
    left: -2px; top: 58px;
    width: 3px; height: 28px;
    box-shadow: 0 40px 0 #1a1a1a, 0 80px 0 #1a1a1a;
}
.hero-webui-bubble::after {
    right: -2px; top: 90px;
    width: 3px; height: 46px;
}

/* Screen wrap */
.webui-mock-bar {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0a0f14;
    border-radius: 20px;
    overflow: hidden;
}
.webui-mock-dot { display: none; }
/* Dynamic island */
.webui-mock-url {
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 18px;
    background: #000;
    border-radius: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}
.webui-mock-url::before {
    content: "";
    width: 5px; height: 5px;
    background: #3ddfc3;
    border-radius: 50%;
    box-shadow: 0 0 6px #3ddfc3;
    animation: webuiLiveDot 1.4s ease-in-out infinite;
}
@keyframes webuiLiveDot {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

/* Status bar overlay (time + live badge) */
.webui-mock-live {
    position: absolute;
    top: 10px; left: 16px;
    font-size: 0.58rem;
    font-weight: 700;
    color: #fff;
    font-family: 'SF Pro Display', -apple-system, system-ui, sans-serif;
    letter-spacing: 0.3px;
    z-index: 2;
    pointer-events: none;
}
.webui-mock-live::before { display: none; }
.webui-mock-live::after {
    content: "wenc2.local";
    position: absolute;
    top: 0; left: 74px;
    font-size: 0.52rem;
    color: #3ddfc3;
    font-weight: 600;
    opacity: 0.85;
    white-space: nowrap;
}

/* UI screenshot body */
.webui-mock-body {
    position: absolute;
    top: 28px; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    background: #0f1a2b;
}
.webui-mock-body picture,
.webui-mock-body img {
    display: block;
    width: 100%;
    height: auto;
    animation: webuiScroll 28s ease-in-out 2s infinite;
}
@keyframes webuiScroll {
    0%, 12% { transform: translateY(0); }
    22%, 36% { transform: translateY(-20%); }
    46%, 60% { transform: translateY(-40%); }
    70%, 84% { transform: translateY(-65%); }
    94%, 100% { transform: translateY(0); }
}

/* Top/bottom screen gradients for realism */
.webui-mock-body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4), transparent);
    pointer-events: none;
    z-index: 1;
}
.webui-mock-body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 85%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Caption ribbon below phone */
.webui-mock-caption {
    position: absolute;
    bottom: -38px; left: 50%;
    transform: translateX(-50%) rotate(-6deg);
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(15,22,33,0.95), rgba(20,28,40,0.95));
    border: 1px solid rgba(0,191,165,0.25);
    border-radius: 16px;
    font-size: 0.7rem;
    color: #c8d3e0;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.webui-mock-caption strong { color: #fff; font-weight: 700; margin-right: 4px; }
.webui-mock-caption .sep { color: rgba(0,191,165,0.6); margin: 0 5px; }

@media (max-width: 1200px) {
    .hero-webui-bubble {
        width: 150px;
        top: -2%;
        right: -3%;
    }
}
@media (max-width: 900px) {
    .hero-webui-bubble {
        position: absolute;
        top: 4%;
        right: 4%;
        width: 110px;
        animation: webuiAppear 1s cubic-bezier(0.2,0.8,0.2,1) 0.6s forwards;
    }
    .webui-mock-caption { display: none; }
}
@media (max-width: 560px) {
    .hero-webui-bubble {
        width: 92px;
        top: 2%;
        right: 2%;
    }
    .webui-mock-live { font-size: 0.5rem; }
    .webui-mock-live::after { font-size: 0.44rem; left: 58px; }
}

/* ============================================
   System Demo Banner (top of home page) — v42
   ============================================ */
.system-demo-banner {
    width: 100%;
    padding: 64px 24px 32px;
    background: linear-gradient(180deg, #0a0e13 0%, #10161e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.system-demo-banner .demo-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ff7b00;
    font-weight: 700;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(255,123,0,0.35);
    border-radius: 999px;
    background: rgba(255,123,0,0.06);
}
.system-demo-banner .demo-caption {
    color: rgba(255,255,255,0.72);
    font-size: 0.95rem;
    margin: 0 0 22px;
    max-width: 720px;
    line-height: 1.5;
}
.system-demo-banner .demo-image-wrap {
    position: relative;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
    cursor: zoom-in;
    transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.35s ease;
}
.system-demo-banner .demo-image-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 70px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,123,0,0.25);
}
.system-demo-banner .demo-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
}
.system-demo-banner .demo-zoom-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}
.system-demo-banner .demo-image-wrap:hover .demo-zoom-badge {
    opacity: 1;
    transform: scale(1.08);
}
@media (max-width: 720px) {
    .system-demo-banner { padding: 36px 14px 22px; }
    .system-demo-banner .demo-caption { font-size: 0.86rem; }
}

/* Lightbox */
.demo-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5,8,12,0.92);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
    cursor: zoom-out;
}
.demo-lightbox.is-open {
    display: flex;
    opacity: 1;
}
.demo-lightbox img {
    max-width: 96vw;
    max-height: 92vh;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1);
}
.demo-lightbox.is-open img { transform: scale(1); }
.demo-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.demo-lightbox-close:hover {
    background: rgba(255,255,255,0.18);
    transform: rotate(90deg);
}

/* ============================================
   v43/v44: Hero right-side demo SVG wrap — fills available column
   ============================================ */
.hero-visual-side {
    width: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 18px;
}
.hero-demo-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-left: 4px;
}
.hero-demo-eyebrow {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.32);
    border-radius: 999px;
    color: #ff6b35;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.hero-demo-title {
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.hero-demo-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 4px;
}
.hd-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
    background: linear-gradient(180deg, rgba(20,28,40,0.55), rgba(11,15,20,0.55));
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    transition: border-color 0.2s, transform 0.2s;
}
.hd-highlight:hover {
    border-color: rgba(255,107,53,0.35);
    transform: translateY(-2px);
}
.hd-num {
    color: #ff6b35;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin-bottom: 4px;
}
.hd-lbl {
    color: rgba(255,255,255,0.62);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    line-height: 1.25;
}
@media (max-width: 560px) {
    .hero-demo-highlights { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .hd-highlight { padding: 10px 4px; }
    .hd-num { font-size: 0.95rem; }
    .hd-lbl { font-size: 0.62rem; }
}
.hero-visual-side .hero-demo-svg-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(10,14,19,0.6) 0%, rgba(16,22,30,0.4) 100%);
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
    cursor: zoom-in;
    transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.35s ease;
}
.hero-visual-side .hero-demo-svg-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 70px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,123,0,0.3);
}
.hero-visual-side .hero-demo-svg-wrap svg.wenc2-svg-anim {
    display: block;
    width: 100%;
    height: auto;
}
.hero-visual-side .demo-zoom-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 3;
}
.hero-visual-side .hero-demo-svg-wrap:hover .demo-zoom-badge {
    opacity: 1;
    transform: scale(1.08);
}

/* Lightbox: give body a large width so SVG actually grows */
#demoLightboxBody {
    width: min(96vw, 1700px);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.demo-lightbox svg.wenc2-svg-anim {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: 92vh;
    background: #0a0e13;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

@media (max-width: 980px) {
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    .hero-visual-side .hero-demo-svg-wrap { max-width: 100%; }
}

/* --- Documents Page: White Paper Cards --- */
.docs-wp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.docs-wp-card {
    display: flex;
    flex-direction: column;
    padding: 24px 22px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.docs-wp-card:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
    transform: translateY(-2px);
}
.docs-wp-card-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}
.docs-wp-card h3 {
    font-size: 1.15rem;
    color: var(--white);
    margin: 0 0 10px;
    line-height: 1.35;
}
.docs-wp-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    margin: 0 0 16px;
    line-height: 1.55;
    flex: 1;
}
.docs-wp-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    align-self: flex-start;
}
@media (max-width: 700px) {
    .docs-wp-grid { grid-template-columns: 1fr; gap: 12px; }
    .docs-wp-card { padding: 18px 16px; }
    .docs-wp-card h3 { font-size: 1.05rem; }
    .docs-wp-card p { font-size: 0.88rem; }
}
