/* ========================================
   Security Audit for Plesk - Website
   ======================================== */

:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #161625;
    --bg-card: #1c1c30;
    --bg-card-hover: #22223a;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --cta: #e94560;
    --cta-hover: #ff6b81;
    --text: #e8e8f0;
    --text-muted: #9494b8;
    --text-dim: #6c6c8a;
    --border: #2a2a45;
    --success: #2ed573;
    --warning: #ffa502;
    --critical: #e94560;
    --high: #ff6b35;
    --moderate: #ffd32a;
    --low: #2ed573;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --max-width: 1200px;
    --header-height: 72px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cta-hover); }

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

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(15, 15, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.logo svg { width: 36px; height: 36px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--text); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--cta);
    color: #fff;
}
.btn-primary:hover {
    background: var(--cta-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-light);
    border: 1px solid var(--accent);
}
.btn-secondary:hover {
    background: var(--accent);
    color: #fff;
}

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

/* ---- Sections ---- */
section { padding: 100px 24px; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ---- Hero ---- */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-content { position: relative; z-index: 1; }

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .gradient {
    background: linear-gradient(135deg, var(--accent-light), var(--cta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.hero-badges {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.badge svg { width: 16px; height: 16px; }

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow), 0 0 60px rgba(108, 92, 231, 0.1);
    width: 100%;
    height: auto;
}

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

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(108, 92, 231, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg { width: 24px; height: 24px; color: var(--accent-light); }

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Screenshots ---- */
#screenshots { overflow: hidden; }

.screenshots-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    margin-bottom: 32px;
}

.tab-btn {
    padding: 10px 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.tab-btn:hover { border-color: var(--accent); color: var(--text); }
.tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.screenshot-panel {
    display: none;
    text-align: center;
}

.screenshot-panel.active { display: block; }

.screenshot-panel img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin: 0 auto;
    max-width: min(960px, 100%);
    width: 100%;
    height: auto;
}

.screenshot-caption {
    margin-top: 16px;
    font-size: 15px;
    color: var(--text-muted);
}

/* ---- Pricing ---- */
.pricing { background: var(--bg-secondary); }

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

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    position: relative;
    transition: all 0.3s;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.15);
}

.price-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.price-card .price {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.price-card .price strong {
    font-size: 36px;
    color: var(--text);
    font-weight: 800;
}

.price-card ul {
    list-style: none;
    margin-bottom: 32px;
}

.price-card li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(42, 42, 69, 0.5);
}

.price-card li:last-child { border-bottom: none; }

.price-card li .check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
}

.check-yes {
    background: rgba(46, 213, 115, 0.15);
    color: var(--success);
}

.check-no {
    background: rgba(148, 148, 184, 0.1);
    color: var(--text-dim);
}

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

/* ---- CTA Section ---- */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section .section-title { margin-bottom: 24px; }
.cta-section .btn { margin-top: 8px; }

/* ---- Footer ---- */
.footer {
    padding: 48px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 14px;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
}

/* ---- Docs Page ---- */
.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    padding-top: calc(var(--header-height) + 40px);
    min-height: 100vh;
}

.docs-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--header-height) - 48px);
    overflow-y: auto;
    padding-right: 16px;
}

.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.docs-nav-group { margin-bottom: 24px; }

.docs-nav-group h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.docs-nav-group a {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
    color: var(--text-muted);
    border-radius: 6px;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.docs-nav-group a:hover { color: var(--text); background: var(--bg-card); }
.docs-nav-group a.active { color: var(--accent-light); background: rgba(108, 92, 231, 0.1); }

.docs-content {
    padding-bottom: 100px;
    max-width: 800px;
}

.docs-content h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.docs-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 56px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.docs-content h2:first-of-type { border-top: none; margin-top: 32px; }

.docs-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

.docs-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.docs-content ul, .docs-content ol {
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-left: 24px;
}

.docs-content li { margin-bottom: 8px; line-height: 1.6; }

.docs-content code {
    font-family: var(--mono);
    font-size: 13px;
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.docs-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    overflow-x: auto;
    margin-bottom: 24px;
}

.docs-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 14px;
}

.docs-content th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-weight: 600;
    color: var(--text);
}

.docs-content td {
    padding: 10px 16px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.docs-callout {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.docs-callout.info {
    background: rgba(108, 92, 231, 0.08);
    border-left: 3px solid var(--accent);
    color: var(--text-muted);
}

.docs-callout.warning {
    background: rgba(255, 165, 2, 0.08);
    border-left: 3px solid var(--warning);
    color: var(--text-muted);
}

.docs-callout strong { color: var(--text); }

/* Docs mobile sidebar */
.docs-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
    z-index: 99;
    align-items: center;
    justify-content: center;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    section { padding: 64px 16px; }
    .section-title { font-size: 28px; }

    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        padding: 24px;
        gap: 20px;
    }
    .nav-toggle { display: block; }

    .hero-title { font-size: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { max-width: none; }

    .screenshots-tabs { flex-wrap: wrap; }

    /* Docs */
    .docs-layout { grid-template-columns: 1fr; gap: 0; }
    .docs-sidebar {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        z-index: 98;
        padding: 24px;
        max-height: none;
    }
    .docs-sidebar.open { display: block; }
    .docs-sidebar-toggle { display: flex; }
}
