/* ============================================================
   TechMatrix AI Systems — Shared Stylesheet
   ============================================================ */

/* ── Design Tokens ── */
:root {
    --navy: #0f172a;
    --navy-mid: #1e293b;
    --navy-light: #334155;
    --blue: #3b82f6;
    --blue-dark: #2563eb;
    --accent: #60a5fa;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    line-height: 1.6;
    background: var(--surface);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', 'Inter', sans-serif;
}

/* ── Navigation ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 88px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-monogram {
    height: 54px;
    width: auto;
    display: block;
    flex-shrink: 0;
    border-radius: 8px;
    background: #ffffff;
    padding: 5px 12px;
}

.footer-brand .nav-monogram {
    height: 90px;
    padding: 8px 20px;
    border-radius: 10px;
}

.nav-wordmark {
    color: #ffffff;
    font-family: 'Raleway', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    color: #e2e8f0;
    padding: 8px 18px;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
    background: var(--navy-light);
    color: #fff;
}

.nav-links a.active {
    background: var(--blue);
    color: #fff;
}

/* ── Hero ── */
.hero {
    background: var(--navy);
    background-image:
        linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px),
        radial-gradient(ellipse at 65% 40%, rgba(59,130,246,0.30) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 65%, rgba(96,165,250,0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 88% 85%, rgba(37,99,235,0.15) 0%, transparent 40%);
    background-size: 52px 52px, 52px 52px, auto, auto, auto;
    color: #fff;
    min-height: calc(100vh - 168px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(48px, 8vh, 96px) 40px 8px;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(59,130,246,0.35);
    border: 1.5px solid rgba(96,165,250,0.6);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 52px;
    text-shadow: 0 0 20px rgba(96,165,250,0.8);
    box-shadow: 0 0 24px rgba(59,130,246,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

.hero h1 {
    font-family: 'Raleway', 'Inter', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 auto 24px;
    max-width: 860px;
}

.hero h1 span {
    background: linear-gradient(120deg, #93c5fd 0%, #a78bfa 40%, #60a5fa 70%, #93c5fd 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-sub {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 640px;
    margin: 0 auto 48px;
    font-weight: 400;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-block;
    padding: 13px 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.45);
}

.btn-secondary {
    display: inline-block;
    padding: 13px 28px;
    background: transparent;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: 1.5px solid rgba(255,255,255,0.2);
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-block;
    padding: 7px 16px;
    background: transparent;
    color: var(--blue);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8125rem;
    border: 1.5px solid var(--blue);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-outline:hover {
    background: var(--blue);
    color: #fff;
}

/* ── Sections ── */
.section-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 100px 48px;
}

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

.section-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: var(--blue);
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 12px;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
}


.section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--navy);
    margin: 0 0 16px;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 0 48px;
}

/* ── Pillar Section Background ── */
.pillars-section .section-inner {
    padding-top: 28px;
}

.pillars-section .section-label,
.pillars-section .section-title {
    text-align: center;
}

.pillars-section .section-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.pillars-section {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    background-image: radial-gradient(circle, rgba(148,163,184,0.45) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
}

/* ── Section Dividers ── */
.section-divider {
    display: none;
}

/* ── Pillar Cards (index) ── */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pillar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--blue);
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pillar-icon {
    width: 52px;
    height: 52px;
    background: rgba(59,130,246,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--blue);
    transition: background 0.2s, transform 0.2s;
}

.pillar-card:hover .pillar-icon {
    background: rgba(59,130,246,0.18);
}

.pillar-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 10px;
}

.pillar-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 20px;
}

.pillar-card a {
    font-size: 0.875rem;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.pillar-card a:hover { text-decoration: underline; }

/* ── Hero Industries Strip ── */
.hero-industries {
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-industries-label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.hero-industries-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hero-industries span:not(.hero-industries-label),
.hero-industries-tags a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    padding: 7px 18px;
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.4);
    border-radius: 100px;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hero-industries-tags a:hover {
    background: rgba(59,130,246,0.35);
    border-color: rgba(59,130,246,0.7);
    color: #ffffff;
}

/* ── Hero Partners Strip ── */
.hero-partners {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.hero-partners-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    text-align: center;
}

.hero-partners-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 52px;
    justify-content: center;
    align-items: center;
}

.hero-partner-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.82);
    transition: color 0.2s;
}

.hero-partner-badge:hover {
    color: #ffffff;
}

.hero-partner-badge svg {
    width: 40px;
    height: 40px;
}

.hero-partner-badge span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── About Teaser (index) ── */
.about-teaser {
    background: linear-gradient(150deg, #eff6ff 0%, #f8fafc 45%, #f4f8ff 100%);
    border-top: 1px solid rgba(0,0,0,0.08);
}

.about-teaser .section-inner {
    padding-top: 28px;
}

.about-teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-top: 32px;
}

.about-teaser-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 20px;
}

.about-teaser-cta {
    display: flex;
    gap: 14px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.about-teaser-cta .btn-outline {
    padding: 13px 28px;
    font-size: 0.9375rem;
}

.stat-row {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--blue);
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    flex: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Highlight Cards ── */
.highlight-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.highlight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
}

.highlight-card strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.highlight-card span {
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* ── Industry Grid ── */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.industry-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.industry-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.industry-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 6px;
}

.industry-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Approach Steps ── */
.approach-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.approach-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 4px;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
}

/* ── Solution Detail ── */
.solution-intro {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 0 28px;
}

.deliverables-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deliverables-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}

.deliverables-list li::before {
    content: "→";
    color: var(--blue);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Services Grid ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(59,130,246,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 10px;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.services-cta {
    text-align: center;
    margin-top: 48px;
}

/* ── CTA Strip ── */
.cta-strip {
    background: #0d3a8e;
    border-top: 1px solid rgba(255,255,255,0.15);
    background-image:
        radial-gradient(ellipse at 18% 50%, rgba(147,197,253,0.45) 0%, transparent 52%),
        radial-gradient(ellipse at 82% 28%, rgba(96,165,250,0.35) 0%, transparent 46%),
        radial-gradient(ellipse at 50% 105%, rgba(59,130,246,0.3) 0%, transparent 42%);
    color: #fff;
    text-align: center;
    padding: 100px 40px;
}

.cta-strip h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 14px;
}

.cta-strip p {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 520px;
    margin: 0 auto 36px;
}

.cta-strip-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Contact (simple, no form) ── */
.contact-simple {
    max-width: 720px;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 0 48px;
    max-width: 640px;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.contact-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-card-body {
    flex: 1;
    min-width: 200px;
}

.contact-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 4px;
}

.contact-email-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.contact-email-link:hover {
    color: var(--blue);
}

.contact-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-copy {
    display: inline-block;
    padding: 13px 28px;
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--blue);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-copy:hover {
    background: var(--blue);
    color: #fff;
}

.contact-fallback {
    width: 100%;
    font-size: 0.85rem;
    color: var(--blue);
    margin: 4px 0 0;
    font-weight: 500;
}

.contact-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Contact (grid, legacy) ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 56px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 12px;
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 28px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.contact-detail:last-child { border-bottom: 1px solid var(--border); }

.contact-detail-icon {
    width: 36px;
    height: 36px;
    background: rgba(59,130,246,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-detail a {
    font-size: 0.9rem;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.contact-detail a:hover { text-decoration: underline; }

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-group:last-of-type { margin-bottom: 0; }

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 13px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s, transform 0.15s;
}

.form-submit:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

/* ── Footer ── */
footer {
    background: #060e1c;
    color: #cbd5e1;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 60px 40px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Full-size logo on About page */
.about-logo-display {
    margin-bottom: 36px;
}

.about-logo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #ffffff;
    padding: 14px 0;
    display: block;
    box-sizing: border-box;
}

/* Full-size logo in footer */
.footer-logo-link {
    display: inline-block;
    margin-bottom: 18px;
}

.footer-logo-img {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #ffffff;
    padding: 10px 20px;
    display: block;
}

.footer-brand .nav-brand { margin-bottom: 14px; }

.footer-brand p {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e2e8f0;
    margin: 0 0 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover { color: #e2e8f0; }

.footer-bottom {
    padding-top: 28px;
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
}

/* ── Mini Footer (standalone pages & panel pages) ── */
.mini-footer {
    background: var(--navy);
    color: #64748b;
    text-align: center;
    padding: 20px 40px;
    font-size: 0.8125rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.mini-footer a {
    color: #60a5fa;
    text-decoration: none;
}

.mini-footer a:hover {
    color: #93c5fd;
}

/* ── Panel Layout ── */
body.panel-page {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel-shell {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    overflow-y: auto;
    background: var(--surface-alt);
    border-right: 1px solid var(--border);
    padding: 32px 0;
}

.sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 24px;
    margin-bottom: 14px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

.sidebar-nav li a:hover {
    background: rgba(59,130,246,0.06);
    color: var(--text);
}

.sidebar-nav li a.active {
    background: rgba(59,130,246,0.1);
    color: var(--blue);
    font-weight: 600;
}

.sidebar-nav li a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--blue);
    border-radius: 0 2px 2px 0;
}

.sidebar-indicator {
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s;
}

.sidebar-nav li a.active .sidebar-indicator { opacity: 1; }

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4px 24px 16px;
}

.sidebar-other-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-other-links li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.sidebar-other-links li a:hover { color: var(--blue); }

.main-frame {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

/* ── Slides ── */
.slide {
    display: none;
    padding: 48px 56px;
    max-width: 860px;
}

.slide.active { display: block; }

.slide.fade-in {
    animation: fadeSlideIn 0.25s ease;
}

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

.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.slide-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.slide h2 {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin: 0 0 20px;
}

.slide-nav {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 56px 32px;
    border-top: 1px solid var(--border);
}

.slide-nav-btn {
    padding: 8px 20px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.slide-nav-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.slide-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Breadcrumb (standalone pages) ── */
.breadcrumb {
    padding: 20px 0 8px;
    margin-bottom: 4px;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover { text-decoration: underline; }

/* ── Standalone page content ── */
.standalone-content {
    max-width: 860px;
}

.standalone-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 0 20px;
}

.standalone-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin: 32px 0 12px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    nav {
        padding: 0 20px;
        height: 60px;
    }

    .nav-wordmark { display: none; }

    .hero {
        min-height: calc(100vh - 156px);
        justify-content: flex-start;
        padding: clamp(36px, 6vh, 64px) 24px clamp(16px, 3vh, 28px);
    }

    .section-inner { padding: 72px 24px; }

    .about-teaser-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pillars-grid { grid-template-columns: 1fr; }

    .industry-grid { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nav-links a {
        padding: 6px 10px;
        font-size: 0.8125rem;
    }

    .stat-row { gap: 20px; }

    .cta-strip { padding: 56px 24px; }

    /* Panel page responsive */
    body.panel-page {
        height: auto;
        overflow: auto;
        display: block;
    }

    .panel-shell {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 12px 0;
        overflow-x: auto;
        overflow-y: visible;
    }

    .sidebar-title { display: none; }

    .sidebar-nav {
        display: inline-flex;
        flex-direction: row;
        gap: 4px;
        padding: 0 16px;
        margin: 0;
        white-space: nowrap;
    }

    .sidebar-nav li a {
        padding: 7px 14px;
        border-radius: 100px;
        white-space: nowrap;
    }

    .sidebar-nav li a.active::before { display: none; }

    .sidebar-indicator { display: none; }

    .sidebar-divider,
    .sidebar-other-links { display: none; }

    .main-frame { overflow-y: visible; }

    .slide { padding: 28px 20px 16px; }

    .slide.active { padding: 28px 20px 16px; }

    .slide-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .slide-nav { padding: 16px 20px; }

    .standalone-content { max-width: 100%; }
}
