/* Keep controls and their symbols centered across fonts and languages. */
.language-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-switch .lang {
  display: block;
  height: 40px;
  min-height: 40px;
  padding: 0 34px 0 13px;
  line-height: normal;
  text-align: left;
  color-scheme: dark;
  background-color: #11233b;
  color: #eaf5ff;
}

.language-switch .lang:hover,
.language-switch .lang:focus,
.language-switch .lang:active {
  background-color: #172d49;
  border-color: #4b779e;
  color: #f6fbff;
}

.language-switch .lang option {
  background-color: #11233b;
  color: #f6fbff;
}

.language-switch::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #a9bdd2;
  border-bottom: 1.5px solid #a9bdd2;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.eyebrow,
.kicker {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.eyebrow::before,
.kicker::before {
  flex: 0 0 auto;
  margin-right: 0;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1;
}

.link {
  gap: 8px;
}

.link span,
.cta-button span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 0;
  line-height: 1;
}

.faqrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.faqrow span {
  flex: 0 0 auto;
  width: 22px;
  text-align: center;
  line-height: 1;
}

/* Informational cards should not imply a destination that does not exist. */
.card::after,
.scene::after {
  content: none !important;
  display: none !important;
}

.card:hover,
.scene:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.menu-toggle { display: none; }

@media (max-width: 800px) {
  .nav { position: sticky; top: 0; z-index: 50; }
  .language-switch { order: 1; margin-left: auto; }
  .menu-toggle {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #2a4b6b;
    border-radius: 10px;
    background: #11233b;
    color: #eaf5ff;
    cursor: pointer;
  }
  .menu-toggle:focus-visible { outline: 3px solid #43d9ef; outline-offset: 3px; }
  .menu-bars,
  .menu-bars::before,
  .menu-bars::after {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  .menu-bars { position: relative; }
  .menu-bars::before,
  .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -6px; }
  .menu-bars::after { top: 6px; }
  .nav .navlinks {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 51;
    flex-direction: column;
    gap: 0;
    padding: 8px 12px;
    border: 1px solid #2a4b6b;
    border-radius: 0 0 12px 12px;
    background: #0e1d31;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .28);
  }
  .nav.menu-open .navlinks { display: flex; }
  .nav .navlinks a { display: block; padding: 11px 10px; }
  .language-switch .lang {
    height: 38px;
    min-height: 38px;
    min-width: 132px;
    max-width: 172px;
    padding-right: 30px;
  }
  .language-switch::after { right: 13px; }
}

@media (max-width: 390px) {
  .language-switch .lang { min-width: 126px; max-width: 150px; }
  html[lang='ms'] .hero h1,
  html[lang='vi'] .hero h1,
  html[lang='th'] .hero h1 { font-size: 34px; line-height: 1.16; }
}

/* Final spacing and type scale, after all legacy theme layers. */
:root { --section-space: 76px; }
body { font-size: 16px; line-height: 1.65; }
.wrap { width: min(1200px, calc(100% - 64px)); }
.nav { height: 70px; }
.hero { min-height: 570px; padding: 64px 0 48px; gap: 56px; }
.hero h1 { font-size: clamp(46px, 5.3vw, 72px); line-height: 1.1; margin: 18px 0 20px; }
.hero p { font-size: 16px; line-height: 1.7; }
.preview { max-width: 520px; }
.numbers { padding: 17px 0; }
.section { padding: var(--section-space) 0; }
.section h2 { font-size: clamp(34px, 3.8vw, 50px); line-height: 1.17; margin: 12px 0 14px; }
.intro { font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.cards, .scenes, .stack-grid { margin-top: 16px; }
.card { min-height: 230px; padding: 26px; }
.card small { margin-top: 13px; }
.card h3, .scene h3 { font-size: 19px; }
.card p, .scene p, .step p, .stack-item span { font-size: 14px; line-height: 1.65; }
.cards + .kicker { margin-top: 58px !important; }
.process { margin-top: 18px; }
.step { min-height: 160px; padding: 22px; }
.step h3 { font-size: 17px; margin-top: 12px; }
.step::after { margin-top: 18px; }
.scene { min-height: 160px; padding: 22px; }
.scene::before { width: 48px; height: 48px; margin-bottom: 15px; }
.stack-item { min-height: 95px; padding: 18px; }
.meaning { gap: 52px; padding: 28px; }
.meaning p { font-size: 17px; line-height: 1.7; }
.pillar { padding: 18px; }
.company { gap: 48px; align-items: start; }
.company .intro { margin-bottom: 0; }
.details { margin-top: 0; }
.details div { padding: 13px 0; }
.faq { padding-bottom: 64px; }
.faqrow { min-height: 56px; padding: 15px 6px; font-size: 16px; }
.final-cta { margin-bottom: 64px; padding: 42px 48px; }
.final-cta h2 { font-size: clamp(32px, 3.7vw, 46px); }
.footer { padding: 34px 0; }

@media (max-width: 800px) {
  :root { --section-space: 62px; }
  .wrap { width: calc(100% - 40px); }
  .hero { min-height: 0; padding: 54px 0 38px; }
  .hero h1 { font-size: clamp(40px, 8.5vw, 56px); }
  .preview { margin-top: 34px; max-width: 100%; }
  .section h2 { font-size: clamp(32px, 6.5vw, 44px); }
  .card, .scene { min-height: 0; }
  .company, .meaning { grid-template-columns: 1fr; gap: 26px; }
  .details { margin-top: 0; }
}

@media (max-width: 600px) {
  :root { --section-space: 48px; }
  body { font-size: 15px; }
  .wrap { width: calc(100% - 36px); }
  .nav { height: 60px; }
  .hero { padding: 43px 0 30px; }
  .hero::before { top: 15px; }
  .hero h1 { font-size: clamp(36px, 9.5vw, 42px); line-height: 1.16; margin: 14px 0 18px; }
  .hero p { font-size: 15px; line-height: 1.65; }
  .preview { margin-top: 30px; }
  .numbers { padding: 15px 0; }
  .section h2 { font-size: clamp(30px, 8vw, 36px); line-height: 1.2; margin: 11px 0 14px; }
  .intro { font-size: 14px; line-height: 1.65; margin-bottom: 21px; }
  .cards + .kicker { margin-top: 43px !important; }
  .card { padding: 22px; }
  .card small { margin: 11px 0 5px; }
  .step { min-height: 0; padding: 20px; }
  .step::after { margin-top: 15px; }
  .scenes { gap: 10px; }
  .scene { padding: 19px; }
  .scene::before { width: 42px; height: 42px; margin-bottom: 12px; }
  .stack-item { min-height: 0; padding: 17px; }
  .meaning { padding: 20px; gap: 16px; }
  .meaning p { font-size: 15px; margin: 10px 0 20px; }
  .pillar { padding: 15px; }
  .company { gap: 22px; }
  .details { grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); padding: 0 12px; font-size: 13px; overflow-wrap: anywhere; }
  .details div { padding: 13px 0; }
  .faq { padding-bottom: 46px; }
  .faqrow { font-size: 15px; }
  .final-cta { padding: 26px 22px; margin-bottom: 44px; }
  .final-cta h2 { font-size: 30px; }
  .footer { padding: 28px 0; gap: 14px; }
}

@media (max-width: 390px) {
  html[lang='en'] .hero h1,
  html[lang='ms'] .hero h1,
  html[lang='vi'] .hero h1,
  html[lang='th'] .hero h1 { font-size: clamp(32px, 8.5vw, 36px); line-height: 1.18; }
  html[lang='ms'] .section h2,
  html[lang='vi'] .section h2,
  html[lang='th'] .section h2 { font-size: 29px; }
}
