@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #21211c;
  --panel: #10110f;
  --panel-elevated: #181916;
  --surface-hover: #20211d;
  --green: #18c779;
  --green-bright: #3de69a;
  --yellow: #ffc43d;
  --yellow-deep: #e7a817;
  --text: #f5f4e8;
  --muted: #a49a79;
  --line: rgba(245, 244, 232, 0.12);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-panel: 0 24px 70px rgba(0, 0, 0, 0.32);
  --font-ui: "Inter", "Nirmala UI", "Noto Sans Bengali", system-ui, sans-serif;
  --font-display: "Montserrat", "Inter", "Nirmala UI", system-ui, sans-serif;
}

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

html {
  min-width: 0;
  color-scheme: dark;
  background: var(--bg);
  scrollbar-color: rgba(245, 244, 232, .24) transparent;
}

body {
  min-width: 0;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-ui);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 19% 23%, rgba(245, 244, 232, .035), transparent 28%),
    radial-gradient(circle at 77% 18%, rgba(255, 255, 255, .025), transparent 24%),
    radial-gradient(circle at 58% 78%, rgba(245, 244, 232, .02), transparent 32%),
    linear-gradient(145deg, #171814 0%, var(--bg) 46%, #141512 100%);
}

.site-background::before,
.site-background::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-background::before {
  opacity: .16;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.site-background::after {
  inset: auto -12vw -30vw auto;
  width: 62vw;
  height: 62vw;
  border: 1px solid rgba(245, 244, 232, .055);
  border-radius: 50%;
  box-shadow:
    0 0 0 8vw rgba(245, 244, 232, .012),
    0 0 0 16vw rgba(245, 244, 232, .008);
}

.page-shell {
  width: min(1480px, calc(100% - 64px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 18px 0 20px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
}

.brand-logo {
  display: block;
  position: absolute;
  left: 50%;
  bottom: clamp(36px, calc(4% + 20px), 44px);
  z-index: 2;
  width: clamp(190px, 15vw, 250px);
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .34));
  pointer-events: none;
  transform: translateX(-50%);
}

.landing-main {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(620px, 1.12fr);
  gap: clamp(18px, 2vw, 32px);
  align-items: stretch;
  min-width: 0;
}

.ambassador-panel,
.route-panel,
.feature-strip {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ambassador-panel {
  position: relative;
  min-width: 0;
  min-height: 404px;
  margin: 0;
  overflow: hidden;
  display: grid;
  place-items: end center;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 38%, rgba(24, 199, 121, .055), transparent 42%),
    linear-gradient(155deg, rgba(25, 26, 23, .96), rgba(9, 10, 9, .98));
}

.ambassador-panel::before {
  content: none;
}

.ambassador-glow {
  position: absolute;
  left: 50%;
  bottom: -24%;
  z-index: -1;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(24, 199, 121, .05);
  filter: blur(48px);
  transform: translateX(-50%);
}

.ambassador-image {
  display: block;
  width: min(100%, 540px);
  max-height: 430px;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .28));
}

.route-panel {
  min-width: 0;
  padding: clamp(20px, 2vw, 30px);
  border-radius: var(--radius-lg);
  background: rgba(16, 17, 15, .92);
}

.route-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.route-eyebrow {
  margin: 0 0 5px;
  color: var(--green-bright);
  font: 800 11px/1.2 var(--font-display);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.route-panel h1 {
  margin: 0;
  color: var(--text);
  font: 800 clamp(21px, 2vw, 30px)/1.16 var(--font-display);
  letter-spacing: -.025em;
}

.live-status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: var(--green-bright);
  border: 1px solid rgba(61, 230, 154, .22);
  border-radius: 999px;
  background: rgba(24, 199, 121, .08);
  font: 800 10px/1 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-status i,
.connection i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(61, 230, 154, .10);
}

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

.route-card {
  display: block;
  min-width: 0;
  min-height: 114px;
  padding: 14px;
  overflow: hidden;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .032), transparent 60%),
    rgba(24, 25, 22, .90);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms var(--ease),
    box-shadow 180ms ease;
}

.route-card:hover {
  border-color: rgba(61, 230, 154, .30);
  background-color: var(--surface-hover);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .18);
  transform: translateY(-2px);
}

.route-card:focus-visible,
.contact-button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.route-card-top {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.route-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--green-bright);
  border: 1px solid rgba(61, 230, 154, .22);
  border-radius: 9px;
  background: rgba(24, 199, 121, .06);
  font: 800 12px/1 var(--font-display);
}

.route-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font: 750 15px/1.15 var(--font-ui);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.latency {
  display: inline-flex;
  align-items: baseline;
  color: var(--green-bright);
  white-space: nowrap;
}

.latency strong {
  font: 850 26px/.9 var(--font-display);
  letter-spacing: -.04em;
}

.latency small {
  margin-left: 2px;
  color: var(--muted);
  font: 700 10px/1 var(--font-display);
}

.route-meter {
  display: block;
  height: 5px;
  margin: 13px 0 11px 39px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(245, 244, 232, .14);
}

.route-meter > span {
  display: block;
  width: var(--target);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  box-shadow: 0 0 12px rgba(61, 230, 154, .36);
  transform-origin: left;
  animation: meterPulse 2.6s var(--ease) var(--delay) infinite alternate;
}

.route-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-left: 39px;
}

.connection {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--muted);
  font: 600 10px/1.15 var(--font-ui);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.connection i {
  flex: none;
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.route-go {
  flex: none;
  min-width: 58px;
  min-height: 28px;
  padding: 5px 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #172014;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffd768, var(--yellow));
  box-shadow: 0 5px 14px rgba(255, 196, 61, .16);
  font: 850 11px/1 var(--font-display);
}

.route-go b {
  font-size: 18px;
  line-height: .6;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--line);
}

.feature-card {
  min-width: 0;
  min-height: 108px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 32px 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: rgba(20, 21, 18, .96);
}

.feature-number {
  color: rgba(255, 196, 61, .72);
  font: 850 24px/1 var(--font-display);
}

.feature-visual {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
}

.feature-visual img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .24));
}

.feature-card--brand .feature-visual img {
  max-height: 84px;
}

.feature-card--wheel .feature-visual img {
  width: 74px;
  max-width: 74px;
  max-height: 74px;
}

.feature-card--fast .feature-visual img,
.feature-card--security .feature-visual img {
  max-width: 66px;
  max-height: 66px;
}

.feature-copy {
  min-width: 0;
  color: var(--text);
  font: 750 clamp(13px, 1.05vw, 16px)/1.25 var(--font-ui);
  overflow-wrap: anywhere;
}

.compliance-footer {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 3px;
}

.license-crop {
  width: min(430px, 100%);
  min-height: 94px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(26px, 5vw, 54px);
}

.license-mark {
  flex: none;
  display: block;
  background-image: url("assets/a880/trademark.png");
  background-repeat: no-repeat;
}

.license-mark--gaming {
  width: 150px;
  aspect-ratio: 330 / 220;
  background-position: left top;
  background-size: 363.64% auto;
}

.license-mark--responsible {
  width: 145px;
  aspect-ratio: 320 / 220;
  background-position: right top;
  background-size: 375% auto;
}

.compliance-footer p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font: 700 clamp(9px, .8vw, 11px)/1.3 var(--font-ui);
  letter-spacing: .025em;
}

.contacts {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: 50%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(-50%);
}

.contacts > li {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}

.contacts > li:nth-child(2) { transition-delay: 20ms; }
.contacts > li:nth-child(3) { transition-delay: 40ms; }
.contacts > li:nth-child(4) { transition-delay: 60ms; }
.contacts > li:nth-child(5) { transition-delay: 80ms; }
.contacts > li:nth-child(6) { transition-delay: 100ms; }

.contacts.is-scrolling > li {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 24px));
  transition-delay: 0ms;
}

.contact-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(245, 244, 232, .16);
  border-radius: var(--radius-sm);
  background: rgba(32, 33, 29, .96);
  box-shadow: 0 9px 25px rgba(0, 0, 0, .24);
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms ease;
}

.contact-button:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, .30);
  transform: translateX(-3px);
}

.contact-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.contact-button:not(.language-toggle) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.contact-button:not(.language-toggle):hover {
  box-shadow: none;
}

.contact-button.language-toggle {
  height: 60px;
  grid-template-rows: auto auto;
  gap: 2px;
  padding: 6px 0;
  border-color: rgba(24, 199, 121, .42);
}

.language-globe {
  font: 24px/1 "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.language-code {
  color: var(--text);
  font: 850 11px/1 var(--font-display);
  letter-spacing: .06em;
}

.placeholder-toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1100;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(24, 25, 22, .97);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms var(--ease);
  font: 750 13px/1 var(--font-ui);
  white-space: nowrap;
}

.placeholder-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes meterPulse {
  from { transform: scaleX(.18); opacity: .72; }
  to { transform: scaleX(1); opacity: 1; }
}

@media (max-width: 1180px) {
  .page-shell {
    width: min(1040px, calc(100% - 44px));
  }

  .hero-grid {
    grid-template-columns: minmax(320px, .78fr) minmax(560px, 1.22fr);
  }

  .feature-card {
    grid-template-columns: 26px 64px minmax(0, 1fr);
    padding-inline: 12px;
    gap: 8px;
  }

  .feature-visual {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 1080px) {
  .page-shell {
    width: min(760px, calc(100% - 112px));
    padding-top: 12px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .ambassador-panel {
    min-height: 460px;
  }

  .ambassador-image {
    width: min(100%, 530px);
    max-height: 460px;
  }

  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts {
    right: max(8px, env(safe-area-inset-right));
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 520px);
    gap: 10px;
    padding: 8px 0 14px;
  }

  .brand-logo {
    width: clamp(150px, 47vw, 205px);
  }

  .landing-main {
    gap: 10px;
  }

  .ambassador-panel {
    min-height: 0;
    aspect-ratio: 1.02 / 1;
  }

  .ambassador-image {
    width: 100%;
    max-height: none;
    height: 100%;
  }

  .route-panel {
    padding: 15px 12px 12px;
    border-radius: 20px;
  }

  .route-panel-header {
    margin-bottom: 12px;
  }

  .route-eyebrow {
    font-size: 9px;
  }

  .route-panel h1 {
    font-size: clamp(18px, 5.2vw, 23px);
  }

  .live-status {
    padding: 6px 8px;
    font-size: 8px;
  }

  .route-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .route-card {
    min-height: 96px;
    padding: 11px;
  }

  .route-card-top {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .route-number {
    width: 26px;
    height: 26px;
  }

  .route-name {
    font-size: 14px;
  }

  .latency strong {
    font-size: 24px;
  }

  .route-meter {
    margin: 10px 0 9px 36px;
  }

  .route-card-bottom {
    margin-left: 36px;
  }

  .feature-card {
    position: relative;
    min-height: 112px;
    padding: 11px 9px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 70px auto;
    gap: 5px;
  }

  .feature-number {
    position: absolute;
    left: 10px;
    top: 31px;
    z-index: 1;
    font-size: 20px;
    transform: translateY(-50%);
  }

  .feature-visual {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: 82px;
    height: 70px;
  }

  .feature-card--brand .feature-visual img {
    width: 80px;
    max-width: 80px;
    max-height: 72px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
    transform: translateY(5px);
  }

  .feature-card--wheel .feature-visual img {
    width: 74px;
    max-width: 74px;
    max-height: 74px;
  }

  .feature-card--fast .feature-visual img {
    width: 82px;
    max-width: 82px;
    max-height: 78px;
  }

  .feature-card--security .feature-visual img {
    width: 64px;
    max-width: 64px;
    max-height: 64px;
  }

  .feature-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
    min-height: 36px;
    padding: 6px 5px;
    display: grid;
    place-items: center;
    color: var(--text);
    text-align: center;
    border-top: 2px solid rgba(255, 196, 61, .72);
    border-radius: 7px;
    background: var(--surface-hover);
    font-size: clamp(11px, 3.2vw, 14px);
    line-height: 1.16;
  }

  .compliance-footer {
    width: 100%;
    gap: 2px;
  }

  .license-crop {
    width: max-content;
    max-width: 100%;
    min-height: 72px;
    gap: 24px;
  }

  .license-mark--gaming {
    width: min(42vw, 126px);
  }

  .license-mark--responsible {
    width: min(40.7vw, 122px);
  }

  .compliance-footer p {
    max-width: 96%;
    font-size: clamp(8px, 2.35vw, 10px);
  }

  .contacts {
    top: 8px;
    right: max(5px, env(safe-area-inset-right));
    gap: 5px;
    transform: none;
  }

  .contact-button {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .contact-button.language-toggle {
    height: 48px;
    gap: 1px;
    padding: 4px 0;
  }

  .language-globe {
    font-size: 19px;
  }

  .language-code {
    font-size: 9px;
  }
}

@media (max-width: 350px) {
  .page-shell {
    width: calc(100% - 12px);
  }

  .route-panel {
    padding-inline: 9px;
  }

  .route-panel-header {
    gap: 8px;
  }

  .route-panel h1 {
    font-size: 17px;
  }

  .route-card {
    padding-inline: 9px;
  }

  .connection {
    max-width: 112px;
    font-size: 9px;
  }

  .route-go {
    min-width: 52px;
    padding-inline: 8px;
  }

  .feature-strip {
    border-radius: 18px;
  }

  .feature-card {
    padding-inline: 6px;
  }

  .feature-number {
    left: 7px;
  }

  .feature-copy {
    font-size: 10.5px;
  }

  .contacts {
    right: max(3px, env(safe-area-inset-right));
  }

  .contact-button {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .contact-button.language-toggle {
    height: 43px;
  }

  .language-globe {
    font-size: 17px;
  }
}

@media (min-width: 1081px) and (max-height: 800px) {
  .page-shell {
    padding-block: 9px;
    gap: 8px;
  }

  .brand-logo {
    width: clamp(170px, 12vw, 205px);
  }

  .landing-main {
    gap: 8px;
  }

  .ambassador-panel {
    min-height: 340px;
  }

  .ambassador-image {
    max-height: 360px;
  }

  .route-panel {
    padding: 18px 22px;
  }

  .route-panel-header {
    margin-bottom: 12px;
  }

  .route-card {
    min-height: 92px;
    padding: 10px 12px;
  }

  .route-meter {
    margin-block: 9px 7px;
  }

  .feature-card {
    min-height: 86px;
    padding-block: 7px;
  }

  .feature-visual {
    width: 62px;
    height: 62px;
  }

  .license-crop {
    width: 470px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
