/* ============================================================
   SHARED DESIGN SYSTEM — ramchella.github.io
   All pages (index, Artificial-Identity, contact) share this.
   ============================================================ */

/* ===== RESET & VARIABLES ===== */
:root {
    --page-bg: #f6f7f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --ink: #0f172a;
    --slate: #334155;
    --muted: #64748b;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-tint: #eff6ff;
    --blue-light: #dbeafe;
    --green: #16a34a;
    --red: #dc2626;
    --amber: #d97706;
    --dark-bg: #0a0f1e;
    --dark-alt: #111827;
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 12px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--page-bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

img { max-width: 100%; display: block; }

/* ===== NAVIGATION (shared across all pages) ===== */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 1.5rem;
}

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

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-brand .highlight,
.nav-brand strong {
    color: var(--blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

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

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

.nav-links a.active {
    color: var(--ink);
    font-weight: 600;
    border-bottom: 2px solid var(--blue);
    padding-bottom: 2px;
}

/* Nav CTA button */
.nav-cta,
.cta-button {
    background: var(--blue);
    color: var(--white) !important;
    padding: 0.5rem 1.125rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
    white-space: nowrap;
}

.nav-cta:hover,
.cta-button:hover {
    background: var(--blue-dark);
    color: var(--white) !important;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== EYEBROW ===== */
.eyebrow {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    border-color: var(--blue-light);
    color: var(--blue-light);
}

/* ===== SECTION SYSTEM ===== */
.section-full {
    padding: 5rem 0;
    width: 100%;
}

.section-full.white-bg { background: var(--white); }
.section-full.off-white-bg { background: #fafbfc; }
.section-full.light-gray { background: #f9fafb; }
.section-full.dark-bg {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: var(--white);
}
.section-full.dark-bg .eyebrow { color: #60a5fa; }
.section-full.dark-bg h2 { color: var(--white); }
.section-full.dark-bg .subtitle { color: #cbd5e1; }

.section-full h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ink);
}

.section-full .subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--slate);
    margin-bottom: 3rem;
    max-width: 700px;
    line-height: 1.7;
}


/* ============================================================
   INDEX PAGE
   ============================================================ */

/* --- HERO --- */
.hero-home {
    background: linear-gradient(135deg, #0a0f1e 0%, #111827 100%);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 2rem 4rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-home::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.hero-home::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    z-index: 0;
}

.hero-home .content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-home h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 7vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-home h1 .highlight {
    color: #60a5fa;
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-home .subline {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 400;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-home .solution {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--white);
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.hero-home .solution .highlight {
    color: #60a5fa;
}

.hero-home .cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-home .cta-primary {
    background: var(--blue);
    color: var(--white);
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-home .cta-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.hero-home .cta-secondary {
    background: transparent;
    border: 2px solid var(--blue);
    color: var(--blue);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-home .cta-secondary:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

/* --- Proof Strip (index hero) --- */
.proof-strip-home {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.proof-strip-home .proof-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.proof-strip-home .proof-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.proof-strip-home .proof-text {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 500;
}

.proof-strip-home .proof-text .mono {
    font-family: var(--font-mono);
    color: #60a5fa;
}

/* --- Hero Quote --- */
.hero-quote {
    background: rgba(30, 41, 59, 0.6);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius-sm);
    padding: 1.5rem 2rem;
    margin-top: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: #e2e8f0;
    font-style: italic;
    line-height: 1.8;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.about-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--blue-light);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.about-text h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--ink);
}

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--slate);
    line-height: 1.8;
    font-size: 1rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1.5px solid var(--border);
}

.stat-item { text-align: center; }

.stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--blue);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.project-emoji { font-size: 1.5rem; }

.project-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    flex: 1;
}

.project-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-live { background: rgba(22, 163, 74, 0.1); color: var(--green); }
.badge-building { background: rgba(217, 119, 6, 0.1); color: var(--amber); }
.badge-research { background: rgba(37, 99, 235, 0.1); color: var(--blue); }
.badge-contributor { background: rgba(100, 116, 139, 0.1); color: var(--muted); }

.project-description {
    color: var(--slate);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    flex: 1;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tag {
    background: var(--blue-tint);
    color: var(--blue);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.project-link:hover { gap: 0.75rem; }

/* --- Connect Section (index) --- */
.connect-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.connect-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.connect-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.connect-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.connect-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--blue);
    color: #60a5fa;
}

.connect-cta {
    background: var(--blue);
    color: var(--white);
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.connect-cta:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

/* --- Footer (shared) --- */
footer {
    background: #0a0f1e;
    color: var(--white);
    padding: 2.5rem 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.footer-contact {
    color: #94a3b8;
    font-size: 0.9rem;
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */

/* --- Contact Hero --- */
.hero-contact {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    padding: 3.5rem 2rem;
    text-align: center;
}

.hero-contact .hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.hero-contact h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.hero-contact p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

.hero-contact p:last-child {
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- Contact Grid --- */
.contact-options {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

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

.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.contact-card.featured {
    border: 2px solid var(--blue);
}

.contact-card.featured:hover {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--blue-tint);
    border-radius: var(--radius-sm);
}

.card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--blue);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
}

.card-description {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-cta,
.card-email-link {
    margin-top: 0.25rem;
    display: inline-block;
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.card-cta:hover,
.card-email-link:hover {
    color: var(--blue-dark);
}

/* --- Also Find Me On --- */
.also-find {
    background-color: #f9fafb;
    padding: 2.5rem 2rem;
    margin: 2rem 0;
}

.also-find-container {
    max-width: 1200px;
    margin: 0 auto;
}

.also-find h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1.25rem;
    text-align: center;
}

.find-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
}

.find-links a {
    color: var(--slate);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.find-links a:hover { color: var(--blue); }

.find-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.find-icon svg {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

.find-links a:hover .find-icon svg { color: var(--blue); }

/* --- Calendly Section --- */
.calendly-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    background-color: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.calendly-section h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1.5rem;
    text-align: center;
}

.calendly-inline-widget {
    margin: 0 auto;
    max-width: 600px;
}


/* ============================================================
   ARTIFICIAL IDENTITY PAGE
   ============================================================ */

/* --- AI Hero --- */
.hero-ai {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-alt) 100%);
    color: var(--white);
    padding: 4rem 0;
}

.hero-ai .hero-content {
    max-width: 900px;
}

.hero-ai .eyebrow {
    color: var(--blue-light);
}

.hero-ai .hero-headline {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
}

.hero-highlight {
    color: var(--blue-light);
}

.hero-ai .hero-subline {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 700px;
    line-height: 1.7;
}

/* Code block */
.code-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #a7f3d0;
    margin-bottom: 1rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.code-label {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.hero-ai .hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

/* Proof strip (AI page) */
.proof-strip-ai {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.proof-strip-ai .proof-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.proof-strip-ai .proof-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

/* --- AI Sections --- */
.ai-section {
    padding: 4rem 0;
}

.ai-section.white-bg { background: var(--white); }
.ai-section.off-white-bg { background: #fafbfc; }
.ai-section.dark-bg {
    background: var(--dark-bg);
    color: var(--white);
}
.ai-section.dark-bg .eyebrow { color: var(--blue-light); }

/* Problem section */
.problem-intro { margin-bottom: 2.5rem; }
.problem-intro h2 { margin-bottom: 1.5rem; }
.problem-intro h2 strong { color: var(--red); }

.callout {
    border-left: 4px solid var(--red);
    background: #fef2f2;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    color: var(--ink);
}

.analogy-box {
    background: var(--blue-tint);
    border: 1px solid var(--blue-light);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    color: var(--ink);
}

.analogy-box p {
    font-style: italic;
    color: var(--slate);
    line-height: 1.8;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.comparison-card {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.comparison-card.red { background: #fef2f2; border-color: #fecaca; }
.comparison-card.red h4 { color: var(--red); }
.comparison-card.green { background: #f0fdf4; border-color: #bbf7d0; }
.comparison-card.green h4 { color: var(--green); }
.comparison-card h4 { margin-bottom: 1rem; }
.comparison-card ul { list-style: none; }
.comparison-card li {
    padding: 0.5rem 0;
    color: var(--slate);
    font-size: 0.95rem;
}

/* Pillar cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pillar-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.pillar-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-tint);
    border-radius: 50%;
}

.pillar-card h3 { margin-bottom: 0.75rem; }
.pillar-card p { color: var(--slate); font-size: 0.95rem; line-height: 1.7; }

/* Flow pipeline */
.flow-pipeline {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    min-width: 100px;
    padding: 0.875rem 0.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--slate);
}

.flow-step.highlight {
    background: var(--blue-tint);
    border-color: var(--blue-light);
    color: var(--blue-dark);
}

/* Governance table */
.governance-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.governance-table th,
.governance-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.governance-table th {
    background: var(--blue-tint);
    font-weight: 600;
    color: var(--blue-dark);
    font-size: 0.9rem;
}

.governance-table tbody tr:hover { background: #fafbfc; }

.state-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
}

.state-badge.advance { background: #dcfce7; color: var(--green); }
.state-badge.hold { background: var(--blue-tint); color: var(--blue-dark); }
.state-badge.escalate { background: #fef3c7; color: var(--amber); }
.state-badge.stop { background: #fee2e2; color: var(--red); }

/* Sovereignty cards */
.sovereignty-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.identity-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    color: var(--white);
}

.identity-card h4 { margin-bottom: 0.75rem; color: var(--blue-light); }

.identity-label {
    display: inline-block;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.identity-attrs {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #a7f3d0;
    margin-bottom: 0.75rem;
}

.identity-desc { color: #cbd5e1; font-size: 0.95rem; line-height: 1.6; }

.quote-callout {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--blue-light);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.quote-callout p { font-style: italic; line-height: 1.8; }

/* Why Now grid */
.why-now-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.why-now-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.why-now-item h4 { color: var(--blue); margin-bottom: 0.75rem; font-size: 1.1rem; }
.why-now-item p { color: var(--slate); font-size: 0.95rem; line-height: 1.6; }

/* Research section */
.stat-callout {
    background: var(--blue-tint);
    border: 1px solid var(--blue-light);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}

.ai-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue-dark);
}

.ai-stat-label { color: var(--slate); margin-top: 0.5rem; font-size: 0.95rem; }

.research-highlight {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--blue);
    margin-bottom: 2rem;
}

.research-highlight h4 { color: var(--blue); margin-bottom: 0.75rem; }

/* Get Started */
.get-started { text-align: center; }
.get-started h2 { margin-bottom: 1.5rem; color: var(--white); }

.get-started .code-block {
    margin: 1rem auto;
    max-width: 600px;
    text-align: left;
}

.get-started-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.get-started-credit {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* AI page footer (3-column) */
.footer-3col {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 { margin-bottom: 0.75rem; color: var(--white); font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.back-link { color: var(--blue-light); text-decoration: none; }
.back-link:hover { color: var(--white); }


/* ============================================================
   RESPONSIVE — TABLET (641–1024px)
   ============================================================ */
@media (max-width: 1024px) {
    /* Nav */
    .nav-links { gap: 1.25rem; }

    /* Index hero */
    .hero-home { min-height: auto; padding: 4rem 2rem 3rem; }
    .proof-strip-home { grid-template-columns: repeat(2, 1fr); }

    /* About */
    .about-grid { grid-template-columns: 220px 1fr; gap: 2rem; }

    /* Projects */
    .projects-grid { grid-template-columns: repeat(2, 1fr); }

    /* Contact */
    .contact-grid { grid-template-columns: repeat(2, 1fr); }

    /* AI page */
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .sovereignty-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-3col { grid-template-columns: 1fr 1fr; }
}


/* ============================================================
   RESPONSIVE — MOBILE (≤640px)
   ============================================================ */
@media (max-width: 640px) {
    /* Nav */
    nav { padding: 0.75rem 1rem; }

    .nav-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .nav-cta,
    .cta-button {
        padding: 0.4rem 0.875rem;
        font-size: 0.85rem;
    }

    /* Index hero */
    .hero-home {
        min-height: auto;
        padding: 3rem 1.25rem 2.5rem;
    }

    .hero-home h1 { font-size: 2rem; }

    .hero-home .cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-home .cta-primary,
    .hero-home .cta-secondary {
        text-align: center;
        justify-content: center;
    }

    .proof-strip-home {
        grid-template-columns: 1fr;
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }

    .hero-quote { padding: 1rem 1.25rem; }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-image {
        max-width: 200px;
        margin: 0 auto;
    }

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

    /* Projects */
    .projects-grid { grid-template-columns: 1fr; }

    /* Sections */
    .section-full { padding: 3rem 0; }
    .section-full h2 { font-size: 1.5rem; }

    /* Connect */
    .connect-row { flex-direction: column; align-items: stretch; }
    .connect-link { justify-content: center; }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links { justify-content: center; gap: 1rem; }

    /* --- Contact page --- */
    .hero-contact { padding: 2.5rem 1.25rem; }
    .hero-contact h1 { font-size: 1.75rem; }

    .contact-options { margin: 2rem auto; padding: 0 1rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 1rem; }
    .contact-card { padding: 1.5rem; }

    .calendly-section {
        margin: 2rem 1rem;
        padding: 2rem 1rem;
    }

    .find-links { gap: 1rem; }

    /* --- AI page --- */
    .hero-ai { padding: 3rem 0; }
    .hero-ai .hero-headline { font-size: 1.75rem; }

    .hero-ai .hero-ctas {
        flex-direction: column;
    }

    .hero-ai .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .ai-section { padding: 3rem 0; }

    .grid-3 { grid-template-columns: 1fr; }
    .comparison { grid-template-columns: 1fr; }
    .sovereignty-cards { grid-template-columns: 1fr; }
    .why-now-grid { grid-template-columns: 1fr; }

    .flow-pipeline { flex-direction: column; }
    .flow-step { min-width: auto; }

    .proof-strip-ai { flex-direction: column; gap: 0.75rem; }

    .get-started-ctas { flex-direction: column; }
    .get-started-ctas .btn { width: 100%; justify-content: center; }

    .footer-3col { grid-template-columns: 1fr; text-align: center; }
    .footer-col ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; }
}
