/* Futuristic AI personal homepage styling */
:root {
    color-scheme: dark;

    --bg-primary: radial-gradient(circle at 20% 20%, rgba(98, 132, 255, 0.2), transparent 50%),
        radial-gradient(circle at 80% 0%, rgba(0, 255, 209, 0.25), transparent 45%),
        #050510;
    --bg-panel: rgba(12, 18, 42, 0.72);
    --bg-glass: rgba(18, 24, 53, 0.65);
    --fg-primary: #f5f7ff;
    --fg-secondary: rgba(214, 225, 255, 0.65);
    --accent-cyan: #31ffe9;
    --accent-blue: #5b7bff;
    --accent-magenta: #ff5dcd;
    --shadow-strong: 0 18px 40px rgba(5, 120, 255, 0.18);
    --border-glass: 1px solid rgba(116, 142, 255, 0.16);
    --glow: 0 0 32px rgba(49, 255, 233, 0.35);
    --font-display: 'Orbitron', 'Prompt', sans-serif;
    --font-body: 'Prompt', 'Roboto Mono', monospace;
    --font-mono: 'Roboto Mono', monospace;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--fg-primary);
    line-height: 1.65;
    position: relative;
    overflow-x: hidden;
}

.grid-background {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(49, 255, 233, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 123, 255, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.neon-orbit {
    position: fixed;
    width: 480px;
    height: 480px;
    right: -160px;
    top: -120px;
    background: radial-gradient(circle, rgba(255, 93, 205, 0.42), transparent 60%);
    filter: blur(20px);
    opacity: 0.6;
    mix-blend-mode: screen;
    animation: orbit 16s linear infinite;
    pointer-events: none;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(30px);
    }
    50% {
        transform: rotate(180deg) translateX(60px) scale(1.08);
    }
    100% {
        transform: rotate(360deg) translateX(30px);
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px clamp(24px, 6vw, 72px);
    backdrop-filter: blur(18px);
    background: rgba(5, 10, 22, 0.52);
    border-bottom: 1px solid rgba(84, 120, 255, 0.18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.brand__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(49, 255, 233, 0.3), rgba(91, 123, 255, 0.35));
    color: var(--fg-primary);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: clamp(18px, 4vw, 36px);
    font-size: 0.92rem;
}

.nav-links a {
    color: var(--fg-secondary);
    text-decoration: none;
    position: relative;
    text-transform: uppercase;
    transition: color 0.3s ease;
    letter-spacing: 0.08em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--fg-primary);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    transform: scaleX(1);
}

.mode-toggle {
    background: rgba(49, 255, 233, 0.12);
    border: 1px solid rgba(49, 255, 233, 0.45);
    color: var(--fg-primary);
    padding: 10px 18px;
    border-radius: 999px;
    font-family: var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.mode-toggle:hover,
.mode-toggle:focus {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

main {
    position: relative;
    z-index: 1;
    padding-bottom: 96px;
}

.hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(72px, 14vw, 160px) clamp(24px, 6vw, 96px);
}

.hero__content {
    max-width: 620px;
    grid-column: 1 / 2;
}

.hero__hud {
    grid-column: 1 / 2;
    grid-row: 2;
    display: grid;
    gap: 18px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.hero__map {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
}

.hero__eyebrow {
    font-family: var(--font-mono);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(214, 225, 255, 0.7);
    font-size: 0.8rem;
    margin-bottom: 18px;
}

.hero__highlight {
    color: var(--accent-cyan);
    text-shadow: 0 0 12px rgba(49, 255, 233, 0.3);
    font-family: var(--font-display);
}

.hero__lead {
    color: var(--fg-secondary);
    margin: 24px 0 32px;
    max-width: 52ch;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero__map {
    background: rgba(7, 12, 32, 0.85);
    border: var(--border-glass);
    border-radius: 26px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 48px rgba(6, 15, 36, 0.55);
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

.hero__map::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(91, 123, 255, 0.2);
    border-radius: 20px;
    pointer-events: none;
}

.hero__map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 1;
}

.hero__map-header strong {
    display: block;
    font-family: var(--font-display);
    letter-spacing: 0.18em;
    font-size: 1rem;
}

.hero__map-indicator {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

#heroMap {
    width: 100%;
    flex: 1;
    min-height: 460px;
    z-index: 1;
}

.hero__map-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 1;
}

.hero__map-footer span {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(49, 255, 233, 0.45);
    background: rgba(49, 255, 233, 0.12);
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 24px;
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn--primary {
    background: linear-gradient(135deg, rgba(49, 255, 233, 0.55), rgba(91, 123, 255, 0.75));
    color: #04050f;
    box-shadow: 0 12px 28px rgba(49, 255, 233, 0.28);
}

.btn--primary:hover,
.btn--primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(49, 255, 233, 0.38);
}

.btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--fg-primary);
    background: transparent;
}

.btn--ghost:hover,
.btn--ghost:focus {
    transform: translateY(-2px);
    box-shadow: var(--glow);
    background: rgba(49, 255, 233, 0.08);
}

.hud-card {
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(6, 15, 36, 0.48);
    position: relative;
    overflow: hidden;
}

.hud-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(49, 255, 233, 0.12), rgba(91, 123, 255, 0));
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hud-card:hover::before {
    opacity: 1;
}

.hud-card__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(214, 225, 255, 0.55);
}

.hud-card__value {
    margin-top: 18px;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 4vw, 1.95rem);
    letter-spacing: 0.05em;
}

.hud-card__value.meter {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

#energyMeter {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    width: 38%;
    border-radius: inherit;
    transform-origin: left;
}

.hud-card__meta {
    font-size: 0.8rem;
    color: rgba(214, 225, 255, 0.48);
    margin-top: 14px;
}

.hud-card--grid {
    padding-bottom: 32px;
}

.hud-card__grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hud-mini-card {
    background: rgba(5, 10, 22, 0.65);
    border: 1px solid rgba(91, 123, 255, 0.25);
    border-radius: 18px;
    padding: 14px 16px 16px;
    box-shadow: inset 0 0 24px rgba(0, 10, 26, 0.35);
}

.hud-mini-card h4 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: 0.12em;
    font-size: 0.98rem;
}

.hud-mini-card p {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: rgba(214, 225, 255, 0.65);
    letter-spacing: 0.08em;
}

.section {
    padding: clamp(64px, 12vw, 120px) clamp(24px, 6vw, 96px);
    position: relative;
}

.section__header {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.section__header h2 {
    font-family: var(--font-display);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: clamp(1.2rem, 3.5vw, 1.75rem);
}

.section__header p {
    color: var(--fg-secondary);
    margin-top: 12px;
}

.section--glass {
    backdrop-filter: blur(28px);
    background: rgba(5, 10, 34, 0.52);
    border-block: var(--border-glass);
    box-shadow: inset 0 1px 0 rgba(92, 128, 255, 0.16);
}

.about-grid,
.matrix,
.agents-grid,
.contact-panel {
    display: grid;
    gap: clamp(24px, 4vw, 36px);
}

.about-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    padding: 28px;
    background: var(--bg-panel);
    border: var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(6, 15, 36, 0.44);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover,
.card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 32px 48px rgba(16, 80, 160, 0.35);
}

.card h3 {
    font-family: var(--font-display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    color: var(--fg-secondary);
}

.card li::before {
    content: '▹';
    color: var(--accent-cyan);
    margin-right: 10px;
    font-size: 0.9rem;
}

.matrix {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.matrix__column {
    background: rgba(9, 19, 44, 0.72);
    padding: 32px;
    border-radius: 22px;
    border: var(--border-glass);
    backdrop-filter: blur(18px);
}

.matrix__column h3 {
    font-family: var(--font-display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.matrix__column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--fg-secondary);
}

.matrix__column li {
    margin-bottom: 14px;
    display: flex;
    gap: 12px;
}

.matrix__column li::before {
    content: '✶';
    color: var(--accent-magenta);
    font-size: 0.8rem;
    margin-top: 6px;
}

.section--timeline {
    position: relative;
}

.timeline {
    position: relative;
    margin: 0 auto;
    max-width: 720px;
    border-left: 2px dashed rgba(91, 123, 255, 0.3);
    padding-left: 42px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    bottom: 0;
    border-left: 2px solid rgba(91, 123, 255, 0.3);
    mask: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, transparent 100%);
}

.timeline__item {
    position: relative;
    margin-bottom: 48px;
}

.timeline__item::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    box-shadow: 0 0 16px rgba(49, 255, 233, 0.6);
}

.timeline__year {
    font-family: var(--font-mono);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: rgba(214, 225, 255, 0.55);
}

.timeline__body {
    margin-top: 14px;
    padding: 24px;
    background: rgba(9, 18, 44, 0.72);
    border-radius: 20px;
    border: var(--border-glass);
    box-shadow: 0 18px 32px rgba(6, 15, 36, 0.4);
}

.timeline__body h3 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.agents-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.agent-card {
    position: relative;
    padding: 28px;
    border-radius: 20px;
    border: var(--border-glass);
    background: linear-gradient(145deg, rgba(12, 20, 52, 0.82), rgba(7, 12, 32, 0.92));
    box-shadow: 0 24px 42px rgba(7, 18, 40, 0.48);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.agent-card:hover,
.agent-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 36px 52px rgba(26, 90, 180, 0.45);
}

.agent-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(49, 255, 233, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.agent-card:hover::after {
    opacity: 1;
}

.agent-card h3 {
    font-family: var(--font-display);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.agent-card__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    background: rgba(49, 255, 233, 0.1);
    border: 1px solid rgba(49, 255, 233, 0.35);
    margin-top: 18px;
}

.contact-panel {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    background: rgba(11, 18, 38, 0.78);
    border-radius: 26px;
    border: var(--border-glass);
    box-shadow: 0 24px 48px rgba(7, 14, 32, 0.5);
    padding: clamp(38px, 6vw, 56px);
}

.contact-panel h3 {
    font-family: var(--font-display);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 18px;
}

.contact-list li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    align-items: center;
    color: var(--fg-secondary);
}

.contact-wechat {
    align-items: flex-start;
}

.contact-wechat__qr {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-wechat__qr img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    border: 1px solid rgba(91, 123, 255, 0.35);
    background: rgba(5, 10, 22, 0.6);
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(5, 120, 255, 0.18);
}

.contact-wechat__qr small {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--fg-secondary);
    text-transform: uppercase;
}

.contact-list a {
    color: var(--fg-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
}

.capsule-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.capsule-group span {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(91, 123, 255, 0.35);
    background: rgba(49, 255, 233, 0.08);
    font-family: var(--font-mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section--glass .capsule-group span {
    background: rgba(91, 123, 255, 0.12);
}

.industry-hero .section__header {
    text-align: center;
    margin: 0 auto;
    max-width: 840px;
}

.section__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.industry-hero__metrics {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.industry-hero__metrics article {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(91, 123, 255, 0.25);
    background: rgba(5, 10, 22, 0.6);
    text-align: center;
}

.industry-hero__metrics span {
    display: block;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fg-secondary);
    font-size: 0.75rem;
}

.industry-hero__metrics strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: var(--font-display);
    margin: 12px 0 8px;
}

.industry-hero__metrics p {
    margin: 0;
    color: var(--fg-secondary);
    font-size: 0.9rem;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.industry-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(91, 123, 255, 0.32);
    background: rgba(8, 12, 28, 0.75);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 14px 32px rgba(5, 80, 255, 0.2);
    transition: transform 220ms ease, border-color 220ms ease;
}

.industry-card:hover,
.industry-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(49, 255, 233, 0.6);
    outline: none;
}

.industry-card__badge {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 93, 205, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.74rem;
}

.industry-card h3 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.industry-card p {
    margin: 0;
    color: var(--fg-secondary);
    flex: 1;
}

.industry-card__cta {
    font-family: var(--font-mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

/* Industry detail pages */
body.industry-detail-page {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--fg-primary);
    line-height: 1.75;
}

.industry-detail-hero {
    padding-top: clamp(32px, 8vw, 96px);
}

.industry-detail-hero__grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(24px, 6vw, 64px);
}

.industry-detail-hero__grid h1 {
    margin: 12px 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 0.04em;
}

.industry-detail-hero__grid p {
    margin: 0;
    color: var(--fg-secondary);
    max-width: 720px;
}

.industry-detail-hero__actions .btn {
    white-space: nowrap;
}

.industry-detail-main {
    padding: 0 clamp(16px, 6vw, 72px) clamp(48px, 8vw, 120px);
}

.industry-detail-main .wrap {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: clamp(18px, 5vw, 42px);
    max-width: 1200px;
    margin: 0 auto;
}

.industry-detail-page .toc {
    position: sticky;
    top: 120px;
    align-self: start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(91, 123, 255, 0.28);
    background: rgba(8, 12, 28, 0.75);
    box-shadow: 0 18px 45px rgba(5, 10, 30, 0.4);
}

.industry-detail-page .toc a {
    display: block;
    padding: 8px 12px 8px 20px;
    border-radius: 12px;
    color: var(--fg-secondary);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.industry-detail-page .toc a::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(91, 123, 255, 0.5);
}

.industry-detail-page .toc a:hover,
.industry-detail-page .toc a:focus-visible {
    color: var(--fg-primary);
    background: rgba(91, 123, 255, 0.2);
    transform: translateX(4px);
    outline: none;
}

.industry-detail-page .toc .lvl1 {
    margin-top: 12px;
    font-weight: 700;
    color: var(--fg-primary);
}

.industry-detail-page .toc .lvl2 {
    padding-left: 28px;
}

.industry-detail-page .industry-doc__content {
    display: grid;
    gap: 24px;
}

.industry-detail-page .card {
    position: relative;
    padding: 24px 28px 28px;
    border-radius: 28px;
    border: 1px solid rgba(91, 123, 255, 0.28);
    background: rgba(8, 12, 28, 0.82);
    box-shadow: 0 24px 55px rgba(5, 10, 30, 0.45);
    overflow: hidden;
}

.industry-detail-page .card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 18%, rgba(91, 123, 255, 0.25), transparent 45%),
        radial-gradient(circle at 85% 12%, rgba(49, 255, 233, 0.18), transparent 55%);
    opacity: 0.45;
    pointer-events: none;
}

.industry-detail-page .card > * {
    position: relative;
    z-index: 1;
}

.industry-detail-page .hero-card {
    padding-top: 32px;
}

.industry-detail-page .section-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.industry-detail-page .section-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(91, 123, 255, 0.4), rgba(49, 255, 233, 0.25));
    font-size: 1.6rem;
    box-shadow: 0 12px 28px rgba(49, 255, 233, 0.25);
}

.industry-detail-page .section-icon.accent {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.4), rgba(255, 200, 87, 0.25));
}

.industry-detail-page .section-subtitle {
    margin: 4px 0 0;
    color: var(--fg-secondary);
}

.industry-detail-page .section-intro {
    color: var(--fg-secondary);
    margin-bottom: 16px;
}

.industry-detail-page .highlight-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.industry-detail-page .mini-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px dashed rgba(91, 123, 255, 0.35);
    background: rgba(5, 10, 22, 0.6);
}

.industry-detail-page .mini-card strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    letter-spacing: 0.12em;
}

.industry-detail-page .chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid rgba(91, 123, 255, 0.45);
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.industry-detail-page .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    border: 1px solid rgba(49, 255, 233, 0.4);
}

.industry-detail-page .callout {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 93, 205, 0.5);
    background: rgba(12, 18, 42, 0.6);
    color: var(--fg-secondary);
}

.industry-detail-page .card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.industry-detail-page .card-grid[data-layout='dense'] {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.industry-detail-page .card-grid[data-layout='wide'] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.industry-detail-page .info-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(91, 123, 255, 0.25);
    background: rgba(5, 10, 22, 0.65);
}

.industry-detail-page .info-card h4 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    letter-spacing: 0.1em;
}

.industry-detail-page .info-card dl {
    margin: 0;
    display: grid;
    gap: 10px;
}

.industry-detail-page .info-card dt {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-secondary);
}

.industry-detail-page .info-card dd {
    margin: 4px 0 0;
    color: var(--fg-primary);
    font-weight: 500;
}

.industry-detail-page details {
    margin-top: 18px;
    border-radius: 16px;
    border: 1px solid rgba(91, 123, 255, 0.25);
    background: rgba(8, 12, 28, 0.6);
}

.industry-detail-page summary {
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 600;
}

.industry-detail-page summary::marker {
    color: var(--accent-cyan);
}

.industry-detail-page details > *:not(summary) {
    padding: 0 18px 18px;
}

.industry-detail-page .grid {
    display: grid;
    gap: 12px;
}

.industry-detail-page .g-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.industry-detail-page .kv {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 12px 18px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(91, 123, 255, 0.2);
    background: rgba(5, 10, 22, 0.5);
}

.industry-detail-page .k {
    font-weight: 600;
    letter-spacing: 0.08em;
}

.industry-detail-page .i {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(91, 123, 255, 0.2);
}

.industry-detail-page .i:last-child {
    border-bottom: 0;
}

.industry-detail-page .l {
    color: var(--fg-secondary);
}

.industry-detail-page .v {
    font-family: var(--font-display);
    letter-spacing: 0.1em;
}

.industry-detail-page .kpi {
    display: grid;
    gap: 12px;
}

.industry-detail-page .kpi strong {
    font-size: 2rem;
    display: block;
}

.industry-detail-page .arch-canvas {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(91, 123, 255, 0.25);
    background: rgba(5, 10, 22, 0.6);
}

.industry-detail-page .arch-layer {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(91, 123, 255, 0.12);
    border: 1px solid rgba(91, 123, 255, 0.35);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.industry-detail-page .flowmap {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.industry-detail-page .flow-node {
    min-width: 180px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(91, 123, 255, 0.35);
    background: rgba(5, 10, 22, 0.6);
}

.industry-detail-page .flow-line,
.industry-detail-page .flow-arrow,
.industry-detail-page .flow-end {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    border-radius: 12px;
    border: 1px dashed rgba(91, 123, 255, 0.4);
    color: var(--fg-secondary);
}

.industry-detail-page .icon-list {
    display: grid;
    gap: 8px;
    padding-left: 18px;
}

.industry-detail-page .icon-list li {
    list-style: disc;
}

.industry-detail-page .info-tag {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.industry-detail-page .info-tag span {
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(91, 123, 255, 0.3);
    background: rgba(5, 10, 22, 0.5);
    font-size: 0.8rem;
}

.industry-detail-page .muted {
    color: var(--fg-secondary);
    font-size: 0.9rem;
}

.industry-detail-page .ghost {
    opacity: 0.65;
}

.industry-detail-page .accent {
    color: var(--accent-cyan);
}

.industry-doc__footer {
    margin-top: 24px;
    text-align: center;
    color: var(--fg-secondary);
}

@media (max-width: 960px) {
    .industry-detail-main .wrap {
        grid-template-columns: 1fr;
    }

    .industry-detail-page .toc {
        position: static;
        max-height: none;
    }
}

@media (max-width: 720px) {
    .industry-detail-hero__grid {
        flex-direction: column;
        align-items: flex-start;
    }
}

.system-gallery .section__header p {
    max-width: 720px;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(12px, 3vw, 24px);
    margin-top: 24px;
}

.system-card {
    padding: 16px;
    border-radius: 28px;
    border: var(--border-glass);
    background: rgba(8, 12, 28, 0.78);
    box-shadow: 0 12px 32px rgba(5, 80, 255, 0.18);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.system-card img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(91, 123, 255, 0.28);
    background: rgba(5, 10, 22, 0.5);
    padding: 6px;
    height: auto;
    max-height: 420px;
    aspect-ratio: auto;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(5, 120, 255, 0.15);
    cursor: zoom-in;
}

.system-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.system-card__body h3 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.system-card__body p {
    margin: 0;
    color: var(--fg-secondary);
}

.system-card__tag {
    align-self: flex-start;
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid rgba(49, 255, 233, 0.45);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    letter-spacing: 0.16em;
    font-size: 0.75rem;
}

.system-gallery .system-card:nth-child(3n) .system-card__tag {
    border-color: rgba(255, 93, 205, 0.45);
    color: var(--accent-magenta);
}

.system-gallery .system-card:nth-child(2n) .system-card__tag {
    border-color: rgba(91, 123, 255, 0.5);
    color: var(--accent-blue);
}

.system-card img + .system-card__body {
    margin-top: 4px;
}

@media (max-width: 720px) {
    .system-card {
        padding: 16px;
    }

    .system-card img {
        aspect-ratio: auto;
    }

    .industry-hero__metrics {
        grid-template-columns: 1fr;
    }

    .industry-card {
        padding: 20px;
    }
}

.image-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.image-lightbox.is-active {
    display: flex;
}

.image-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 18, 0.78);
    backdrop-filter: blur(6px);
}

.image-lightbox__content {
    position: relative;
    max-width: min(90vw, 1100px);
    max-height: 90vh;
    margin: 0;
    padding: 18px;
    border-radius: 28px;
    background: rgba(5, 8, 22, 0.95);
    border: 1px solid rgba(91, 123, 255, 0.35);
    box-shadow: 0 30px 80px rgba(5, 80, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.image-lightbox__content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 18px;
    border: 1px solid rgba(91, 123, 255, 0.4);
    background: rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.image-lightbox__content figcaption {
    color: var(--fg-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.image-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(91, 123, 255, 0.5);
    background: rgba(5, 120, 255, 0.1);
    color: var(--fg-primary);
    font-size: 1.4rem;
    cursor: pointer;
}

.image-lightbox__close:hover {
    background: rgba(255, 93, 205, 0.22);
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.certificate-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 20px;
    border: 1px solid rgba(91, 123, 255, 0.28);
    background: rgba(10, 20, 52, 0.65);
    box-shadow: 0 10px 24px rgba(5, 120, 255, 0.14);
}

.certificate-card--visual {
    background: rgba(12, 32, 68, 0.72);
}

.certificate-card--visual img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    padding: 6px;
    object-fit: contain;
    background: rgba(245, 247, 255, 0.04);
    filter: drop-shadow(0 0 18px rgba(49, 255, 233, 0.35));
}

.certificate-card__text h4 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.certificate-card__text p {
    margin: 6px 0 0;
    color: var(--fg-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.certificate-card--text {
    justify-content: center;
    text-align: center;
    border-style: dashed;
    background: rgba(91, 123, 255, 0.08);
}

.certificate-card--text .certificate-card__text h4 {
    letter-spacing: 0.12em;
}

.certificate-card--text .certificate-card__text p {
    margin-top: 4px;
}

@media (max-width: 640px) {
    .certificate-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .certificate-card--text {
        text-align: left;
    }
}

.site-footer {
    text-align: center;
    padding: 36px 16px 48px;
    color: rgba(214, 225, 255, 0.45);
    font-family: var(--font-mono);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* Reveal animation handling */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Quantum mode */
body.is-quantum {
    --bg-primary: radial-gradient(circle at 5% 30%, rgba(255, 93, 205, 0.38), transparent 65%),
        radial-gradient(circle at 85% 15%, rgba(64, 210, 255, 0.42), transparent 55%),
        #04020f;
    --accent-cyan: #64eaff;
    --accent-magenta: #ff89f6;
    --bg-panel: rgba(12, 0, 44, 0.82);
    --bg-glass: rgba(34, 0, 64, 0.58);
}

body.is-quantum .grid-background {
    background-image:
        linear-gradient(rgba(255, 137, 246, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 234, 255, 0.12) 1px, transparent 1px);
}

body.is-quantum .neon-orbit {
    background: radial-gradient(circle, rgba(100, 234, 255, 0.52), transparent 60%);
    animation-duration: 12s;
}

/* Responsive adjustments */
@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero__content {
        margin: 0 auto;
        text-align: center;
        grid-column: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__map,
    .hero__hud {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
        grid-column: auto;
        grid-row: auto;
    }

    .hero__hud {
        text-align: left;
    }
}

@media (max-width: 820px) {
    .site-header {
        flex-direction: column;
        gap: 18px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    #heroMap {
        min-height: 260px;
    }

    .hud-card__grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline__item::before {
        left: -30px;
    }

    .contact-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
