/* Variables */
:root {
    --bg-main: #f8fafc;
    --bg-white: #ffffff;
    --bg-blue-light: #f0f6fc;
    --bg-danger-light: #fef2f2;
    --bg-dark: #0f172a;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-white: #ffffff;
    
    --primary: #2271b1; /* WP Blue vibe */
    --primary-hover: #135e96;
    --navy: #1e293b;
    
    --danger: #d63638;
    --success: #00a32a;
    --warning: #dba617;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

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

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

.text-center { text-align: center; }
.text-white { color: var(--text-white); }
.text-white h2, .text-white h3 { color: var(--text-white); }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.875rem; }
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.w-100 { width: 100%; }

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-header {
    max-width: 800px;
    margin-bottom: 3rem;
}

.bg-light { background-color: var(--bg-main); }
.bg-blue-light { background-color: var(--bg-blue-light); }
.bg-danger-light { background-color: var(--bg-danger-light); }
.bg-dark { background-color: var(--bg-dark); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-auto { display: flex; flex-wrap: wrap; gap: 1rem; }
.align-start { align-items: start; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    font-size: 1rem;
}

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

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

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

.btn-outline:hover {
    background-color: var(--bg-blue-light);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-blue-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(34, 113, 177, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--danger);
}

.red-pulse {
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(214, 54, 56, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(214, 54, 56, 0); }
    100% { box-shadow: 0 0 0 0 rgba(214, 54, 56, 0); }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--navy);
}

/* Hero */
.hero {
    padding: 4rem 0 6rem;
    background: linear-gradient(180deg, var(--bg-blue-light) 0%, var(--bg-white) 100%);
    overflow: hidden;
}

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

.tech-label {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--navy);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-sub {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-capsules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.capsule {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Visual - Dashboard Mockup */
.dashboard-mockup {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    overflow: hidden;
    height: 500px;
}

.dash-sidebar {
    width: 60px;
    background: var(--navy);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.dash-icon {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.dash-icon.active {
    background: var(--primary);
}

.dash-main {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dash-title {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
}

.dash-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.dash-status-badge.danger {
    background: var(--danger);
    color: white;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dash-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
}

.dash-card.alert-card {
    border-color: rgba(214, 54, 56, 0.3);
    background: var(--bg-danger-light);
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot.blue { background: var(--primary); }
.dot.red { background: var(--danger); }
.dot.amber { background: var(--warning); }
.dot.green { background: var(--success); }

.dash-card-val {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
}

.dash-recovery-panel {
    background: var(--bg-white);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
}

.recovery-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.badge-active {
    background: var(--primary);
    color: white;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.recovery-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.r-step {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.r-num {
    background: var(--bg-blue-light);
    color: var(--primary);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}

.diag-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--primary);
    width: 50%;
    animation: scan 3s infinite linear;
}

@keyframes scan {
    0% { left: 0; width: 0; }
    50% { width: 100%; }
    100% { left: 100%; width: 0; }
}

/* Reaction Bar */
.reaction-bar {
    background: var(--navy);
    color: white;
    padding: 1rem 0;
}

.reaction-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.reaction-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.r-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.r-icon:not(.check):not(.action) { background: var(--danger); color: white; }
.r-icon.check { background: var(--success); color: white; }
.r-icon.action { background: var(--primary); color: white; }

/* Cards */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-blue-light);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.symptom-card h3 { font-size: 1.1rem; color: var(--danger); }
.symptom-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.cause-tag {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    color: var(--navy);
}

/* Admin Panel Box */
.admin-panel-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.panel-row {
    display: flex;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.panel-label {
    width: 150px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

.panel-desc {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Columns Box */
.col-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.box-title {
    border-bottom: 2px solid var(--bg-main);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.box-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-card {
    background: var(--bg-main);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Woo Cards */
.woo-card {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--navy);
}

/* Dark Cards */
.dark-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: var(--text-white);
}
.dark-card h3 { color: var(--text-white); font-size: 1.1rem; }
.dark-card p { color: #94a3b8; font-size: 0.9rem; margin: 0; }

/* Scope Items */
.scope-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 500;
}
.scope-item::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Process Axis */
.process-axis {
    position: relative;
    padding-left: 2rem;
}

.process-axis::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bg-blue-light);
}

.process-step {
    position: relative;
    margin-bottom: 2rem;
}

.process-step:last-child { margin-bottom: 0; }

.step-num {
    position: absolute;
    left: -2rem;
    top: 0;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-mono);
}

.step-content {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.step-content h3 { margin-bottom: 0.5rem; }
.step-content p { margin: 0; color: var(--text-muted); }

/* Alert Cards */
.alert-card-red {
    border-color: rgba(214, 54, 56, 0.3);
    background: var(--bg-white);
}
.alert-card-red h3 { color: var(--danger); font-size: 1.1rem; }
.alert-card-red p { margin: 0; font-size: 0.9rem; }

/* Counters */
.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.counter-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 1rem;
}

.counter-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.success-card {
    text-align: center;
    font-weight: 600;
    color: var(--success);
    border-color: rgba(0, 163, 42, 0.3);
    background: rgba(0, 163, 42, 0.05);
}

/* Edu Content */
.edu-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

/* Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comp-col {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.panic-col { border-top: 4px solid var(--danger); }
.diag-col { border-top: 4px solid var(--success); }

.comp-col h3 { text-align: center; margin-bottom: 1.5rem; }

.comp-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-main);
}

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

.icon-x { color: var(--danger); font-weight: bold; }
.icon-check { color: var(--success); font-weight: bold; }

/* FAQ Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.acc-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.acc-header {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acc-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.2s;
}

.acc-item.active .acc-header::after {
    content: '−';
}

.acc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.acc-item.active .acc-content {
    padding-bottom: 1.25rem;
}

.acc-content p { margin: 0; color: var(--text-muted); }

/* Form */
.form-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.wp-admin-form .form-group {
    margin-bottom: 1.25rem;
}

.wp-admin-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--navy);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: var(--bg-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

.contact-alert-box {
    background: var(--bg-danger-light);
    border: 1px solid rgba(214, 54, 56, 0.3);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.alert-icon {
    width: 40px;
    height: 40px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-desc {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Overlays */
.chat-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: transform 0.2s;
}

.chat-btn:hover { transform: scale(1.05); }

.chat-modal {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 300px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    z-index: 100;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-modal.show { display: flex; }

.chat-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1rem;
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 6.5rem;
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    color: var(--navy);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
    display: none;
}

.cookie-banner.show { display: flex; }

.cookie-content { font-size: 0.875rem; color: var(--text-muted); }
.cookie-actions { display: flex; gap: 0.5rem; }

/* Responsive */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .comparison-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }
    .main-nav ul.show { display: flex; }
    .mobile-menu-toggle { display: block; }
    .main-nav .btn { display: none; }
    
    .reaction-grid { flex-direction: column; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .chat-btn { bottom: 1rem; right: 1rem; }
    .chat-modal { right: 1rem; bottom: 5rem; width: calc(100% - 2rem); }
    .back-to-top { right: 5.5rem; bottom: 1rem; }
}