@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-dark: #020617;
    --card-bg: rgba(15, 23, 42, 0.6);
    --border-color: rgba(56, 189, 248, 0.15);
    --border-glow: rgba(168, 85, 247, 0.2);
    --cyan: #22d3ee;
    --purple: #a855f7;
    --pink: #f472b6;
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.glow-cyan {
    background: var(--cyan);
    top: -100px;
    left: -100px;
}

.glow-purple {
    background: var(--purple);
    bottom: -100px;
    right: -100px;
}

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

/* Header */
header {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
}

.logo span {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border-radius: 6px;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--cyan);
}

.cta-btn {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff;
    padding: 10px 20px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(34, 211, 238, 0.35);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Audit Search Form */
.audit-form-container {
    max-width: 640px;
    margin: 0 auto;
}

.audit-form {
    display: flex;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.audit-form:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
}

.audit-form input[type="text"] {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    padding-left: 24px;
    font-family: inherit;
}

.audit-form input[type="text"]::placeholder {
    color: #4b5563;
}

.audit-form button {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border: none;
    outline: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 99px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.audit-form button:hover {
    opacity: 0.95;
}

.audit-form button:active {
    transform: scale(0.98);
}

/* Scanning Console Logs */
.console-container {
    max-width: 720px;
    margin: 40px auto 0 auto;
    display: none;
}

.console-card {
    background: #090d16;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #38bdf8;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.1);
    position: relative;
    overflow: hidden;
}

.console-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.console-logs {
    height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
}

.log-line {
    opacity: 0;
    animation: fadeInUp 0.3s forwards;
}

.log-line.success { color: var(--success); }
.log-line.info { color: var(--cyan); }
.log-line.warn { color: var(--warning); }

.console-progress {
    height: 2px;
    background: rgba(255,255,255,0.05);
    margin-top: 16px;
    border-radius: 99px;
    overflow: hidden;
}

.console-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transition: width 0.3s ease;
}

/* Interactive Dashboard */
.dashboard {
    display: none;
    margin-top: 60px;
    animation: fadeIn 0.5s ease-out;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dashboard-title h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.dashboard-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media(min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .col-span-2 {
        grid-column: span 2;
    }
}

/* Glass Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.05);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Overall Score Gauge */
.gauge-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.gauge-canvas-box {
    position: relative;
    width: 160px;
    height: 160px;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
}

.gauge-label {
    margin-top: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Engine Table Matrix */
.matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.matrix-table th, .matrix-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.matrix-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.matrix-table td {
    font-size: 0.95rem;
}

.matrix-table tr:last-child td {
    border-bottom: none;
}

.engine-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

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

.dot-chatgpt { background: #10a37f; }
.dot-perplexity { background: #22d3ee; }
.dot-gemini { background: #3b82f6; }
.dot-google { background: #ea4335; }
.dot-yandex { background: #ffcc00; }

.status-badge {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-high { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.status-mid { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-low { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* Checklist */
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.checklist-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.checklist-icon.passed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.checklist-icon.failed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.checklist-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.checklist-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Recommendations & Plan */
.rec-box {
    margin-top: 8px;
}

.rec-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

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

.rec-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.rec-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
}

.badge-tech { background: rgba(34, 211, 238, 0.1); color: var(--cyan); }
.badge-content { background: rgba(244, 114, 182, 0.1); color: var(--pink); }

.rec-body {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rec-body a {
    color: var(--cyan);
    text-decoration: underline;
}

/* Case Study / Linking Section */
.case-study {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(88, 28, 135, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 20px;
    padding: 40px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.case-study::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.case-study-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

@media(min-width: 768px) {
    .case-study-inner {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.case-study-content h3 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.case-study-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.case-study-link:hover {
    border-bottom-color: var(--cyan);
}

.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.metric-card {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.metric-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--cyan);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 4px;
}

/* Pricing Section */
.pricing {
    padding: 40px 0 80px 0;
    text-align: center;
}

.pricing-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}

.pricing-header p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

@media(min-width: 640px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.price-card.featured {
    border-color: var(--purple);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.1);
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: var(--cyan);
}

.price-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(168, 85, 247, 0.2);
    color: var(--purple);
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.price-tier {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
}

.price-amount span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    width: 100%;
    margin-bottom: 32px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-features li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li::before {
    content: '✓';
    color: var(--cyan);
    font-weight: bold;
}

.price-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 24px;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.price-card.featured .price-btn {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border: none;
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.2);
}

.price-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.price-card.featured .price-btn:hover {
    opacity: 0.95;
}

/* Footer */
footer {
    padding: 48px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(2, 6, 23, 0.8);
    text-align: center;
}

.footer-inner p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 16px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
