.home-hero {
  position: relative;
  min-height: min(640px, calc(100svh - 130px));
  overflow: hidden;
  border-bottom: 2px solid var(--mc-outline);
  background: #202c25;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 14, 12, 0.58);
}

.home-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.home-hero__copy {
  max-width: 790px;
}

.home-hero .eyebrow,
.home-section .eyebrow,
.home-capability .eyebrow,
.home-cta .eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: 3.45rem;
  line-height: 1.28;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.66);
}

/*
 * English words run wider per character than Thai, so the same font-size
 * that fits the Thai headline comfortably overflows/wraps tightly in
 * English at the same container width — scale it down a step instead.
 */
html[lang="en"] .home-hero h1 {
  max-width: 820px;
  font-size: 2.85rem;
}

.home-hero__lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: #edf1ed;
  font-size: 1.12rem;
  line-height: 1.8;
}

.home-hero__actions,
.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero__actions {
  margin-top: 28px;
}

.home-hero__console {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 690px);
  min-height: 56px;
  margin-top: 28px;
  padding: 10px 14px;
  overflow: hidden;
  border: 2px solid var(--mc-outline);
  box-shadow: var(--bevel-inset);
  background: rgba(9, 11, 12, 0.9);
  color: var(--mc-grass-bright);
  font-family: var(--font-pixel);
}

.home-hero__console code {
  min-width: 0;
  overflow: hidden;
  color: #eef7ec;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hero__console-status {
  margin-left: auto;
  color: #9de6ee;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  white-space: nowrap;
}

.home-ad-slot {
  margin-top: 32px;
  margin-bottom: 32px;
}

.home-update {
  margin-top: 48px;
  margin-bottom: 8px;
}

.home-update__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 42px;
  overflow: hidden;
  padding: 38px 40px 38px 48px;
  border: 3px solid #0a0c0d;
  border-left: 10px solid #f2b522;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.42), inset 0 0 0 2px #4c5358;
  background:
    linear-gradient(90deg, rgba(242, 181, 34, 0.04), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.025) 31px 32px),
    #191d20;
}

.home-update__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 148px;
  height: 8px;
  background: repeating-linear-gradient(135deg, #f2b522 0 10px, #17191b 10px 20px);
}

.home-update__copy {
  position: relative;
  z-index: 1;
}

.home-update__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #f2c94c;
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.home-update h2 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  line-height: 1.35;
}

.home-update__copy > p:not(.home-update__label) {
  max-width: 720px;
  margin: 16px 0 0;
  color: #cbd1d5;
  line-height: 1.75;
}

.home-update__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.home-update__facts li {
  padding: 6px 10px;
  border: 1px solid #697178;
  background: #292f34;
  color: #e5eaed;
  font-size: 0.78rem;
  font-weight: 700;
}

.home-update__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}

.home-update__guide {
  color: #aee7ed;
  font-weight: 700;
  text-decoration: none;
}

.home-update__guide:hover,
.home-update__guide:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.home-update__visual {
  align-self: center;
  min-width: 0;
  padding: 16px;
  border: 3px solid #08090a;
  box-shadow: inset 0 0 0 2px #51575c, 5px 5px 0 rgba(0, 0, 0, 0.45);
  background: #101315;
}

.home-update__screen-label {
  padding-bottom: 10px;
  border-bottom: 1px solid #454b50;
  color: #879197;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.home-update__chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  padding: 18px 4px 16px;
}

.home-update__chain::before {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 39px;
  left: 8%;
  height: 5px;
  background: #e6a914;
  box-shadow: 0 2px 0 #765100;
}

.home-update__block {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0;
  text-align: center;
}

.home-update__block img {
  display: block;
  width: 100%;
  max-width: 118px;
  height: auto;
  margin: 0 auto;
  image-rendering: pixelated;
  filter: drop-shadow(5px 7px 0 rgba(0, 0, 0, 0.48));
}

.home-update__block--impulse img {
  transform: translateY(-5px) scale(1.06);
}

.home-update__block figcaption {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 5px;
  border: 1px solid #3f474d;
  background: #171a1c;
  color: #aeb8bd;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
}

.home-update__command {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 11px 12px;
  border: 2px solid #050606;
  box-shadow: inset 0 0 0 1px #4c5358;
  background: #24292d;
  color: #74d76e;
  font-family: var(--font-pixel);
}

.home-update__command code {
  min-width: 0;
  overflow: hidden;
  color: #f0f3f1;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-update__settings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  color: #8e999f;
  font-family: var(--font-pixel);
  font-size: 0.54rem;
}

.home-proof {
  background: var(--mc-stone);
  border-top: 2px solid var(--mc-outline);
  border-bottom: 2px solid var(--mc-outline);
  color: #23262a;
}

.home-proof__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-proof__item {
  min-width: 0;
  padding: 24px 26px;
  border-left: 2px solid #8b8b8b;
}

.home-proof__item:first-child {
  border-left: 0;
}

.home-proof__item strong,
.home-proof__item span {
  display: block;
}

.home-testimonials {
  padding-top: 76px;
  padding-bottom: 76px;
  background:
    linear-gradient(rgba(13, 15, 17, 0.94), rgba(13, 15, 17, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.035) 31px 32px);
  border-bottom: 6px solid var(--mc-grass);
}

.home-testimonials__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.home-testimonials__head h2 {
  margin: 0;
  font-size: 2rem;
}

.home-testimonials__head p:last-child {
  max-width: 700px;
  margin: 10px 0 0;
  color: #bfc7cd;
}

.home-testimonials__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.home-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.home-testimonial {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 24px;
  background: var(--mc-stone);
  color: #23262a;
  border: 2px solid var(--mc-outline);
  box-shadow: var(--bevel-raised);
}

.home-testimonial::before {
  content: "“";
  position: absolute;
  top: 10px;
  right: 16px;
  color: rgba(72, 111, 45, 0.18);
  font-family: Georgia, serif;
  font-size: 4.8rem;
  line-height: 1;
}

.home-testimonial__rating {
  position: relative;
  color: #6b4400;
  font-family: var(--font-sans);
  letter-spacing: 3px;
}

.home-testimonial blockquote {
  position: relative;
  margin: 16px 0 22px;
}

.home-testimonial blockquote p {
  margin: 0;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.home-testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 2px solid #969696;
}

.home-testimonial__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--mc-grass);
  color: #fff;
  border: 2px solid var(--mc-outline);
  box-shadow: var(--bevel-raised);
  font-weight: 700;
}

.home-proof__item strong {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  letter-spacing: 0;
}

.home-proof__item span {
  margin-top: 2px;
  color: #454b50;
  font-size: 0.88rem;
}

.home-section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.home-section__heading {
  max-width: 760px;
}

.home-section__heading h2,
.home-capability h2,
.home-cta h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0;
}

.home-section__heading > p:last-child {
  margin: 14px 0 0;
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid #667078;
}

.home-step {
  min-width: 0;
  padding: 26px 28px 0;
  border-left: 2px solid #3d444a;
}

.home-step:first-child {
  padding-left: 0;
  border-left: 0;
}

.home-step__number {
  color: var(--mc-gold);
  font-family: var(--font-pixel);
  font-size: 0.82rem;
}

.home-step h3 {
  margin: 12px 0 8px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.home-step p {
  margin: 0;
  color: var(--color-text-muted);
}

.home-capability {
  padding-top: 76px;
  padding-bottom: 76px;
  border-top: 2px solid var(--mc-outline);
  border-bottom: 2px solid var(--mc-outline);
  background: #252a2f;
}

.home-capability__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.home-capability__copy p:not(.eyebrow) {
  margin: 16px 0 0;
  color: #bdc5cb;
}

.home-text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-ui);
  font-weight: 700;
  text-decoration: none;
}

.home-text-link:hover {
  text-decoration: underline;
}

.home-capability__preview {
  min-width: 0;
  padding: 22px;
  border: 2px solid var(--mc-outline);
  box-shadow: var(--bevel-inset);
  background: #0d0f11;
}

.home-capability__preview-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
  color: #adb7be;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
}

/*
 * The bar sets --font-pixel for its "JAVA 1.21.x" label, but this span is Thai
 * and --font-pixel (Monocraft, JetBrains Mono, monospace) has no Thai glyphs in
 * any of its three entries, so the text fell through to the browser's last
 * resort monospace. --font-ui keeps Monocraft first and puts Noto Sans Thai
 * behind it, which is the pair that actually renders Thai.
 */
.home-capability__ready {
  color: var(--mc-grass-bright);
  font-family: var(--font-ui);
}

.home-capability__preview code {
  display: block;
  padding: 16px;
  overflow: auto;
  border: 2px solid #343a3f;
  background: #171a1d;
  color: #dcebd9;
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  white-space: nowrap;
}

.home-capability__preview p {
  margin: 18px 0 0;
  color: #c8d0d6;
  font-size: 0.9rem;
}

.home-capability__preview strong {
  color: #83d78b;
}

.home-audiences {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 44px;
  border-top: 2px solid #3d444a;
  border-bottom: 2px solid #3d444a;
}

.home-audiences article {
  position: relative;
  min-width: 0;
  padding: 30px;
  border-left: 2px solid #3d444a;
}

.home-audiences article:first-child {
  border-left: 0;
}

.home-audiences__marker {
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--mc-outline);
  box-shadow: var(--bevel-raised);
  background: var(--mc-aqua);
}

.home-audiences article:nth-child(2) .home-audiences__marker {
  background: var(--mc-gold);
}

.home-audiences article:nth-child(3) .home-audiences__marker {
  background: var(--mc-grass);
}

.home-audiences h3 {
  margin: 16px 0 8px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.home-audiences p {
  margin: 0;
  color: var(--color-text-muted);
}

.home-cta {
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 8px solid var(--mc-grass);
  border-bottom: 2px solid var(--mc-outline);
  background: #30353a;
}

.home-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.home-cta__actions {
  justify-content: flex-end;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .home-hero {
    min-height: 620px;
  }

  .home-hero h1 {
    max-width: 680px;
    font-size: 2.75rem;
  }

  html[lang="en"] .home-hero h1 {
    max-width: 640px;
    font-size: 2.3rem;
  }

  .home-proof__grid,
  .home-steps,
  .home-audiences,
  .home-testimonials__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-testimonials__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-update__panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-update__visual {
    width: min(100%, 560px);
  }

  .home-proof__item,
  .home-step,
  .home-step:first-child,
  .home-audiences article {
    padding-left: 20px;
    border-left: 0;
    border-top: 2px solid #8b8b8b;
  }

  .home-proof__item:first-child,
  .home-step:first-child,
  .home-audiences article:first-child {
    border-top: 0;
  }

  .home-steps {
    border-top: 2px solid #667078;
  }

  .home-step {
    padding-top: 24px;
    padding-bottom: 24px;
    border-top-color: #3d444a;
  }

  .home-audiences article {
    padding: 26px 20px;
    border-top-color: #3d444a;
  }

  .home-capability__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .home-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .home-hero {
    min-height: min(660px, calc(100svh - 72px));
  }

  .home-hero::before {
    background: rgba(10, 14, 12, 0.68);
  }

  .home-hero__image {
    object-position: 66% center;
  }

  .home-hero__inner {
    align-items: flex-end;
    padding-top: 48px;
    padding-bottom: 42px;
  }

  .home-hero h1 {
    font-size: 2.15rem;
    line-height: 1.34;
  }

  html[lang="en"] .home-hero h1 {
    max-width: none;
    font-size: 1.85rem;
  }

  .home-hero__lead {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.7;
  }

  .home-hero__actions .btn,
  .home-cta__actions .btn {
    width: 100%;
  }

  .home-hero__console {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 20px;
  }

  .home-hero__console code {
    width: calc(100% - 24px);
  }

  .home-hero__console-status {
    width: 100%;
    margin-left: 24px;
  }

  .home-update {
    margin-top: 32px;
  }

  .home-update__panel {
    gap: 28px;
    padding: 30px 18px 22px 22px;
    border-left-width: 7px;
  }

  .home-update h2 {
    font-size: 1.55rem;
  }

  .home-update__actions,
  .home-update__actions .btn {
    width: 100%;
  }

  .home-update__guide {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .home-update__visual {
    padding: 12px;
  }

  .home-update__chain {
    gap: 4px;
    padding: 18px 0 16px;
  }

  .home-update__chain::before {
    bottom: 34px;
  }

  .home-update__block figcaption {
    font-size: 0.42rem;
  }

  .home-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .home-testimonials {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .home-testimonials__head h2 {
    font-size: 1.55rem;
  }

  .home-testimonials__actions,
  .home-testimonials__actions .btn {
    width: 100%;
  }

  .home-testimonial {
    padding: 20px;
  }

  .home-section__heading h2,
  .home-capability h2,
  .home-cta h2 {
    font-size: 1.55rem;
  }

  .home-capability {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .home-capability__preview {
    padding: 14px;
  }

  .home-capability__preview code {
    padding: 12px;
    font-size: 0.78rem;
  }
}
