@font-face {
  font-family: "GenRyuTW";
  src: url("https://cdn.jsdelivr.net/gh/ButTaiwan/genryu-font@master/otf/TW/GenRyuMin2TW-R.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GenRyuTW";
  src: url("https://cdn.jsdelivr.net/gh/ButTaiwan/genryu-font@master/otf/TW/GenRyuMin2TW-SB.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GenRyuTW";
  src: url("https://cdn.jsdelivr.net/gh/ButTaiwan/genryu-font@master/otf/TW/GenRyuMin2TW-B.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-main: #8f82ff;
  --bg-deep: #776bf0;
  --panel-dark: #111111;
  --panel-soft: #1a1a1a;
  --surface-light: #f6f6f6;
  --surface-soft: #ececec;
  --acid: #53ff4e;
  --accent-soft: #b2a8ff;
  --text-dark: #121212;
  --text-muted: #5d5d5d;
  --text-light: rgba(255, 255, 255, 0.74);
  --line-dark: rgba(17, 17, 17, 0.12);
  --line-light: rgba(255, 255, 255, 0.1);
  --shadow: 0 30px 70px rgba(45, 29, 145, 0.22);
  --shadow-heavy: 0 40px 110px rgba(17, 17, 17, 0.3);
  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --container: 1220px;
  --font-body: "GenRyuTW", "Noto Sans SC", serif;
  --font-display: "Lexend", "GenRyuTW", "Noto Sans SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-dark);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 82%, rgba(255,255,255,0.28), transparent 18%),
    radial-gradient(circle at 88% 18%, rgba(255,255,255,0.16), transparent 20%),
    linear-gradient(180deg, var(--bg-main) 0%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

body.skill-detail--content {
  --detail-accent: #53ff4e;
  --detail-accent-soft: rgba(83, 255, 78, 0.16);
  --detail-shell-bg: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,255,244,0.96));
}

body.skill-detail--lead {
  --detail-accent: #111111;
  --detail-accent-soft: rgba(17, 17, 17, 0.1);
  --detail-shell-bg: linear-gradient(180deg, rgba(17,17,17,0.98), rgba(32,32,32,0.98));
}

body.skill-detail--workflow {
  --detail-accent: #53ff4e;
  --detail-accent-soft: rgba(83, 255, 78, 0.18);
  --detail-shell-bg: linear-gradient(180deg, rgba(17,17,17,0.98), rgba(28,28,28,0.98));
}

body.skill-detail--intel {
  --detail-accent: #111111;
  --detail-accent-soft: rgba(17, 17, 17, 0.1);
  --detail-shell-bg: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,246,246,0.96));
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

a,
button,
.btn,
nav a,
.market-card,
.light-panel,
.metric-card,
.agent-panel,
.skill-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.shell {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar-wrap {
  padding-top: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(73, 57, 174, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--panel-dark), #2d2d2d);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 18px;
  width: 20px;
  height: 8px;
  border-radius: 4px;
  background: white;
}

.brand-mark::before { transform: rotate(45deg); }
.brand-mark::after { transform: rotate(-45deg); }

.brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-copy span {
  display: block;
  color: rgba(17,17,17,0.66);
  font-size: 0.8rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  font-size: 0.84rem;
  font-weight: 800;
  color: rgba(17,17,17,0.72);
  border-radius: 999px;
  padding: 8px 10px;
}

nav a:hover {
  background: rgba(255,255,255,0.34);
  color: var(--text-dark);
}

.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--panel-dark);
  color: white;
  box-shadow: 0 14px 28px rgba(17,17,17,0.18);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(17,17,17,0.22);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(17,17,17,0.08);
  border: 1px solid rgba(17,17,17,0.08);
}

.lang-btn {
  min-width: 48px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(17,17,17,0.6);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--panel-dark);
  color: white;
}

.lang-btn:hover:not(.active) {
  background: rgba(255,255,255,0.45);
  color: var(--text-dark);
}

.hero {
  padding: 34px 0 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 18px;
  align-items: start;
}

.hero-panel,
.dark-panel,
.light-panel,
.metric-card,
.stage-card,
.skills-shell,
.cta-band,
.footer-shell {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
  background: var(--surface-light);
  position: relative;
  min-height: 380px;
}

.hero-orb {
  position: absolute;
  right: -40px;
  top: 36px;
  width: min(44vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.92) 0%, rgba(232,232,232,0.84) 42%, rgba(214,214,214,0.2) 68%, transparent 70%);
}

.hero-orb::before {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 50%;
}

.kicker,
.section-kicker,
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker { color: rgba(17,17,17,0.42); }
.section-kicker { color: var(--acid); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-title {
  margin-top: 18px;
  max-width: 8ch;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.92;
  text-transform: uppercase;
}

html[lang="en"] .hero-title {
  max-width: 11ch;
  font-size: clamp(2.3rem, 4.2vw, 4rem);
  line-height: 0.95;
  text-transform: none;
  letter-spacing: -0.04em;
}

.hero-title .accent {
  display: inline-block;
  background: var(--acid);
  padding: 0 10px;
  border-radius: 18px;
}

.hero-copy,
.section-copy,
.light-panel p,
.metric-card p,
.stage-card p,
.footer-copy,
.footer-links a,
.skills-intro {
  color: var(--text-muted);
  line-height: 1.72;
  margin: 0;
}

body.skill-detail--lead .hero-panel,
body.skill-detail--content .hero-panel,
body.skill-detail--workflow .hero-panel,
body.skill-detail--intel .hero-panel {
  min-height: 0;
  padding: 24px 26px 22px;
}

body.skill-detail--lead .hero-title,
body.skill-detail--content .hero-title,
body.skill-detail--workflow .hero-title,
body.skill-detail--intel .hero-title {
  max-width: 10.4ch;
  font-size: clamp(2.35rem, 4.15vw, 3.95rem);
  line-height: 0.94;
}

html[lang="en"] body.skill-detail--lead .hero-title,
html[lang="en"] body.skill-detail--content .hero-title,
html[lang="en"] body.skill-detail--workflow .hero-title,
html[lang="en"] body.skill-detail--intel .hero-title {
  max-width: 12.4ch;
  font-size: clamp(2rem, 3.35vw, 3.25rem);
  line-height: 0.98;
}

body.skill-detail--lead .hero-copy,
body.skill-detail--content .hero-copy,
body.skill-detail--workflow .hero-copy,
body.skill-detail--intel .hero-copy {
  max-width: 33ch;
  font-size: 0.95rem;
  line-height: 1.62;
}

body.skill-detail--lead .hero-actions,
body.skill-detail--content .hero-actions,
body.skill-detail--workflow .hero-actions,
body.skill-detail--intel .hero-actions {
  margin-top: 18px;
}

.detail-decision-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.detail-decision-card {
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17,17,17,0.98), rgba(32,32,32,0.96));
  color: white;
  box-shadow: 0 18px 38px rgba(17,17,17,0.12);
}

.detail-decision-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(242,255,242,0.96));
  color: var(--text-dark);
  border: 1px solid rgba(17,17,17,0.08);
}

.detail-decision-card:nth-child(3) {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(167,157,255,0.24), rgba(255,255,255,0.9));
  color: var(--text-dark);
  border: 1px solid rgba(17,17,17,0.08);
}

.detail-decision-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.74);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-decision-card:nth-child(2) .detail-decision-label,
.detail-decision-card:nth-child(3) .detail-decision-label {
  background: rgba(17,17,17,0.08);
  color: rgba(17,17,17,0.62);
}

.detail-decision-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.detail-decision-card p {
  margin: 8px 0 0;
  line-height: 1.58;
  font-size: 0.9rem;
}

.detail-decision-card:nth-child(1) p {
  color: rgba(255,255,255,0.74);
}

.detail-decision-card:nth-child(2) p,
.detail-decision-card:nth-child(3) p {
  color: rgba(17,17,17,0.7);
}

body.skill-detail--lead .hero-orb,
body.skill-detail--content .hero-orb,
body.skill-detail--workflow .hero-orb,
  body.skill-detail--intel .hero-orb {
    right: -24px;
    top: 54px;
    width: min(34vw, 210px);
    opacity: 0.94;
  }

  .detail-decision-board {
    grid-template-columns: 1fr;
  }

  .detail-decision-card:nth-child(3) {
    grid-column: auto;
  }

.hero-copy {
  margin-top: 18px;
  max-width: 30ch;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 900;
}

.btn.primary {
  background: var(--acid);
  color: var(--ink);
  box-shadow: 0 14px 28px rgba(83,255,78,0.18);
}

.btn.secondary {
  background: white;
  color: var(--ink);
  border-color: rgba(17,17,17,0.12);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary:hover {
  box-shadow: 0 20px 36px rgba(83,255,78,0.24);
}

.btn.secondary:hover {
  border-color: rgba(17,17,17,0.22);
  box-shadow: 0 18px 32px rgba(17,17,17,0.08);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
nav a:focus-visible,
.lang-btn:focus-visible,
.market-card:focus-visible {
  outline: 3px solid rgba(83,255,78,0.88);
  outline-offset: 3px;
}

.hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.metric-grid,
.detail-grid,
.skills-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-grid { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 0.72fr)); }

.metric-card,
.light-panel,
.stage-card {
  padding: 22px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.26);
  backdrop-filter: blur(18px);
  min-height: 170px;
  position: relative;
}

.metric-card::before,
.stage-card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 18px;
  height: 2px;
  background: linear-gradient(90deg, rgba(83,255,78,0.84), rgba(83,255,78,0));
  opacity: 0.7;
}

.metric-card > *,
.stage-card > * {
  position: relative;
  z-index: 1;
}

.metric-card strong,
.light-panel strong,
.stage-card strong {
  display: block;
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 1.18rem;
}

html[lang="en"] .metric-card strong,
html[lang="en"] .light-panel strong,
html[lang="en"] .stage-card strong {
  font-size: 1.02rem;
  line-height: 1.16;
  text-transform: none;
  letter-spacing: -0.02em;
}

.metric-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  color: rgba(17, 17, 17, 0.64);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.metric-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(17, 17, 17, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-side .metric-card:nth-child(3) {
  grid-column: 1 / -1;
  min-height: 138px;
}

.section {
  padding: 12px 0 34px;
}

.dark-panel {
  padding: 26px;
  background: var(--panel-dark);
  color: white;
  box-shadow: var(--shadow-heavy);
}

.dark-panel h2,
.cta-band h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  text-transform: uppercase;
  max-width: 10ch;
}

.section-copy {
  max-width: 46ch;
  margin-top: 14px;
  color: var(--text-light);
}

.light-panel {
  background: var(--surface-light);
  color: var(--text-dark);
}

.light-panel::before {
  content: "";
  display: block;
  width: 56px;
  height: 8px;
  margin: -22px 0 18px -22px;
  background: var(--acid);
  border-radius: 0 0 12px 0;
}

.light-panel h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.08;
  text-transform: uppercase;
}

html[lang="en"] .light-panel h3 {
  font-size: 1rem;
  line-height: 1.16;
  text-transform: none;
  letter-spacing: -0.02em;
}

.ranking-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.rank-card {
  min-height: 198px;
  padding: 18px 16px;
  background: var(--surface-light);
  color: var(--text-dark);
  clip-path: polygon(0 8%, 100% 0, 100% 88%, 0 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 32px rgba(17,17,17,0.14);
}

.rank-card.featured {
  background: var(--acid);
}

.rank-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.08em;
}

.rank-card h3 {
  margin: 12px 0 10px;
  font-size: 1.2rem;
  line-height: 1.02;
  text-transform: uppercase;
}

.rank-card p {
  margin: 0;
  color: rgba(17,17,17,0.68);
  line-height: 1.6;
  font-size: 0.92rem;
}

.rank-cta {
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skills-shell {
  padding: 20px;
  background: var(--detail-shell-bg, var(--surface-light));
  color: var(--text-dark);
}

.skills-intro {
  margin-top: 8px;
  margin-bottom: 14px;
}

.skills-grid.market-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.market-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,246,246,.94));
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: 0 18px 38px rgba(17,17,17,.08);
  color: var(--text-dark);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.market-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px rgba(17,17,17,.12);
}

.market-card.is-selected {
  transform: translateY(-6px);
  border-color: rgba(17,17,17,0.24);
  box-shadow: 0 34px 68px rgba(17,17,17,0.2);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(241,255,241,0.98));
}

.market-card.is-selected .market-type {
  background: var(--panel-dark);
  color: white;
}

.market-card.is-selected .market-price {
  background: var(--acid);
  color: var(--ink);
}

.market-card.is-selected .market-fit {
  background: rgba(83,255,78,0.22);
  color: rgba(17,17,17,0.88);
}

.market-card.is-selected .market-note {
  color: rgba(17,17,17,0.78);
}

.market-note {
  margin: -2px 0 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(17,17,17,0.12);
  color: rgba(17,17,17,0.56);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.market-card-top,
.market-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.market-type,
.market-price,
.market-fit,
.market-source {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17,17,17,0.06);
  color: rgba(17,17,17,0.72);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.market-price {
  background: rgba(83,255,78,0.16);
  color: rgba(17,17,17,0.82);
}

.market-card h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.08rem;
  line-height: 1.14;
  text-transform: none;
  text-shadow: none;
  opacity: 1;
}

html[lang="en"] .market-card h3 {
  font-size: 1rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.market-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.64;
}

.market-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17,17,17,0.05);
  color: rgba(17,17,17,0.68);
  font-size: 0.8rem;
  font-weight: 700;
}

.market-link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agent-shell {
  display: grid;
  gap: 18px;
}

.agent-hero,
.agent-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--surface-light);
  box-shadow: var(--shadow);
}

.agent-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(250px, 0.94fr);
  gap: 20px;
  align-items: stretch;
  background:
    radial-gradient(circle at top right, rgba(83,255,78,0.12), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(247,247,247,0.96));
}

.agent-hero-copy {
  min-width: 0;
}

.agent-hero h1 {
  margin: 12px 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  text-transform: none;
}

.agent-hero-spotlight {
  display: grid;
  gap: 12px;
  align-content: start;
}

.agent-spotlight-grid {
  display: grid;
  gap: 12px;
}

.agent-spotlight-card,
.agent-spotlight-note {
  padding: 18px;
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(17,17,17,0.08);
}

.agent-spotlight-card {
  background: linear-gradient(180deg, rgba(17,17,17,0.98), rgba(32,32,32,0.96));
  color: white;
}

.agent-spotlight-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.agent-spotlight-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(83,255,78,0.16);
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-spotlight-note {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,255,244,0.96));
  border: 1px solid rgba(17,17,17,0.08);
  color: rgba(17,17,17,0.72);
  line-height: 1.66;
}

.agent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.agent-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17,17,17,0.06);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 900;
}

.skill-context-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.context-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17,17,17,0.06);
  border: 1px solid rgba(17,17,17,0.08);
  color: rgba(17,17,17,0.76);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.context-pill--accent {
  background: var(--acid);
  border-color: transparent;
  color: var(--ink);
}

.hero-panel--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.74fr);
  gap: 20px;
  align-items: start;
}

.action-hero-main {
  min-width: 0;
}

.action-hero-board {
  display: grid;
  gap: 12px;
  align-content: start;
}

.action-board-card {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17,17,17,0.98), rgba(32,32,32,0.96));
  color: white;
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: 0 24px 44px rgba(17,17,17,0.16);
}

.action-board-card--dark {
  background: linear-gradient(180deg, rgba(83,255,78,0.18), rgba(17,17,17,0.96));
}

.action-board-card--link {
  display: grid;
  gap: 10px;
  min-height: 152px;
}

.action-board-card--link:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 52px rgba(17,17,17,0.18);
}

.action-board-card.is-selected {
  background: linear-gradient(180deg, rgba(83,255,78,0.94), rgba(109,255,104,0.9));
  color: var(--ink);
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 26px 58px rgba(83,255,78,0.28);
}

.action-board-card.is-selected .action-board-label,
.action-board-card.is-selected p {
  color: rgba(17,17,17,0.72);
}

.action-board-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.72);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.action-board-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.action-board-card p {
  margin: 0;
  color: rgba(255,255,255,0.74);
  line-height: 1.6;
  font-size: 0.9rem;
}

.agent-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.agent-panel {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(17,17,17,0.08);
}

.agent-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 62px;
  height: 8px;
  background: var(--acid);
  border-radius: 0 0 12px 0;
}

.agent-panel--pricing,
.agent-panel--payment {
  background: linear-gradient(180deg, rgba(17,17,17,0.98), rgba(30,30,30,0.98));
  color: white;
  box-shadow: var(--shadow-heavy);
}

.agent-panel--pricing::before,
.agent-panel--payment::before {
  width: 100%;
  height: 5px;
  border-radius: 0;
}

.agent-panel--pricing .card-kicker,
.agent-panel--payment .card-kicker {
  color: var(--acid);
}

.agent-panel--pricing h2,
.agent-panel--payment h2,
.agent-panel--pricing .agent-list span,
.agent-panel--payment .agent-list span {
  color: white;
}

.agent-panel--pricing .agent-list span::before,
.agent-panel--payment .agent-list span::before {
  background: var(--acid);
}

.agent-panel--works,
.agent-panel--version {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(244,255,244,0.96));
}

.agent-panel h2 {
  margin: 10px 0 14px;
  font-size: 1.4rem;
  line-height: 1;
  text-transform: none;
}

.agent-list {
  display: grid;
  gap: 10px;
}

.agent-list span {
  display: flex;
  gap: 10px;
  align-items: start;
  line-height: 1.6;
}

.agent-list span::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--acid);
  flex: none;
}

html[lang="en"] .agent-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

html[lang="en"] .agent-panel h2 {
  font-size: 1.26rem;
}

html[lang="en"] .agent-list span,
html[lang="en"] .agent-hero .hero-copy {
  font-size: 0.94rem;
  line-height: 1.62;
}

.skill-card {
  padding: 20px;
  border: 1px solid rgba(17,17,17,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,244,244,.94));
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(17,17,17,.06);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 58px;
  height: 8px;
  background: var(--detail-accent, var(--acid));
  border-radius: 0 0 12px 0;
}

.skill-card-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--detail-accent-soft, rgba(83,255,78,0.16));
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.skill-card h3 {
  margin: 14px 0 10px;
  font-size: 1.08rem;
  line-height: 1.14;
}

html[lang="en"] .skill-card h3 {
  font-size: 1rem;
  line-height: 1.18;
  text-transform: none;
  letter-spacing: -0.02em;
}

.skill-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.72;
}

html[lang="en"] .hero-copy,
html[lang="en"] .section-copy,
html[lang="en"] .skills-intro,
html[lang="en"] .skill-card p,
html[lang="en"] .metric-card p {
  font-size: 0.9rem;
  line-height: 1.62;
}

body.skill-detail--lead .skills-shell,
body.skill-detail--workflow .skills-shell {
  color: white;
  box-shadow: var(--shadow-heavy);
}

body.skill-detail--lead .skills-intro,
body.skill-detail--workflow .skills-intro {
  color: var(--text-light);
}

body.skill-detail--lead .skill-card,
body.skill-detail--workflow .skill-card {
  box-shadow: 0 20px 40px rgba(17,17,17,.14);
}

body.skill-detail--lead .card-kicker,
body.skill-detail--workflow .card-kicker {
  color: var(--acid);
}

body.skill-detail--lead .skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.skill-detail--lead .skills-grid.market-grid,
body.skill-detail--workflow .skills-grid.market-grid,
body.skill-detail--intel .skills-grid.market-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.skill-detail--lead .metric-card-num,
body.skill-detail--workflow .metric-card-num {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
}

body.skill-detail--lead .metric-tags span,
body.skill-detail--workflow .metric-tags span {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

body.skill-detail--workflow .skill-card {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,255,241,.96));
}

body.skill-detail--content .skills-shell {
  background:
    radial-gradient(circle at top right, rgba(83,255,78,0.12), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(245,255,245,0.96));
}

body.skill-detail--content .skills-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.skill-detail--content .skill-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,255,244,.94));
  box-shadow: 0 18px 38px rgba(17,17,17,.08);
}

body.skill-detail--content .skill-card:nth-child(3n + 1) {
  transform: rotate(-0.8deg);
}

body.skill-detail--content .skill-card:nth-child(3n + 2) {
  transform: rotate(0.6deg);
}

body.skill-detail--content .skill-card:nth-child(3n + 3) {
  transform: rotate(-0.3deg);
}

body.skill-detail--content .skill-card-meta {
  background: rgba(83,255,78,0.16);
}

body.skill-detail--lead .skills-shell {
  background:
    linear-gradient(180deg, rgba(17,17,17,0.98), rgba(28,28,28,0.98));
}

body.skill-detail--lead .skill-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,248,248,.96));
  border-color: rgba(17,17,17,0.1);
  box-shadow: 0 22px 44px rgba(17,17,17,.16);
}

body.skill-detail--lead .skill-card::before {
  width: 100%;
  height: 6px;
  border-radius: 0;
}

body.skill-detail--lead .skill-card-meta {
  background: rgba(17,17,17,0.08);
}

body.skill-detail--lead .skill-card h3 {
  font-size: 1.04rem;
  text-transform: uppercase;
}

body.skill-detail--lead .skill-card:nth-child(1),
body.skill-detail--lead .skill-card:nth-child(4),
body.skill-detail--lead .skill-card:nth-child(7),
body.skill-detail--lead .skill-card:nth-child(10) {
  transform: translateY(-6px);
}

body.skill-detail--lead .skill-card:nth-child(2),
body.skill-detail--lead .skill-card:nth-child(5),
body.skill-detail--lead .skill-card:nth-child(8) {
  transform: translateY(6px);
}

body.skill-detail--lead .skill-card:nth-child(3),
body.skill-detail--lead .skill-card:nth-child(6),
body.skill-detail--lead .skill-card:nth-child(9) {
  transform: translateY(-2px);
}

body.skill-detail--workflow .skills-shell {
  background:
    linear-gradient(180deg, rgba(17,17,17,0.98), rgba(28,28,28,0.98));
}

body.skill-detail--workflow .skills-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.skill-detail--workflow .skill-card {
  border-left: 4px solid var(--acid);
  padding-left: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,255,241,.96));
  box-shadow: 0 20px 40px rgba(17,17,17,.14);
}

body.skill-detail--workflow .skill-card-meta {
  background: rgba(83,255,78,0.18);
}

body.skill-detail--workflow .skill-card h3 {
  text-transform: uppercase;
}

body.skill-detail--workflow .skill-card::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(83,255,78,0.24), rgba(83,255,78,0) 68%);
}

body.skill-detail--intel .skills-shell {
  background:
    linear-gradient(180deg, rgba(17,17,17,0.98), rgba(24,24,24,0.98));
  color: white;
  box-shadow: var(--shadow-heavy);
}

body.skill-detail--intel .skills-intro {
  color: var(--text-light);
}

body.skill-detail--intel .card-kicker {
  color: var(--acid);
}

body.skill-detail--intel .skills-grid {
  grid-template-columns: 1fr;
}

body.skill-detail--intel .skill-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,246,246,.96));
  box-shadow: 0 20px 40px rgba(17,17,17,.14);
}

body.skill-detail--intel .skill-card::before {
  width: 6px;
  height: 100%;
  border-radius: 0;
}

body.skill-detail--intel .skill-card-meta {
  min-height: 40px;
}

body.skill-detail--intel .skill-card h3 {
  margin-top: 0;
}

body.skill-detail--intel .skill-card p::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(17,17,17,0.7), rgba(17,17,17,0));
}

.cta-band {
  padding: 24px;
  background: var(--panel-dark);
  color: white;
  box-shadow: var(--shadow-heavy);
}

.cta-band p {
  margin-top: 16px;
  color: var(--text-light);
  max-width: 48ch;
  line-height: 1.76;
}

.skill-action .hero-panel {
  min-height: 0;
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(83,255,78,0.14), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(245,245,245,0.97));
}

.skill-action .hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 20px;
  align-items: stretch;
}

.skill-action .hero-title {
  max-width: 11ch;
}

html[lang="en"] .skill-action .hero-title {
  max-width: 10ch;
}

.skill-action .hero-copy {
  max-width: 38ch;
  color: rgba(17,17,17,0.7);
  font-size: 1rem;
  line-height: 1.66;
}

.skill-action .hero-panel--split {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.78fr);
}

.skill-action .hero-side {
  align-self: stretch;
}

.skill-action .hero-side .metric-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.12));
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 24px 54px rgba(45,29,145,0.18);
}

.skill-action .hero-side .metric-card strong {
  margin-top: 10px;
}

.skill-action .hero-side .metric-card p {
  color: rgba(17,17,17,0.74);
}

.skill-action .hero-side .metric-card .metric-tags span {
  background: rgba(255,255,255,0.38);
  border-color: rgba(255,255,255,0.22);
  color: rgba(17,17,17,0.76);
}

.skill-action .hero-side .metric-card:nth-child(3) {
  min-height: 164px;
}

.skill-action .skills-shell {
  background:
    radial-gradient(circle at top right, rgba(83,255,78,0.1), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,246,246,0.96));
}

.skill-action .dark-panel h2 {
  max-width: 14ch;
  font-size: clamp(1.72rem, 3vw, 2.7rem);
  line-height: 1.02;
}

html[lang="en"] .skill-action .dark-panel h2 {
  max-width: 18ch;
  line-height: 1.04;
}

.skill-action .dark-panel .section-copy {
  max-width: 54ch;
}

.skill-action .agent-layout {
  align-items: stretch;
}

.skill-action .detail-grid {
  margin-top: 18px;
}

.skill-action .light-panel {
  min-height: 210px;
}

.skill-action .light-panel h3 {
  max-width: 14ch;
}

.skill-action .agent-panel h2 {
  max-width: 18ch;
}

.skill-action .cta-band h2 {
  max-width: 13ch;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
}

.skill-action .cta-band {
  background:
    radial-gradient(circle at top right, rgba(83,255,78,0.16), transparent 24%),
    linear-gradient(180deg, rgba(17,17,17,0.98), rgba(28,28,28,0.98));
}

.skill-action .light-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(247,247,247,0.96));
}

.skill-action .detail-grid .light-panel:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(244,255,244,0.96));
}

.skill-action .detail-grid .light-panel:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,248,248,0.96));
}

.skill-action .footer-shell {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.skill-action .agent-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.skill-action .agent-meta span {
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  background: rgba(17,17,17,0.82);
  color: white;
  border: 1px solid rgba(17,17,17,0.1);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.skill-action .skill-context-bar {
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(17,17,17,0.08);
}

.skill-action .context-pill {
  min-height: 38px;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.36), 0 8px 18px rgba(17,17,17,0.06);
}

.skill-action .context-pill--accent {
  box-shadow: 0 14px 28px rgba(83,255,78,0.18);
}

body.skill-action--plans .market-card {
  gap: 14px;
  padding: 20px;
}

body.skill-action--plans .market-card h3 {
  font-size: 1.16rem;
}

body.skill-action--plans .market-card.is-selected {
  transform: translateY(-8px) rotate(-0.3deg);
}

body.skill-action--plans .market-card.is-selected .market-link {
  color: rgba(17,17,17,0.9);
}

body.skill-action--plans .hero-panel {
  background:
    radial-gradient(circle at top right, rgba(83,255,78,0.18), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,255,246,0.97));
}

body.skill-action--activate .hero-panel {
  background:
    radial-gradient(circle at top right, rgba(83,255,78,0.12), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(247,247,247,0.97));
}

body.skill-action--activate .skill-card h3,
body.skill-action--plans .agent-panel h2,
body.skill-action--plans .light-panel h3 {
  max-width: 16ch;
}

.footer-shell {
  margin: 0 0 34px;
  padding: 24px;
  background: var(--panel-dark);
  color: white;
  box-shadow: var(--shadow-heavy);
}

.footer-title {
  display: block;
  margin-bottom: 12px;
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

@media (max-width: 1100px) {
  .hero-grid,
  .metric-grid,
  .detail-grid,
  .ranking-strip,
  .skills-grid,
  .agent-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .hero-side .metric-card:nth-child(3) {
    grid-column: auto;
  }

  body.skill-detail--lead .skills-grid,
  body.skill-detail--workflow .skills-grid {
    grid-template-columns: 1fr;
  }

  body.skill-detail--intel .skill-card {
    grid-template-columns: 1fr;
  }

  .skills-grid.market-grid {
    grid-template-columns: 1fr;
  }

  .agent-panel {
    min-height: auto;
  }

  .skill-action .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel--split,
  .agent-hero {
    grid-template-columns: 1fr;
  }

  .skill-action .light-panel {
    min-height: 0;
  }

  .skill-action .agent-meta {
    grid-template-columns: 1fr;
  }
}

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

  .topbar {
    flex-direction: column;
    align-items: start;
    border-radius: 28px;
  }

  .topbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  nav {
    width: 100%;
    justify-content: start;
    gap: 10px 12px;
  }

  nav a {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.42);
    color: var(--text-dark);
  }

  nav a.nav-cta {
    background: var(--panel-dark);
    color: white;
  }

  .lang-toggle {
    align-self: flex-start;
  }

  .hero-actions,
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-row .btn {
    width: 100%;
  }

  .hero-panel,
  .dark-panel,
  .light-panel,
  .metric-card,
  .stage-card,
  .agent-hero,
  .agent-panel,
  .skills-shell,
  .cta-band,
  .footer-shell {
    padding: 20px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 14vw, 3.8rem);
  }

  html[lang="en"] .hero-title {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .rank-card {
    min-height: 164px;
    clip-path: polygon(0 6%, 100% 0, 100% 92%, 0 100%);
    padding: 16px 14px;
  }

  .rank-card h3 {
    font-size: 1.12rem;
  }

  body.skill-detail--lead .skill-card,
  body.skill-detail--content .skill-card {
    transform: none !important;
  }

  body.skill-detail--intel .skill-card {
    grid-template-columns: 1fr;
  }

  .skills-grid.market-grid {
    grid-template-columns: 1fr;
  }

  .agent-hero h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .action-board-card--link {
    min-height: 0;
  }

  .agent-meta {
    gap: 8px;
  }

  .agent-meta span {
    font-size: 0.72rem;
  }

  .skill-action .hero-panel {
    padding: 24px 20px;
  }

  .skill-action .hero-copy {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .skill-action .hero-side .metric-card {
    min-height: 0;
  }

  .skill-context-bar {
    gap: 8px;
  }

  .context-pill {
    width: 100%;
    justify-content: center;
  }

  .agent-panel h2 {
    font-size: 1.18rem;
  }
}

.skills-shell .market-card,
.skills-shell .market-card h3,
.skills-shell .market-card p,
.skills-shell .market-card .market-link,
.skills-shell .market-card .market-type,
.skills-shell .market-card .market-fit,
.skills-shell .market-card .market-tags span {
  color: var(--text-dark);
}

.skills-shell .market-card h3 {
  font-weight: 800;
}

.skills-shell .market-card .market-link {
  font-weight: 800;
}
