.hrcade-detail-page {
  --hrcade-blue: #167ee8;
  --hrcade-cyan: #31b9ff;
  --hrcade-ink: #0a1b2d;
}

.hrcade-main { overflow: hidden; }

.hrcade-hero {
  padding: 28px 0 22px;
}

.hrcade-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px,.72fr) minmax(620px,1.28fr);
  align-items: center;
  gap: clamp(34px,5vw,76px);
  min-height: 610px;
  padding: clamp(42px,5vw,74px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 10%, rgba(49,185,255,.16), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(155,125,94,.16), transparent 32%),
    rgba(255,255,255,.68);
  box-shadow: 0 24px 70px rgba(60,50,39,.12);
}

.hrcade-hero-grid::before {
  content: "";
  position: absolute;
  width: 530px;
  height: 530px;
  right: -250px;
  bottom: -340px;
  border: 1px solid rgba(22,126,232,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(22,126,232,.035), 0 0 0 140px rgba(22,126,232,.025);
  pointer-events: none;
}

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

.hrcade-live-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 6px 10px;
  border: 1px solid rgba(100,125,98,.2);
  border-radius: 999px;
  color: var(--success);
  background: rgba(100,125,98,.08);
  font-size: 11px;
  font-weight: 700;
}

.hrcade-live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(100,125,98,.11);
}

.hrcade-hero h1 {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--strong);
  font-family: "Manrope","Noto Sans Thai",sans-serif;
  font-size: clamp(39px,4.4vw,68px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.hrcade-hero-copy > p {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.hrcade-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.hrcade-hero-tags span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb,var(--surface-solid) 75%,transparent);
  font-size: 11px;
  font-weight: 700;
}

.hrcade-hero-visual {
  width: 126%;
  margin-right: -27%;
  transform: perspective(1600px) rotateY(-8deg) rotateX(2deg);
  transform-origin: center left;
}

.hrcade-screen-frame {
  overflow: hidden;
  border: 1px solid color-mix(in srgb,var(--line) 76%,var(--hrcade-blue));
  border-radius: 20px;
  background: var(--surface-solid);
  box-shadow: -22px 30px 70px rgba(6,20,36,.20);
}

.hrcade-screen-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1100/720;
  object-fit: cover;
  object-position: top left;
}

.hrcade-screen-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb,var(--surface-solid) 88%,var(--bg));
}

.hrcade-screen-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb,var(--muted) 35%,transparent);
}

.hrcade-screen-bar b {
  margin-left: 7px;
  color: var(--muted);
  font-family: "Manrope",sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .03em;
}

.hrcade-hero-visual figcaption,
.hrcade-story-media figcaption {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.hrcade-hero-visual figcaption {
  margin: 11px 0 0 18px;
}

.hrcade-proof { padding-bottom: 24px; }

.hrcade-proof-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
}

.hrcade-proof-grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
}

.hrcade-proof-grid article + article { border-left: 1px solid var(--line); }

.hrcade-proof-grid strong {
  color: var(--hrcade-blue);
  font-family: "Manrope",sans-serif;
  font-size: 23px;
  line-height: 1;
}

.hrcade-proof-grid span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.hrcade-intro { padding-block: 62px; }

.hrcade-intro-grid {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr);
  align-items: start;
  gap: clamp(40px,7vw,110px);
}

.hrcade-intro h2,
.hrcade-usecases h2,
.hrcade-flow-card h2,
.hrcade-cta-card h2 {
  margin: 9px 0 0;
  color: var(--strong);
  font-size: clamp(27px,3.1vw,43px);
  font-weight: 560;
  line-height: 1.25;
}

.hrcade-intro-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.hrcade-capture-note {
  margin-top: 20px !important;
  padding: 13px 15px;
  border-left: 3px solid var(--hrcade-blue);
  border-radius: 0 11px 11px 0;
  background: rgba(22,126,232,.07);
  font-size: 12px !important;
  line-height: 1.65 !important;
}

.hrcade-features {
  padding-block: 64px;
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.25);
}

.hrcade-section-head { margin-bottom: 34px; }

.hrcade-section-head p { max-width: 720px; }

.hrcade-story-list { display: grid; gap: 26px; }

.hrcade-story {
  display: grid;
  grid-template-columns: minmax(0,1.16fr) minmax(340px,.84fr);
  align-items: center;
  gap: clamp(30px,5vw,78px);
  padding: clamp(22px,3.4vw,50px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.78),rgba(255,255,255,.45));
  box-shadow: 0 13px 38px rgba(67,56,44,.065);
}

.hrcade-story.is-reversed { grid-template-columns: minmax(340px,.84fr) minmax(0,1.16fr); }
.hrcade-story.is-reversed .hrcade-story-media { grid-column: 2; }
.hrcade-story.is-reversed .hrcade-story-copy { grid-column: 1; grid-row: 1; }

.hrcade-story-media { min-width: 0; margin: 0; }

.hrcade-story-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: top center;
  border: 1px solid color-mix(in srgb,var(--line) 75%,var(--hrcade-blue));
  border-radius: 17px;
  background: var(--surface-solid);
  box-shadow: 0 18px 40px rgba(8,25,43,.16);
}

.hrcade-story-media.is-compact img { object-position: center; }
.hrcade-story-media figcaption { margin-top: 9px; }

.hrcade-story-copy { position: relative; min-width: 0; }

.hrcade-story-number {
  position: absolute;
  top: -28px;
  right: 0;
  color: color-mix(in srgb,var(--hrcade-blue) 12%,transparent);
  font-family: "Manrope",sans-serif;
  font-size: clamp(72px,8vw,114px);
  font-weight: 800;
  line-height: .8;
  pointer-events: none;
}

.hrcade-story-copy .eyebrow,
.hrcade-story-copy h3,
.hrcade-story-copy p,
.hrcade-story-copy ul { position: relative; }

.hrcade-story-copy h3 {
  margin: 10px 0 0;
  color: var(--strong);
  font-size: clamp(25px,2.5vw,38px);
  font-weight: 570;
  line-height: 1.28;
}

.hrcade-story-copy > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.hrcade-story-copy ul {
  display: grid;
  gap: 8px;
  margin: 19px 0 0;
  padding: 0;
  list-style: none;
}

.hrcade-story-copy li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
}

.hrcade-story-copy li::before {
  content: "✓";
  color: var(--hrcade-blue);
  font-weight: 800;
}

.hrcade-usecases { padding-block: 74px; }

.hrcade-usecase-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
}

.hrcade-usecase-grid article {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.64);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hrcade-usecase-grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--hover);
}

.hrcade-usecase-grid span {
  color: var(--hrcade-blue);
  font: 800 11px/1 "Manrope",sans-serif;
  letter-spacing: .12em;
}

.hrcade-usecase-grid h3 {
  margin: 36px 0 0;
  color: var(--strong);
  font-size: 20px;
}

.hrcade-usecase-grid p {
  margin: auto 0 0;
  padding-top: 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.72;
}

.hrcade-flow-section { padding-block: 24px 68px; }

.hrcade-flow-card {
  display: grid;
  grid-template-columns: minmax(300px,.7fr) minmax(0,1.3fr);
  align-items: center;
  gap: 60px;
  padding: clamp(30px,5vw,66px);
  border: 1px solid rgba(22,126,232,.22);
  border-radius: 26px;
  color: #dceaf7;
  background:
    radial-gradient(circle at 90% 0,rgba(49,185,255,.19),transparent 34%),
    linear-gradient(145deg,#071525,#0b1f34 55%,#0a192a);
  box-shadow: 0 24px 64px rgba(2,11,21,.22);
}

.hrcade-flow-card .eyebrow { color: #55c5ff; }
.hrcade-flow-card h2 { color: #f1f7fc; }
.hrcade-flow-copy p { margin: 15px 0 0; color: #9fb3c6; font-size: 13px; line-height: 1.75; }

.hrcade-flow {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hrcade-flow li {
  position: relative;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid rgba(122,190,240,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.hrcade-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -11px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #65caff;
  background: #0b1d31;
  font-size: 11px;
}

.hrcade-flow b { color: #55c5ff; font: 800 11px/1 "Manrope",sans-serif; }
.hrcade-flow strong { margin-top: 31px; color: #f0f7fd; font-size: 13px; line-height: 1.45; }
.hrcade-flow span { margin-top: auto; color: #8fa7bb; font-size: 10px; line-height: 1.55; }

.hrcade-final-cta { padding-block: 28px 74px; }

.hrcade-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(30px,4vw,52px);
  border: 1px solid var(--line);
  border-radius: 23px;
  background:
    radial-gradient(circle at 95% 20%,rgba(22,126,232,.13),transparent 28%),
    rgba(255,255,255,.66);
}

.hrcade-cta-card p { margin: 11px 0 0; color: var(--muted); font-size: 13px; }
.hrcade-cta-card .hero-actions { flex: 0 0 auto; margin-top: 0; }

html[data-theme="dark"] .hrcade-hero-grid {
  background:
    radial-gradient(circle at 88% 10%,rgba(49,185,255,.16),transparent 30%),
    radial-gradient(circle at 8% 100%,rgba(22,75,220,.11),transparent 32%),
    rgba(6,21,37,.78);
}

html[data-theme="dark"] .hrcade-proof-grid,
html[data-theme="dark"] .hrcade-story,
html[data-theme="dark"] .hrcade-usecase-grid article,
html[data-theme="dark"] .hrcade-cta-card {
  background: rgba(6,21,37,.74);
}

html[data-theme="dark"] .hrcade-hero-tags span { background: rgba(10,31,51,.78); }
html[data-theme="dark"] .hrcade-screen-frame { box-shadow: -22px 30px 78px rgba(0,0,0,.46); }
html[data-theme="dark"] .hrcade-screen-bar { background: #081829; }
html[data-theme="dark"] .hrcade-features { background: rgba(2,9,17,.24); }
html[data-theme="dark"] .hrcade-story-number { color: rgba(49,185,255,.065); }
html[data-theme="dark"] .hrcade-story-media img { box-shadow: 0 19px 46px rgba(0,0,0,.36); }

@media (max-width: 1180px) {
  .hrcade-hero-grid { grid-template-columns: minmax(330px,.8fr) minmax(500px,1.2fr); gap: 30px; padding: 46px 40px; }
  .hrcade-hero-visual { width: 118%; margin-right: -20%; }
  .hrcade-proof-grid { grid-template-columns: repeat(2,1fr); }
  .hrcade-proof-grid article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .hrcade-proof-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .hrcade-usecase-grid { grid-template-columns: repeat(2,1fr); }
  .hrcade-flow-card { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 900px) {
  .hrcade-hero { padding-top: 18px; }
  .hrcade-hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 38px 32px 0; }
  .hrcade-hero h1 { max-width: 760px; }
  .hrcade-hero-copy > p { max-width: 720px; }
  .hrcade-hero-visual { width: 112%; margin: 18px -10% -4% 7%; transform: perspective(1500px) rotateY(-5deg) rotateX(1deg); }
  .hrcade-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .hrcade-story,
  .hrcade-story.is-reversed { grid-template-columns: 1fr; gap: 30px; }
  .hrcade-story.is-reversed .hrcade-story-media,
  .hrcade-story.is-reversed .hrcade-story-copy { grid-column: auto; grid-row: auto; }
  .hrcade-story.is-reversed .hrcade-story-media { order: 0; }
  .hrcade-story.is-reversed .hrcade-story-copy { order: 1; }
  .hrcade-story-number { top: -10px; }
  .hrcade-cta-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 700px) {
  .hrcade-hero-grid { padding: 30px 20px 0; border-radius: 20px; }
  .hrcade-hero h1 { font-size: clamp(35px,10.5vw,50px); }
  .hrcade-hero-copy > p { font-size: 14px; }
  .hrcade-hero-visual { width: 128%; margin: 12px -20% -3% 2%; transform: none; }
  .hrcade-screen-bar { height: 27px; }
  .hrcade-proof-grid { grid-template-columns: 1fr; }
  .hrcade-proof-grid article + article,
  .hrcade-proof-grid article:nth-child(3),
  .hrcade-proof-grid article:nth-child(4) { border-top: 1px solid var(--line); border-left: 0; }
  .hrcade-intro { padding-block: 44px; }
  .hrcade-features { padding-block: 46px; }
  .hrcade-story { padding: 18px; border-radius: 18px; }
  .hrcade-story-media img { border-radius: 12px; }
  .hrcade-story-copy h3 { padding-right: 30px; font-size: 25px; }
  .hrcade-story-number { top: -2px; font-size: 72px; }
  .hrcade-usecase-grid { grid-template-columns: 1fr; }
  .hrcade-usecase-grid article { min-height: 190px; }
  .hrcade-flow-card { padding: 28px 20px; border-radius: 20px; }
  .hrcade-flow { grid-template-columns: 1fr; }
  .hrcade-flow li { min-height: 128px; }
  .hrcade-flow li:not(:last-child)::after { content: "↓"; top: auto; right: 20px; bottom: -11px; }
  .hrcade-flow strong { margin-top: 20px; }
  .hrcade-cta-card { padding: 28px 20px; }
  .hrcade-cta-card .hero-actions { width: 100%; display: grid; }
}

@media (max-width: 430px) {
  .hrcade-hero-tags span { font-size: 10px; }
  .hrcade-hero-visual { width: 142%; margin-right: -30%; }
  .hrcade-proof-grid article { padding: 15px; }
  .hrcade-proof-grid strong { font-size: 20px; }
  .hrcade-story { padding: 13px; }
  .hrcade-story-copy { padding: 8px 5px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hrcade-usecase-grid article { transition: none; }
}
