:root {
  --ink: #0D2236;
  --brand: #02AFF1;
  --brand-tint: #E8F7FE;
  --mark: #BDEBFC;
  --muted: #5B6470;
  --muted-strong: #4A525C;
  --dots: #A1A4A9;
  --line: #DCE6EE;
  --rule: #E8ECF0;
  --soft: #F1F3F5;
  --link: #0369A1;
  --font: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

/* ---------- page frame: one screen on desktop ---------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 56px 22px;
}

.top, .hero, .foot {
  width: 100%;
  max-width: 1328px;
  margin-inline: auto;
}

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

.brand { display: flex; }
.brand img { display: block; height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; font-size: 16px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--link); }

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

.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.lang:hover { background: var(--soft); color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { height: 44px; padding: 0 20px; border-radius: 12px; font-size: 15px; }
.btn--dark { background: var(--ink); color: #FFFFFF; }
.btn--dark:hover { background: #17344F; color: #FFFFFF; }
.btn--brand { background: var(--brand); color: var(--ink); }
.btn--brand:hover { background: #33C1F5; color: var(--ink); }
.btn--outline { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #FFFFFF; }

.label-short, .eyebrow__short { display: none; }

/* ---------- hero ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 72px;
}

.intro {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand-tint);
  font-size: 14px;
  font-weight: 500;
}

.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--brand); flex: none; }

h1 {
  margin: 0;
  font-size: clamp(40px, 3.9vw, 56px);
  line-height: 1.25;
  font-weight: 700;
}
[dir="ltr"] h1 { line-height: 1.15; letter-spacing: -0.5px; }
h1 .line { display: block; }
h1 mark { background: transparent; color: inherit; box-shadow: inset 0 -0.3em 0 var(--mark); padding: 0 4px; }

.lead {
  margin: 0;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.85;
  color: var(--muted);
}
[dir="ltr"] .lead { line-height: 1.7; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- platforms panel ---------- */

.platforms {
  flex: 1.2 1 520px;
  min-width: 0;
  position: relative;
  padding: 28px;
  border-radius: 40px;
  background: var(--brand-tint);
}

.deco { position: absolute; border-radius: 999px; background: var(--dots); }
.deco--a { top: -14px; inset-inline-end: 34px; width: 30px; height: 30px; }
.deco--b { top: 8px; inset-inline-end: 2px; width: 22px; height: 22px; }

.platforms__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.grid { position: relative; display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 216px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #FFFFFF;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.tile:hover {
  color: var(--ink);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 34, 54, 0.08);
}
a.tile:focus-visible { border-radius: 24px; }

.tile__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }

.tile__icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--brand-tint);
  color: var(--link);
}
.tile__icon img { width: 100%; height: 100%; object-fit: contain; }
.tile--soon .tile__icon { background: var(--soft); color: var(--muted); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; }
.chip--live { background: var(--brand-tint); color: var(--ink); }
.chip--soon { background: var(--soft); color: var(--muted-strong); }

.tile__body { display: flex; flex-direction: column; gap: 6px; }
.tile__name { font-size: 22px; font-weight: 600; line-height: 1.3; }
.tile__desc { font-size: 14px; line-height: 1.7; color: var(--muted); }
[dir="ltr"] .tile__desc { line-height: 1.6; }

.tile__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
}
.tile__more--muted { color: var(--muted); font-weight: 500; }

.tile--cta { background: var(--brand); border-color: var(--brand); }
.tile--cta .tile__icon--plus { border-radius: 999px; background: var(--ink); color: #FFFFFF; }
.tile--cta .tile__name { font-weight: 700; }
.tile--cta .tile__desc { color: var(--ink); }
.tile--cta .tile__more { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
a.tile--cta:hover { border-color: var(--ink); }

/* ---------- footer ---------- */

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}
.foot__links { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.foot__links a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.foot__links a:hover { color: var(--link); }

/* ---------- medium screens ---------- */

@media (max-width: 1180px) {
  .page { padding: 24px 32px 20px; }
  .hero { gap: 40px; }
  .intro { flex-basis: 360px; }
  .platforms { flex-basis: 440px; }
  .tile { min-height: 0; padding: 18px; }
  .tile__name { font-size: 20px; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .hero { padding-block: 16px; }
}

/* Short desktop and laptop screens (e.g. 1280×720, 1366×768): tighten
   vertical spacing so the page still fits without scrolling. */
@media (min-width: 904px) and (max-height: 860px) {
  .page { padding-top: 18px; padding-bottom: 14px; gap: 16px; }
  .brand img { height: 48px; }
  .intro { gap: 20px; }
  h1 { font-size: clamp(34px, 3.4vw, 48px); }
  .lead { font-size: 17px; line-height: 1.7; }
  .btn { height: 50px; }
  .btn--sm { height: 44px; }
  .platforms { padding: 20px; border-radius: 32px; }
  .grid { gap: 12px; }
  .tile { min-height: 0; padding: 16px; gap: 10px; border-radius: 20px; }
  .tile__icon { width: 44px; height: 44px; border-radius: 14px; }
  .tile__icon svg { width: 22px; height: 22px; }
  .tile__name { font-size: 19px; }
  .tile__desc { font-size: 13.5px; line-height: 1.6; }
  .foot { padding-top: 12px; }
}

/* ---------- phones and portrait tablets: compact, fits one screen ---------- */

@media (max-width: 903px) {
  .page {
    gap: 0;
    padding: max(16px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom));
  }
  .brand img { height: 40px; }
  .top__actions { gap: 4px; }
  .lang { padding: 0 10px; }
  .lang svg { display: none; }

  .hero { flex-direction: column; align-items: stretch; gap: 26px; margin-top: 26px; padding: 0; flex: none; }
  .intro { flex: none; gap: 14px; }

  .eyebrow { padding: 6px 12px; font-size: 12px; gap: 8px; }
  .eyebrow__long { display: none; }
  .eyebrow__short { display: inline; }

  h1 { font-size: 31px; line-height: 1.3; }
  [dir="ltr"] h1 { font-size: 30px; line-height: 1.2; }
  h1 .line { display: inline; }
  .lead { font-size: 15px; line-height: 1.75; }

  .actions { flex-wrap: nowrap; gap: 10px; width: 100%; }
  .actions .btn { flex: 1; height: 50px; padding: 0 12px; border-radius: 14px; font-size: 15px; }
  .btn__arrow, .label-long { display: none; }
  .label-short { display: inline; }

  .platforms { flex: none; padding: 16px; border-radius: 28px; }
  .deco--a { top: -10px; inset-inline-end: 26px; width: 20px; height: 20px; }
  .deco--b { top: 6px; inset-inline-end: 4px; width: 14px; height: 14px; }
  .platforms__title {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    margin: 0 4px 12px;
    font-size: 15px;
    font-weight: 600;
  }

  .grid { gap: 10px; }
  .tile { min-height: 104px; padding: 12px; gap: 8px; border-radius: 18px; }
  .tile__top { display: contents; }
  .tile__icon { width: 38px; height: 38px; border-radius: 12px; order: 1; }
  .tile__icon svg { width: 20px; height: 20px; }
  .tile__body { order: 2; }
  .tile__name { font-size: 14px; }
  .tile__desc { display: none; }
  .chip { order: 3; margin-top: auto; padding: 0; background: none; font-size: 11px; color: var(--muted-strong); align-self: flex-start; }
  .tile__more { display: none; }
  .tile--cta .tile__more { display: inline-flex; order: 3; font-size: 11px; }
  .tile--cta .tile__more svg { display: none; }
  .tile--cta .tile__name { font-size: 14px; }
  a.tile:hover { transform: none; box-shadow: none; }

  .foot { margin-top: auto; padding-top: 12px; font-size: 12px; gap: 8px; }
  .foot__copy { display: none; }
  .foot__links { width: 100%; justify-content: space-between; gap: 8px; }
  .foot__links a { min-height: 44px; gap: 6px; }
  .foot__links svg { width: 16px; height: 16px; }
}

@media (max-width: 903px) and (min-height: 760px) {
  .hero { margin-top: 30px; gap: 30px; }
}

/* Small phones (e.g. iPhone SE): trim spacing further. */
@media (max-width: 903px) and (max-height: 740px) {
  .hero { margin-top: 16px; gap: 18px; }
  .intro { gap: 10px; }
  .eyebrow { display: none; }
  h1 { font-size: 26px; }
  [dir="ltr"] h1 { font-size: 26px; }
  .lead { font-size: 14px; line-height: 1.65; }
  .actions .btn { height: 46px; }
  .platforms { padding: 12px; }
  .platforms__title { margin-bottom: 8px; }
  .grid { gap: 8px; }
  .tile { min-height: 92px; padding: 10px; }
  .tile__icon { width: 34px; height: 34px; }
  .foot { padding-top: 8px; }
}

/* Portrait tablets: same compact layout, centred at a comfortable width. */
@media (min-width: 600px) and (max-width: 903px) {
  .top, .hero, .foot { max-width: 640px; }
}

/* ---------- simple notice pages (404, errors) ---------- */

.notice {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}
.notice img { height: 54px; width: auto; }
.notice h1 { font-size: 32px; }
.notice__en { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .btn { transition: none; }
}
