/* Variables */
:root {
    --bg-white: #ffffff;
    --bg-light-blue: #f0f9ff; /* sky-50 */
    --bg-navy: #0f172a; /* slate-900 */
    --color-primary: #0ea5e9; /* sky-500 */
    --color-primary-hover: #0284c7; /* sky-600 */
    --color-text-dark: #0f172a; /* slate-900 */
    --color-text-muted: #475569; /* slate-600 */
    --color-text-light: #f8fafc; /* slate-50 */
    --color-green: #10b981;
    --color-blue: #3b82f6;
    --color-amber: #f59e0b;
    --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.01);
    --border-light: 1px solid rgba(15, 23, 42, 0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--color-text-muted);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

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

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

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

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

p { margin-bottom: 1rem; }

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.text-white { color: var(--color-text-light) !important; }
.text-light-blue { color: #bae6fd !important; }

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

.section {
    padding: 100px 0;
}

.bg-white { background-color: var(--bg-white); }
.bg-light-blue { background-color: var(--bg-light-blue); }
.bg-navy { background-color: var(--bg-navy); }

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
    letter-spacing: 0.02em;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: #fff;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

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

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

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: var(--border-light);
    padding: 16px 0;
}

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

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

.main-nav {
    display: none;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-list a {
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 0.95rem;
}

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

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

.header-actions .btn {
    display: none;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 200;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.1);
    border-left: var(--border-light);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-inner {
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--color-text-dark);
    cursor: pointer;
    margin-bottom: 40px;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.mobile-nav-list a {
    font-size: 1.25rem;
    color: var(--color-text-dark);
    font-weight: 400;
}

.mobile-btn {
    margin-top: auto;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.05), transparent 60%), var(--bg-white);
}

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

.hero-desc {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.hero-subdesc {
    color: #64748b;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

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

.hero-capsules {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.capsule {
    background-color: var(--bg-white);
    border: var(--border-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* Hero Visual */
.infra-panel {
    background: var(--bg-white);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
}

.infra-center {
    background: var(--bg-light-blue);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 20px 30px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.infra-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
}

.infra-center span {
    color: var(--color-text-dark);
    font-weight: 500;
}

.infra-status-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 12px;
    height: 12px;
    background: var(--color-green);
    border-radius: 50%;
    border: 2px solid var(--bg-white);
}

.pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.infra-nodes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.infra-node {
    background: var(--bg-white);
    border: var(--border-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
}

.node-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.node-dot.green { background: var(--color-green); }
.node-dot.blue { background: var(--color-blue); }

.infra-metrics {
    width: 100%;
    background: #f8fafc;
    border: var(--border-light);
    border-radius: var(--radius);
    padding: 16px;
}

.metric-line {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 85%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
}

.infra-badge {
    position: absolute;
    bottom: -15px;
    background: var(--bg-navy);
    color: var(--bg-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* Status Bar */
.status-bar {
    background: var(--bg-white);
    border-top: var(--border-light);
    border-bottom: var(--border-light);
    padding: 20px 0;
}

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

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.s-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.s-dot.green { background: var(--color-green); }
.s-dot.blue { background: var(--color-blue); }

/* Grids */
.grid-cards-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-cards-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-cards-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-cards-auto { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* Cards */
.card {
    border-radius: var(--radius);
    transition: var(--transition);
}

.clean-card {
    background: var(--bg-white);
    border: var(--border-light);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
}

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

.simple-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius);
    border: var(--border-light);
}

.outline-card {
    background: transparent;
    border: var(--border-light);
    padding: 24px;
}

.outline-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

/* Counters */
.counters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.counter-card {
    background: var(--bg-white);
    border: var(--border-light);
    padding: 40px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.counter-value {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--color-text-dark);
    display: inline-block;
    line-height: 1;
}

.counter-plus {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-primary);
    display: inline-block;
    vertical-align: top;
    margin-left: 2px;
}

.counter-label {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.disclaimer-text {
    font-size: 0.85rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Tags Grid */
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tag-card {
    background: var(--bg-white);
    border: var(--border-light);
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    box-shadow: var(--shadow-sm);
}

/* WP Panel */
.wp-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.wp-status-item {
    background: rgba(255,255,255,0.05);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Process Timeline */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #cbd5e1;
}

.process-step {
    display: flex;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    color: var(--color-text-dark);
    flex-shrink: 0;
}

.step-content {
    background: var(--bg-white);
    border: var(--border-light);
    padding: 24px;
    border-radius: var(--radius);
    flex-grow: 1;
    box-shadow: var(--shadow-sm);
}

/* Edu Content */
.edu-content {
    max-width: 800px;
}
.edu-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.comp-column {
    background: var(--bg-white);
    border: var(--border-light);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.comp-column h3 {
    text-align: center;
    margin-bottom: 30px;
}

.comp-list {
    list-style: none;
}

.comp-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-text-muted);
}

.comp-icon {
    font-weight: bold;
}

.bad .comp-icon { color: #ef4444; }
.good .comp-icon { color: var(--color-green); }

/* CodePress Section */
.cp-desc-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 400;
    color: var(--color-text-dark);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 50px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 0 24px 20px;
    color: var(--color-text-muted);
}

/* Form */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: var(--border-light);
    box-shadow: var(--shadow-md);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--color-text-dark);
    font-family: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--bg-white);
}

.form-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.checkbox-group label {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

/* Footer */
.site-footer {
    background: var(--bg-white);
    padding: 60px 0 40px;
    border-top: var(--border-light);
}

.footer-logo {
    max-width: 140px;
    margin: 0 auto 24px;
}

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

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

.footer-copy {
    font-size: 0.9rem;
    color: #64748b;
}

/* Chat Modal */
.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-toggle:hover {
    transform: translateY(-3px);
}

.chat-modal {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    background: var(--bg-white);
    border: var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 95;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

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

.chat-header {
    background: var(--bg-light-blue);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-light);
    color: var(--color-text-dark);
}

.chat-header button {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.chat-body p {
    margin-bottom: 12px;
}

.chat-footer {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: var(--border-light);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 35px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--color-text-dark);
    border: var(--border-light);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    z-index: 89;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.back-to-top:hover {
    background: var(--bg-light-blue);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    border-top: var(--border-light);
    padding: 20px;
    z-index: 1000;
    display: none;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.05);
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

/* Media Queries */
@media (min-width: 768px) {
    .grid-cards-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cards-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cards-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-cards-auto { grid-template-columns: repeat(2, 1fr); }
    .counters-grid { grid-template-columns: repeat(2, 1fr); }
    .comparison-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .form-options { flex-direction: row; gap: 24px; }
    .form-actions { flex-direction: row; }
    .cookie-content { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 992px) {
    .main-nav { display: block; }
    .header-actions .btn { display: inline-flex; }
    .mobile-menu-toggle { display: none; }
    .hero-grid { grid-template-columns: 1fr 1fr; }
    .grid-cards-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-cards-auto { grid-template-columns: repeat(3, 1fr); }
    .counters-grid { grid-template-columns: repeat(4, 1fr); }
}