/* ================================================
   NegevSecure - Theme Styles (Dark & Light)
   ================================================ */

/* CSS Variables - Dark Theme (Default) */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: #16161f;
    --bg-hover: #1e1e2a;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent-primary: #00d4aa;
    --accent-secondary: #00b894;
    --accent-glow: rgba(0, 212, 170, 0.3);
    
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    
    --border-color: #27272a;
    --border-light: #3f3f46;
    
    --gradient-primary: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a24 0%, #0a0a0f 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.15) 0%, transparent 70%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.2);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Terminal colors */
    --terminal-bg: #12121a;
    --terminal-header: #1a1a24;
    
    /* Navbar */
    --navbar-bg: rgba(10, 10, 15, 0.85);
    --navbar-bg-scrolled: rgba(10, 10, 15, 0.95);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-primary: #00a884;
    --accent-secondary: #00917a;
    --accent-glow: rgba(0, 168, 132, 0.2);
    
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    
    --gradient-glow: radial-gradient(ellipse at center, rgba(0, 168, 132, 0.1) 0%, transparent 70%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(0, 168, 132, 0.15);
    
    /* Terminal colors for light mode */
    --terminal-bg: #1e293b;
    --terminal-header: #334155;
    
    /* Navbar */
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.95);
}

/* Light theme specific overrides */
[data-theme="light"] .card {
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .card:hover {
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .pricing-card {
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .pricing-card.featured {
    box-shadow: var(--shadow-md), 0 0 40px rgba(0, 168, 132, 0.15);
}

[data-theme="light"] .step-card {
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .engine-card {
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .contact-form {
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .login-card {
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .badge {
    background: var(--bg-secondary);
}

[data-theme="light"] .hero-badge {
    background: rgba(0, 168, 132, 0.08);
    border-color: rgba(0, 168, 132, 0.2);
}

[data-theme="light"] .section-tag {
    background: rgba(0, 168, 132, 0.08);
    border-color: rgba(0, 168, 132, 0.2);
}

[data-theme="light"] .card-icon {
    background: rgba(0, 168, 132, 0.08);
}

[data-theme="light"] .feature-icon-large {
    background: rgba(0, 168, 132, 0.08);
}

[data-theme="light"] .engine-icon {
    background: rgba(0, 168, 132, 0.08);
}

[data-theme="light"] .engine-icon.blue {
    background: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .engine-icon.purple {
    background: rgba(139, 92, 246, 0.08);
}

[data-theme="light"] .contact-method-icon {
    background: rgba(0, 168, 132, 0.08);
}

[data-theme="light"] .btn-secondary {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .btn-secondary:hover {
    background: var(--bg-tertiary);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
    background: var(--bg-secondary);
}

/* Light theme table styles for legal pages */
[data-theme="light"] .legal-content table {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

[data-theme="light"] .legal-content tr {
    border-color: var(--border-color);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--accent-secondary);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================
   Navigation
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: var(--navbar-bg-scrolled);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hide desktop buttons on mobile */
.btn-desktop {
    display: inline-flex;
}

/* Mobile nav buttons (shown only in mobile menu) */
.mobile-nav-buttons {
    display: none;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu close button */
.nav-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon,
.theme-toggle .icon-monitor {
    display: none;
}

/* Show correct icon based on theme */
[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

.theme-toggle .icon-monitor {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-monitor,
[data-theme="dark"] .theme-toggle .icon-monitor {
    display: none;
}

/* Theme dropdown */
.theme-dropdown {
    position: relative;
}

.theme-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.theme-dropdown.open .theme-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-option:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.theme-option.active {
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent-primary);
}

.theme-option i {
    width: 18px;
    height: 18px;
}

/* ================================================
   Buttons
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(0, 212, 170, 0.4);
    color: var(--bg-primary);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 50px;
    font-size: 14px;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Hero Visual / Terminal */
.hero-visual {
    position: relative;
}

.terminal {
    background: var(--terminal-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--terminal-header);
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.terminal-body {
    padding: 24px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.8;
    min-height: 300px;
    background: #12121a;
}

.terminal-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(10px);
    animation: terminalFadeIn 0.5s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line:nth-child(2) { animation-delay: 0.6s; }
.terminal-line:nth-child(3) { animation-delay: 1.0s; }
.terminal-line:nth-child(4) { animation-delay: 1.4s; }
.terminal-line:nth-child(5) { animation-delay: 1.8s; }
.terminal-line:nth-child(6) { animation-delay: 2.2s; }
.terminal-line:nth-child(7) { animation-delay: 2.6s; }
.terminal-line:nth-child(8) { animation-delay: 3.0s; }
.terminal-line:nth-child(9) { animation-delay: 3.4s; }
.terminal-line:nth-child(10) { animation-delay: 3.8s; }

@keyframes terminalFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-prompt {
    color: #00d4aa;
    margin-right: 8px;
    user-select: none;
}

.terminal-command {
    color: #ffffff;
}

.terminal-output {
    color: #a1a1aa;
    padding-left: 20px;
}

.terminal-success {
    color: #22c55e;
}

.terminal-warning {
    color: #f59e0b;
}

.terminal-error {
    color: #ef4444;
}

.terminal-info {
    color: #3b82f6;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: #00d4aa;
    margin-left: 4px;
    animation: blink 1s infinite;
}

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

/* ================================================
   Section Styles
   ================================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ================================================
   Cards
   ================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card-text {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* ================================================
   Steps / How It Works
   ================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
}

.step-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bg-primary);
    margin: 0 auto 24px;
}

.step-card h3 {
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-secondary);
}

/* ================================================
   Pricing
   ================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    position: relative;
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient-primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--bg-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-name {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.pricing-features li i {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.pricing-card .btn {
    width: 100%;
}

/* ================================================
   Contact Form
   ================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info h2 {
    margin-bottom: 24px;
}

.contact-info p {
    margin-bottom: 32px;
    font-size: 1.125rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.contact-method-text h4 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-method-text p {
    color: var(--text-primary);
    margin: 0;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

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

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

/* ================================================
   Legal Pages
   ================================================ */
.legal-page {
    padding: 140px 0 80px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 48px;
}

.legal-header h1 {
    margin-bottom: 16px;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 14px;
}

.legal-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-content p {
    margin-bottom: 16px;
}

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

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--accent-primary);
}

/* ================================================
   Footer
   ================================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* ================================================
   Login Page
   ================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header .logo {
    justify-content: center;
    margin-bottom: 24px;
}

.login-header h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-muted);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    font-size: 13px;
    color: var(--text-muted);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
}

.login-footer p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ================================================
   CTA Section
   ================================================ */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-glow);
    text-align: center;
}

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

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.cta-note {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ================================================
   Badges
   ================================================ */
.badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 32px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.badge i {
    color: var(--accent-primary);
}

/* ================================================
   Feature Rows
   ================================================ */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-row:nth-child(even) {
    direction: rtl;
}

.feature-row:nth-child(even) > * {
    direction: ltr;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-secondary);
}

.feature-list li i {
    color: var(--accent-primary);
}

.feature-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.feature-icon-large {
    width: 120px;
    height: 120px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-large i {
    color: var(--accent-primary);
}

/* ================================================
   Engine Showcase
   ================================================ */
.engine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.engine-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    transition: all var(--transition-normal);
}

.engine-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.engine-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.engine-icon i {
    color: var(--accent-primary);
}

.engine-icon.blue { background: rgba(59, 130, 246, 0.1); }
.engine-icon.blue i { color: var(--accent-blue); }

.engine-icon.purple { background: rgba(139, 92, 246, 0.1); }
.engine-icon.purple i { color: var(--accent-purple); }

.engine-spec {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

/* ================================================
   Alerts
   ================================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ================================================
   404 Page
   ================================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.error-content h1 {
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.error-content h2 {
    margin-bottom: 16px;
}

.error-content p {
    margin-bottom: 32px;
    font-size: 1.125rem;
}

/* ================================================
   Responsive Design
   ================================================ */

/* Mobile Navigation Styles */
.nav-links.active {
    display: flex !important;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-row:nth-child(even) {
        direction: ltr;
    }
    
    .feature-visual {
        min-height: 300px;
        padding: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-container {
        padding: 12px 16px;
    }
    
    .navbar {
        padding: 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        display: none !important;
        z-index: 999;
        padding: 100px 24px 40px;
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .nav-links > a {
        font-size: 1.125rem;
        padding: 16px 24px;
        width: 100%;
        max-width: 320px;
        text-align: center;
        border-radius: var(--radius-md);
        transition: background var(--transition-fast);
        color: var(--text-primary);
        font-weight: 500;
    }
    
    .nav-links > a:hover {
        background: var(--bg-secondary);
    }
    
    .nav-links a.active::after {
        display: none;
    }
    
    .nav-links > a.active {
        background: rgba(0, 212, 170, 0.1);
        color: var(--accent-primary);
    }
    
    /* Mobile nav buttons styling */
    .mobile-nav-buttons {
        display: none;
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
        width: 100%;
        max-width: 320px;
        padding-top: 24px;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active .mobile-nav-buttons {
        display: flex;
    }
    
    .mobile-nav-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
        padding: 10px;
        margin-left: 8px;
    }
    
    .nav-toggle span {
        width: 22px;
        height: 2px;
        background: var(--text-primary);
        border-radius: 2px;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    /* Hide desktop buttons on mobile */
    .nav-actions .btn-desktop {
        display: none;
    }
    
    .theme-dropdown {
        display: flex;
    }
    
    .theme-toggle {
        width: 38px;
        height: 38px;
    }
    
    /* Logo adjustments for mobile */
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo span {
        display: inline;
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    /* Terminal */
    .terminal-body {
        font-size: 11px;
        padding: 16px;
        min-height: 250px;
    }
    
    .terminal-line {
        flex-wrap: wrap;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Steps Grid */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .step-card {
        padding: 32px 24px;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 24px;
    }
    
    /* Pricing */
    .pricing-card {
        padding: 32px 24px;
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    /* Engine Grid */
    .engine-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .engine-card {
        padding: 32px 24px;
    }
    
    /* Feature Row */
    .feature-content h3 {
        font-size: 1.5rem;
    }
    
    .feature-content p {
        font-size: 1rem;
    }
    
    .feature-visual {
        min-height: 250px;
        padding: 32px;
    }
    
    .feature-icon-large {
        width: 80px;
        height: 80px;
    }
    
    /* Badges */
    .badges {
        gap: 8px;
    }
    
    .badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 60px 0 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    /* Legal Pages */
    .legal-page {
        padding: 100px 0 60px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.25rem;
        margin-top: 32px;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
        margin-top: 24px;
    }
    
    /* Tables in legal pages */
    .legal-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Login Page */
    .login-page {
        padding: 20px;
    }
    
    .login-card {
        padding: 32px 24px;
    }
    
    .login-header h1 {
        font-size: 1.25rem;
    }
    
    /* Error Pages */
    .error-page {
        padding: 20px;
    }
    
    .error-content h1 {
        font-size: 5rem;
    }
    
    .error-content h2 {
        font-size: 1.5rem;
    }
    
    /* Theme Menu */
    .theme-menu {
        right: -60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    /* Logo */
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    /* Hero */
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-cta .btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    /* Terminal */
    .terminal-body {
        font-size: 10px;
        padding: 12px;
        min-height: 220px;
        overflow-x: auto;
    }
    
    /* Cards */
    .card {
        padding: 20px;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    /* Steps */
    .step-card {
        padding: 24px 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Pricing */
    .pricing-card {
        padding: 24px 20px;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    .pricing-features li {
        font-size: 14px;
        padding: 10px 0;
    }
    
    /* Section Headers */
    .section-tag {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Feature Row */
    .feature-row {
        gap: 32px;
        margin-bottom: 48px;
    }
    
    .feature-content h3 {
        font-size: 1.35rem;
    }
    
    .feature-list li {
        font-size: 14px;
    }
    
    .feature-visual {
        min-height: 200px;
        padding: 24px;
    }
    
    .feature-icon-large {
        width: 64px;
        height: 64px;
    }
    
    /* Engine Cards */
    .engine-card {
        padding: 24px 20px;
    }
    
    .engine-icon {
        width: 64px;
        height: 64px;
    }
    
    /* Contact */
    .contact-info h2 {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-input,
    .form-textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer-section h4 {
        margin-bottom: 12px;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Legal Pages */
    .legal-container {
        padding: 0;
    }
    
    .legal-header h1 {
        font-size: 1.75rem;
    }
    
    .legal-content {
        font-size: 14px;
    }
    
    .legal-content ul,
    .legal-content ol {
        padding-left: 20px;
    }
    
    /* Login */
    .login-card {
        padding: 24px 20px;
    }
    
    .login-divider {
        margin: 20px 0;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    /* Error Pages */
    .error-content h1 {
        font-size: 4rem;
    }
    
    .error-content h2 {
        font-size: 1.25rem;
    }
    
    .error-content p {
        font-size: 0.95rem;
    }
    
    .error-content > div {
        flex-direction: column;
    }
    
    .error-content .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Theme Toggle */
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .theme-menu {
        right: 0;
        min-width: 140px;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Alerts */
    .alert {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .terminal-body {
        font-size: 9px;
    }
    
    .pricing-price {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
}
