/* Premium WEG Design System */
:root {
    --color-primary: #0066FF;
    --color-primary-dark: #0052CC;
    --color-primary-light: #E6F0FF;
    --color-success: #00C853;
    --color-warning: #FF9100;
    --color-danger: #FF3D00;
    --color-text: #0A0A0A;
    --color-text-secondary: #6B7280;
    --color-text-tertiary: #9CA3AF;
    --color-bg: #FFFFFF;
    --color-bg-secondary: #F9FAFB;
    --color-bg-tertiary: #F3F4F6;
    --color-border: #E5E7EB;
    --color-border-light: #F3F4F6;

    --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --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);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

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

.logo-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--color-text-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-link-primary {
    background: var(--color-primary);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* Hero */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 48px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 32px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.metric {
    text-align: center;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* Dashboard Section */
.demo-section {
    padding: 80px 0;
    background: var(--color-bg);
}

.section-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 48px;
}

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

.dashboard-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

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

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border-light);
}

.card-header h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--color-bg-secondary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

.status-indicator.active {
    background: rgba(0, 200, 83, 0.1);
    color: var(--color-success);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
}

.metric-row span {
    color: var(--color-text-secondary);
}

.metric-row strong {
    color: var(--color-text);
    font-weight: 600;
}

.text-success {
    color: var(--color-success) !important;
}

.text-danger {
    color: var(--color-danger) !important;
}

/* Upgrade Button */
.btn-upgrade {
    width: 100%;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin-top: 16px;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-upgrade:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 102, 255, 0.3);
}

/* Policy Items */
.policy-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
}

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

.policy-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.policy-icon.gdpr {
    background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
}

.policy-icon.ccpa {
    background: linear-gradient(135deg, #00C853 0%, #00A043 100%);
}

.policy-icon.ada {
    background: linear-gradient(135deg, #FF9100 0%, #FF6F00 100%);
}

.policy-icon.security {
    background: linear-gradient(135deg, #FF3D00 0%, #DD2C00 100%);
}

.policy-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.policy-info strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.policy-info span {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.policy-status {
    font-size: 18px;
    font-weight: 700;
}

.policy-status.enabled {
    color: var(--color-success);
}

/* Usage Bar */
.usage-bar-container {
    margin-bottom: 16px;
}

.usage-bar {
    width: 100%;
    height: 8px;
    background: var(--color-bg-tertiary);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 8px;
}

.usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    transition: width 0.3s ease;
    border-radius: 100px;
}

.usage-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Tier Badge */
.tier-badge {
    padding: 4px 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tier-badge.tier-pro {
    background: rgba(0, 200, 83, 0.1);
    color: var(--color-success);
}

.tier-badge.tier-enterprise {
    background: rgba(255, 145, 0, 0.1);
    color: var(--color-warning);
}

/* Scan Card */
.btn-scan {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-text);
}

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

.scan-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--color-text-secondary);
    text-align: center;
}

.scan-placeholder svg {
    margin-bottom: 12px;
    color: var(--color-text-tertiary);
}

.scan-placeholder p {
    font-size: 14px;
}

.scan-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scan-issue {
    padding: 16px;
    background: rgba(255, 61, 0, 0.05);
    border-left: 3px solid var(--color-danger);
    border-radius: var(--radius-sm);
}

.scan-issue.warning {
    background: rgba(255, 145, 0, 0.05);
    border-left-color: var(--color-warning);
}

.scan-issue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.scan-issue-type {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
}

.scan-issue-count {
    background: var(--color-danger);
    color: white;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.scan-issue.warning .scan-issue-count {
    background: var(--color-warning);
}

.scan-issue-message {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.scan-issue-details {
    font-size: 12px;
    color: var(--color-text-tertiary);
    font-family: monospace;
}

/* Recent Violations */
.violations-card {
    grid-column: span 2;
}

.violation-item {
    padding: 12px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.violation-item:last-child {
    margin-bottom: 0;
}

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

.violation-type {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-danger);
}

.violation-time {
    font-size: 11px;
    color: var(--color-text-tertiary);
}

.violation-message {
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* How It Works Section */
.how-section {
    padding: 80px 0;
    background: var(--color-bg-secondary);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.how-step {
    text-align: center;
}

.how-number {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    margin: 0 auto 16px;
}

.how-step h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.how-step p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Why Section */
.why-section {
    padding: 80px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.why-card {
    padding: 32px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

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

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

.why-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.why-card h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Integration Section */
.integration-section {
    padding: 80px 0;
    background: var(--color-bg-secondary);
}

.code-block {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 32px 0;
    box-shadow: var(--shadow-md);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
}

.code-header span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.copy-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.copy-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 255, 0.2);
}

.copy-btn:active {
    transform: translateY(0);
}

.code-block pre {
    margin: 0;
    padding: 24px;
    background: #1a1a1a;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.7;
    color: #f8f8f2;
    display: block;
}

.integration-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.feature svg {
    color: var(--color-success);
    flex-shrink: 0;
}

.feature span {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
}

/* Locked Documentation */
.locked-docs {
    position: relative;
    margin: 32px 0;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 40px;
    text-align: center;
}

.lock-icon {
    margin-bottom: 24px;
    animation: lockPulse 2s ease-in-out infinite;
}

.lock-icon svg {
    color: var(--color-primary);
}

@keyframes lockPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.lock-overlay h4 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.lock-overlay p {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    max-width: 400px;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FFDD00 0%, #FFC107 100%);
    color: #1a1a1a;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
}

.donate-btn svg {
    color: #1a1a1a;
}

.blurred-content {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.blurred-content .copy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: white;
    padding: 60px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 2;
}

.footer-section a:hover {
    color: white;
}

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

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 24px;
    }

    .metric-divider {
        width: 100%;
        height: 1px;
    }

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

    .violations-card {
        grid-column: span 1;
    }

    .footer-content {
        flex-direction: column;
    }
}