:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

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

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

.btn-secondary {
    background-color: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background-color: var(--gray-200);
    color: var(--gray-900);
}

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.logo-text::after {
    content: '';
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 32px;
}

.domain-switcher {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: var(--gray-100);
    border-radius: 20px;
}

.domain-pill {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--gray-500);
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.domain-pill:hover {
    color: var(--gray-900);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.domain-pill.active {
    color: var(--white);
    background: var(--primary);
    box-shadow: var(--shadow-sm);
}

.footer-domain-switcher {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 4px;
}

.footer-domain-switcher a {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 10px;
    transition: color 0.2s;
}

.footer-domain-switcher a:hover {
    color: var(--white);
}

.footer-domain-switcher a.active {
    color: var(--gray-200);
    font-weight: 600;
}

@media (max-width: 768px) {
    .logo-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .domain-switcher {
        margin-left: 0;
    }
    .domain-pill {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
}

.footer-logo {
    height: 48px;
    width: auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand .logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--gray-600);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

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

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
    list-style: none;
    margin-top: 8px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    display: block;
    padding: 6px 16px;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: none;
    transition: all 0.15s ease;
}

.dropdown-menu li a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 4px 0;
}

.dropdown-header {
    padding: 6px 16px 2px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile dropdown handling */
@media (max-width: 768px) {
    .nav-dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-dropdown.mobile-open .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: var(--gray-50);
        margin: 8px 0;
        border-radius: var(--radius);
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .dropdown-menu li a {
        padding: 12px 20px;
    }
}

.mobile-menu-toggle {
    display: none;
}

.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

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

.hero-content h1 {
    margin-bottom: 24px;
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

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

.deployment-tagline h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.deployment-tagline p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 24px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--gray-300);
    margin: 0 auto;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--gray-900);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hero-tagline {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--gray-600);
    text-align: center;
    letter-spacing: 0.02em;
}

.stat {
    text-align: center;
    min-width: 0;
}

.hero-card .stat-value {
    font-size: 1.25rem;
    white-space: nowrap;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

/* Audience Section */
.audience {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.audience-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.audience-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--primary);
}

.audience-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.audience-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Sync Hero Section */
.sync-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
}

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

.sync-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.sync-tagline {
    font-size: 1.25rem;
    color: #10b981;
    font-weight: 500;
    margin-bottom: 20px;
}

.sync-description {
    font-size: 1.0625rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 32px;
}

.sync-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

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

.sync-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #10b981;
}

.sync-stat-label {
    display: block;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 4px;
}

.sync-visual {
    display: flex;
    justify-content: center;
}

.sync-visual svg {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .sync-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sync-content h2 {
        font-size: 2rem;
    }
    
    .sync-visual svg {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .sync-hero {
        padding: 60px 0;
    }
    
    .sync-content h2 {
        font-size: 1.75rem;
    }
    
    .sync-tagline {
        font-size: 1.125rem;
    }
    
    .sync-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .sync-stat {
        flex: 1 1 calc(50% - 12px);
    }
    
    .sync-visual {
        display: none;
    }
}

.features {
    padding: 50px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--white);
}

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

.feature-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Deployment Options Section */
.deployment-options {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-top: -24px;
    margin-bottom: 48px;
}

.deployment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.deployment-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.deployment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.deployment-card.featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
}

.deployment-card.featured h3,
.deployment-card.featured p {
    color: var(--white);
}

.deployment-card.featured ul li {
    color: rgba(255, 255, 255, 0.9);
}

.deployment-card.featured ul li::before {
    color: rgba(255, 255, 255, 0.8);
}

.deployment-icon {
    margin-bottom: 20px;
    color: var(--primary);
}

.deployment-card.featured .deployment-icon {
    color: var(--white);
}

.deployment-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.deployment-card > p {
    color: var(--gray-600);
    margin-bottom: 20px;
    flex-grow: 0;
}

.deployment-card ul {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.deployment-card ul li {
    padding: 8px 0;
    color: var(--gray-700);
    position: relative;
    padding-left: 24px;
}

.deployment-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

.deployment-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.deployment-card.featured .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.deployment-card.featured .btn-primary:hover {
    background: var(--gray-100);
}

.deployment-unified {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.unified-connector {
    display: flex;
    align-items: center;
    gap: 0;
    width: 60%;
}

.connector-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary));
}

.connector-line:last-child {
    background: linear-gradient(90deg, var(--primary), var(--primary), transparent);
}

.connector-node {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.unified-message {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.unified-badge {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .deployment-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .deployment-card.featured {
        order: -1;
    }
    
    .unified-connector {
        width: 80%;
    }
}

.products-preview {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
}

.products-preview .section-title {
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
}

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

.product-card.featured {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.product-card.featured h3,
.product-card.featured p {
    color: var(--white);
}

.product-card.featured .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.product-card.featured .btn-primary:hover {
    background: var(--gray-100);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-badge.cloud {
    background: var(--accent);
    color: var(--white);
}

.product-card.cloud-card {
    border: 2px solid var(--accent);
}

.product-card.cloud-card:hover {
    border-color: var(--primary);
}

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

.product-card p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
}

.cta {
    padding: 50px 0;
    background: var(--gray-50);
}

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

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

.cta-content p {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 1.125rem;
}

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

.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--gray-800);
}

.footer-brand .logo-text {
    color: var(--white);
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--gray-500);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    padding: 6px 0;
}

.footer-column a {
    color: var(--gray-400);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 32px;
    text-align: center;
    font-size: 0.875rem;
}

.trademark-notice {
    margin-top: 16px;
    font-size: 0.7rem;
    color: var(--gray-500);
    line-height: 1.5;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-eyebrow {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .audience-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .audience-card {
        padding: 24px 20px;
    }
    
    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card.featured {
        grid-column: span 1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        z-index: 1001;
    }
    
    .hamburger-line {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--gray-700);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 16px 24px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    .nav {
        position: relative;
    }
}

.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    text-align: center;
}

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

.page-header p {
    color: var(--gray-600);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.product-detail {
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-200);
}

.product-detail:nth-child(even) {
    background: var(--gray-50);
}

.product-detail .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.product-detail:nth-child(even) .container {
    direction: rtl;
}

.product-detail:nth-child(even) .container > * {
    direction: ltr;
}

.product-info h2 {
    margin-bottom: 16px;
}

.product-info .product-description {
    color: var(--gray-600);
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.product-info ul {
    margin-bottom: 32px;
}

.product-info li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--gray-700);
}

.product-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.product-visual {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-visual .icon-large {
    width: 120px;
    height: 120px;
    background: var(--primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--white);
}

.product-visual .icon-large svg {
    width: 60px;
    height: 60px;
}

.product-visual h3 {
    margin-bottom: 8px;
}

.product-visual p {
    color: var(--gray-500);
}

/* Block Diagrams */
.block-diagram {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.block-diagram svg {
    width: 100%;
    height: auto;
    max-height: 450px;
}

@media (max-width: 1024px) {
    .block-diagram {
        margin-top: 32px;
    }
}

.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

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

.contact-info > p {
    color: var(--gray-600);
    margin-bottom: 32px;
}

.contact-details {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.contact-details h3 {
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
    color: var(--gray-600);
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--gray-900);
    transition: all 0.2s ease;
}

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

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

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

.form-submit {
    width: 100%;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 768px) {
    .product-detail .container {
        grid-template-columns: 1fr;
    }
    
    .product-detail:nth-child(even) .container {
        direction: ltr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Cloud Page Styles */
.cloud-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cloud-header h1,
.cloud-header p {
    color: var(--white);
}

.cloud-services {
    padding: 50px 0;
}

.services-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.services-intro h2 {
    margin-bottom: 16px;
}

.services-intro p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

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

.service-card p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Pricing Section */
.pricing-section {
    padding: 50px 0;
    background: var(--gray-50);
}

.pricing-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-top: -32px;
    margin-bottom: 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
    transform: scale(1.02);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    margin-bottom: 16px;
}

.pricing-header h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.price .period {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.pricing-description {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

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

.pricing-features li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
}

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

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

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

/* Relay Regions Section */
.relay-regions {
    padding: 50px 0;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.region-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
}

.region-card h4 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.region-card ul {
    list-style: none;
}

.region-card li {
    padding: 8px 0;
    color: var(--gray-600);
}

/* Platform Features Section */
.platform-features {
    padding: 50px 0;
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.feature-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.feature-item h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.feature-item p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive adjustments for Cloud page */
@media (max-width: 1024px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .regions-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Specifications Page Styles
   ============================================ */

.specs-header {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
}

.specs-header h1,
.specs-header p {
    color: var(--white);
}

/* The Story Section */
.the-story {
    padding: 80px 0;
    background: var(--white);
}

.story-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: start;
}

.story-photo {
    position: sticky;
    top: 100px;
}

.founder-photo {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.story-content h2 {
    color: var(--primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

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

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.credential-badge {
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.story-content p {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.7;
}

.working-groups {
    background: var(--gray-50);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-top: 24px;
}

.working-groups strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.working-groups span {
    display: inline-block;
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 4px 12px;
    border-radius: var(--radius);
    margin: 4px 4px 4px 0;
    font-size: 0.9rem;
}

/* The Quote Section */
.the-quote {
    padding: 80px 0;
    background: var(--gray-50);
}

.founder-quote {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 0 40px;
}

.founder-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -20px;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.founder-quote p {
    font-size: 1.375rem;
    color: var(--gray-700);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 24px;
}

.founder-quote cite {
    font-style: normal;
    color: var(--gray-500);
    font-size: 1rem;
}

/* The Specifications Section */
.the-specifications {
    padding: 80px 0;
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.125rem;
    max-width: 700px;
    margin: -32px auto 48px;
}

.spec-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.spec-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
}

.spec-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.spec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.spec-id {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 4px 10px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
}

.spec-status {
    padding: 4px 10px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-implemented {
    background: #d1fae5;
    color: #065f46;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.status-proposed {
    background: #e0e7ff;
    color: #3730a3;
}

.status-analysis {
    background: #fae8ff;
    color: #86198f;
}

.status-proposed {
    background: #fef3c7;
    color: #92400e;
}

.spec-categories {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.spec-cat {
    padding: 2px 8px;
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cat-transport {
    background: #dbeafe;
    color: #1d4ed8;
}

.cat-security {
    background: #fce7f3;
    color: #be185d;
}

.cat-codec {
    background: #f3e8ff;
    color: #7c3aed;
}

.spec-card-analysis {
    border-color: #d946ef;
}

.spec-card-analysis:hover {
    border-color: #a855f7;
}

.spec-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.spec-problem,
.spec-solution {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.6;
}

.spec-problem strong,
.spec-solution strong {
    color: var(--gray-800);
}

.spec-features {
    list-style: none;
    margin: 16px 0;
    padding: 16px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.spec-features li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.spec-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Transparency Section */
.transparency-section {
    padding: 80px 0;
    background: var(--gray-900);
    color: var(--white);
}

.transparency-section .section-title {
    color: var(--white);
}

.transparency-intro {
    max-width: 800px;
    margin: 0 auto 48px;
}

.transparency-quote {
    text-align: center;
    font-size: 1.25rem;
    color: var(--gray-300);
    font-style: italic;
    line-height: 1.7;
    border: none;
    padding: 0;
}

.transparency-quote::before {
    display: none;
}

.opensource-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.opensource-card {
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.opensource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.opensource-header h3 {
    color: var(--white);
    font-size: 1.5rem;
}

.lang-badge {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.opensource-description {
    color: var(--gray-300);
    margin-bottom: 20px;
    line-height: 1.7;
}

.opensource-adopters {
    margin-bottom: 16px;
}

.opensource-adopters strong {
    display: block;
    color: var(--gray-400);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.adopter {
    display: inline-block;
    background: var(--gray-700);
    color: var(--gray-300);
    padding: 4px 12px;
    border-radius: var(--radius);
    margin: 4px 4px 4px 0;
    font-size: 0.85rem;
}

.nucleus-contents {
    margin-bottom: 16px;
}

.nucleus-contents strong {
    display: block;
    color: var(--gray-400);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.nucleus-contents ul {
    list-style: none;
}

.nucleus-contents li {
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.nucleus-contents li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-light);
}

.opensource-stats {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.transparency-philosophy {
    margin-top: 48px;
}

.transparency-philosophy h3 {
    color: var(--white);
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.5rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

.philosophy-item h4 {
    color: var(--primary-light);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.philosophy-item p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ============================================
   Individual Specification Page Styles
   ============================================ */

.spec-page {
    padding-top: 100px;
    padding-bottom: 80px;
}

.spec-breadcrumb {
    margin-bottom: 32px;
}

.spec-breadcrumb a {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.spec-breadcrumb a:hover {
    color: var(--primary);
}

.spec-document {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
}

.spec-doc-header {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.spec-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.spec-id-large {
    background: var(--gray-100);
    color: var(--gray-800);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
}

.spec-doc-header h1 {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.spec-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.spec-toc {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 24px 32px;
    margin-bottom: 40px;
}

.spec-toc h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.spec-toc ol {
    padding-left: 20px;
    columns: 2;
    column-gap: 32px;
}

.spec-toc li {
    padding: 6px 0;
}

.spec-toc a {
    color: var(--gray-600);
}

.spec-toc a:hover {
    color: var(--primary);
}

.spec-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-100);
}

.spec-section:last-of-type {
    border-bottom: none;
}

.spec-section h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.spec-section h3 {
    font-size: 1.2rem;
    margin: 24px 0 16px;
    color: var(--gray-800);
}

.spec-section h4 {
    font-size: 1rem;
    margin: 20px 0 12px;
    color: var(--gray-700);
}

.spec-section p {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.7;
}

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

.spec-section li {
    padding: 6px 0;
    color: var(--gray-600);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
    border: 1px solid var(--gray-200);
    padding: 12px 16px;
    text-align: left;
}

.spec-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-800);
}

.spec-table td {
    color: var(--gray-600);
}

.spec-table code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85em;
}

.spec-code {
    background: var(--gray-900);
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 16px 0 24px;
    white-space: pre;
}

.spec-diagram {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 16px 0 24px;
    white-space: pre;
    color: var(--gray-700);
}

.spec-doc-footer {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 40px;
}

.spec-doc-footer p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.spec-doc-footer p:last-child {
    margin-bottom: 0;
}

/* Spec Notes, Warnings, and Highlights */
.spec-note {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.spec-note p {
    margin-bottom: 0;
    color: var(--gray-700);
}

.spec-warning {
    background: #fef2f2;
    border-left: 4px solid var(--error);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.spec-warning p {
    margin-bottom: 0;
    color: #991b1b;
}

.spec-highlight {
    background: #f0fdf4;
    border: 1px solid #86efac;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: var(--radius);
}

.spec-highlight h4 {
    color: #166534;
    margin-top: 0;
    margin-bottom: 12px;
}

.spec-highlight p {
    margin-bottom: 0;
    color: #15803d;
}

/* Approach Grid for Analysis Page */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 24px 0;
}

.approach-item {
    background: var(--gray-50);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.approach-item h4 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.approach-item p {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.approach-item p:last-child {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Spec Quote */
.spec-quote {
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    padding: 24px 28px;
    margin: 32px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* Spec Navigation Bottom */
.spec-nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-nav-bottom {
        flex-direction: column;
        gap: 16px;
    }
    
    .spec-nav-bottom .btn {
        width: 100%;
    }
}

/* Responsive for Specifications */
@media (max-width: 1024px) {
    .spec-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .opensource-cards {
        grid-template-columns: 1fr;
    }
    
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .spec-toc ol {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .story-photo {
        position: static;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .story-content {
        text-align: center;
    }
    
    .credentials {
        justify-content: center;
    }
    
    .working-groups {
        text-align: left;
    }
    
    .spec-cards {
        grid-template-columns: 1fr;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-document {
        padding: 24px;
    }
    
    .spec-doc-header h1 {
        font-size: 1.75rem;
    }
    
    .spec-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* ============================================
   ALLIANCE PAGE STYLES
   ============================================ */

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

.alliance-header .btn {
    margin-top: 24px;
}

/* Mission Section */
.alliance-mission {
    padding: 50px 0;
    background: var(--gray-50);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 32px;
}

.mission-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mission-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.mission-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.mission-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Benefits Section */
.alliance-benefits {
    padding: 50px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.benefit-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.benefit-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.benefit-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Adoption Funnel Section */
.alliance-adoption {
    padding: 60px 0;
    background: var(--gray-50);
}

.adoption-funnel {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 40px 0;
    position: relative;
}

.adoption-stage {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-left: 3px solid var(--primary);
    padding-left: 32px;
    position: relative;
}

.adoption-stage:last-child {
    border-left-color: transparent;
}

.stage-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    position: absolute;
    left: -23px;
    top: 28px;
}

.stage-content {
    padding-left: 28px;
}

.stage-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.stage-effort {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.stage-content p:last-child {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.adoption-protocols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.protocol-value {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
}

.protocol-value h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.protocol-value p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .adoption-protocols {
        grid-template-columns: 1fr;
    }
    
    .adoption-stage {
        padding-left: 24px;
    }
    
    .stage-number {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        left: -19px;
    }
}

/* Use Cases Page */
.usecase-section {
    padding: 60px 0;
}

.usecase-section.usecase-alt {
    background: var(--gray-50);
}

.usecase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.usecase-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--gray-100);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.usecase-text h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.4;
}

.usecase-text > p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
}

.usecase-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usecase-details li {
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-100);
}

.usecase-details li:last-child {
    border-bottom: none;
}

.usecase-details strong {
    color: var(--gray-800);
}

@media (max-width: 768px) {
    .usecase-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .usecase-visual {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Landing Page Split Layout */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.split-text h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    margin-top: 24px;
}

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

.split-text p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 0;
}

.ndi-intro,
.dante-intro {
    padding: 60px 0;
}

.ndi-capabilities,
.dante-capabilities {
    padding: 60px 0;
    background: var(--gray-50);
}

.ndi-path,
.dante-path {
    padding: 60px 0;
}

.ndi-usecases,
.dante-usecases {
    padding: 60px 0;
    background: var(--gray-50);
}

@media (max-width: 768px) {
    .split-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .split-visual {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Specs Section */
.alliance-specs {
    padding: 50px 0;
    background: var(--gray-900);
    color: white;
}

.alliance-specs .section-title {
    color: white;
}

.alliance-specs .section-subtitle {
    color: var(--gray-400);
}

.specs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.spec-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 180px;
}

.spec-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.spec-badge .spec-id {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 4px;
}

.spec-badge .spec-name {
    font-size: 0.95rem;
    color: white;
}

.spec-badge.spec-proposed {
    border: 1px dashed var(--gray-600);
}

.spec-badge.spec-proposed .spec-id {
    color: #fbbf24;
}

/* Members Section */
.alliance-members {
    padding: 50px 0;
    background: var(--gray-50);
}

.member-category {
    margin-bottom: 48px;
}

.category-title {
    font-size: 1.1rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    text-align: center;
}

.member-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 32px;
    background: white;
    border-radius: var(--radius-lg);
    text-decoration: none;
    border: 1px solid var(--gray-300);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    min-width: 160px;
}

.member-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.member-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
}

.member-logo-wide {
    width: 140px;
    height: 50px;
}

.member-card-dark {
    background: var(--gray-900);
}

.member-card-dark:hover {
    background: var(--gray-800);
}

.member-card-dark .member-name {
    color: var(--gray-300);
}

.member-name {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.member-cta {
    text-align: center;
    padding: 32px;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-300);
    max-width: 500px;
    margin: 0 auto;
}

.member-cta p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

/* Join Section */
.alliance-join {
    padding: 50px 0;
}

.join-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    margin-top: 32px;
}

.join-info h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 16px;
    margin-top: 32px;
}

.join-info h3:first-child {
    margin-top: 0;
}

.join-info ul,
.join-info ol {
    margin-left: 20px;
    color: var(--gray-600);
}

.join-info li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.join-info li strong {
    color: var(--gray-800);
}

.cta-card {
    background: var(--primary);
    color: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: sticky;
    top: 100px;
}

.cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.cta-card p {
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.6;
}

.cta-card .btn-primary {
    background: white;
    color: var(--primary);
    width: 100%;
}

.cta-card .btn-primary:hover {
    background: var(--gray-100);
}

.cta-note {
    font-size: 0.85rem;
    margin-top: 16px;
    opacity: 0.8;
}

.cta-note a {
    color: white;
    text-decoration: underline;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Governance */
.alliance-governance {
    padding: 40px 0;
    background: var(--gray-100);
}

.governance-note {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto;
}

.governance-note a {
    color: var(--primary);
}

/* Alliance Responsive */
@media (max-width: 992px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .join-content {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .specs-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .spec-badge {
        width: 100%;
        max-width: 280px;
    }
}

/* ========================================
   MEMBERS AREA STYLES
   ======================================== */

/* Auth Form Wrapper */
.contact-section.auth-section {
    padding-top: 40px;
}

.auth-form-wrapper {
    max-width: 450px;
    margin: 0 auto;
}

.auth-form {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-form h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.auth-links {
    margin-top: 24px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.auth-links p {
    color: var(--gray-600);
    margin: 0;
}

.auth-links a {
    color: var(--primary);
    font-weight: 500;
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Dashboard */
.dashboard-section {
    padding: 60px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.dashboard-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.dashboard-card h4 {
    font-size: 1rem;
    color: var(--gray-800);
    margin-top: 20px;
    margin-bottom: 12px;
}

.profile-info p {
    margin-bottom: 8px;
    color: var(--gray-600);
}

.profile-info strong {
    color: var(--gray-800);
}

/* Password Change Form */
.password-change {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.password-change h4 {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.password-form .form-group {
    margin-bottom: 16px;
}

.password-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.password-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.password-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list li {
    margin-bottom: 8px;
}

.spec-list a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
}

.spec-list a:hover {
    text-decoration: underline;
}

.download-info {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.download-info h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.download-info ul {
    list-style: disc;
    margin-left: 20px;
    padding: 0;
}

.download-info li {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 4px;
}

/* Admin Panel */
.admin-section {
    padding: 60px 0;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 16px;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--gray-100);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    background: var(--gray-200);
}

.admin-tab.active {
    background: var(--primary);
    color: white;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: white;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 11px;
}

.admin-tab.active .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.badge-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 11px;
}

.admin-tab.active .badge-muted {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.badge-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    background: var(--success);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.admin-content {
    background: white;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 300px;
}

.admin-content h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 20px;
}

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

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--gray-200);
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.admin-table tr:hover {
    background: var(--gray-50);
}

.admin-table .actions {
    white-space: nowrap;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.no-data {
    color: var(--gray-500);
    font-style: italic;
    padding: 32px;
    text-align: center;
}

.admin-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab {
        width: 100%;
        justify-content: center;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Member Login Link in Nav */
.nav-member a {
    background: var(--primary);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.nav-member a:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .nav-member {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--gray-200);
    }
    
    .nav-member a {
        display: block;
        text-align: center;
    }
}

/* ========================================
   AUDIT & ANALYTICS STYLES
   ======================================== */

/* Audit Sub-tabs */
.audit-subtabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 12px;
}

.audit-subtab {
    padding: 8px 16px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: all 0.2s ease;
}

.audit-subtab:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.audit-subtab.active {
    color: var(--primary);
    background: var(--gray-100);
    font-weight: 500;
}

/* Audit Filters */
.audit-filters {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 500;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    min-width: 140px;
}

.filter-group .btn {
    margin-top: 0;
}

/* Companies Tab */
.company-row {
    cursor: pointer;
}

.company-toggle {
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
}

.company-toggle:hover {
    color: var(--primary);
}

.member-detail-row {
    background: var(--gray-50);
}

.member-detail-row td {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.stat-card-small {
    padding: 16px;
}

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

.stat-card-small .stat-value {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 8px;
}

.stats-section {
    margin-bottom: 32px;
}

.stats-section h4 {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 12px;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.analytics-panel {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px;
}

.analytics-panel h4 {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

/* Traffic Chart */
.traffic-chart {
    display: flex;
    align-items: flex-end;
    height: 150px;
    gap: 2px;
    padding-top: 20px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.bar-fill {
    width: 100%;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: height 0.3s ease;
}

.chart-bar:hover .bar-fill {
    background: var(--primary-dark);
}

.bar-label {
    font-size: 0.65rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Compact Table */
.admin-table.compact th,
.admin-table.compact td {
    padding: 10px 12px;
    font-size: 0.85rem;
}

/* Responsive Analytics */
@media (max-width: 992px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group input,
    .filter-group select {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .traffic-chart {
        height: 100px;
    }
}

/* ============================================
   Downloads Page
   ============================================ */
.downloads-section {
    padding: 60px 0;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.download-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.download-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.download-card h3 {
    font-size: 1.4rem;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.download-card > p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
}

.download-contents {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.download-contents h4 {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.download-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-contents li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.download-contents li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

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

.downloads-note {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    text-align: center;
}

.downloads-note p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================
   License Modal
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--gray-700);
}

.modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.license-text {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-700);
    max-height: 400px;
}

.license-text h4 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 16px;
    text-align: center;
}

.license-text h5 {
    font-size: 0.95rem;
    color: var(--gray-800);
    margin: 24px 0 12px;
}

.license-text p {
    margin-bottom: 12px;
}

.license-text ul {
    margin: 12px 0;
    padding-left: 24px;
}

.license-text li {
    margin-bottom: 8px;
}

.license-text strong {
    color: var(--gray-900);
}

.license-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.license-accept {
    padding: 16px 24px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* Responsive Downloads */
@media (max-width: 768px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .license-text {
        max-height: 300px;
        padding: 16px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* ========================================
   GDPR & PRIVACY STYLES
   ======================================== */

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    color: var(--white);
    padding: 16px 24px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cookie-link {
    color: var(--gray-300);
    text-decoration: underline;
    font-size: 0.9rem;
}

.cookie-link:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Consent Checkboxes */
.consent-group {
    margin-top: 16px;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray-600);
}

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

.consent-checkbox a {
    color: var(--primary);
    text-decoration: underline;
}

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

/* Legal Pages */
.legal-content {
    padding: 60px 0;
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-document h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 8px;
}

.legal-document h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--gray-800);
}

.legal-document h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--gray-700);
}

.legal-document p {
    margin-bottom: 16px;
    color: var(--gray-700);
}

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

.legal-document li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

.legal-effective {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.legal-info-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}

.legal-info-box p {
    margin-bottom: 8px;
}

.legal-info-box p:last-child {
    margin-bottom: 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--gray-200);
}

.legal-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-800);
}

.legal-table td {
    color: var(--gray-700);
}

.legal-table code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.right-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
}

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

.right-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Privacy Card in Dashboard */
.privacy-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.privacy-section {
    margin: 24px 0;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.privacy-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.privacy-section h4 {
    margin-bottom: 8px;
}

.privacy-section p {
    margin-bottom: 12px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.privacy-links {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--gray-500);
}

.privacy-links a {
    color: var(--gray-600);
}

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

/* Delete Account */
.delete-account-details {
    margin-top: 12px;
}

.delete-account-details summary {
    cursor: pointer;
    list-style: none;
}

.delete-account-details summary::-webkit-details-marker {
    display: none;
}

.delete-form {
    margin-top: 16px;
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
}

.delete-warning {
    color: #991b1b;
    font-weight: 500;
    margin-bottom: 12px;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-danger-outline {
    background: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
}

.btn-danger-outline:hover {
    background: #fef2f2;
}

/* Footer Legal Links */
.footer-legal-links {
    margin-left: 16px;
}

.footer-legal-links a {
    color: var(--gray-400);
    font-size: 0.85rem;
}

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

@media (max-width: 768px) {
    .legal-table {
        font-size: 0.8rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 8px;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-legal-links {
        display: block;
        margin-left: 0;
        margin-top: 8px;
    }
}

/* Official Specifications Section */
.official-specifications {
    padding: 60px 0;
    background: var(--gray-50);
}

.official-spec-compact {
    margin-top: 32px;
}

.official-spec-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.official-spec-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.official-spec-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.official-spec-chips li {
    font-size: 0.85rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chip-id {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.official-spec-note {
    margin-top: 32px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
}

.official-spec-note p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.85rem;
}

.official-spec-note a {
    color: var(--primary);
    font-weight: 500;
}

.official-spec-note a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .official-spec-row {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .official-specifications {
        padding: 40px 0;
    }
    
    .official-spec-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
