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

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000;
    color: #e5e5e5;
    min-height: 100vh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Typography */
h1 { font-weight: 700; letter-spacing: -0.5px; }

/* Components */
.navbar {
    border-bottom: 1px solid #333;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
}
.navbar h1 {
    font-size: 1.25rem;
    color: #fff;
}
.navbar-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.user-email {
    font-size: 0.875rem;
    color: #888;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    cursor: pointer;
}
.btn-secondary {
    border: 1px solid #333;
    color: #fff;
    background: transparent;
}
.btn-secondary:hover {
    border-color: #666;
    background: #111;
}
.btn-primary {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}
.btn-primary:hover {
    background: #e5e5e5;
    border-color: #e5e5e5;
}
.btn-register {
    background: #000;
    color: #fff;
    border: 1px solid #333;
}
.btn-register:hover {
    background: #1e1e1e;
    border-color: #e5e5e5;
}

/* Layout - Dashboard Specific */
.layout-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 75px);
}

/* Dashboard (charts + alerts) */
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr);
    gap: 1rem;
    align-items: start;
}
@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.charts-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alerts-column {
    display: flex;
    flex-direction: column;
    /* relying on child margins for now, or gap if we remove margins */
    gap: 1rem; 
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal {
    width: min(900px, 100%);
    max-height: 85vh;
    overflow: auto;
    background: #0b0b0b;
    border: 1px solid #222;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #111;
}

.modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
}

.modal-subtitle {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #9ca3af;
    font-family: monospace;
}

.modal-body {
    padding: 1rem;
}

.modal-pre {
    margin: 0;
    padding: 0.75rem;
    border: 1px solid #1f2937;
    background: #050505;
    border-radius: 10px;
    color: #e5e7eb;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.35;
}

.secondary-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 768px) {
    .secondary-charts-grid {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    margin-bottom: 0;
    background: #0a0a0a;
    border: 1px solid #222;
}

.chart-canvas {
    width: 100%;
    height: 240px; /* Reduced from 300px to fit screen */
    display: block;
}

.small-chart {
    height: 160px; /* Reduced from 200px */
}

/* Sidebar */
.sidebar {
    border-right: 1px solid #333;
    padding: 1rem;
    background: #000;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 250px; /* Slightly narrower */
}
.sidebar-section h3 {
    font-size: 0.70rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.project-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.project-item {
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    color: #888;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.project-item span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.project-item:hover, .project-item.active {
    background: #111;
    color: #fff;
}
.project-item .id-truncate {
    font-family: monospace;
    opacity: 0.5;
    font-size: 0.75rem;
    flex-shrink: 0;
}
/* Ensure main layout fits */
.layout-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 65px); /* Adjusted for navbar */
}
.nav-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #888;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: block;
}
.nav-item:hover, .nav-item.active {
    background: #111;
    color: #fff;
}

/* Main Content */
.main-content {
    padding: 1.5rem;
    padding-bottom: 4rem;
    background: #000;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.card {
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.5rem;
}
.card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.chart-container {
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    height: 350px;
    position: relative;
}
.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #888;
}
.info-row span:last-child {
    color: #fff;
    font-family: monospace;
}
.empty-state {
    text-align: center;
    padding: 4rem;
    color: #666;
    border: 1px dashed #333;
    border-radius: 12px;
}

/* Tables */
.logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    table-layout: fixed; /* fix layout to respect widths */
}
.logs-table th, .logs-table td {
    text-align: left;
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid #222;
    vertical-align: middle;
}
.logs-table th {
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}
.logs-table td {
    color: #ccc;
    /* font-family: monospace; removed to save space */
}
.logs-table tr:last-child td {
    border-bottom: none;
}
/* Column specific sizing */
.logs-table th:nth-child(1) { width: 65px; } /* Time */
.logs-table th:nth-child(2) { width: 80px; } /* Type */
.logs-table th:nth-child(3) { width: 70px; } /* Sev */
/* Summary gets the rest */

.cell-summary {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logs-table-wide {
    table-layout: auto;
}

/* Override dashboard-centric fixed widths when tables are used for overlays/details. */
.logs-table.logs-table-wide th:nth-child(1),
.logs-table.logs-table-wide th:nth-child(2),
.logs-table.logs-table-wide th:nth-child(3) {
    width: auto;
}

.logs-table.logs-table-wide td {
    white-space: normal;
}

.logs-table.logs-table-wide code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Badges */
.status-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-success { color: #4ade80; }
.status-error {  color: #f87171; }
.status-open { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.status-escalated { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.status-resolved { background: rgba(34, 197, 94, 0.12); color: #4ade80; }

.status-sev-info { background: rgba(148, 163, 184, 0.1); color: #94a3b8; }
.status-sev-low { background: rgba(56, 189, 248, 0.1); color: #38bdf8; } 
.status-sev-medium { background: rgba(251, 146, 60, 0.15); color: #fb923c; } 
.status-sev-high { background: rgba(239, 68, 68, 0.15); color: #f87171; } 
.status-sev-critical { background: rgba(236, 72, 153, 0.15); color: #f472b6; } 

.method-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #222;
    color: #fff;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}
.tab-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}
.tab-btn:hover {
    color: #fff;
    background: #111;
}
.tab-btn.active {
    color: #fff;
    background: #222;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Landing Page Specifics (Container) */
.container-landing {
    border: 1px solid #333;
    border-radius: 16px;
    padding: 4rem;
    text-align: center;
    background: #000;
}
.landing-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    letter-spacing: -1px;
    font-weight: 700;
}
.buttons-landing {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =========================================
   NEW LANDING PAGE STYLES (v2)
   ========================================= */

/* Global Landing Layout */
.page-wrapper {
    overflow-x: hidden;
}

.landing-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding is inherited from .navbar */
}

.landing-nav .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-nav .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.landing-nav .pill {
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    color: #888;
    border-radius: 20px;
}

/* Shared */
.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.pill {
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    color: #888;
    border-radius: 20px;
}

.landing-nav .nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.landing-nav .nav-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.landing-nav .nav-link:hover {
    color: #fff;
}

/* Hero Section */
.hero {
    padding: 5rem 0 3rem;
}

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

.hero-content {
    max-width: 540px;
}

.badge-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: #ccc;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 8px #3b82f6;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -1.5px;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.125rem;
    color: #999;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.hero-trust {
    border-top: 1px solid #1a1a1a;
    padding-top: 1.5rem;
}

.hero-trust span {
    font-size: 0.8rem;
    color: #555;
    display: block;
    margin-bottom: 0.75rem;
}

.tech-icons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-pill {
    font-size: 0.75rem;
    color: #777;
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tech-pill.pending {
    border-style: dashed;
    opacity: 0.6;
    cursor: help;
}

.tech-pill .pending-icon {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Terminal Visual */
.terminal-window {
    background: #090909;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 0.85rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.terminal-header {
    background: #111;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #222;
}

.terminal-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-tab {
    margin-left: 1rem;
    color: #666;
    font-size: 0.75rem;
}

.terminal-body {
    padding: 1.5rem;
    color: #d4d4d4;
    line-height: 1.6;
}

.terminal-body .line { margin-bottom: 0.25rem; }
.terminal-body .dimmed { color: #555; }
.terminal-body .highlight-danger { 
    background: rgba(220, 38, 38, 0.1); 
    color: #fca5a5;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    display: inline-block;
    margin: 0.5rem 0;
}
.terminal-body .indent { margin-left: 1rem; color: #888; }
.terminal-body .prop { color: #a5b4fc; }
.terminal-body .val { color: #fff; }
.terminal-body .val.success { color: #4ade80; }
.badge-red { background: #ef4444; color: #fff; font-size: 0.65rem; padding: 0.1rem 0.3rem; border-radius: 3px; margin-right: 0.5rem; vertical-align: middle; }
.animate-pulse { animation: pulse 1s infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Features Section */
.features-section {
    padding-bottom: 5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.section-title p {
    color: #888;
    font-size: 1.1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    background: #050505;
    border: 1px solid #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: #333;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.feature-card p {
    color: #999;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Integration Section */
.integration-section {
    padding: 5rem 0;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
    background: radial-gradient(circle at 50% 50%, #0a0a0a 0%, #000 100%);
}

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

.steps-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-num {
    width: 28px;
    height: 28px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
}

.step-text {
    color: #ccc;
    font-size: 1rem;
}

.code-window {
    background: #080808;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 0.9rem;
}

.code-header {
    margin-bottom: 1rem;
}
.lang-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 1px;
    font-weight: 700;
}

.code-window pre {
    color: #ccc;
    line-height: 1.5;
}

.code-window .kwd { color: #c084fc; }
.code-window .fn { color: #60a5fa; }
.code-window .str { color: #86efac; }
.code-window .op { color: #f472b6; }
.code-window .prop { color: #94a3b8; }

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    text-align: center;
}

.cta-card {
    background: linear-gradient(180deg, #111 0%, #000 100%);
    border: 1px solid #222;
    border-radius: 20px;
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-card p {
    color: #999;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    border-top: 1px solid #1a1a1a;
    padding: 4rem 1.5rem 2rem;
    background: #020202;
    font-size: 0.9rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-brand p {
    color: #666;
    max-width: 250px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-col a {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #aaa;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #111;
    color: #444;
    text-align: center;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-cta { justify-content: center; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .integration-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-title { font-size: 2.5rem; }
}

/* Common / Utility */
.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border: 1px solid #333;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #bbb;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    white-space: nowrap;
}
.pill-soft {
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    color: #888;
    border-radius: 20px;
}

/* Auth / Simple Forms (Login, Register, Add Project) */
.layout-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: #000;
}

.form-container {
    border: 1px solid #333;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    background: #050505;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #888;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #0a0a0a;
    color: #fff;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: #666;
}

.auth-btn {
    width: 100%;
    margin-top: 1rem;
}

.error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #f87171;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #666;
}
.auth-link a {
    color: #fff;
    text-decoration: none;
}
.auth-link a:hover {
    text-decoration: underline;
}

/* Billing Card Styles */
.billing-page {
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.billing-card {
    border: 1px solid #333;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    background: #0a0a0a;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}
.big-number {
     font-size: 4rem;
     font-weight: 800;
     color: #fff;
     margin: 1rem 0;
     font-variant-numeric: tabular-nums;
     letter-spacing: -2px;
}
.label-small {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    font-size: 0.875rem;
    font-weight: 600;
}
.add-credit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 240px;
    padding: 1rem;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin: 1.25rem auto 0;
}
.add-credit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}
.project-id-display {
    background: #000;
    color: #fff;
    padding: 1rem;
    margin: 1.5rem 0;
    font-family: monospace;
    word-break: break-all;
    font-size: 1.1rem;
    border: 1px solid #333;
    border-radius: 8px;
}
.success-box {
    text-align: center;
}

/* =========================================
   NEW LANDING PAGE STYLES (v2)
   ========================================= */
.landing {
    padding: 2rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.landing-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
    padding-top: 1.5rem;
}
.landing-headline {
    font-size: 2.5rem;
    line-height: 1.05;
    letter-spacing: -1px;
    color: #fff;
    margin: 0;
}
.landing-subhead {
    margin-top: 0.9rem;
    color: #aaa;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 48ch;
}
.landing-cta {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.landing-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.landing-point {
    border: 1px solid #222;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: #050505;
}
.landing-point-text {
    margin-top: 0.4rem;
    color: #bdbdbd;
    font-size: 0.95rem;
    line-height: 1.45;
}
.landing-visual {
    border: 1px solid #222;
    border-radius: 14px;
    padding: 1rem;
    background: radial-gradient(1200px 450px at 20% 0%, rgba(191, 99, 255, 0.12), rgba(0, 0, 0, 0));
}
.landing-visual-title {
    color: #ddd;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.incident {
    border: 1px solid #222;
    border-radius: 12px;
    padding: 0.85rem 0.9rem;
    background: rgba(0, 0, 0, 0.35);
    margin-bottom: 0.75rem;
}
.incident:last-child {
    margin-bottom: 0;
}
.incident-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.incident-meta {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #888;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.incident-title {
    margin-top: 0.55rem;
    color: #fff;
    font-weight: 600;
}
.incident-body {
    margin-top: 0.35rem;
    color: #b3b3b3;
    font-size: 0.9rem;
    line-height: 1.4;
}
.landing-section {
    margin-top: 2.5rem;
}
.landing-section-title {
    margin: 0 0 1rem 0;
    color: #fff;
    font-size: 1.2rem;
}
.how-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1rem;
    align-items: start;
}
.how-left {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.how-card {
    background: #050505;
    border-color: #222;
}
.how-step {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.how-num {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #222;
    background: rgba(255, 255, 255, 0.03);
    color: #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 700;
    flex: 0 0 auto;
}
.how-code .code {
    margin-top: 0.9rem;
}
.code-lg {
    font-size: 0.92rem;
    line-height: 1.5;
}
.landing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.landing-grid-compact {
    grid-template-columns: repeat(3, 1fr);
}
.landing-card {
    border: 1px solid #222;
    border-radius: 14px;
    padding: 1rem;
    background: #050505;
}
.landing-card-title {
    margin-top: 0.6rem;
    color: #fff;
    font-weight: 600;
}
.landing-card-body {
    margin-top: 0.5rem;
    color: #b3b3b3;
    font-size: 0.92rem;
    line-height: 1.5;
}
.code {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 1rem;
    overflow: auto;
    margin-top: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #e5e5e5;
    white-space: pre;
    tab-size: 2;
}

@media (max-width: 980px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }
    .how-layout {
        grid-template-columns: 1fr;
    }
    .incident-meta {
        max-width: 220px;
    }
    .landing-grid, .landing-grid-compact {
        grid-template-columns: 1fr;
    }
    .landing-headline {
        font-size: 2.1rem;
    }
}

/* Documentation page */
.docs-wrap { max-width: 860px; margin: 0 auto; width: 100%; }
.docs-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.docs-header h2 { color: #fff; font-size: 1.5rem; margin-bottom: 0.25rem; }
.docs-header p { color: #888; font-size: 0.95rem; line-height: 1.45; }
.docs-wrap .card { background: #050505; border-color: #222; }
.docs-list { margin-top: 0.75rem; color: #bbb; line-height: 1.6; padding-left: 1.25rem; }

/* Blog Index */
.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.blog-header {
    margin: 3rem 0 2rem 0;
}
.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}
.blog-header p {
    color: #9ca3af;
    max-width: 70ch;
    font-size: 1.1rem;
    line-height: 1.5;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}
.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: transparent;
    border-radius: 12px;
    transition: transform 0.2s ease;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-2px);
}
.blog-card-image {
    aspect-ratio: 16/9;
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}
.blog-card:hover .blog-card-image img {
    opacity: 0.9;
}
.blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-date {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.blog-card-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 0;
    line-height: 1.3;
}
.blog-card-desc {
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1.5;
}
.empty-state {
    padding: 4rem 1rem;
    text-align: center;
    color: #6b7280;
    background: #050505;
    border: 1px solid #111;
    border-radius: 12px;
}

/* Blog Post */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.article-header {
    margin: 3rem 0 2rem 0;
    text-align: center;
}
.article-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.article-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.article-lead {
    font-size: 1.25rem;
    color: #9ca3af;
    line-height: 1.6;
    max-width: 60ch;
    margin: 0 auto;
}
.article-hero {
    margin: 2rem 0 3rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
}
.article-hero img {
    width: 100%;
    height: auto;
    display: block;
}
.blog-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #d1d5db;
}
.blog-content h2 {
    color: #fff;
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.blog-content h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.blog-content p {
    margin-bottom: 1.5rem;
}
.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.blog-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}
.blog-content strong {
    color: #fff;
    font-weight: 600;
}
.blog-content code {
    background: #1a1a1a;
    color: #e5e5e5;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.blog-content pre {
    background: #111;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid #222;
}
.blog-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.9em;
}
@media (max-width: 768px) {
    .article-title {
        font-size: 2.25rem;
    }
}

/* Add spacing below FAQ section in blog post */
.blog-faq-section {
    margin-bottom: 3rem;
}

.docs-callout {
    border: 1px solid #333;
    background: #0b0b0b;
    border-radius: 12px;
    padding: 1rem;
    color: #bbb;
    margin-top: 1rem;
}
.docs-callout strong { color: #fff; }
.code-inline { display: inline-block; width: fit-content; min-width: 0; }

/* Normalize default <pre> margins when used as code blocks */
pre.code { margin: 0.75rem 0 0 0; }
pre.code code { display: block; }

/* Platform Tabs */
.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: #555;
    color: #ccc;
}

.tab-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    font-weight: 500;
}

.tab-content {
    display: none !important;
}

.tab-content.active {
    display: grid !important;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
    border: 1px dashed #333;
    border-radius: 12px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
