html,
body {
    margin: 0;
    padding: 0;
    background: var(--site-bg);
    color: var(--site-text);
}

/* ══ Editorial Hero ══════════════════════════════════════════════════════════ */

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

.hero-inner {
    padding: 3.5rem 1.5rem 2.5rem;
    max-width: 720px;
    box-sizing: border-box;
}

.hero-inner > * {
    opacity: 0;
    animation: heroFadeIn 0.55s ease forwards;
}

/* Eyebrow */
.hero-eyebrow-mono {
    margin: 0 0 1.25rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--site-text-muted, #64748b);
}

/* Headline */
.hero-title-serif {
    margin: 0 0 0.9rem;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--site-text-strong);
    font-weight: 400;
}

.hero-title-italic {
    display: block;
    font-style: italic;
    color: var(--site-text-muted);
    font-weight: 400;
}

/* Blinking cursor on second line */
.hero-title-italic::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 0.85em;
    background: currentColor;
    margin-left: 0.1em;
    vertical-align: text-bottom;
    animation: heroCursor 1s step-end infinite;
    opacity: 0.5;
}

@keyframes heroCursor {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 0; }
}

/* Divider */
.hero-divider {
    width: 48px;
    height: 1.5px;
    background: var(--site-border);
    margin: 0 0 1.25rem;
}

/* Subheadline */
.hero-subhead {
    margin: 0 0 1.75rem;
    max-width: 520px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--site-text-muted);
}

/* Stats row */
.hero-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 1.5rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-right: 1.5rem;
}

.hero-stat:last-child {
    padding-right: 0;
    padding-left: 1.5rem;
}

.hero-stat:nth-child(3) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.hero-stat-divider {
    width: 1px;
    height: 2rem;
    background: var(--site-border);
    flex-shrink: 0;
}

.hero-stat-num {
    font-family: 'DM Mono', monospace;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--site-text-strong);
    line-height: 1;
    tabular-nums: all;
}

.hero-stat-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.74rem;
    color: var(--site-text-muted);
    line-height: 1.4;
}

/* Tags row */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.75rem;
}

.hero-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.71rem;
    font-weight: 400;
    padding: 0.32em 0.75em;
    border-radius: 4px;
    border: 1px solid var(--site-border);
    color: var(--site-text-muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: transparent;
}

/* CTA ghost link */
.hero-ghost-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--site-text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 0 0.25rem;
    transition: color 140ms ease;
}

.hero-ghost-link:hover {
    color: var(--site-text-strong);
}

.hero-cta-row {
    align-items: center;
}

@media (max-width: 760px) {
    .hero-inner {
        padding: 2rem 1rem 1.75rem;
    }
    .hero-ghost-link {
        width: auto;
    }
}

/* ── Hero enhancements (v2) ──────────────────────────────────────────── */

/* Status dot in eyebrow */
.hero-eyebrow-mono {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.hero-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: heroStatusPulse 2.2s ease-out infinite;
    flex-shrink: 0;
}
@keyframes heroStatusPulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.hero-eyebrow-sep {
    opacity: 0.45;
    margin: 0 0.1rem;
}
.hero-eyebrow-loc {
    opacity: 0.8;
}

/* Kicker — one-liner under headline */
.hero-kicker {
    margin: 0 0 1.25rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--site-text-muted);
    max-width: 560px;
}
.hero-kicker strong {
    color: var(--site-text-strong);
    font-weight: 600;
}

/* Subhead: strong tokens */
.hero-subhead strong {
    color: var(--site-text-strong);
    font-weight: 600;
}

/* Tags row: label + accent hover */
.hero-tag-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--site-text-muted);
    opacity: 0.7;
    padding: 0.32em 0.25em 0.32em 0;
    align-self: center;
}
.hero-tag {
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}
.hero-tag:hover {
    border-color: var(--site-accent, #38bdf8);
    color: var(--site-text-strong);
    background: rgba(56, 189, 248, 0.06);
    transform: translateY(-1px);
}

/* Accent ghost link (e.g., Quiz) */
.hero-ghost-link--accent {
    color: var(--site-accent, #38bdf8);
}
.hero-ghost-link--accent:hover {
    color: var(--site-text-strong);
}

/* Now line — current focus */
.hero-now {
    margin: 1.5rem 0 0;
    padding: 0.75rem 0 0;
    border-top: 1px dashed var(--site-border);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--site-text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.55rem;
    max-width: 620px;
}
.hero-now-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--site-accent, #38bdf8);
    font-weight: 600;
    padding: 2px 8px;
    border: 1px solid currentColor;
    border-radius: 100px;
    opacity: 0.9;
}
.hero-now-text {
    flex: 1;
    min-width: 260px;
    font-style: italic;
    opacity: 0.88;
}

@media (max-width: 760px) {
    .hero-kicker { font-size: 0.9rem; }
    .hero-tag-label { display: none; }
    .hero-cta-row { flex-wrap: wrap; gap: 0.6rem; }
    .hero-now {
        font-size: 0.8rem;
        gap: 0.45rem;
        margin-top: 1.2rem;
    }
    .hero-now-text { min-width: 0; }
}

/* ══ End Editorial Hero ══════════════════════════════════════════════════════ */

.au-home {
    --home-shell-width: 1440px;
    --home-text: var(--site-text);
    --home-text-strong: var(--site-text-strong);
    --home-text-muted: var(--site-text-muted);
    --home-border: var(--site-border);
    --home-accent: var(--site-accent);
    background: var(--site-bg);
    color: var(--home-text);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    position: relative;
}

[data-theme="dark"] .au-home {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 35%),
        linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

[data-theme="light"] .au-home {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.05), transparent 35%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.au-home .container {
    width: min(var(--home-shell-width), calc(100% - 2rem));
    margin: 0 auto;
}

.home-hero .container {
    width: min(var(--home-shell-width), calc(100% - 2rem));
    max-width: 100%;
    padding: 0;
}

.home-hero {
    padding: 0;
}

.home-section {
    padding: 0 0 4.5rem;
}

.home-section--tight {
    padding-bottom: 2.75rem;
}

.home-card {
    border: 1px solid var(--home-border);
    border-radius: 24px;
    background: var(--site-bg-alt);
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.1);
}

[data-theme="dark"] .home-card {
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.24);
}

.hero-simple {
    max-width: 100%;
    width: 100%;
    padding: 2.5rem 3rem;
    box-sizing: border-box;
}

.hero-eyebrow,
.section-kicker {
    margin: 0 0 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Animated pulse dot */
.hero-eyebrow-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ds-accent, #f97316);
    display: inline-block;
    flex-shrink: 0;
    position: relative;
    animation: eyebrowGlow 2.4s ease-in-out infinite;
}
.hero-eyebrow-pulse::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px solid rgba(249, 115, 22, 0.45);
    animation: eyebrowRing 2.4s ease-in-out infinite;
}

@keyframes eyebrowGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.7); }
    50%       { box-shadow: 0 0 0 7px rgba(249,115,22,0); }
}
@keyframes eyebrowRing {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.6); opacity: 0; }
}

/* Eyebrow pill badge */
.hero-eyebrow-badge {
    background: linear-gradient(90deg, rgba(249,115,22,0.14) 0%, rgba(251,191,36,0.08) 100%);
    border: 1px solid rgba(249,115,22,0.28);
    border-radius: 100px;
    padding: 0.28em 0.9em;
    color: #fdba74;
    letter-spacing: 0.12em;
}
.hero-eyebrow-years {
    font-style: normal;
    color: rgba(253,186,116,0.72);
}

/* ── Hero title ───────────────────────────────── */
.hero-title,
.section-heading h2,
.topic-map-card h3 {
    margin: 0;
    font-family: "Outfit", "Inter", sans-serif;
}

.hero-title {
    font-size: clamp(1.72rem, 2.6vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

/* Line 1: "AdTech, explained practically." — white gradient (dark theme) */
.hero-title-line1 {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 55%, #c4c4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-title-line1 {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .hero-title-line2 {
    color: #475569;
    -webkit-text-fill-color: #475569;
}

[data-theme="light"] .hero-role {
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
}

[data-theme="light"] .hero-eyebrow-badge {
    color: #c2410c;
}

[data-theme="light"] .hero-eyebrow-years {
    color: rgba(194, 65, 12, 0.78);
}

[data-theme="light"] .hero-kw {
    color: #c2410c;
    -webkit-text-fill-color: #c2410c;
}

/* "practically." — orange flame gradient + glow */
.hero-title-accent {
    background: linear-gradient(90deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(249,115,22,0.50));
}

/* Line 2: subtitle — smaller, muted */
.hero-title-line2 {
    display: block;
    font-size: 0.52em;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.55;
    margin-top: 0.65rem;
    color: var(--ds-text-secondary, #8888a8);
    -webkit-text-fill-color: var(--ds-text-secondary, #8888a8);
}

/* Keyword pill badges inside subtitle */
.hero-kw {
    display: inline-block;
    background: rgba(249,115,22,0.10);
    border: 1px solid rgba(249,115,22,0.30);
    color: #fb923c;
    -webkit-text-fill-color: #fb923c;
    border-radius: 5px;
    padding: 0.04em 0.42em;
    font-size: 0.95em;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.5;
    vertical-align: baseline;
}

/* ── Hero summary ─────────────────────────────── */
.hero-summary,
.section-heading p,
.card-copy {
    color: var(--home-text);
    line-height: 1.7;
}

.hero-summary {
    max-width: 720px;
    margin: 1.25rem 0 0;
    font-size: 1rem;
}

/* "Deputy Manager at …" first line */
.hero-role {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--ds-text, #e6e6f0);
    -webkit-text-fill-color: var(--ds-text, #e6e6f0);
    font-weight: 500;
    font-size: 1.02rem;
}

/* "Samsung Ads" — sky-to-indigo gradient */
.hero-company {
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.35rem;
}

.home-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(249, 115, 22, 0.7);
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff7ed;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 1.7rem;
}

.section-heading h2 {
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    line-height: 1.1;
}

.about-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.85fr);
    gap: 1.5rem;
    width: 100%;
    padding: 1.55rem;
}

.about-copy,
.about-side {
    min-width: 0;
}

.about-copy h2 {
    margin: 0;
    color: var(--home-text-strong);
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(1.6rem, 2.3vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.lead-copy {
    margin: 0.9rem 0 0;
    color: var(--home-text);
    font-size: 1rem;
    line-height: 1.8;
}

.about-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

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

.about-points li {
    position: relative;
    padding-left: 1rem;
    color: var(--home-text);
    line-height: 1.7;
}

.about-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--home-accent);
}

.home-button--secondary {
    border-color: rgba(56, 189, 248, 0.28);
    background: rgba(56, 189, 248, 0.1);
    color: #e0f2fe;
}

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

.topic-map-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 200ms ease, transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .topic-map-card {
    background: rgba(15, 23, 42, 0.5);
}

.topic-map-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.5);
    background: var(--site-bg-alt);
    box-shadow: 0 12px 36px rgba(14, 165, 233, 0.15);
}

[data-theme="light"] .topic-map-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    background: #f1f5f9;
}

.topic-map-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 30px;
    padding: 0 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.24);
    background: rgba(56, 189, 248, 0.1);
    color: var(--site-text-strong);
    font-size: 0.74rem;
    font-weight: 700;
}

[data-theme="light"] .topic-map-tag {
    border-color: rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.08);
    color: #0c4a6e;
}

.topic-map-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.topic-map-icon {
    display: inline-flex;
    align-items: center;
    color: var(--site-accent);
    opacity: 0.7;
    flex-shrink: 0;
}

.topic-map-card:hover .topic-map-icon {
    opacity: 1;
}

.topic-map-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.topic-map-list li {
    position: relative;
    padding-left: 1rem;
    color: var(--home-text);
    line-height: 1.6;
}

.topic-map-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: var(--home-accent);
}

.text-link {
    color: var(--site-accent);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    opacity: 0.8;
}

.story-section-shell {
    margin-top: 3.25rem;
    scroll-margin-top: 92px;
}

.story-section-heading {
    max-width: 760px;
    margin-bottom: 1.3rem;
}

.story-section-kicker {
    margin: 0 0 0.45rem;
    color: #7dd3fc;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.story-section-heading h3 {
    margin: 0;
    color: var(--home-text-strong);
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    line-height: 1.12;
}

.story-section-heading p {
    margin: 0.7rem 0 0;
    max-width: 64ch;
    color: var(--home-text);
    font-size: 1rem;
    line-height: 1.75;
}

.flow-diagram {
    overflow-x: auto;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.84));
    padding: 1.35rem 1.1rem 1rem;
    box-shadow: 0 20px 44px rgba(2, 6, 23, 0.24);
}

.flow-diagram svg {
    display: block;
    min-width: 760px;
    width: 100%;
    height: auto;
}

.flow-jump-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.flow-jump-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: #dbeafe;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.flow-jump-pill:hover {
    transform: translateY(-1px);
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.32);
}

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

.flow-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.95rem;
    align-items: start;
    padding: 1.15rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
}

.flow-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #eff6ff;
    font-size: 0.92rem;
    font-weight: 800;
}

.flow-copy {
    min-width: 0;
}

.flow-copy h3 {
    margin: 0;
    color: var(--home-text-strong);
    font-size: 1rem;
    line-height: 1.55;
}

.flow-copy p {
    margin: 0.5rem 0 0;
    color: var(--home-text);
    font-size: 1rem;
    line-height: 1.8;
}

.story-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.8);
}

.story-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.story-table th,
.story-table td {
    padding: 1rem 1.05rem;
    text-align: left;
    border-top: 1px solid rgba(51, 65, 85, 0.75);
    color: var(--home-text);
    font-size: 1rem;
    line-height: 1.7;
    vertical-align: top;
}

.story-table thead th {
    border-top: none;
    color: #e0f2fe;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(2, 6, 23, 0.28);
}

.story-table tbody td:first-child {
    color: var(--home-text-strong);
    font-weight: 700;
}

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

.story-code-card {
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
}

.story-code-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.15rem 0;
}

.story-code-header h4 {
    margin: 0;
    color: var(--home-text-strong);
    font-size: 1rem;
}

.story-code-header p {
    margin: 0.45rem 0 0;
    color: var(--home-text);
    font-size: 1rem;
    line-height: 1.7;
}

.story-code-lang {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    background: rgba(56, 189, 248, 0.08);
    color: #dbeafe;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.story-code-card pre {
    margin: 1rem 1.15rem 1.15rem;
    padding: 1rem;
    border-radius: 18px;
    overflow-x: auto;
    background: rgba(2, 6, 23, 0.88);
    color: #e2e8f0;
    font-size: 0.86rem;
    line-height: 1.65;
}

/* Hero RTB flow diagram */
.hero-flow-figure {
    margin: 1.5rem 0 0;
    padding: 0.1rem;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--home-border);
    background: rgba(56, 189, 248, 0.03);
    -webkit-overflow-scrolling: touch;
}

.hero-flow-figure svg {
    display: block;
    min-width: 560px;
    width: 100%;
    height: auto;
}

[data-theme="light"] .hero-flow-figure {
    background: rgba(14, 165, 233, 0.03);
    border-color: rgba(14, 165, 233, 0.15);
}

body::before,
.ripple {
    display: none !important;
}

/* ─── Light mode overrides for hardcoded dark values ─────────────────────── */

[data-theme="light"] .flow-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
}

[data-theme="light"] .story-table-wrap {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .story-table {
    background: #ffffff;
}

[data-theme="light"] .story-table thead th {
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
}

[data-theme="light"] .story-table th,
[data-theme="light"] .story-table td {
    border-top-color: rgba(15, 23, 42, 0.1);
    color: #334155;
}

[data-theme="light"] .story-table tbody td:first-child {
    color: #0f172a;
}

[data-theme="light"] .story-code-card {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .story-code-card pre {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .flow-diagram {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .home-card {
    background: #ffffff;
}

@media (max-width: 1100px) {
    .topic-map-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .au-home .container {
        width: min(var(--home-shell-width), calc(100% - 1.25rem));
    }

    .home-hero {
        padding-top: 0.75rem;
    }

    .hero-simple,
    .topic-map-card,
    .about-card {
        padding: 1.1rem;
    }

    .about-card {
        grid-template-columns: 1fr;
    }

    .topic-map-grid {
        grid-template-columns: 1fr;
    }

    .story-section-shell {
        margin-top: 2.5rem;
    }

    .flow-jump-rail,
    .flow-wrap,
    .story-example-grid {
        grid-template-columns: 1fr;
    }

    .flow-diagram {
        padding: 1rem 0.8rem 0.85rem;
    }

    .flow-diagram svg {
        min-width: 680px;
    }

    .flow-wrap,
    .story-example-grid {
        display: grid;
    }

    .flow-card {
        grid-template-columns: 2.2rem 1fr;
        padding: 1rem;
    }

    .story-code-header {
        flex-direction: column;
    }

    .button-row,
    .home-button {
        width: 100%;
    }
}

/* Glossary page: avoid clipped text from premium glass overflow */
.au-home.glossary-page .hub-hero-card,
.au-home.glossary-page .glossary-entry.home-card {
    overflow: visible !important;
}

.au-home.glossary-page .glossary-hero-inner {
    padding: 0.2rem 0.35rem 0.5rem;
    box-sizing: border-box;
}

.au-home.glossary-page .glossary-lede {
    max-width: min(72ch, 100%);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.au-home.glossary-page .glossary-lede a {
    color: #38bdf8;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.au-home.glossary-page .glossary-lede a:hover {
    color: #7dd3fc;
}

[data-theme="light"] .au-home.glossary-page .glossary-lede a {
    color: #0284c7;
}

.au-home.glossary-page .glossary-jump {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.au-home.glossary-page .glossary-jump__label {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--home-text-muted);
}

.au-home.glossary-page .glossary-jump__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.au-home.glossary-page .glossary-jump__pill {
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: rgba(56, 189, 248, 0.08);
    color: #e0f2fe;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.au-home.glossary-page .glossary-jump__pill:hover {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.14);
}

[data-theme="light"] .au-home.glossary-page .glossary-jump__pill {
    color: #0c4a6e;
}

.au-home.glossary-page .glossary-term-section {
    scroll-margin-top: 5.5rem;
}

.au-home.glossary-page .glossary-entries {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: min(52rem, 100%);
}

.au-home.glossary-page .glossary-entry {
    padding: 1.2rem 1.25rem;
    border-radius: 22px;
}

.au-home.glossary-page .glossary-entry__term {
    margin: 0;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--home-text-strong);
}

.au-home.glossary-page .glossary-entry__def {
    margin: 0.65rem 0 0;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--home-text);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.au-home.glossary-page .glossary-entry__ex {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(56, 189, 248, 0.06);
}

.au-home.glossary-page .glossary-entry__ex-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.au-home.glossary-page .glossary-entry__ex-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--home-text);
    overflow-wrap: break-word;
}

@media (max-width: 760px) {
    .au-home.glossary-page .glossary-entry {
        padding: 1rem 1rem;
    }
}

/* ============================================================
   HERO v3 — Compact platform design (theme-agnostic dark section)
   ============================================================ */
.home-hero.hero-v3,
[data-theme="light"] .home-hero.hero-v3,
[data-theme="dark"]  .home-hero.hero-v3 {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.75rem, 3.5vw, 2.75rem) !important;
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 55%, #0b1220 100%) !important;
    color: #e6edf7 !important;
    isolation: isolate;
    border-radius: 0;
}
.hero-v3 .hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-v3 .hero-bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 50%, transparent 85%);
            mask-image: radial-gradient(ellipse at 50% 30%, #000 50%, transparent 85%);
}
@keyframes slowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.hero-v3 .hero-bg-glow {
    position: absolute; width: 520px; height: 520px; border-radius: 50%;
    filter: blur(90px); opacity: .65;
    animation: slowRotate 24s linear infinite;
}
.hero-v3 .hero-bg-glow--a {
    top: -120px; left: -120px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}
.hero-v3 .hero-bg-glow--b {
    bottom: -160px; right: -140px; opacity: .45;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
}
.hero-v3 .hero-inner {
    position: relative; z-index: 1;
    max-width: 1040px; margin: 0 auto; text-align: center;
}
.hero-v3 .hero-inner > * { opacity: 0; animation: heroFadeUp .7s ease-out forwards; }
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-v3 .hero-eyebrow-mono {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
    color: #94a3b8;
    padding: .3rem .7rem; border-radius: 999px;
    background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.25);
    margin: 0 0 .85rem;
}
.hero-v3 .hero-status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #34d399; animation: heroPulse 2s infinite;
}
@keyframes heroPulse {
    0%   { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
    70%  { box-shadow: 0 0 0 10px rgba(52,211,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.hero-v3 .hero-title-serif {
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 4.2vw, 2.75rem);
    line-height: 1.1; letter-spacing: -.02em;
    margin: 0 0 .65rem; color: #f8fafc !important;
}
.hero-v3 .hero-title-italic {
    font-style: normal;
    background: linear-gradient(90deg, #818cf8 0%, #22d3ee 50%, #34d399 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

.hero-v3 .hero-subhead {
    max-width: 640px; margin: 0 auto 1.2rem;
    font-size: clamp(.9rem, 1.2vw, 1rem); line-height: 1.5;
    color: #cbd5e1 !important;
}
.hero-v3 .hero-subhead strong { color: #f1f5f9 !important; font-weight: 600; }

.hero-v3 .hero-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .55rem; max-width: 760px; margin: 0 auto 1.25rem;
}
.hero-v3 .hero-cta {
    display: flex; align-items: center; gap: .55rem;
    padding: .6rem .75rem; border-radius: 10px;
    background: rgba(30,41,59,.65); border: 1px solid rgba(148,163,184,.15);
    color: #e6edf7 !important; text-decoration: none; text-align: left;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
    backdrop-filter: blur(8px);
}
.hero-v3 .hero-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(129,140,248,.5);
    background: rgba(51,65,85,.75);
    box-shadow: 0 8px 22px -10px rgba(99,102,241,.5);
}
.hero-v3 .hero-cta-ico {
    flex: 0 0 28px; height: 28px; width: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(99,102,241,.18); color: #a5b4fc; font-size: .82rem;
}
.hero-v3 .hero-cta-title { font-weight: 600; font-size: .85rem; color: #f1f5f9 !important; line-height: 1.2; }
.hero-v3 .hero-cta--primary {
    background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    border-color: transparent;
    box-shadow: 0 8px 22px -10px rgba(99,102,241,.6);
}
.hero-v3 .hero-cta--primary .hero-cta-ico { background: rgba(255,255,255,.22); color: #fff; }
.hero-v3 .hero-cta--primary .hero-cta-title { color: #fff !important; }
.hero-v3 .hero-cta--primary:hover { filter: brightness(1.08); border-color: transparent; }

.hero-v3 .hero-selector {
    max-width: 560px; margin: 0 auto 1.25rem;
    padding: .7rem .85rem .75rem;
    background: rgba(15,23,42,.7);
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    text-align: left;
}
.hero-v3 .hero-selector-label {
    display: block; font-size: .72rem; font-weight: 600;
    color: #cbd5e1 !important; margin-bottom: .4rem;
    text-transform: uppercase; letter-spacing: .05em;
}
.hero-v3 .hero-selector-row { display: flex; gap: .45rem; align-items: stretch; }
.hero-v3 .hero-selector-input {
    flex: 1; min-width: 0;
    padding: .55rem .75rem; font-size: .88rem;
    background: rgba(2,6,23,.7); color: #f1f5f9 !important;
    border: 1px solid rgba(148,163,184,.25); border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
                      linear-gradient(135deg, #94a3b8 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.hero-v3 .hero-selector-input:focus {
    outline: none; border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129,140,248,.25);
}
.hero-v3 .hero-selector-go {
    padding: .55rem .9rem; font-size: .82rem; font-weight: 600;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    color: #fff !important; border: none; border-radius: 8px; cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
    box-shadow: 0 6px 20px -8px rgba(99,102,241,.6); white-space: nowrap;
}
.hero-v3 .hero-selector-go:hover { transform: translateY(-1px); filter: brightness(1.08); }

.hero-v3 .hero-stats {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: .3rem .9rem; margin: 0 0 1rem;
    padding: .55rem .85rem;
    background: rgba(30,41,59,.35);
    border: 1px solid rgba(148,163,184,.12);
    border-radius: 10px;
    width: fit-content; margin-left: auto; margin-right: auto; margin-bottom: 1rem;
}
.hero-v3 .hero-stat {
    display: inline-flex; align-items: baseline; gap: .3rem; min-width: 0;
}
.hero-v3 .hero-stat-num {
    font-family: "Inter", sans-serif; font-weight: 700; font-size: 1rem;
    color: #f1f5f9 !important; line-height: 1;
}
.hero-v3 .hero-stat-label {
    font-size: .68rem; color: #94a3b8 !important;
    letter-spacing: .04em; text-transform: uppercase;
}

.hero-v3 .hero-tags {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: .35rem; max-width: 720px; margin: 0 auto;
}
.hero-v3 .hero-tag {
    display: inline-block;
    padding: .22rem .6rem; font-size: .7rem; font-weight: 500;
    color: #cbd5e1 !important; background: rgba(30,41,59,.55);
    border: 1px solid rgba(148,163,184,.18); border-radius: 999px;
    transition: transform .15s ease, border-color .15s ease, color .15s ease, background .15s ease;
}
.hero-v3 .hero-tag:hover {
    transform: translateY(-1px);
    color: #f1f5f9; border-color: rgba(129,140,248,.5);
    background: rgba(99,102,241,.12);
}

.hero-v3 .hero-links {
    display: flex; justify-content: center; align-items: center;
    gap: .6rem; flex-wrap: wrap; margin: 0 auto;
}
.hero-v3 .hero-link {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem .9rem; border-radius: 999px;
    font-size: .82rem; font-weight: 600;
    color: #cbd5e1 !important; text-decoration: none;
    background: rgba(30,41,59,.55);
    border: 1px solid rgba(148,163,184,.18);
    transition: transform .15s ease, border-color .15s ease, color .15s ease, background .15s ease;
}
.hero-v3 .hero-link:hover {
    transform: translateY(-1px);
    color: #f1f5f9 !important;
    border-color: rgba(129,140,248,.5);
    background: rgba(99,102,241,.12);
}
.hero-v3 .hero-link-ico { font-size: .9rem; line-height: 1; }

@media (max-width: 640px) {
    .hero-v3 .hero-cta-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-v3 .hero-cta { padding: .55rem .65rem; }
    .hero-v3 .hero-cta-ico { flex-basis: 26px; width: 26px; height: 26px; font-size: .75rem; }
    .hero-v3 .hero-cta-title { font-size: .8rem; }
    .hero-v3 .hero-stats { gap: .2rem .6rem; padding: .45rem .65rem; }
    .hero-v3 .hero-stat-num { font-size: .9rem; }
    .hero-v3 .hero-stat-label { font-size: .62rem; }
    .hero-v3 .hero-selector-row { flex-direction: column; }
    .hero-v3 .hero-selector-go { width: 100%; }
    .hero-v3 .hero-tag { font-size: .66rem; padding: .2rem .55rem; }
}
@media (max-width: 480px) {
    .hero-v3 .hero-cta-grid { grid-template-columns: 1fr; }
    .hero-v3 .hero-cta { padding: .65rem .85rem; }
    .hero-v3 .hero-cta-title { font-size: .85rem; }
    .hero-v3 .hero-stats {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 290px;
        gap: .4rem;
        padding: .6rem;
    }
    .hero-v3 .hero-stat {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: .4rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-v3 .hero-inner > * { animation: none; opacity: 1; }
    .hero-v3 .hero-status-dot { animation: none; }
}

/* =========================================================
   UI Enhancement Pass — minimal polish (2026-05)
   No markup changes; pure CSS uplift to hero CTAs, topic cards,
   focus rings, and section heading.
   ========================================================= */

/* Hero primary CTA — subtle gradient + lift */
.hero-v3 .hero-cta--primary {
    background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px -8px rgba(15, 23, 42, .55);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.hero-v3 .hero-cta--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -10px rgba(15, 23, 42, .6);
    background: linear-gradient(135deg, #111827 0%, #020617 100%);
}

/* Hero secondary CTAs — soft hover */
.hero-v3 .hero-cta:not(.hero-cta--primary) {
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.hero-v3 .hero-cta:not(.hero-cta--primary):hover {
    transform: translateY(-2px);
    border-color: rgba(15, 23, 42, .35);
    box-shadow: 0 8px 18px -12px rgba(15, 23, 42, .35);
}

/* Hero icons — pop on hover */
.hero-v3 .hero-cta-ico {
    transition: transform .25s ease;
}
.hero-v3 .hero-cta:hover .hero-cta-ico {
    transform: scale(1.15) rotate(-4deg);
}

/* Topic cards — smoother lift + accent border on hover */
.topic-map-card-link {
    position: relative;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.topic-map-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    transition: box-shadow .25s ease;
}
.topic-map-card-link:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, .45);
    box-shadow: 0 14px 30px -18px rgba(15, 23, 42, .35);
}
.topic-map-card-link:hover::after {
    box-shadow: 0 0 0 1px rgba(99, 102, 241, .25);
}
.topic-map-card-link:hover .topic-map-icon {
    color: #6366f1;
    transform: rotate(-6deg) scale(1.08);
}
.topic-map-icon {
    transition: transform .25s ease, color .25s ease;
}
.topic-map-card-link:hover .text-link {
    transform: translateX(3px);
}
.topic-map-card-link .text-link {
    transition: transform .2s ease;
    display: inline-block;
}

/* Section heading — accent kicker (dark-first: site default is dark) */
.au-home .section-kicker {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, .18);
    color: #a5b4fc;
    font-weight: 600;
    letter-spacing: .04em;
}

[data-theme="light"] .au-home .section-kicker {
    background: rgba(99, 102, 241, .08);
    color: #4f46e5;
}

/* Universal focus ring upgrade for keyboard users */
.au-home a:focus-visible,
.au-home button:focus-visible,
.au-home select:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 3px;
    border-radius: 8px;
}

/* Dark theme alignment */
[data-theme="dark"] .hero-v3 .hero-cta--primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}
[data-theme="dark"] .au-home .section-kicker {
    background: rgba(99, 102, 241, .18);
    color: #a5b4fc;
}
[data-theme="dark"] .topic-map-card-link:hover {
    border-color: rgba(165, 180, 252, .45);
}

@media (prefers-reduced-motion: reduce) {
    .topic-map-card-link,
    .hero-v3 .hero-cta,
    .hero-v3 .hero-cta-ico,
    .topic-map-icon,
    .topic-map-card-link .text-link {
        transition: none;
    }
}

/* Minimal hero variant — 2026-05 */
.hero-v3 .hero-inner--minimal {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(3.5rem, 8vw, 6rem) 1.25rem clamp(2.5rem, 6vw, 4rem);
}
.hero-v3 .hero-inner--minimal .hero-eyebrow-mono {
    justify-content: center;
    color: #cbd5e1;
    background: rgba(99,102,241,.12);
    border-color: rgba(129,140,248,.35);
}
.hero-v3 .hero-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.4rem, 5.6vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 1rem 0 1.1rem;
    color: #f8fafc;
    font-weight: 400;
}
.hero-v3 .hero-title-accent {
    display: inline-block;
    background: linear-gradient(135deg, #818cf8 0%, #22d3ee 55%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
}
.hero-v3 .hero-inner--minimal .hero-subhead {
    font-size: clamp(1rem, 1.25vw, 1.1rem);
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto 2rem;
    color: #cbd5e1 !important;
    opacity: 1;
}
.hero-v3 .hero-inner--minimal .hero-subhead strong {
    color: #f8fafc !important;
    font-weight: 600;
}
.hero-v3 .hero-cta-grid--minimal {
    display: inline-flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.25rem;
}
.hero-v3 .hero-cta-grid--minimal .hero-cta {
    padding: .85rem 1.5rem;
    min-width: 0;
    font-size: .92rem;
    border-radius: 999px;
}
.hero-v3 .hero-inner--minimal .hero-cta--primary {
    background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    border-color: transparent;
    box-shadow: 0 10px 28px -10px rgba(99,102,241,.55);
}
.hero-v3 .hero-inner--minimal .hero-cta--primary:hover {
    background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    filter: brightness(1.08);
    transform: translateY(-2px);
}

/* Topic chips beneath CTAs — quiet but informative */
.hero-v3 .hero-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem .5rem;
    max-width: 560px;
    margin-inline: auto;
}
.hero-v3 .hero-meta li {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: .72rem;
    letter-spacing: .04em;
    color: #94a3b8;
    padding: .25rem .65rem;
    border: 1px solid rgba(148,163,184,.2);
    border-radius: 999px;
    background: rgba(30,41,59,.4);
    transition: all 0.2s ease;
    cursor: default;
}
.hero-v3 .hero-meta li:hover {
    color: #fff;
    border-color: rgba(34,211,238,.6);
    background: rgba(34,211,238,.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34,211,238,.15);
}

@media (max-width: 640px) {
    .hero-v3 .hero-cta-grid--minimal { flex-direction: column; width: 100%; }
    .hero-v3 .hero-cta-grid--minimal .hero-cta { width: 100%; justify-content: center; }
    .hero-v3 .hero-meta li { font-size: .68rem; }
}

/* =========================================================
   HERO V4 (Premium Glassmorphism Redesign)
   ========================================================= */

.hero-v4 {
    position: relative;
    padding: 3.5rem 1.5rem 2.5rem;
    overflow: hidden;
    background-color: #09090b !important;
    display: flex;
    align-items: center;
    color: #ffffff !important;
}

.hero-bg-v4 {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatBlob 15s ease-in-out infinite alternate;
}

.hero-blob-1 {
    width: 60vw; height: 60vw; max-width: 600px; max-height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.4) 0%, rgba(99,102,241,0) 70%);
    top: -20%; left: -20%;
}

.hero-blob-2 {
    width: 50vw; height: 50vw; max-width: 500px; max-height: 500px;
    background: radial-gradient(circle, rgba(168,85,247,0.4) 0%, rgba(168,85,247,0) 70%);
    bottom: -10%; right: -10%;
    animation-delay: -5s;
}

.hero-blob-3 {
    width: 40vw; height: 40vw; max-width: 400px; max-height: 400px;
    background: radial-gradient(circle, rgba(14,165,233,0.3) 0%, rgba(14,165,233,0) 70%);
    top: 30%; left: 40%;
    animation-delay: -10s;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.hero-container-v4 {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-inner-v4 > * {
    opacity: 0;
    transform: translateY(20px);
}

.hero-eyebrow-v4 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e2e8f0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-status-dot-v4 {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16,185,129,0.5);
    animation: pulseDot 2s infinite;
}

.hero-title-v4 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-title-gradient {
    background: linear-gradient(135deg, #a855f7, #3b82f6, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shineGradient 5s linear infinite;
    font-style: italic;
    padding-right: 5px; /* prevents cutoff */
}

.hero-subhead-v4 {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-subhead-v4 strong {
    color: #f1f5f9;
    font-weight: 600;
}

.glass-panel {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: left;
}

.glass-panel:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.hero-selector-label-v4 {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-selector-row-v4 {
    display: flex;
    gap: 1rem;
}

.select-wrapper-v4 {
    position: relative;
    flex: 1;
}

.hero-selector-input-v4 {
    width: 100%;
    appearance: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: #f1f5f9;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hero-selector-input-v4:focus {
    border-color: #6366f1;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}

.hero-selector-input-v4 option {
    background: #0f172a;
    color: #f1f5f9;
}

.select-wrapper-v4 .select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.8rem;
}

.btn-v4 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary-v4 {
    background: #6366f1;
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(99,102,241,0.4);
}

.btn-primary-v4:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.6);
}

.hero-cta-grid-v4 {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.btn-glow-v4 {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glow-v4::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-glow-v4:hover::before {
    left: 100%;
}

.btn-glow-v4:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168,85,247,0.5);
    color: white;
}

.btn-glow-v4 .icon-v4 {
    transition: transform 0.2s ease;
}

.btn-glow-v4:hover .icon-v4 {
    transform: translateX(4px);
}

.btn-outline-v4 {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.btn-outline-v4:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    transform: translateY(-2px);
}

.hero-stats-v4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-stat-v4 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-num-v4 {
    font-size: 2rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-label-v4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-top: 0.5rem;
    font-weight: 600;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
}

.hero-tags-v4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.tag-v4 {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: #94a3b8;
    transition: all 0.3s ease;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.tag-v4:hover {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.3);
    color: #818cf8;
    transform: translateY(-2px);
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

@keyframes shineGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

@keyframes heroSlideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-v4 { padding: 6rem 1rem 4rem; }
    .hero-selector-row-v4 { flex-direction: column; }
    .hero-cta-grid-v4 { flex-direction: column; gap: 1rem; }
    .hero-stats-v4 { flex-direction: column; gap: 1.5rem; }
    .hero-stat-divider { width: 100px; height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent); }
}

/* Light Theme overrides removed to keep hero permanently dark */
