@font-face {
  font-family: RG-IoT-Kanit;
  src: url("media/kanit-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: RG-IoT-Kanit;
  src: url("media/kanit-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
.rg-iot-preview {
  --ink: #0b2438;
  --paper: #f6fafb;
  --sky: #65d8f5;
  --lime: #bff18e;
  --gutter: clamp(16px, 5vw, 72px);
  font: 400 16px/1.5 RG-IoT-Kanit, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
.rg-iot-preview *, .rg-iot-preview *::before, .rg-iot-preview *::after { box-sizing: border-box; }
.rg-iot-preview, .rg-iot-preview h1, .rg-iot-preview h2, .rg-iot-preview p, .rg-iot-preview figure, .rg-iot-preview dl, .rg-iot-preview dd { margin: 0; }
.rg-iot-preview img { display: block; max-width: 100%; }
.rg-iot-preview a { color: inherit; text-decoration: none; }
.rg-iot-preview a:focus-visible, .rg-iot-preview video:focus-visible { outline: 3px solid #ef9c69; outline-offset: 4px; }
.rg-iot-preview .wrap { width: min(100% - var(--gutter) * 2, 1220px); margin-inline: auto; }
.rg-iot-preview .bar, .rg-iot-preview .bar-links, .rg-iot-preview .languages { display: flex; align-items: center; }
.rg-iot-preview .bar { min-height: 72px; justify-content: space-between; gap: 16px; }
.rg-iot-preview .brand img { width: clamp(120px, 15vw, 171px); height: auto; mix-blend-mode: multiply; }
.rg-iot-preview .bar-links { gap: 24px; }
.rg-iot-preview .bar-nav { font-weight: 600; }
.rg-iot-preview .languages { gap: 5px; font-size: 13.44px; }
.rg-iot-preview .languages a { padding: 7px 10px; border-radius: 4px; }
.rg-iot-preview .languages [aria-current] { background: #d8f4fc; color: #103b55; font-weight: 600; }

.rg-iot-preview .hero {
  position: relative;
  isolation: isolate;
  color: #f2f9ff;
  background: radial-gradient(ellipse at 78% 28%, #123d56, #0a253c 48%, #07182b 84%);
  overflow: hidden;
}
.rg-iot-preview .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  grid-template-rows: 1fr 1fr;
  gap: 18px clamp(16px, 3.3vw, 48px);
  padding-block: clamp(35px, 5.2vw, 72px) clamp(24px, 3.5vw, 44px);
}
.rg-iot-preview .heading { align-self: end; }
.rg-iot-preview .eyebrow, .rg-iot-preview .kicker {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.48px;
  font-weight: 700;
  letter-spacing: .13em;
}
.rg-iot-preview .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--sky); }
.rg-iot-preview .eyebrow > span:first-child {
  width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--lime); flex: 0 0 auto;
  box-shadow: 0 0 10px #bff18e5c;
}
.rg-iot-preview .eyebrow-rule { width: 45px; height: 1px; background: #41819a; }
.rg-iot-preview h1 {
  margin-top: 14px;
  font-size: clamp(33.6px, 4.7vw, 68px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -.035em;
}
.rg-iot-preview h1 em { color: var(--sky); font-style: normal; }
.rg-iot-preview .hero-body { grid-row: 2; grid-column: 1; }
.rg-iot-preview .hero-body > p { max-width: 36ch; color: #cfdfed; font-size: clamp(16.16px, 1.6vw, 19.84px); }
.rg-iot-preview .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.rg-iot-preview .button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1.18;
}
.rg-iot-preview .primary { background: var(--sky); color: #092b3b; }
.rg-iot-preview .primary:hover { background: #a1ecfc; }
.rg-iot-preview .secondary { border-color: #719bb1; }
.rg-iot-preview .secondary:hover { background: #12384d; }

.rg-iot-preview .stage {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
  align-self: center;
  justify-self: end;
  width: min(100%, 290px);
  overflow: hidden;
  background: #0b2538;
  border: 1px solid #47798e;
  border-radius: 16px;
  box-shadow: 0 20px 54px #04121fb5;
  scroll-margin-top: 16px;
}
.rg-iot-preview .stage video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #061827;
}
.rg-iot-preview .stage:target { outline: 2px solid var(--sky); outline-offset: 3px; }
.rg-iot-preview .scene, .rg-iot-preview .plane { position: absolute; pointer-events: none; }
.rg-iot-preview .scene { inset: 0; z-index: -1; overflow: hidden; }
.rg-iot-preview .scene::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #071a2ef7 6%, #071a2eea 23%, #071a2eba 36%, #071a2e10 61%, #071a2e32),
    linear-gradient(0deg, #071a2e 0%, #071a2ed4 11%, transparent 36%);
}
.rg-iot-preview .plane { transform: translate3d(var(--depth-x, 0px), var(--depth-y, 0px), 0); }
.rg-iot-preview .far { inset: -18% -5%; background: url("media/iot-lab-far.webp") 56% 50% / cover no-repeat; }
.rg-iot-preview .middle {
  left: 34%; bottom: 20%;
  width: min(36vw, 490px); height: 61%;
  background: url("media/iot-student-middle.webp") center bottom / contain no-repeat;
  filter: drop-shadow(0 12px 20px #05182799);
}
.rg-iot-preview .near {
  left: 48%; bottom: 10%;
  width: min(33vw, 490px); height: 74%;
  background: url("media/iot-robot-near.webp") center bottom / contain no-repeat;
  filter: drop-shadow(0 16px 19px #020c1dba) drop-shadow(0 0 16px #73e7ef26);
}
.rg-iot-preview .stage figcaption {
  display: grid;
  gap: 2px;
  padding: 9px 12px 10px;
  color: #c9e4f0;
  font-size: 12.16px;
}
.rg-iot-preview .stage figcaption strong { font-size: 13.6px; color: #fff; }
.rg-iot-preview .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #31536b; }
.rg-iot-preview .facts div { padding-block: 15px 18px; padding-inline: clamp(8px, 1.4vw, 21px); }
.rg-iot-preview .facts div:first-child { padding-inline-start: 0; }
.rg-iot-preview .facts div + div { border-inline-start: 1px solid #31536b; }
.rg-iot-preview .facts dt { color: var(--sky); font-weight: 600; font-size: clamp(15.2px, 1.5vw, 19.2px); }
.rg-iot-preview .facts dd { color: #c5d9e7; font-size: clamp(11.36px, 1.15vw, 14.56px); }

.rg-iot-preview .demo {
  display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center; gap: clamp(20px, 5vw, 80px);
  padding-block: clamp(45px, 8vw, 96px);
  scroll-margin-top: 16px;
}
.rg-iot-preview .kicker { color: #087b9f; margin-bottom: 9px; }
.rg-iot-preview h2 { font-size: clamp(29.6px, 3.5vw, 48px); line-height: 1.17; font-weight: 600; }
.rg-iot-preview .demo p:not(.kicker) { color: #456071; margin-block: 12px 17px; }
.rg-iot-preview .course-link { color: #076986; text-decoration: underline; text-underline-offset: 4px; }
.rg-iot-preview .demo video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain;
  background: #0b2538; border: 1px solid #b9d2dd; border-radius: 12px;
}
@media (max-width: 640px) {
  .rg-iot-preview .bar { min-height: 60px; }
  .rg-iot-preview .bar-links { gap: 8px; }
  .rg-iot-preview .bar-nav { font-size: 12.48px; }
  .rg-iot-preview .languages { gap: 1px; font-size: 12px; }
  .rg-iot-preview .languages a { padding-inline: 6px; }
  .rg-iot-preview .hero-inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    grid-template-rows: auto auto;
    gap: 16px 9px;
    padding-block: 24px 21px;
  }
  .rg-iot-preview .heading { align-self: center; }
  .rg-iot-preview .eyebrow { font-size: clamp(8.48px, 2.25vw, 10.72px); letter-spacing: .065em; gap: 5px; }
  .rg-iot-preview .eyebrow-rule { display: none; }
  .rg-iot-preview .eyebrow > span:first-child { width: 5px; }
  .rg-iot-preview h1 { font-size: clamp(21.12px, 5.25vw, 35.2px); margin-top: 8px; letter-spacing: -.025em; }
  .rg-iot-preview .stage { grid-row: 1; width: min(100%, 168px); border-radius: 10px; }
  .rg-iot-preview .stage figcaption { font-size: 9.6px; line-height: 1.2; padding: 6px 7px; }
  .rg-iot-preview .stage figcaption strong { font-size: 10.4px; }
  .rg-iot-preview .far { background-position: 65% center; }
  .rg-iot-preview .middle { left: 8%; bottom: 24%; width: 63vw; height: 58%; opacity: .8; }
  .rg-iot-preview .near { left: 26%; bottom: 14%; width: 65vw; height: 68%; }
  .rg-iot-preview .scene::after {
    background:
      linear-gradient(90deg, #071a2ef7 1%, #071a2eca 30%, #071a2e55 59%, #071a2e40),
      linear-gradient(0deg, #071a2e 0%, #071a2ee7 24%, #071a2e10 53%);
  }
  .rg-iot-preview .hero-body { grid-column: 1 / -1; }
  .rg-iot-preview .hero-body > p { font-size: 15.68px; max-width: 42ch; }
  .rg-iot-preview .actions { margin-top: 13px; }
  .rg-iot-preview .button { font-size: 13.76px; padding-inline: 10px; min-height: 44px; }
  .rg-iot-preview .demo { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .rg-iot-preview .plane { transform: none; }
}

.rg-iot-preview :is(h1, h2, a) { font-family: inherit; }
.rg-iot-preview .heading h1 { color: #f2f9ff; }
.rg-iot-preview .hero .actions .primary { color: #092b3b !important; }
.rg-iot-preview .hero .actions .secondary { color: #f2f9ff; }
.rg-iot-preview .stage video { max-width: 100%; }
.rg-iot-preview .rg-iot-course-nav { background: #fff; color: #0b2438; }
.rg-iot-preview-original { scroll-margin-top: 96px; }
