@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

/* ─── DESIGN TOKENS ─── */
:root {
    --bg:            #f4f7fb;
    --bg-elevated:   #ffffff;
    --bg-glass:      #ffffff;
    --bg-glass-strong: #ffffff;
    --surface:       #f7f9fc;
    --surface-hover: #eef3f9;
    --surface-card:  #ffffff;

    --border:        #dfe7f1;
    --border-strong: #cfd9e6;
    --border-glow:   rgba(37, 99, 235, 0.24);

    --text:          #29384c;
    --text-soft:     #4f6178;
    --text-faint:    #77879b;
    --text-heading:  #0f172a;

    --accent:        #2563eb;
    --accent-deep:   #1d4ed8;
    --accent-soft:   rgba(37, 99, 235, 0.08);
    --accent-glow:   rgba(37, 99, 235, 0.14);

    --warm:          #d97706;
    --warm-deep:     #b45309;
    --warm-soft:     rgba(217, 119, 6, 0.1);
    --warm-glow:     rgba(217, 119, 6, 0.14);

    --success:       #059669;
    --success-soft:  rgba(5, 150, 105, 0.1);
    --danger:        #dc2626;
    --danger-soft:   rgba(220, 38, 38, 0.1);

    --gradient-hero: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    --gradient-warm:   linear-gradient(135deg, var(--warm) 0%, #ea580c 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(37,99,235,0.16), rgba(37,99,235,0.05), rgba(217,119,6,0.08));

    --radius-sm:     12px;
    --radius-md:     20px;
    --radius-lg:     28px;
    --radius-xl:     36px;
    --radius-pill:   999px;

    --shadow-glow-sm:  0 0 0 4px rgba(37, 99, 235, 0.08);
    --shadow-glow-md:  0 0 0 6px rgba(37, 99, 235, 0.08);
    --shadow-glow-lg:  0 28px 60px rgba(37, 99, 235, 0.08);
    --shadow-soft:     0 16px 38px rgba(15, 23, 42, 0.07);
    --shadow-strong:   0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-card:     0 16px 34px rgba(15, 23, 42, 0.07);

    --container:     1260px;
    --font-body:     -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading:  'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono:     ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:      cubic-bezier(0, 0, 0.2, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    background:
        linear-gradient(180deg, #fafcff 0%, #f4f7fb 18%, #edf2f8 100%);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: none;
}

body::after {
    content: none;
}

/* ─── LINKS ─── */
a {
    color: inherit;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-underline-offset: 0.2em;
    transition: color 0.2s var(--ease-smooth), text-decoration-color 0.2s var(--ease-smooth);
}

a:hover {
    text-decoration-color: var(--accent);
}

img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ─── ACCESSIBILITY ─── */
.skip-link, .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    width: auto; height: auto;
    margin: 1rem; padding: 0.8rem 1rem;
    clip: auto; white-space: normal;
    z-index: 200;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--accent);
    box-shadow: var(--shadow-soft);
}

/* ─── CONTAINER ─── */
.container {
    width: min(var(--container), calc(100% - 2.5rem));
    margin: 0 auto;
}

.site-main {
    position: relative;
    z-index: 1;
}

/* ─── SECTIONS ─── */
.section {
    padding: 4.75rem 0;
}

.section-alt {
    background: #f4f7fb;
    border-top: 1px solid var(--border);
}



.section-heading {
    max-width: 980px;
    margin-bottom: 2.75rem;
}

.section-heading h2 {
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 2.8rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #6d28d9);
    opacity: 0.7;
}

/* ─── TYPOGRAPHY ─── */
.eyebrow,
.footer-eyebrow,
.cluster-eyebrow {
    margin: 0 0 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eyebrow::before,
.cluster-eyebrow::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    flex-shrink: 0;
}

h1, h2, h3 {
    margin: 0 0 0.8rem;
    font-family: var(--font-heading);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--text-heading);
}

h1 {
    font-size: clamp(2.65rem, 5.2vw, 4.85rem);
    font-weight: 700;
    max-width: 15ch;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

h2 {
    font-size: clamp(1.9rem, 3vw, 2.75rem);
    font-weight: 700;
}

h3 {
    font-size: 1.26rem;
    font-weight: 600;
}

p {
    margin: 0 0 1rem;
    color: var(--text);
}

.lead {
    max-width: 78ch;
    font-size: 1.08rem;
    line-height: 1.78;
    color: var(--text-soft);
}

.lead-tight, .subcopy, .metric-label, .footer-copy,
.footer-note, .card-meta, .section-note, .field-hint {
    color: var(--text-soft);
}

.section-note {
    max-width: 70ch;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 55%, #6d28d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--text-heading);
}

/* ─── BUTTONS ─── */
.button, .inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

.button {
    min-height: 50px;
    padding: 0.86rem 1.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.18s var(--ease-smooth),
        box-shadow 0.25s var(--ease-smooth),
        background-color 0.2s var(--ease-smooth),
        border-color 0.2s var(--ease-smooth);
}

.button:hover, .button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: var(--gradient-accent);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.button-primary::before {
    content: none;
}

.button-primary:hover, .button-primary:focus-visible {
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.button-secondary {
    border-color: var(--border);
    background: #fff;
    color: var(--text-heading);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.button-secondary:hover, .button-secondary:focus-visible {
    border-color: rgba(37, 99, 235, 0.26);
    background: var(--surface-hover);
    box-shadow: var(--shadow-soft);
}

.inline-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    gap: 0.4rem;
    transition: gap 0.25s var(--ease-spring), color 0.2s;
}

.inline-link:not(:has(svg))::after {
    content: '→';
    display: inline-block;
    transition: transform 0.25s var(--ease-spring);
}

.inline-link:hover {
    color: var(--accent-deep);
    gap: 0.5rem;
}

.inline-link:hover:not(:has(svg))::after {
    transform: translateX(3px);
}

.inline-link svg {
    flex-shrink: 0;
    transition: transform 0.25s var(--ease-spring);
}

.inline-link:hover svg {
    transform: translateX(3px);
}

/* ─── PILLS & BADGES ─── */
.micro-pill, .brand-badge, .stage-label, .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 30px;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.micro-pill, .brand-badge, .stage-label {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.status-pill {
    min-height: 28px;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-live {
    background: var(--success-soft);
    color: var(--success);
    border-color: rgba(5, 150, 105, 0.16);
}

.status-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-planned {
    background: var(--warm-soft);
    color: var(--warm);
    border-color: rgba(217, 119, 6, 0.16);
}

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

/* ─── HEADER ─── */
.site-header {
    position: relative;
    z-index: 60;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.header-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
    padding: 0.85rem 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
}

.brand-mark {
    display: inline-flex;
    flex-direction: column;
    gap: 0.3rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: 123px;
    height: auto;
}

.hero-tagline {
    line-height: 1.45;
    letter-spacing: 0.14em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.header-search-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-soft);
    text-decoration: none;
    transition:
        background-color 0.2s var(--ease-smooth),
        color 0.2s var(--ease-smooth),
        border-color 0.2s var(--ease-smooth),
        box-shadow 0.2s var(--ease-smooth);
}

.header-search-link:hover,
.header-search-link:focus-visible {
    background: var(--surface-hover);
    color: var(--text-heading);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.site-nav a {
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.94rem;
    position: relative;
    transition:
        background-color 0.2s var(--ease-smooth),
        color 0.2s var(--ease-smooth),
        box-shadow 0.2s var(--ease-smooth);
}

.site-nav a.is-active,
.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text-heading);
    background: var(--surface-hover);
}

.site-nav a.is-active {
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.nav-cta {
    border: 1px solid rgba(37, 99, 235, 0.16) !important;
    background: rgba(37, 99, 235, 0.07) !important;
    color: var(--accent) !important;
}

.nav-cta.is-active {
    background: var(--gradient-accent) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.18);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.92);
    padding: 0.6rem 1rem;
    color: var(--text-soft);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nav-toggle:hover {
    background: var(--surface-hover);
    color: var(--text-heading);
}

/* ─── HERO ─── */
.hero-section, .page-hero {
    position: relative;
    padding: 3.4rem 0 2.6rem;
    border-bottom: 1px solid rgba(223, 231, 241, 0.82);
    background:
        radial-gradient(ellipse 70% 55% at 12% 20%, rgba(37, 99, 235, 0.07), transparent),
        radial-gradient(ellipse 55% 50% at 90% 80%, rgba(139, 92, 246, 0.05), transparent),
        linear-gradient(180deg, #fafcff 0%, rgba(244, 247, 251, 0) 100%);
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: -60px -120px auto auto;
    width: 480px;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero-copy, .hero-panel { position: relative; z-index: 1; }

.compact-hero {
    padding-bottom: 1.5rem;
}

/* ─── GRID LAYOUTS ─── */
.hero-grid, .split-panel, .tool-layout, .footer-grid,
.prose-grid, .form-shell, .cluster-hero-grid, .tool-hero-grid {
    display: grid;
    gap: 2rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.9fr);
    align-items: start;
}

.cluster-hero-grid, .tool-hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.62fr);
    align-items: end;
}

.hero-intro-row, .hero-actions, .hero-proof-strip,
.card-actions, .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.form-actions {
    gap: 0.85rem;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.5rem;
}

.hero-copy {
    padding-top: 1.2rem;
}

.hero-proof-strip {
    margin-top: 2rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--border);
    position: relative;
}

.hero-proof-strip::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 4rem;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.proof-item {
    display: grid;
    gap: 0.32rem;
    min-width: 168px;
}

.proof-kicker {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─── GLASS CARD SYSTEM ─── */
.glass-card,
.hero-stage, .hero-stage-grid, .problem-grid, .tool-card-grid,
.cluster-grid, .toolbar, .tool-list-grid, .result-metrics,
.result-sections {
    display: grid;
    gap: 1rem;
}

.hero-stage {
    align-self: stretch;
}

/* Base card styles — the glass panel */
.hero-stage-primary, .metric-card, .problem-card,
.tool-card, .cluster-card, .content-card, .catalog-card,
.note-panel, .roadmap-box, .notice, .cluster-side-note,
.toolbar-panel {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    box-shadow: var(--shadow-card);
    transition:
        transform 0.24s var(--ease-smooth),
        box-shadow 0.3s var(--ease-smooth),
        border-color 0.3s var(--ease-smooth);
}

/* Top glow line on cards */
.hero-stage-primary::before,
.metric-card::before,
.problem-card::before,
.content-card::before,
.catalog-card::before,
.note-panel::before,
.cluster-side-note::before,
.toolbar-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.14), rgba(37,99,235,0.04), transparent);
    border-radius: 1px;
}

/* ─── HERO STAGE ─── */
.hero-stage-primary {
    padding: 1.65rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
}

.hero-stage-primary .stage-label {
    width: fit-content;
}

.hero-intro-row + :is(h1, h2, h3, p) {
    margin-top: 1rem;
}

:where(.hero-stage-primary, .cluster-side-note) > :is(.micro-pill, .stage-label, .status-pill) + :is(h1, h2, h3, p, ul, ol) {
    margin-top: 0.9rem;
}

.hero-stage-primary h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    max-width: 18ch;
}

.hero-stage-grid, .result-metrics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* ─── CARD PADDING ─── */
.metric-card, .problem-card, .tool-card, .cluster-card,
.content-card, .catalog-card, .note-panel, .roadmap-box,
.cluster-side-note, .toolbar-panel {
    padding: 1.35rem 1.4rem;
}

/* ─── METRIC CARDS ─── */
.metric-card {
    min-height: 138px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.95));
}

.metric-card.soft {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 252, 249, 0.98));
    border-color: rgba(5, 150, 105, 0.14);
}

.metric-value {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, var(--accent) 0%, #6d28d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-value.small {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

/* ─── PROBLEM / TOOL / CLUSTER GRIDS ─── */
.problem-grid, .tool-card-grid, .cluster-grid,
.tool-list-grid, .result-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.problem-grid > * {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 300px;
}

/* ─── PROBLEM CARDS ─── */
.problem-card, .tool-card h3 a,
.cluster-card h3 a, .catalog-card h2 a {
    text-decoration: none;
}

.problem-card {
    display: grid;
    gap: 0.55rem;
    min-height: 0;
    padding-top: 1.1rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.problem-card::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), #6d28d9);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.problem-card:hover::after { opacity: 1; }

.problem-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.1rem;
}

.problem-card:hover, .problem-card:focus-visible,
.tool-card:hover, .cluster-card:hover, .catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    border-color: var(--border-glow);
}

.problem-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(109,40,217,0.08));
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.86rem;
    font-weight: 700;
    border: 1px solid rgba(37, 99, 235, 0.16);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.10);
}

/* ─── TOOL/CLUSTER/CATALOG CARDS ─── */
.tool-card-grid > *, .cluster-grid > *, .tool-list-grid > * {
    flex: 1 1 calc(33.333% - 0.75rem);
    min-width: 300px;
}

.result-metrics > * {
    flex: 1 1 210px;
    min-width: 200px;
}

.tool-card-grid, .cluster-grid, .prose-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tool-card, .cluster-card, .catalog-card {
    display: grid;
    align-content: start;
    gap: 0.5rem;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.tool-card::before,
.cluster-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.22), rgba(109,40,217,0.12), transparent);
    border-radius: 1px;
}

.blog-stream-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.blog-teaser-card {
    display: grid;
    align-content: start;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.blog-teaser-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    border-color: var(--border-glow);
}

.blog-teaser-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: calc(var(--radius-lg) - 12px);
}

.blog-teaser-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s var(--ease-smooth);
}

.blog-teaser-card:hover .blog-teaser-media img {
    transform: scale(1.03);
}

.blog-teaser-body {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
}

.blog-teaser-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-faint);
    font-size: 0.82rem;
}

.blog-teaser-category {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.18rem 0.65rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: rgba(37, 99, 235, 0.06);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.blog-teaser-card h3 {
    font-size: 1.22rem;
    line-height: 1.2;
    margin-bottom: 0;
}

.blog-teaser-card h3 a {
    text-decoration: none;
    color: var(--text-heading);
}

.blog-teaser-card p {
    margin-bottom: 0;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.7;
}

.section-cta-row {
    display: flex;
    justify-content: center;
    margin-top: 1.6rem;
}

.tool-card-top, .catalog-card-top, .tool-hero-head {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    justify-content: space-between;
}

.tool-hero-head { flex-wrap: wrap; }
.tool-hero-head .status-pill { flex: 0 0 auto; white-space: nowrap; }

.tool-cluster-label {
    font-family: var(--font-mono);
    font-size: 0.73rem;
    color: var(--text-faint);
}

/* Top gradient accent on interactive cards */
.catalog-card::after, .tool-card::after,
.cluster-card::after, .problem-card::after {
    content: '';
    position: absolute;
    top: 0; left: 1.1rem; right: 1.1rem;
    height: 2px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, rgba(37,99,235,0.75), rgba(37,99,235,0.1));
    opacity: 0.55;
    transition: opacity 0.3s var(--ease-smooth);
}

.catalog-card:hover::after, .tool-card:hover::after,
.cluster-card:hover::after, .problem-card:hover::after {
    opacity: 0.85;
}

/* ─── SPLIT PANEL ─── */
.split-panel {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.76fr);
    align-items: start;
}

.manifesto-panel {
    display: grid;
    gap: 0.5rem;
}

.cluster-card .detail-list,
.note-panel .detail-list {
    margin-bottom: 0.2rem;
}

/* ─── NOTE / CTA PANELS ─── */
.note-panel, .cluster-side-note, .cta-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98));
    border-color: rgba(37, 99, 235, 0.12);
}

.cluster-side-note {
    display: grid;
    align-content: start;
    gap: 0.5rem;
}

.cta-card {
    border-color: rgba(217, 119, 6, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 243, 0.98));
}

/* ─── TOOL PAGE LAYOUT ─── */
.tool-layout {
    grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.72fr);
    align-items: start;
}

.tool-main, .tool-side {
    display: grid;
    gap: 1rem;
}

.sticky-card {
    position: sticky;
    top: 108px;
}

.content-card {
    background: var(--bg-glass);
}

.about-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    align-items: start;
}

.about-story-card,
.about-expect-card,
.about-focus-card {
    display: grid;
    gap: 1rem;
}

.about-story-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 255, 0.99));
}

.about-principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.35rem;
}

.about-principle {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-md);
    background: rgba(247, 250, 255, 0.95);
}

.about-principle-index,
.about-focus-kicker {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.about-expect-card {
    align-content: start;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 250, 243, 0.99));
}

.about-expect-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.about-expect-list li {
    position: relative;
    padding: 0.85rem 0 0.85rem 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
}

.about-expect-list li::before {
    content: '';
    position: absolute;
    top: 1.2rem;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: none;
}

.about-focus-card {
    grid-column: 1 / -1;
}

.about-focus-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
    gap: 1rem;
    align-items: end;
}

.about-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.95rem;
}

.about-focus-item {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(247, 250, 255, 0.95);
}

.card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

/* ─── FORMS ─── */
.portal-form {
    display: grid;
    gap: 1.5rem;
}

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

.form-field-full {
    grid-column: 1 / -1;
}

.toolbar {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-bottom: 1.5rem;
}

.toolbar-panel {
    padding: 1rem;
}

.toolbar-field, .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toolbar-field span, .form-field label, .footer-heading {
    font-weight: 600;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.toolbar input, .toolbar select,
.portal-form input, .portal-form select,
.portal-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    transition:
        border-color 0.25s var(--ease-smooth),
        box-shadow 0.25s var(--ease-smooth),
        background-color 0.25s var(--ease-smooth);
}

.toolbar input::placeholder,
.portal-form input::placeholder,
.portal-form textarea::placeholder {
    color: var(--text-faint);
}

.toolbar input:focus, .toolbar select:focus,
.portal-form input:focus, .portal-form select:focus,
.portal-form textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    background: #fff;
}

.portal-form textarea {
    min-height: 150px;
    resize: vertical;
}

.portal-form select,
.toolbar select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237d8ba1' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.portal-form select option,
.toolbar select option {
    background: #fff;
    color: var(--text-heading);
}

.field-error {
    margin: 0;
    font-size: 0.88rem;
    color: var(--danger);
    font-weight: 500;
}

.has-error input, .has-error select, .has-error textarea {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 0 4px var(--danger-soft);
}

/* Checkbox cards */
.checkbox-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.checkbox-card {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.checkbox-card:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
}

.checkbox-card input {
    width: auto;
    min-height: auto;
    margin-top: 0.25rem;
    accent-color: var(--accent);
}

/* ─── CATALOG CARDS ─── */
.catalog-card {
    min-height: 0;
    padding-top: 1rem;
}

/* ─── RESULT CARD ─── */
.result-card {
    border-color: rgba(5, 150, 105, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 252, 248, 0.99));
    box-shadow: var(--shadow-card);
}

.result-sections { margin-top: 1rem; }

.result-section {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ─── ROADMAP / NOTICE ─── */
.roadmap-box {
    background: rgba(247, 250, 255, 0.95);
}

.form-shell {
    grid-template-columns: minmax(0, 820px);
}

.notice {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
}

.notice-success {
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
    background: var(--success-soft);
}

.notice-error {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
    background: var(--danger-soft);
}

/* ─── LISTS ─── */
.detail-list, .link-list, .footer-links {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.detail-list li, .link-list li, .footer-links li {
    margin-bottom: 0.6rem;
    padding-left: 1.4rem;
    position: relative;
}

.detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

.link-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

.footer-links li {
    padding-left: 0;
}

.footer-links li::before {
    display: none;
}

/* ─── HONEYPOT ─── */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ─── FOOTER ─── */
.site-footer {
    position: relative;
    margin-top: 5rem;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.96));
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.05), transparent);
}

.footer-grid {
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(160px, 0.7fr));
}

.footer-eyebrow {
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    margin-bottom: 0.6rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-soft);
    transition: color 0.2s;
}

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

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.9rem;
}

.not-found-panel {
    padding-bottom: 3rem;
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s var(--ease-out),
        transform 0.6s var(--ease-out);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.stagger-children > .fade-in-up:nth-child(1) { transition-delay: 0ms; }
.stagger-children > .fade-in-up:nth-child(2) { transition-delay: 80ms; }
.stagger-children > .fade-in-up:nth-child(3) { transition-delay: 160ms; }
.stagger-children > .fade-in-up:nth-child(4) { transition-delay: 240ms; }
.stagger-children > .fade-in-up:nth-child(5) { transition-delay: 320ms; }
.stagger-children > .fade-in-up:nth-child(6) { transition-delay: 400ms; }

/* ─── CLUSTER ICON SYSTEM ─── */
.cluster-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
}

.cluster-icon svg {
    width: 22px;
    height: 22px;
}

.cluster-icon-wp {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: var(--accent);
}

.cluster-icon-host {
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.12);
    color: var(--success);
}

.cluster-icon-net {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.cluster-icon-ai {
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.12);
    color: var(--warm);
}

.cluster-icon-seo {
    background: rgba(219, 39, 119, 0.08);
    border: 1px solid rgba(219, 39, 119, 0.12);
    color: #ec4899;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1040px) {
    .hero-grid, .split-panel, .tool-layout, .about-layout,
    .footer-grid, .cluster-hero-grid, .tool-hero-grid {
        grid-template-columns: 1fr;
    }

    .sticky-card {
        position: static;
    }

    .footer-grid {
        gap: 2rem;
    }

    .blog-stream-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-principles,
    .about-focus-head {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .site-header {
        padding-top: 0;
    }

    .header-shell {
        justify-content: center;
        min-height: 64px;
        padding: 0.65rem 0;
    }

    .header-controls {
        position: absolute;
        inset: 0;
        display: grid;
        grid-template-columns: 52px 1fr 44px;
        align-items: center;
        gap: 0;
        margin-left: 0;
        pointer-events: none;
    }

    .brand-mark {
        margin: 0 auto;
    }

    .header-search-link {
        grid-row: 1;
        grid-column: 3;
        align-self: center;
        justify-self: end;
        pointer-events: auto;
    }

    .nav-toggle {
        grid-row: 1;
        grid-column: 1;
        align-self: center;
        justify-self: start;
        pointer-events: auto;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.8rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-strong);
        pointer-events: auto;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(2.2rem, 9vw, 3.6rem);
    }

    .hero-tagline {
        font-size: 0.68rem;
    }

    .problem-grid > *,
    .tool-card-grid > *,
    .cluster-grid > *,
    .tool-list-grid > *,
    .blog-stream-grid > *,
    .result-metrics > * {
        flex-basis: 100%;
        min-width: 0;
    }

    .blog-stream-grid {
        grid-template-columns: 1fr;
    }

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

    .metric-card, .problem-card, .tool-card, .cluster-card,
    .content-card, .catalog-card, .note-panel, .cluster-side-note {
        padding: 1.05rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero-section, .page-hero {
        padding: 2rem 0 1.5rem;
    }

    .container {
        width: min(var(--container), calc(100% - 1.5rem));
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    h2 {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .hero-proof-strip {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 1rem;
    }

    .proof-item {
        width: 100%;
        min-width: 0;
    }
}

/* ─── SVG ICONS IN HEADINGS ─── */
h2 svg, h3 svg {
    display: inline-block;
    vertical-align: -0.12em;
    margin-right: 0.45rem;
    opacity: 0.65;
    color: var(--accent);
}

.button svg {
    flex-shrink: 0;
}

.micro-pill svg, .stage-label svg, .brand-badge svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* ─── HERO STAGE ILLUSTRATION ─── */
.hero-stage-illustration {
    margin-top: 0.5rem;
    opacity: 0.35;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ─── PROBLEM ICON ─── */
.problem-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 0;
}

/* ─── NOT FOUND ILLUSTRATION ─── */
.not-found-illustration {
    margin-bottom: 1.5rem;
}

.icon-illustration {
    color: var(--accent);
    opacity: 0.3;
}

/* ─── DETAIL LIST SVG ICONS ─── */
.detail-list li svg {
    position: absolute;
    left: 0;
    top: 0.35em;
    color: var(--accent);
    opacity: 0.6;
}

.detail-list li:has(svg) {
    padding-left: 1.6rem;
}

.detail-list li:has(svg)::before {
    display: none;
}

/* ─── PROOF ITEM SVG ─── */
.proof-item > svg {
    color: var(--accent);
    opacity: 0.5;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   STANDALONE STUDIO TOOLS SECTION
   ═══════════════════════════════════════════════════════════════ */

.tc-studio-tools-section {
    position: relative;
    overflow: hidden;
}

.tc-studio-tools-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.05), transparent 45%),
        radial-gradient(circle at 88% 75%, rgba(6, 182, 212, 0.05), transparent 48%);
    pointer-events: none;
}

/* ── Grid ── */
.tc-studio-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

/* ── Card base ── */
.tc-studio-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
    box-shadow: var(--shadow-card);
}

.tc-studio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    text-decoration: none;
}

/* ── Ambient glow blob ── */
.tc-studio-card__glow {
    position: absolute;
    inset: -40px -40px auto auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    opacity: 0.14;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tc-studio-card:hover .tc-studio-card__glow { opacity: 0.24; }

/* ── Icon bubble ── */
.tc-studio-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    transition: transform 0.22s ease;
}

.tc-studio-card:hover .tc-studio-card__icon { transform: scale(1.08); }

/* ── Body ── */
.tc-studio-card__body { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.tc-studio-card__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-heading);
}

.tc-studio-card__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-heading);
    line-height: 1.2;
}

.tc-studio-card__desc {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.65;
}

/* ── Feature chips ── */
.tc-studio-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
}

.tc-studio-card__chips li {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-faint);
    letter-spacing: 0.02em;
}

/* ── CTA row ── */
.tc-studio-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-heading);
    padding-top: 0.25rem;
    transition: gap 0.2s ease;
}

.tc-studio-card:hover .tc-studio-card__cta { gap: 10px; }

/* ══ Colour themes ══════════════════════════════════════════════ */

/* Violet — MemoraCipher */
.tc-studio-card--violet { border-color: rgba(139, 92, 246, 0.18); }
.tc-studio-card--violet:hover { border-color: rgba(139, 92, 246, 0.38); }
.tc-studio-card--violet .tc-studio-card__glow  { background: #8b5cf6; }
.tc-studio-card--violet .tc-studio-card__icon  { background: rgba(139, 92, 246, 0.08); border-color: rgba(139, 92, 246, 0.22); color: #7c3aed; }
.tc-studio-card--violet .tc-studio-card__label { color: #7c3aed; }
.tc-studio-card--violet .tc-studio-card__cta   { color: #7c3aed; }
.tc-studio-card--violet .tc-studio-card__chips li { border-color: rgba(139, 92, 246, 0.22); color: #7c3aed; background: rgba(139, 92, 246, 0.05); }

/* Purple — Linux Atlas */
.tc-studio-card--purple { border-color: rgba(109, 40, 217, 0.18); }
.tc-studio-card--purple:hover { border-color: rgba(109, 40, 217, 0.38); }
.tc-studio-card--purple .tc-studio-card__glow  { background: #6d28d9; }
.tc-studio-card--purple .tc-studio-card__icon  { background: rgba(109, 40, 217, 0.08); border-color: rgba(109, 40, 217, 0.22); color: #6d28d9; }
.tc-studio-card--purple .tc-studio-card__label { color: #6d28d9; }
.tc-studio-card--purple .tc-studio-card__cta   { color: #6d28d9; }
.tc-studio-card--purple .tc-studio-card__chips li { border-color: rgba(109, 40, 217, 0.22); color: #6d28d9; background: rgba(109, 40, 217, 0.05); }

/* Cyan — AI & LLM */
.tc-studio-card--cyan { border-color: rgba(8, 145, 178, 0.18); }
.tc-studio-card--cyan:hover { border-color: rgba(8, 145, 178, 0.38); }
.tc-studio-card--cyan .tc-studio-card__glow  { background: #0891b2; }
.tc-studio-card--cyan .tc-studio-card__icon  { background: rgba(8, 145, 178, 0.08); border-color: rgba(8, 145, 178, 0.22); color: #0891b2; }
.tc-studio-card--cyan .tc-studio-card__label { color: #0891b2; }
.tc-studio-card--cyan .tc-studio-card__cta   { color: #0891b2; }
.tc-studio-card--cyan .tc-studio-card__chips li { border-color: rgba(8, 145, 178, 0.22); color: #0891b2; background: rgba(8, 145, 178, 0.05); }

/* Teal — Link Safety */
.tc-studio-card--teal { border-color: rgba(20, 184, 166, 0.18); }
.tc-studio-card--teal:hover { border-color: rgba(20, 184, 166, 0.38); }
.tc-studio-card--teal .tc-studio-card__glow  { background: #14b8a6; }
.tc-studio-card--teal .tc-studio-card__icon  { background: rgba(20, 184, 166, 0.08); border-color: rgba(20, 184, 166, 0.22); color: #0f766e; }
.tc-studio-card--teal .tc-studio-card__label { color: #0f766e; }
.tc-studio-card--teal .tc-studio-card__cta   { color: #0f766e; }
.tc-studio-card--teal .tc-studio-card__chips li { border-color: rgba(20, 184, 166, 0.22); color: #0f766e; background: rgba(20, 184, 166, 0.05); }

/* ── Responsive ── */
@media (min-width: 640px) {
    .tc-studio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
    .tc-studio-grid { grid-template-columns: repeat(4, 1fr); }

    .tc-studio-card {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════════════════ */

/* Two-column layout: sidebar left, form right */
.contact-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .contact-shell {
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

/* ── Info sidebar ── */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.contact-info-panel::after {
    content: "";
    position: absolute;
    inset: -40px -40px auto auto;
    width: 160px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
    pointer-events: none;
}

.contact-info-block {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-info-block:first-child {
    padding-top: 0;
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    border: 1px solid rgba(37, 99, 235, 0.14);
    color: var(--accent);
}

.contact-info-label {
    margin: 0 0 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
}

.contact-info-email {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.contact-info-email:hover {
    color: var(--accent-deep);
    text-decoration: underline;
}

.contact-info-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
    font-size: 0.82rem;
    color: var(--text-faint);
    line-height: 1.5;
}

.contact-info-note svg {
    flex-shrink: 0;
    color: var(--accent);
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES (Privacy / Terms)
   ═══════════════════════════════════════════════════════════════ */

.legal-prose {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.legal-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.legal-section:first-child {
    padding-top: 0;
}

.legal-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text);
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
}

.legal-section p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    margin: 0.5rem 0 0.75rem 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: disc;
}

.legal-section ul li {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.legal-section ul li strong {
    color: var(--text);
    font-weight: 600;
}

.legal-section a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    text-decoration: underline;
    color: var(--accent-deep);
}

/* ── About page: origin story card ── */
.about-origin-card p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 0.85rem;
}
.about-origin-card p:last-child { margin-bottom: 0; }

/* ── About page: contact card ── */
.about-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .about-contact-grid {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

.about-contact-card h2 {
    margin-bottom: 0.75rem;
}

.about-contact-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 1.25rem;
}

.about-contact-emails {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.about-contact-email-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.about-contact-email-block:hover {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.08);
}

.about-contact-email-block svg {
    flex-shrink: 0;
    color: var(--accent);
}

.about-contact-email-block span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.about-contact-email-block strong {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
}

.about-contact-email-block span > *:last-child {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
}

.about-contact-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES PAGE
   ═══════════════════════════════════════════════════════════════ */

.services-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Work areas ── */
.services-area-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

@media (min-width: 640px) {
    .services-area-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.services-area-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.services-area-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    border: 1px solid rgba(37, 99, 235, 0.14);
    color: var(--accent);
    margin-top: 2px;
}

.services-area-item h3 {
    font-size: 0.92rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text);
    margin: 0 0 0.3rem;
}

.services-area-item p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

/* ── How it works steps ── */
.services-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1.25rem;
}

.services-step {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}

.services-step:first-child { padding-top: 0; }
.services-step:last-child  { border-bottom: none; padding-bottom: 0; }

.services-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-top: 2px;
}

.services-step h3 {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text);
    margin: 0 0 0.35rem;
}

.services-step p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* ── What to expect grid ── */
.services-expect-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

@media (min-width: 640px) {
    .services-expect-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.services-expect-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.services-expect-item > svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 3px;
}

.services-expect-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text);
    margin: 0 0 0.3rem;
}

.services-expect-item p {
    font-size: 0.87rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

/* ── CTA card ── */
.services-cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .services-cta-grid {
        grid-template-columns: 1fr auto;
    }
}

.services-cta-card h2 {
    margin-bottom: 0.75rem;
}

.services-cta-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 1.25rem;
}

.services-cta-emails {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.services-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ── Tools page: empty state ── */
.tools-empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-faint);
}

.tools-empty-state svg {
    opacity: 0.4;
}

.tools-empty-state p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.tools-empty-state button {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.tools-empty-state button:hover {
    color: var(--accent-deep);
}
