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

:root {
    --bg: #f8f9fc;
    --ink: #1c2340;
    --muted: #6b7a9e;
    --muted-light: #8895b8;
    --accent: #3d6ef6;
    --accent-light: #7ba7ff;
    --border: #e8ecf4;
    --card: #fff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

a { color: inherit; }

/* ===== NAV ===== */
nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 60px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--ink);
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-btn {
    background: var(--accent);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600 !important;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1c2340 0%, #0f1628 50%, #1a1f4a 100%);
    color: #fff;
    padding: 100px 60px 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(61,110,246,0.13) 0%, transparent 70%);
    top: -200px; right: -100px;
}
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.hero-badge {
    display: inline-block;
    background: rgba(61,110,246,0.19);
    border: 1px solid rgba(61,110,246,0.4);
    color: var(--accent-light);
    font-size: 0.72rem;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
    text-transform: uppercase;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 620px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero h1 span { color: var(--accent); }
.hero p {
    font-size: 1.1rem;
    color: var(--muted-light);
    max-width: 520px;
    margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}
.btn-secondary {
    background: transparent;
    border: 1px solid rgba(61,110,246,0.3);
    color: var(--accent-light);
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
    background: linear-gradient(135deg, #1c2340 0%, #1a1f4a 100%);
    color: #fff;
    padding: 70px 60px 60px;
}
.page-header-inner { max-width: 1100px; margin: 0 auto; }
.page-header .section-tag { color: var(--accent-light); }
.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.page-header p { color: var(--muted-light); max-width: 600px; font-size: 1.05rem; }

/* ===== STATS ===== */
.stats {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 36px 60px;
}
.stats-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 60px; flex-wrap: wrap; }
.stat-num { font-size: 2rem; font-weight: 800; }
.stat-num span { color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--muted-light); margin-top: 4px; }

/* ===== SECTIONS ===== */
.section {
    max-width: 1100px;
    margin: 70px auto;
    padding: 0 60px;
}
.section-tag {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 12px;
}
.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.section-lead { color: var(--muted); max-width: 640px; margin-bottom: 48px; }

/* ===== GRID CARDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(61,110,246,0.1); }
.card-icon {
    width: 42px; height: 42px;
    color: var(--accent);
    margin-bottom: 18px;
    display: flex; align-items: center;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--accent); stroke-width: 1.6; fill: none; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 0.875rem; color: var(--muted); }

/* ===== CONTENT (about/docs prose) ===== */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 36px 0 14px; }
.prose p { color: #444; margin-bottom: 18px; }
.prose ul { margin: 0 0 18px 22px; color: #444; }
.prose li { margin-bottom: 8px; }
.callout {
    border-left: 4px solid var(--accent);
    background: #eef3ff;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: #1a3a6a;
}
code {
    background: #1c2340;
    color: #7ba7ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.85em;
}
.code-block {
    background: #0f1628;
    color: #cdd6f4;
    padding: 20px 24px;
    border-radius: 10px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    margin: 20px 0;
    line-height: 1.7;
}
.code-block .k { color: #7ba7ff; }
.code-block .s { color: #a6e3a1; }
.code-block .c { color: #6b7a9e; }

/* ===== TABLE ===== */
.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.api-table th {
    background: #f1f4fb;
    text-align: left;
    padding: 12px 18px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}
.api-table td { padding: 12px 18px; border-top: 1px solid var(--border); font-size: 0.9rem; }
.method-get {
    background: #e3f4e8; color: #1b7a3d;
    padding: 2px 8px; border-radius: 4px;
    font-size: 0.78rem; font-weight: 700;
}
.badge-auth { background: #fde8e8; color: #c0392b; padding: 2px 8px; border-radius: 4px; font-size: 0.72rem; }
.badge-open { background: #e3f4e8; color: #1b7a3d; padding: 2px 8px; border-radius: 4px; font-size: 0.72rem; }

/* ===== STATUS PAGE ===== */
.status-row {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border: 1px solid var(--border);
    border-radius: 10px; padding: 18px 24px; margin-bottom: 12px;
}
.status-name { font-weight: 600; }
.status-state { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: #22c55e; }
.dot-yellow { background: #eab308; }
.dot-red { background: #ef4444; }
.op { color: #1b7a3d; }
.deg { color: #a16207; }

/* ===== IMAGES ===== */
.hero-grid {
    max-width: 1100px; margin: 0 auto; position: relative;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center;
}
.hero-grid .hero-copy { }
.hero-shot {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(123,167,255,0.25);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.hero-shot img { width: 100%; display: block; }

.split {
    max-width: 1100px; margin: 70px auto; padding: 0 60px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
    width: 100%; border-radius: 14px; display: block;
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(28,35,64,0.1);
}
.split-copy .section-title { margin-bottom: 16px; }

.media-banner { width: 100%; height: 320px; overflow: hidden; position: relative; }
.media-banner img { width: 100%; height: 100%; object-fit: cover; }

.logo-strip {
    max-width: 1100px; margin: 0 auto; padding: 36px 60px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 30px;
    opacity: 0.55;
}
.logo-strip .client {
    font-weight: 800; font-size: 1.05rem; color: #8895b8; letter-spacing: 0.5px;
}

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-card img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: 12px; margin-bottom: 14px;
}
.team-card .name { font-weight: 700; font-size: 0.95rem; }
.team-card .role { font-size: 0.82rem; color: var(--muted); }

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, #1c2340, #1a1f4a);
    color: #fff;
    text-align: center;
    padding: 70px 40px;
}
.cta h2 { font-size: 2rem; font-weight: 800; margin-bottom: 14px; }
.cta p { color: var(--muted-light); margin-bottom: 30px; }

/* ===== FOOTER ===== */
footer {
    background: #111827;
    color: var(--muted);
    padding: 50px 60px 32px;
    font-size: 0.85rem;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    padding-bottom: 32px; border-bottom: 1px solid #1f2937;
}
.footer-col h4 { color: #fff; font-size: 0.85rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; margin-bottom: 8px; font-size: 0.85rem; }
.footer-col a:hover { color: #fff; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; display: inline-block; }
.footer-brand p { max-width: 260px; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 24px; text-align: center; color: #4b5563; }

@media (max-width: 768px) {
    nav, .hero, .page-header, .section, .stats, footer, .status-section { padding-left: 20px; padding-right: 20px; }
    .nav-links { gap: 16px; font-size: 0.8rem; }
    .nav-links a:not(.nav-btn) { display: none; }
    .hero h1 { font-size: 2rem; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .split { grid-template-columns: 1fr; gap: 28px; padding-left: 20px; padding-right: 20px; }
    .split.reverse .split-media { order: 0; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .logo-strip { padding: 24px 20px; justify-content: center; }
}
