/* PerceptaX AI – Enterprise Dark Theme */

:root {
    --primary: #007BFF;
    --primary-light: #00A3FF;
    --bg-dark: #050A14;
    --bg-section: #081426;
    --bg-card: #0B1020;
    --text-white: #FFFFFF;
    --text-muted: #B8C7D9;
    --border: rgba(184, 199, 217, 0.12);
    --glow: rgba(0, 123, 255, 0.35);
    --success: #22c55e;
    --danger: #ef4444;
    --lifetime: #14b8a6;
    --radius: 12px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-muted);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-white); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    box-shadow: 0 4px 20px var(--glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow);
    color: var(--text-white);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.25);
    color: var(--text-white);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(0,123,255,0.1);
    color: var(--text-white);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: none;
}
.btn-ghost:hover { color: var(--text-white); }

.btn-lifetime {
    background: linear-gradient(135deg, #0d9488, var(--lifetime));
    color: var(--text-white);
}
.btn-lifetime:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(20,184,166,0.35);
    color: var(--text-white);
}

.btn-dev-license {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    border: 1px solid rgba(34, 197, 94, 0.45);
    box-shadow: 0 8px 28px rgba(34, 197, 94, 0.22);
}
.btn-dev-license:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.32);
    color: #fff;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.45);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.28);
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.65);
}
.btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background var(--transition), backdrop-filter var(--transition), border var(--transition);
}

.header-scrolled,
.header.scrolled {
    background: rgba(5, 10, 20, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.125rem;
}
.logo:hover { color: var(--text-white); }
.logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(0, 123, 255, 0.25);
}

.nav {
    display: flex;
    gap: 28px;
}
.nav a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
}
.nav a:hover { color: var(--text-white); }

.nav-cta {
    color: var(--primary-light) !important;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 60px) 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,123,255,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,163,255,0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-section) 100%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 28px;
    max-width: 520px;
}

.check-list {
    list-style: none;
    margin-bottom: 32px;
}
.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-weight: 500;
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: 700;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.badge {
    padding: 6px 14px;
    background: rgba(0,123,255,0.1);
    border: 1px solid rgba(0,123,255,0.25);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Laptop Mockup */
.laptop-mockup {
    position: relative;
    perspective: 1000px;
}

.hero-presentation {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
}
.hero-presentation img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 60px var(--glow);
}

.laptop-screen {
    background: #1a1a2e;
    border-radius: 12px 12px 0 0;
    padding: 12px 12px 0;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px var(--glow);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition);
}
.laptop-mockup:hover .laptop-screen {
    transform: rotateY(0deg) rotateX(0deg);
}
.laptop-screen img {
    border-radius: 4px 4px 0 0;
    width: 100%;
}
.laptop-base {
    height: 14px;
    background: linear-gradient(180deg, #2a2a3e, #1a1a2e);
    border-radius: 0 0 8px 8px;
    margin: 0 10%;
    position: relative;
}
.laptop-base::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    height: 4px;
    background: #333;
    border-radius: 0 0 4px 4px;
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}
.section-dark {
    background: var(--bg-section);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}
.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}
.feature-card:hover {
    border-color: rgba(0,123,255,0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(0,123,255,0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,123,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-light);
}
.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 {
    color: var(--text-white);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.feature-card p { font-size: 0.9375rem; }

/* Screenshot Slider */
.screenshot-slider {
    --slide-accent: #00a8ff;
    max-width: 1080px;
    margin: 0 auto;
}
.screenshot-slider[data-active-slide="liveview"] { --slide-accent: #00a8ff; }
.screenshot-slider[data-active-slide="multiview"] { --slide-accent: #3b82f6; }
.screenshot-slider[data-active-slide="alarmcenter"] { --slide-accent: #ef4444; }
.screenshot-slider[data-active-slide="mapview"] { --slide-accent: #22c55e; }
.screenshot-slider[data-active-slide="ptz"] { --slide-accent: #f59e0b; }
.screenshot-slider[data-active-slide="media"] { --slide-accent: #a855f7; }

.slider-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(184, 199, 217, 0.08);
}

.slider-tab {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.slider-tab:hover {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.16);
}
.slider-tab.active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--slide-accent) 24%, transparent), rgba(0, 123, 255, 0.08));
    border-color: color-mix(in srgb, var(--slide-accent) 55%, transparent);
    color: var(--text-white);
    box-shadow: 0 0 28px color-mix(in srgb, var(--slide-accent) 22%, transparent);
}

.slider-viewport {
    position: relative;
    padding: 0 8px;
}

.slider-track {
    display: grid;
    align-items: stretch;
}

.slider-slide {
    grid-area: 1 / 1;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.slider-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.app-window {
    --window-accent: var(--slide-accent, #00a8ff);
    position: relative;
    background: linear-gradient(180deg, rgba(18, 26, 46, 0.98) 0%, rgba(8, 12, 24, 0.98) 100%);
    border: 1px solid rgba(184, 199, 217, 0.12);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.app-window--liveview { --window-accent: #00a8ff; }
.app-window--liveview .app-window-screen img {
    object-fit: contain;
    background: #05080f;
}
.app-window--multiview { --window-accent: #3b82f6; }
.app-window--multiview .app-window-screen img {
    object-fit: contain;
    background: #05080f;
}
.app-window--alarmcenter { --window-accent: #ef4444; }
.app-window--mapview { --window-accent: #22c55e; }
.app-window--ptz { --window-accent: #f59e0b; }
.app-window--ptz .app-window-screen {
    min-height: 360px;
    aspect-ratio: 1024 / 682;
    background-color: #0b1020;
    background-image: var(--slide-shot);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.app-window--ptz .app-window-screen img {
    width: 100%;
    height: auto;
    min-height: 360px;
    aspect-ratio: 1024 / 682;
    object-fit: contain;
    background: transparent;
}
.app-window--media { --window-accent: #a855f7; }
.app-window--media .app-window-screen img {
    object-fit: contain;
    background: #05080f;
}

.app-window--featured {
    border-color: color-mix(in srgb, var(--window-accent) 35%, transparent);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.55),
        0 0 0 1px color-mix(in srgb, var(--window-accent) 18%, transparent),
        0 0 56px color-mix(in srgb, var(--window-accent) 16%, transparent);
}

.app-window-aura {
    position: absolute;
    inset: -40% auto auto 50%;
    width: 70%;
    height: 70%;
    transform: translateX(-50%);
    background: radial-gradient(circle, color-mix(in srgb, var(--window-accent) 22%, transparent), transparent 68%);
    pointer-events: none;
    opacity: 0.85;
}

.app-window-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(6, 10, 22, 0.92);
    border-bottom: 1px solid rgba(184, 199, 217, 0.08);
}
.app-window-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.app-window-logo {
    border-radius: 6px;
    box-shadow: 0 0 16px color-mix(in srgb, var(--window-accent) 25%, transparent);
}
.app-window-dots {
    display: flex;
    gap: 6px;
}
.app-window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.app-window-dots span:nth-child(1) { background: #ff5f57; }
.app-window-dots span:nth-child(2) { background: #febc2e; }
.app-window-dots span:nth-child(3) { background: #28c840; }
.app-window-title {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-window-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 100px;
    background: color-mix(in srgb, var(--window-accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--window-accent) 28%, transparent);
    color: color-mix(in srgb, var(--window-accent) 75%, white);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.app-window-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--window-accent);
    box-shadow: 0 0 10px var(--window-accent);
    animation: pulseLive 1.8s ease-in-out infinite;
}

.app-window-body {
    position: relative;
    z-index: 1;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--window-accent) 10%, transparent), transparent 70%),
        #060a14;
    padding: 14px;
}
.app-window-screen {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 16px 40px rgba(0, 0, 0, 0.35);
}
.app-window-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 18%, transparent 82%, rgba(0,0,0,0.12));
    pointer-events: none;
}
.app-window-screen img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 1200 / 700;
    background: #0b1020;
}

.app-window-caption {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    padding: 18px 18px 20px;
    border-top: 1px solid rgba(184, 199, 217, 0.08);
    background: linear-gradient(180deg, rgba(5, 10, 20, 0.72), rgba(5, 10, 20, 0.92));
}
.app-caption-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.app-caption-badge {
    flex-shrink: 0;
    padding: 7px 12px;
    border-radius: 100px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--window-accent) 24%, transparent), rgba(0, 168, 255, 0.08));
    border: 1px solid color-mix(in srgb, var(--window-accent) 30%, transparent);
    color: color-mix(in srgb, var(--window-accent) 70%, white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.app-window-caption p {
    margin: 3px 0 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.app-caption-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.app-caption-tags span {
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(184, 199, 217, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

@keyframes pulseLive {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.92); }
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slider-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(5, 10, 20, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(184, 199, 217, 0.15);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.slider-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-white);
}

.comparison-table th {
    background: var(--bg-card);
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9375rem;
}

.comparison-table td { background: rgba(11,16,32,0.5); }

.highlight-col {
    background: rgba(0,123,255,0.08) !important;
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}

.check.yes { color: var(--success); font-weight: 700; font-size: 1.25rem; }
.check.no { color: var(--danger); font-weight: 700; font-size: 1.25rem; }
.check.partial { color: #f59e0b; font-size: 0.875rem; font-weight: 600; }

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition);
}
.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,123,255,0.3);
}

.pricing-featured {
    border-color: var(--primary);
    box-shadow: 0 0 40px var(--glow);
    transform: scale(1.03);
}
.pricing-featured:hover { transform: scale(1.03) translateY(-4px); }

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header h3 {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 24px;
}
.price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 24px;
}
.pricing-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.9375rem;
}
.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: 700;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
}
.trust-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-light);
    flex-shrink: 0;
}

/* Download */
.download-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: center;
}

.download-content h2 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 16px;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 28px 0;
}

.download-note {
    font-size: 0.875rem;
    opacity: 0.7;
}

.download-stats {
    display: grid;
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
}
.stat-label { font-size: 0.875rem; margin-top: 4px; }

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 0.9375rem;
    line-height: 1.7;
}
.testimonial footer strong {
    display: block;
    color: var(--text-white);
    font-style: normal;
}
.testimonial footer span {
    font-size: 0.8125rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-details {
    list-style: none;
    margin-top: 32px;
}
.contact-details li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.contact-details svg {
    width: 20px;
    height: 20px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.contact-form,
.auth-card form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-white);
    font-size: 0.875rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

/* CTA */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(0,123,255,0.2) 0%, transparent 60%),
        var(--bg-section);
    border-top: 1px solid var(--border);
}

.cta-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--text-white);
    margin-bottom: 16px;
    font-weight: 700;
}
.cta-section p { margin-bottom: 32px; font-size: 1.125rem; }

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.875rem;
    max-width: 280px;
}

.footer-links h4,
.footer-social h4 {
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a,
.footer-links span {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 10px;
}
.footer-links a:hover { color: var(--text-white); }

.social-icons {
    display: flex;
    gap: 12px;
}
.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all var(--transition);
}
.social-icons a:hover {
    background: var(--primary);
    color: white;
}
.social-icons svg { width: 18px; height: 18px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}
.footer-legal a { color: var(--text-muted); font-size: 0.8125rem; }

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,123,255,0.15) 0%, transparent 60%),
        var(--bg-dark);
    padding: 24px;
}

.auth-container { width: 100%; max-width: 440px; }
.auth-logo { justify-content: center; margin-bottom: 32px; }

/* Auth-Seiten laden kein app.js – Inhalt sofort sichtbar machen */
.auth-page .fade-in {
    opacity: 1;
    transform: translateY(0);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.auth-card h1 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.auth-card > p { margin-bottom: 24px; }
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
}

/* Dashboard */
.dashboard-page { background: var(--bg-dark); min-height: 100vh; }
.dashboard-main { padding: calc(var(--header-height) + 40px) 0 60px; }

.dashboard-header { margin-bottom: 40px; }
.dashboard-header h1 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 8px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.dashboard-card-wide { grid-column: 1 / -1; }

.dashboard-card h2 {
    color: var(--text-white);
    font-size: 1.125rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.dashboard-subheading {
    color: var(--text-white);
    font-size: 0.95rem;
    margin: 0 0 8px;
}

.dashboard-form {
    display: grid;
    gap: 4px;
    margin-bottom: 8px;
}

.dashboard-form .btn {
    justify-self: start;
    margin-top: 8px;
}

.dashboard-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.dev-password {
    display: inline-block;
    margin-left: 6px;
    padding: 4px 10px;
    background: rgba(0, 163, 255, 0.12);
    border: 1px solid rgba(0, 163, 255, 0.35);
    border-radius: 6px;
    color: var(--primary-light);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.dev-password-large {
    display: block;
    margin: 0;
    padding: 12px 16px;
    font-size: 1.15rem;
    text-align: center;
    user-select: all;
}

.dev-password-box {
    margin-bottom: 20px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.info-list dt { color: var(--text-muted); font-size: 0.875rem; }
.info-list dd { color: var(--text-white); font-weight: 500; }

.license-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8125rem;
    text-transform: capitalize;
}
.license-trial { background: rgba(245,158,11,0.2); color: #f59e0b; }
.license-professional { background: rgba(0,123,255,0.2); color: var(--primary-light); }
.license-lifetime { background: rgba(20,184,166,0.2); color: var(--lifetime); }

.status-active { color: var(--success); }
.status-inactive { color: var(--danger); }

.dashboard-actions,
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.user-email {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-right: 8px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}
.data-table th {
    color: var(--text-muted);
    font-weight: 600;
}
.data-table td { color: var(--text-white); }

.payment-paid { color: var(--success); }
.payment-failed { color: var(--danger); }
.payment-refunded { color: #fbbf24; }

.withdrawal-box {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(184, 199, 217, 0.12);
}
.withdrawal-note {
    margin: 10px 0 14px;
    font-size: 0.875rem;
}

.table-responsive { overflow-x: auto; }

/* Alerts & Toast */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.9375rem;
}
.alert-success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.alert-info { background: rgba(0,123,255,0.15); border: 1px solid rgba(0,123,255,0.3); color: var(--primary-light); }
.alert-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }

.toast {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: 8px;
    animation: slideIn 0.4s ease;
}
.toast-success {
    background: rgba(34,197,94,0.95);
    color: white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.text-muted { color: var(--text-muted); opacity: 0.7; }

/* Legal */
.legal-page {
    padding: calc(var(--header-height) + 40px) 24px 60px;
    max-width: 800px;
}
.legal-page h1 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 32px;
}
.legal-page h2 {
    color: var(--text-white);
    font-size: 1.25rem;
    margin: 28px 0 12px;
}
.legal-page p { margin-bottom: 12px; }

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
    /* Language Switcher */
    .lang-switcher { position: relative; }
    .lang-switcher-mobile { display: none; }
    .lang-switcher-desktop { display: block; }

    .lang-switcher-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        background: rgba(255,255,255,0.05);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text-muted);
        font-family: inherit;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all var(--transition);
    }
    .lang-switcher-btn:hover,
    .lang-switcher.open .lang-switcher-btn {
        border-color: var(--primary);
        color: var(--text-white);
        background: rgba(0,123,255,0.1);
    }

    .lang-globe { width: 16px; height: 16px; flex-shrink: 0; }
    .lang-chevron { width: 14px; height: 14px; transition: transform var(--transition); }
    .lang-switcher.open .lang-chevron { transform: rotate(180deg); }

    .lang-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 180px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 10px;
        box-shadow: 0 16px 40px rgba(0,0,0,0.4);
        list-style: none;
        padding: 6px;
        margin: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: all var(--transition);
        z-index: 1100;
    }
    .lang-switcher.open .lang-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .lang-option {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 6px;
        color: var(--text-muted);
        font-size: 0.875rem;
        transition: all var(--transition);
    }
    .lang-option:hover,
    .lang-option.active {
        background: rgba(0,123,255,0.12);
        color: var(--text-white);
    }
    .lang-flag {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 20px;
        background: rgba(0,123,255,0.15);
        border-radius: 4px;
        font-size: 0.6875rem;
        font-weight: 700;
        color: var(--primary-light);
    }

    /* RTL Support */
    html[dir="rtl"] .header-inner { flex-direction: row-reverse; }
    html[dir="rtl"] .nav { flex-direction: row-reverse; }
    html[dir="rtl"] .header-actions { flex-direction: row-reverse; }
    html[dir="rtl"] .check-list li { padding-left: 0; padding-right: 28px; }
    html[dir="rtl"] .check-list li::before { left: auto; right: 0; }
    html[dir="rtl"] .pricing-features li { padding-left: 0; padding-right: 24px; }
    html[dir="rtl"] .pricing-features li::before { left: auto; right: 0; }
    html[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
    html[dir="rtl"] .hero-grid { direction: rtl; }
    html[dir="rtl"] .footer-grid { direction: rtl; }

    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { order: -1; max-width: 600px; margin: 0 auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-featured { transform: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-badges { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(5,10,20,0.98);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        border-bottom: 1px solid var(--border);
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
    }
    .mobile-toggle { display: flex; }
    .header-actions .btn-ghost { display: none; }
    .lang-switcher-desktop { display: none; }
    .lang-switcher-mobile { display: block; margin-top: 8px; }

    .features-grid,
    .testimonials-grid,
    .contact-grid,
    .download-grid,
    .dashboard-grid { grid-template-columns: 1fr; }

    .pricing-grid { grid-template-columns: 1fr; }
    .trust-badges { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

    .slider-tabs { gap: 6px; }
    .slider-tab { padding: 8px 12px; font-size: 0.75rem; }
    .app-window-caption { gap: 12px; }
    .app-caption-main { flex-direction: column; gap: 10px; }
    .app-caption-tags span { font-size: 0.6875rem; }
    .slider-arrow { width: 40px; height: 40px; }
    .slider-prev { left: 4px; }
    .slider-next { right: 4px; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
}

/* Checkout / Kaufen Pages */
.checkout-page { min-height: 100vh; background: var(--bg-dark); }
.checkout-main { padding: calc(var(--header-height) + 48px) 0 80px; }

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.checkout-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
}

.checkout-summary-featured {
    border-color: var(--primary);
    box-shadow: 0 0 40px var(--glow);
}

.checkout-plan-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.checkout-summary h1 {
    color: var(--text-white);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.checkout-summary > p {
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.checkout-price {
    margin-bottom: 28px;
}
.checkout-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
}
.checkout-price .price-suffix {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.checkout-trust {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.checkout-card h2 {
    color: var(--text-white);
    font-size: 1.375rem;
    margin-bottom: 8px;
}

.checkout-card > p {
    margin-bottom: 24px;
}

.checkout-form { margin-top: 8px; }

.checkout-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-note {
    margin-top: 20px;
    font-size: 0.875rem;
    text-align: center;
    color: var(--text-muted);
}
.checkout-dev-form { margin-top: 4px; }
.checkout-note-dev {
    margin-top: 12px;
    margin-bottom: 16px;
    font-size: 0.8125rem;
    color: #86efac;
}

.checkout-note code {
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8125rem;
}

.checkout-switch {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.875rem;
}

.checkout-current-license {
    background: rgba(0,123,255,0.08);
    border: 1px solid rgba(0,123,255,0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

@media (max-width: 768px) {
    .checkout-layout { grid-template-columns: 1fr; }
}
