/* ============================================================
   sovaign.css — Sovaign marketing + blog
   ============================================================ */

:root {
    --ink:    #0f172a;
    --muted:  rgba(15, 23, 42, .64);
    --faint:  rgba(15, 23, 42, .40);
    --border: rgba(15, 23, 42, .14);
    --card:   #ffffff;
    --teal:   #21B6C6;
    --orange: #F3A24B;
    --shadow-sm: 0 2px 8px  rgba(15, 23, 42, .06);
    --shadow:    0 8px 32px rgba(15, 23, 42, .10);
    --shadow-lg: 0 24px 64px rgba(15, 23, 42, .13);
    --r:  20px;
    --rs: 12px;
}

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

/* Background lives on html so gradient covers the whole scroll height */
html {
    min-height: 100%;
    background:
        radial-gradient(ellipse 960px 620px at 12% 8%,  rgba(33, 182, 198, .20), transparent 58%),
        radial-gradient(ellipse 960px 620px at 88% 14%, rgba(243, 162, 75, .18), transparent 58%),
        radial-gradient(ellipse 1300px 800px at 50% 96%, rgba(33, 182, 198, .09), transparent 58%),
        #f5f2ec;
}

body {
    min-height: 100svh;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 52px);
    height: 58px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
}

.nav-brand {
    text-decoration: none;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
}

.nav-open-app {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--teal);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================================
   Page container
   ============================================================ */
.page {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 52px);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    padding: 36px 40px;
    margin-top: 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

@media (max-width: 780px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 32px 28px;
    }
    .hero-logo { display: none; }
}

.hero-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 14px;
}

h1 {
    font-size: clamp(38px, 5.4vw, 64px);
    line-height: 1.0;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.hero-lead {
    font-size: 18px;
    line-height: 1.68;
    color: var(--muted);
    max-width: 56ch;
    margin-bottom: 28px;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    background: var(--teal);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    background: rgba(255, 255, 255, .72);
    color: var(--ink);
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-logo img {
    width: 260px;
    filter: drop-shadow(0 16px 32px rgba(15, 23, 42, .10));
    display: block;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
    padding: 64px 0;
    border-top: 1px solid var(--border);
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 10px;
}

h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.14;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.section-body {
    max-width: 70ch;
    color: var(--muted);
    line-height: 1.72;
    font-size: 17px;
}

.section-body + .section-body {
    margin-top: 14px;
}

/* ============================================================
   Phase tags
   ============================================================ */
.phase-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.phase-tag--live {
    background: rgba(33, 182, 198, .11);
    color: #1593a1;
    border: 1px solid rgba(33, 182, 198, .24);
}

.phase-tag--live::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
}

.phase-tag--future {
    background: rgba(15, 23, 42, .05);
    color: var(--faint);
    border: 1px solid var(--border);
}

/* ============================================================
   Capabilities grid
   ============================================================ */
.capabilities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 28px 0 36px;
}

@media (max-width: 580px) {
    .capabilities { grid-template-columns: 1fr; }
}

.capability-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--rs);
    font-size: 15px;
    color: var(--muted);
    line-height: 1.45;
    box-shadow: var(--shadow-sm);
}

.capability-item::before {
    content: '→';
    color: var(--teal);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================================
   Stats
   ============================================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

@media (max-width: 860px) {
    .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
}

.stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--rs);
    padding: 18px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 3px;
}

.stat-sub {
    display: block;
    font-size: 11px;
    color: var(--faint);
    line-height: 1.4;
}

.stats-note {
    font-size: 12px;
    color: var(--faint);
    margin-bottom: 40px;
}

.phase-note {
    margin-top: 40px;
    padding: 24px 28px;
    background: rgba(33, 182, 198, .06);
    border: 1px solid rgba(33, 182, 198, .20);
    border-left: 3px solid var(--teal);
    border-radius: var(--radius-sm);
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.phase-note p { margin-bottom: 12px; }
.phase-note p:last-child { margin-bottom: 0; }

.phase-note ul {
    margin: 10px 0 14px 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phase-note li { color: var(--muted); }

/* ============================================================
   Screenshots
   ============================================================ */
.screenshots {
    display: grid;
    gap: 18px;
}

.screenshots-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 700px) {
    .screenshots-pair { grid-template-columns: 1fr; }
}

.screenshot figure {
    margin: 0;
}

.screenshot img {
    width: 100%;
    border-radius: var(--r);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: block;
}

.screenshot figcaption {
    margin-top: 9px;
    font-size: 13px;
    color: var(--faint);
    line-height: 1.5;
    padding: 0 2px;
}

/* ============================================================
   Vision
   ============================================================ */
.vision-text {
    max-width: 68ch;
    font-size: 17px;
    line-height: 1.76;
    color: var(--muted);
}

.vision-text + .vision-text {
    margin-top: 16px;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
    border-top: 1px solid var(--border);
    padding: 28px 0 44px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 13px;
    color: var(--faint);
    letter-spacing: .05em;
}

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

.footer-links a {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}

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

/* ============================================================
   Blog index
   ============================================================ */
.blog-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border);
}

.blog-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 10px;
}

.blog-header-sub {
    font-size: 16px;
    color: var(--muted);
}

.blog-list {
    padding: 36px 0 60px;
    display: grid;
    gap: 18px;
}

.blog-card {
    display: flex;
    align-items: stretch;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow .15s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow);
}

.blog-card-thumb {
    flex: 0 0 220px;
    width: 220px;
    overflow: hidden;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    flex: 1;
    padding: 26px 30px;
    min-width: 0;
}

.blog-card-meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--faint);
    letter-spacing: .10em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.blog-card h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    color: var(--ink);
    line-height: 1.25;
}

.blog-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.62;
}

@media (max-width: 640px) {
    .blog-card {
        flex-direction: column;
    }
    .blog-card-thumb {
        flex: none;
        width: 100%;
        height: 140px;
    }
}

/* ============================================================
   Blog post
   ============================================================ */
.post-hero {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 1200 / 630;
    border-radius: var(--rs);
    overflow: hidden;
    margin: 28px 0 0;
}

.post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-header {
    padding: 32px 0 36px;
    max-width: 72ch;
    border-bottom: 1px solid var(--border);
}

.post-meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--faint);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.post-header h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    margin-bottom: 16px;
}

.post-lede {
    font-size: 19px;
    color: var(--muted);
    line-height: 1.66;
}

.post-body {
    max-width: 72ch;
    padding: 40px 0 64px;
    font-size: 17px;
    line-height: 1.76;
}

.post-body h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 40px 0 12px;
    color: var(--ink);
}

.post-body p {
    margin-bottom: 18px;
    color: var(--muted);
}

.post-body p:last-child {
    margin-bottom: 0;
}

.post-body code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    background: rgba(33,182,198,.08);
    padding: 2px 5px;
    border-radius: 3px;
    color: var(--teal);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    color: var(--muted);
}

.data-table th {
    font-weight: 600;
    color: var(--ink);
    background: rgba(0,0,0,.03);
}

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

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
    padding: 16px 0;
}
