/* CSS Variables for UtterIDE Professional Theme v2 (Antigravity Navy Blue) */
:root {
    --bg-main: #041A22;
    --bg-section: #05232d;
    --panel: #072e3d;
    --panel-soft: #0a3b4d;
    --border: #0d5069;

    --text-main: #f0f6f8;
    --text-muted: #8caab4;
    --text-soft: #5c7985;

    --accent: #00d2ff;
    --accent-strong: #0096cc;
    --accent-soft: rgba(0, 210, 255, 0.15);

    --success: #43d17a;
    --warning: #ffcb66;
    --danger: #ff6b6b;
    
    --glass-bg: rgba(11, 22, 40, 0.7);
    --glass-border: var(--border);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

pre, code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(4, 8, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-u {
    background: var(--accent-strong);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

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

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

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

/* Buttons */
.btn-primary-small {
    background: var(--accent-strong);
    padding: 8px 16px;
    border-radius: 6px;
    color: white !important;
    font-weight: 600;
    border: none;
    transition: background 0.2s;
}

.btn-primary-small:hover {
    background: #1565cc;
}

.btn-primary {
    background: var(--accent-strong);
    padding: 14px 28px;
    border-radius: 8px;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1565cc;
}

.btn-secondary {
    background: transparent;
    padding: 12px 26px;
    border-radius: 8px;
    color: var(--text-main) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    border: 1px solid var(--border);
    transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
    background: var(--panel-soft);
    border-color: var(--text-soft);
}

/* Base Sections */
.section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.bg-alt {
    background-color: var(--bg-section);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    padding: 160px 20px 80px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: var(--panel);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.4rem, 10vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-pricing-line {
    font-size: 0.95rem;
    color: var(--text-soft);
    margin-top: 16px;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Simple Cards Grid */
.simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card {
    background: var(--panel);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Demo Code Block */
.demo-window {
    background: #02040a;
    border-radius: 12px;
    border: 1px solid var(--border);
    width: 100%;
    overflow: hidden;
    font-size: 14px;
    text-align: left;
}

.demo-header {
    background: #050a14;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.demo-dots { display: flex; gap: 8px; }
.demo-dots span { width: 12px; height: 12px; border-radius: 50%; }
.dot-1 { background: var(--text-soft); }
.dot-2 { background: var(--text-soft); opacity: 0.7; }
.dot-3 { background: var(--text-soft); opacity: 0.4; }

.demo-title {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 16px;
    font-family: monospace;
}

.demo-body {
    padding: 24px;
    color: #e0e0e0;
    line-height: 1.6;
}

.token-comment { color: #6f819d; font-style: italic; }
.token-keyword { color: #ff7b72; }
.token-string { color: #a5d6ff; }
.token-success { color: var(--success); }

/* Steps Layout */
.steps-list {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.step-number {
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--accent);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    padding-top: 4px;
    color: var(--text-muted);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.pricing-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.pricing-card.highlight {
    border-color: var(--accent);
    background: var(--panel-soft);
}

.price-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-main);
}

.price-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.price-features li {
    margin-bottom: 12px;
    color: var(--text-muted);
    padding-left: 24px;
    position: relative;
}

.price-features li::before {
    content: "✓";
    color: var(--success);
    position: absolute;
    left: 0;
}

.price-footer {
    font-size: 0.85rem;
    color: var(--text-soft);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Dashboard Radial Bars */
.dashboard-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.metrics-row {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.metric-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid var(--panel-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.metric-circle.cpu { border-color: var(--accent); border-top-color: var(--panel-soft); }
.metric-circle.ram { border-color: var(--warning); border-right-color: var(--panel-soft); }
.metric-circle.gpu { border-color: var(--success); border-bottom-color: var(--panel-soft); }

.metric-val { font-size: 1.2rem; font-weight: 700; }
.metric-label { font-size: 0.75rem; color: var(--text-soft); text-transform: uppercase; }

.run-summary-box {
    background: #02040a;
    border-radius: 8px;
    padding: 16px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 24px;
}

/* Dual AI Diagram */
.dual-ai-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--panel);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.ai-node {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.ai-node h4 { margin-bottom: 12px; color: var(--text-main); }
.ai-node ul { list-style: none; color: var(--text-muted); font-size: 0.9rem; text-align: left; }
.ai-node li { margin-bottom: 8px; padding-left: 16px; position: relative; }
.ai-node li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }

.ai-flow {
    color: var(--text-soft);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    text-align: center;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Trust List */
.trust-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.trust-badge {
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 20px 40px;
    background: var(--bg-section);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

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

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

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

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

.legal-text {
    max-width: 1000px;
    margin: 0 auto 30px;
    text-align: left;
    font-size: 0.75rem;
    color: var(--text-soft);
    line-height: 1.5;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* Responsive */
@media (max-width: 900px) {
    .two-column { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .footer-content { flex-direction: column; gap: 24px; }
}

/* Legal Modal */
.modal-overlay {
    display: none; 
    position: fixed; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background: rgba(4, 8, 20, 0.9); 
    backdrop-filter: blur(8px);
    z-index: 1000; 
    justify-content: center; 
    align-items: center; 
    padding: 20px;
}
.modal-content {
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    border: 1px solid var(--border-color);
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}
.close-btn:hover { color: var(--text-main); }
.modal-overlay:target {
    display: flex;
}
