:root {
  color-scheme: dark;
  --page: #07111f;
  --page-deep: #050c16;
  --panel: rgba(17, 30, 45, 0.92);
  --panel-hover: rgba(20, 36, 53, 0.98);
  --line: #293b50;
  --line-hover: #3d5570;
  --text: #f6f9fc;
  --muted: #90a4ba;
  --soft: #bdd0e2;
  --brand: #30d68a;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-deep);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(3, 10, 19, 0.2), rgba(3, 10, 19, 0.78)),
    radial-gradient(circle at 50% -20%, #183452 0, var(--page) 38%, var(--page-deep) 78%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-glow {
  position: fixed;
  z-index: 0;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.08;
}

.page-glow-left {
  top: 10%;
  left: -17rem;
  background: #24d786;
}

.page-glow-right {
  right: -18rem;
  bottom: 3%;
  background: #3a8dff;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 72px 0 36px;
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
  text-align: center;
}

.brand-world {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(76, 157, 217, 0.18));
}

.kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.95;
  text-wrap: balance;
}

.intro {
  margin: 16px 0 0;
  color: var(--soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
  letter-spacing: -0.01em;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.portal-card {
  --accent: #30d68a;
  --accent-rgb: 48, 214, 138;
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  min-height: 154px;
  padding: 24px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.045), transparent 48%),
    var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.portal-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.portal-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.7), transparent);
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}

.portal-card:hover,
.portal-card:focus-visible {
  border-color: var(--line-hover);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.085), transparent 52%),
    var(--panel-hover);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24), 0 0 28px rgba(var(--accent-rgb), 0.045);
}

.portal-card:hover::after,
.portal-card:focus-visible::after {
  opacity: 1;
}

.portal-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.icon-shell {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 11px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.icon-shell svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  margin: 1px 0 5px;
  color: #9eb2c8;
  font-size: 0.67rem;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.card-copy strong {
  color: var(--text);
  font-size: 1.42rem;
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.description {
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.47;
}

.launch {
  position: absolute;
  top: 17px;
  right: 18px;
  color: var(--muted);
  font-size: 1rem;
  opacity: 0;
  transition: color 160ms ease, opacity 160ms ease;
}

.portal-card:hover .launch,
.portal-card:focus-visible .launch {
  color: var(--accent);
  opacity: 1;
}

.card-go {
  --accent: #3ddc97;
  --accent-rgb: 61, 220, 151;
}

.card-goods {
  --accent: #ffae57;
  --accent-rgb: 255, 174, 87;
}

.card-gui {
  --accent: #48c7f0;
  --accent-rgb: 72, 199, 240;
}

.card-guide {
  --accent: #ad8cff;
  --accent-rgb: 173, 140, 255;
}

.card-gathr {
  --accent: #63a4ff;
  --accent-rgb: 99, 164, 255;
}

.card-get {
  --accent: #f679a4;
  --accent-rgb: 246, 121, 164;
}

.card-grab {
  --accent: #f4cf55;
  --accent-rgb: 244, 207, 85;
}

.card-gateway {
  --accent: #55d7d1;
  --accent-rgb: 85, 215, 209;
}

.card-gluesync {
  --accent: #71d36e;
  --accent-rgb: 113, 211, 110;
}

.g4go-modal {
  width: min(1120px, calc(100% - 40px));
  max-height: min(90vh, 960px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #36516c;
  border-radius: 18px;
  color: var(--text);
  background: #091523;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62);
}

.g4go-modal::backdrop {
  background: rgba(2, 8, 15, 0.82);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  max-height: min(90vh, 960px);
  padding: 36px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 12% 0%, rgba(61, 220, 151, 0.12), transparent 30%),
    linear-gradient(150deg, rgba(30, 56, 78, 0.46), transparent 48%);
}

.modal-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid #38506a;
  border-radius: 10px;
  color: #c8d7e6;
  background: #102235;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
}

.modal-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-right: 20px;
}

.modal-kicker {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(61, 220, 151, 0.32);
  border-radius: 999px;
  color: #8bf2be;
  background: rgba(61, 220, 151, 0.1);
  font-size: 0.76rem;
  font-weight: 720;
  white-space: nowrap;
}

.modal-intro {
  max-width: 760px;
  margin: 22px 0 30px;
  color: var(--soft);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.feature-grid article {
  min-height: 172px;
  padding: 18px;
  border: 1px solid #2d4258;
  border-radius: 12px;
  background: rgba(12, 29, 45, 0.82);
}

.feature-grid article > span {
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.13em;
}

.feature-grid h3 {
  margin: 18px 0 8px;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

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

.preview-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #2d4258;
  border-radius: 12px;
  background: #07111d;
}

.preview-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  background: #050c16;
}

.preview-gallery figure:nth-child(2) img {
  object-fit: contain;
}

.preview-gallery figcaption {
  padding: 11px 14px 13px;
  color: #b9cada;
  font-size: 0.78rem;
  font-weight: 680;
}

.company-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 38px auto 0;
  padding: 8px;
  border-radius: 8px;
  outline: none;
  opacity: 0.68;
  transition: opacity 160ms ease;
}

.company-logo:hover,
.company-logo:focus-visible {
  opacity: 1;
}

.company-logo:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.company-logo img {
  display: block;
  width: 138px;
  height: auto;
}

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

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

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

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 420px);
    padding: 42px 0 28px;
  }

  .page-header {
    margin-bottom: 34px;
  }

  .brand-world {
    margin-bottom: 16px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .portal-card {
    width: 100%;
    min-height: 140px;
    padding: 21px 19px;
  }

  .launch {
    display: none;
  }

  .company-logo {
    margin-top: 32px;
  }

  .g4go-modal {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 14px;
  }

  .modal-panel {
    max-height: calc(100vh - 20px);
    padding: 22px 18px 24px;
  }

  .modal-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .modal-close {
    margin-bottom: -40px;
  }

  .modal-intro {
    margin-top: 18px;
  }

  .feature-grid,
  .preview-gallery {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
