/* ============================================
   Pathix Marketing Website - Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --transition: all 0.3s ease;
}

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

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

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

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

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-title-small {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description-small {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons-small {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.hero-downloads-small {
    margin-bottom: 2rem;
}

.hero-downloads-small .download-buttons {
    justify-content: center;
}

.hero-demo-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

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

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-downloads {
    margin-bottom: 2rem;
}

.download-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

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

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    min-width: 180px;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.download-btn i:first-child {
    font-size: 1.5rem;
}

.download-btn-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.download-btn-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.download-btn-os {
    font-size: 1.125rem;
    font-weight: 600;
}

.download-btn i:last-child {
    font-size: 1.125rem;
    opacity: 0.8;
}

/* MacBook Frame */
.macbook-frame {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.macbook-screen {
    background: #1d1d1d;
    border-radius: 12px 12px 2px 2px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

.macbook-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #1d1d1d;
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

.macbook-content {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16/10;
    position: relative;
}

.macbook-base {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 100%);
    height: 20px;
    border-radius: 0 0 8px 8px;
    margin-top: -2px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.macbook-keyboard {
    width: 80%;
    height: 4px;
    background: #1d1d1d;
    margin: 8px auto;
    border-radius: 2px;
}

.macbook-trackpad {
    width: 120px;
    height: 80px;
    background: #1d1d1d;
    margin: 8px auto;
    border-radius: 40px;
}

/* Mobile Frame */
.mobile-frame {
    position: relative;
    width: 280px;
    margin: 0 auto;
}

.mobile-screen {
    background: #1d1d1d;
    border-radius: 30px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.mobile-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: #1d1d1d;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.mobile-content {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 9/19;
    position: relative;
    padding: 1rem;
}

.mobile-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #6366f1;
}

.mobile-logo {
    width: 24px;
    height: 24px;
}

.mobile-demo-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-stats {
    display: flex;
    gap: 0.75rem;
}

.mobile-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.mobile-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
}

.mobile-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.mobile-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.mobile-reports-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-report-item {
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.mobile-report-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.mobile-report-number {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.mobile-badge-success {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #d1fae5;
    color: #065f46;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Animated Cursor */
.animated-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #6366f1;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease-out;
    display: none;
}

.animated-cursor.active {
    display: block;
}

.animated-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #6366f1;
    border-radius: 50%;
}

/* Report Generation Demo */
.hero-form-demo {
    margin-bottom: 1.5rem;
}

.hero-form-field {
    margin-bottom: 1rem;
}

.hero-form-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.hero-form-input {
    padding: 0.75rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.hero-typing-text {
    color: #1f2937;
    font-size: 0.875rem;
}

.hero-cursor-blink {
    color: #6366f1;
    font-weight: 700;
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

.hero-results-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.hero-result-value {
    font-weight: 600;
    color: #6366f1;
}

.hero-report-preview {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    animation: slideInUp 0.6s ease-out;
    display: none;
}

.hero-report-preview.show {
    display: block;
}

.hero-report-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.report-logo-img {
    width: 32px;
    height: 32px;
}

.hero-report-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.hero-report-patient {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.hero-report-table {
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.hero-report-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #1f2937;
}

.hero-report-table-row:last-child {
    border-bottom: none;
}

.hero-report-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.hero-pdf-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Navigation Logo */
.nav-logo {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.stat-item i {
    font-size: 1.2rem;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: var(--bg-primary);
    height: 120px;
}

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

/* Hero App Demo Interface */
.hero-app-window {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: floatAnimation 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    50% {
        transform: translateY(-20px) rotateY(2deg);
    }
}

.hero-demo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulseGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.hero-window-header {
    background: #1f2937;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-window-controls {
    display: flex;
    gap: 0.5rem;
}

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

.hero-control-dot.red {
    background: #ef4444;
}

.hero-control-dot.yellow {
    background: #f59e0b;
}

.hero-control-dot.green {
    background: #10b981;
}

.hero-window-title {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.hero-window-spacer {
    width: 80px;
}

.hero-app-content {
    position: relative;
    min-height: 400px;
    max-height: 400px;
    overflow: hidden;
}

.hero-screen {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: heroScreenFadeIn 0.8s ease-in-out;
}

.hero-screen.active {
    display: block;
}

@keyframes heroScreenFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.hero-app-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0.5rem;
}

.hero-sidebar-item {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    border-radius: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.hero-sidebar-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.hero-app-main {
    margin-left: 60px;
    padding: 1.5rem;
    height: 100%;
    overflow-y: auto;
}

.hero-dashboard-header h3,
.hero-reports-header h3,
.hero-tests-header h3,
.hero-templates-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.hero-reports-header,
.hero-tests-header,
.hero-templates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-btn-small {
    padding: 0.5rem 1rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.hero-stats-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-stat-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.hero-stat-preview:nth-child(1) { animation-delay: 0.1s; }
.hero-stat-preview:nth-child(2) { animation-delay: 0.2s; }
.hero-stat-preview:nth-child(3) { animation-delay: 0.3s; }

.hero-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
}

.hero-stat-icon.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-stat-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.hero-stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.hero-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.hero-table-preview {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.hero-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #1f2937;
}

.hero-table-row:last-child {
    border-bottom: none;
}

.hero-badge-success,
.hero-badge-warning {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.hero-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.hero-reports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hero-report-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    animation: fadeInUp 0.4s ease-out;
}

.hero-report-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.hero-report-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.hero-report-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.hero-report-tags span {
    padding: 0.25rem 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.hero-tests-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-test-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    animation: slideInLeft 0.4s ease-out;
}

.hero-test-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.5rem;
}

.hero-test-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.hero-test-params {
    font-size: 0.75rem;
    color: #6b7280;
}

.hero-formula-preview {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
}

.hero-formula-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-formula-expression {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #1f2937;
}

.hero-formula-expression span {
    padding: 0.5rem 0.75rem;
    background: white;
    border: 2px solid #6366f1;
    border-radius: 0.375rem;
    font-weight: 600;
    color: #6366f1;
}

.hero-template-preview {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.hero-template-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.hero-template-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.hero-template-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.hero-template-body {
    margin-top: 1rem;
}

.hero-template-field {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.hero-template-field label {
    font-weight: 600;
    color: #6b7280;
}

.hero-template-field span {
    color: #1f2937;
}

.hero-template-table {
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    overflow: hidden;
}

.hero-template-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #1f2937;
}

.hero-template-row:last-child {
    border-bottom: none;
}

/* Responsive Hero Demo */
@media (max-width: 1024px) {
    .hero-demo-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .macbook-frame {
        max-width: 100%;
    }

    .mobile-frame {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .hero-title-small {
        font-size: 1.75rem;
    }

    .hero-description-small {
        font-size: 0.9rem;
    }

    .macbook-frame {
        max-width: 100%;
        transform: scale(0.9);
    }

    .mobile-frame {
        width: 200px;
        transform: scale(0.9);
    }

    .hero-form-field,
    .hero-results-preview,
    .hero-report-preview {
        font-size: 0.8rem;
    }

    .hero-report-table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-pricing {
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Pricing Section */
.pricing {
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    position: relative;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: var(--transition);
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: var(--shadow-md);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
}

.pricing-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.pricing-price {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.price-original {
    display: block;
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.price-original.hidden {
    display: none;
}

.price-final {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-discount {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--secondary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

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

.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 1.8rem;
    color: var(--primary-light);
}

.footer-logo {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

/* Desktop - Keep logo small */
@media (min-width: 769px) {
    .footer-logo {
        width: 24px;
        height: 24px;
    }
}

/* Footer Logo Responsive */
@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }
    
    .footer-section:first-child {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .footer-section:first-child .footer-brand {
        justify-content: center !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .footer-section:first-child .footer-logo,
    .footer .footer-logo {
        width: 200px !important;
        height: 200px !important;
        max-width: 200px !important;
        max-height: 200px !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-bottom: 1rem !important;
        display: block !important;
        flex-shrink: 0;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section:first-child {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .footer-section:first-child .footer-brand {
        justify-content: center !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .footer-section:first-child .footer-logo {
        width: 200px !important;
        height: 200px !important;
        max-width: 200px !important;
        max-height: 200px !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-bottom: 1rem !important;
        display: block !important;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.pricing-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scroll */
html {
    scroll-padding-top: 80px;
}

/* ============================================
   App Demo Section
   ============================================ */

.demo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.demo .section-header {
    position: relative;
    z-index: 1;
    color: white;
}

.demo .section-title,
.demo .section-description {
    color: white;
}

.demo-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.demo-window {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.demo-window-header {
    background: #1f2937;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.demo-window-controls {
    display: flex;
    gap: 0.5rem;
}

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

.control-dot.red {
    background: #ef4444;
}

.control-dot.yellow {
    background: #f59e0b;
}

.control-dot.green {
    background: #10b981;
}

.demo-window-title {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.demo-window-spacer {
    width: 80px;
}

.demo-window-body {
    display: flex;
    min-height: 600px;
    max-height: 600px;
    overflow: hidden;
}

.demo-sidebar {
    width: 240px;
    background: #f9fafb;
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
}

.demo-sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.demo-sidebar-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.demo-sidebar-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.demo-sidebar-item i {
    width: 20px;
    text-align: center;
}

.demo-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
}

.demo-screen {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.demo-screen.active {
    display: block;
}

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

.demo-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.demo-screen-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.demo-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
}

.demo-badge.success {
    background: var(--secondary-color);
}

.demo-badge.warning {
    background: var(--accent-color);
}

.demo-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.demo-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.demo-btn-small {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.demo-btn-small:hover {
    background: var(--border-color);
}

.demo-btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.demo-btn-icon:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Dashboard Screen */
.demo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.demo-stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.demo-stat-card:nth-child(1) { animation-delay: 0.1s; }
.demo-stat-card:nth-child(2) { animation-delay: 0.2s; }
.demo-stat-card:nth-child(3) { animation-delay: 0.3s; }
.demo-stat-card:nth-child(4) { animation-delay: 0.4s; }

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

.demo-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.demo-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.demo-stat-icon.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.demo-stat-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.demo-stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.demo-stat-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.demo-stat-content {
    flex: 1;
}

.demo-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.demo-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.demo-table-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
}

.demo-table-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-table-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.demo-table {
    width: 100%;
    border-collapse: collapse;
}

.demo-table thead {
    background: var(--bg-secondary);
}

.demo-table th {
    padding: 0.875rem 1.5rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-table td {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}

.demo-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* Reports Screen */
.demo-search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.demo-search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.demo-search-bar input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.demo-search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.demo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.demo-report-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: var(--transition);
    animation: fadeInUp 0.4s ease-out;
}

.demo-report-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

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

.demo-report-number {
    font-weight: 600;
    color: var(--text-primary);
}

.demo-report-body {
    margin-bottom: 1rem;
}

.demo-report-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.demo-report-info strong {
    font-size: 1.125rem;
    color: var(--text-primary);
}

.demo-report-info span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.demo-report-tests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.demo-test-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.demo-report-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.demo-report-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Test Management Screen */
.demo-test-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.demo-test-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    animation: slideInLeft 0.4s ease-out;
}

.demo-test-item:nth-child(1) { animation-delay: 0.1s; }
.demo-test-item:nth-child(2) { animation-delay: 0.2s; }
.demo-test-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.demo-test-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.demo-test-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.demo-test-info {
    flex: 1;
}

.demo-test-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.demo-test-params {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.demo-test-actions {
    display: flex;
    gap: 0.5rem;
}

.demo-formula-builder {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.demo-formula-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.demo-formula-header i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.demo-formula-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.demo-formula-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
}

.demo-formula-label {
    font-weight: 600;
    color: var(--text-primary);
}

.demo-formula-expression {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.demo-formula-param {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 0.375rem;
    font-weight: 600;
    color: var(--primary-color);
}

.demo-formula-operator {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.demo-formula-params-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.demo-param-chip {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.demo-param-chip:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Templates Screen */
.demo-template-preview {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 2rem;
}

.demo-template-canvas {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.demo-template-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.demo-template-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.demo-template-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.demo-template-body {
    margin-bottom: 2rem;
}

.demo-template-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.demo-template-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-template-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-template-value {
    font-size: 1rem;
    color: var(--text-primary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.demo-template-table {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.demo-template-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-template-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.demo-template-table-row:nth-child(even) {
    background: var(--bg-secondary);
}

.demo-template-footer {
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.demo-template-signature {
    text-align: right;
}

.demo-signature-line {
    width: 200px;
    height: 1px;
    background: var(--text-primary);
    margin: 2rem auto 0.5rem;
}

.demo-template-tools {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.demo-tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.demo-tool-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.demo-tool-item i {
    font-size: 1.5rem;
}

.demo-tool-item span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Demo Controls */
.demo-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.demo-control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.demo-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.demo-control-btn.active {
    background: white;
    color: var(--primary-color);
    border-color: white;
    box-shadow: var(--shadow-lg);
}

.demo-control-btn i {
    font-size: 1.5rem;
}

.demo-control-btn span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Responsive Demo */
@media (max-width: 1024px) {
    .demo-window-body {
        flex-direction: column;
        max-height: none;
    }

    .demo-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .demo-sidebar-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .demo-sidebar-item.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }

    .demo-template-preview {
        grid-template-columns: 1fr;
    }

    .demo-template-tools {
        flex-direction: row;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .demo-stats-grid {
        grid-template-columns: 1fr;
    }

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

    .demo-template-section {
        grid-template-columns: 1fr;
    }

    .demo-template-table-header,
    .demo-template-table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .demo-control-btn {
        min-width: 100px;
        padding: 0.75rem 1rem;
    }
}


