:root {
  --ink: #17364a;
  --text: #274b5e;
  --muted: #647987;
  --page: #f7fbfd;
  --panel: #ffffff;
  --soft: #eaf7fb;
  --line: #cfe4ed;
  --teal: #238f82;
  --aqua: #45b9ef;
  --mint: #67df9e;
  --gold: #f6b23b;
  --coral: #f36f4a;
  --rose: #b84565;
  --shadow: 0 18px 46px rgba(23, 54, 74, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  letter-spacing: 0;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 251, 253, 0.9);
  border-bottom: 1px solid rgba(207, 228, 237, 0.82);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(35, 143, 130, 0.18);
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(46vw, 360px);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: #e8f6fb;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: center;
  background-color: #132f42;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.product-hero {
  background-image: url("img/3.png");
}

.detail-hero {
  background-image: url("img/2.png");
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(9, 30, 43, 0.88) 0%,
      rgba(9, 30, 43, 0.66) 47%,
      rgba(9, 30, 43, 0.24) 100%
    ),
    linear-gradient(0deg, rgba(9, 30, 43, 0.22), rgba(9, 30, 43, 0.05));
}

.hero-inner,
.wrap,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  padding: 88px 0 82px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 700px;
  color: #fff;
}

.product-hero .hero-copy {
  max-width: 920px;
}

.product-hero h1 {
  max-width: 920px;
  font-size: clamp(64px, 7.6vw, 104px);
  line-height: 0.95;
  background: linear-gradient(
    92deg,
    #ffffff 0%,
    #dffcff 42%,
    #67df9e 67%,
    #f6d36f 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 26px rgba(5, 21, 30, 0.42));
}

.product-hero .hero-copy p {
  max-width: 720px;
  color: #f2fdff;
  font-size: 23px;
  font-weight: 700;
  text-shadow: 0 3px 14px rgba(5, 21, 30, 0.5);
}

.hero-logo {
  width: min(360px, 82%);
  margin: 12px 0 22px;
  filter: drop-shadow(0 12px 22px rgba(5, 21, 30, 0.35));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d8fbff;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 62px;
  line-height: 1.02;
}

h2 {
  margin-bottom: 18px;
  font-size: 36px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.22;
}

.hero-copy p {
  max-width: 640px;
  margin-bottom: 28px;
  color: #ecfbff;
  font-size: 20px;
  line-height: 1.5;
}

.copy p,
.section-head p,
.feature p,
.step-card p,
.statement-panel p,
.legal-panel p,
.legal-panel li {
  color: var(--muted);
}

.copy p,
.section-head p {
  font-size: 17px;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #123246;
  background: var(--mint);
  box-shadow: 0 8px 0 rgba(25, 98, 86, 0.2);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.inline-action {
  margin-top: 18px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(306px, 100%);
  padding: 10px;
  border-radius: 28px;
  background: #113247;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 68px rgba(5, 21, 30, 0.38);
}

.phone-shell.large {
  width: min(342px, 100%);
  justify-self: center;
}

.phone-shell img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
}

.section {
  padding: 78px 0;
  scroll-margin-top: 96px;
}

.band {
  background: var(--soft);
}

.split,
.game-intro-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: 42px;
}

.game-intro-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.section-head {
  max-width: 770px;
  margin-bottom: 30px;
}

.statement-panel,
.stat,
.feature,
.step-card,
.shot,
.contact-form,
.contact-list,
.media-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.statement-panel {
  padding: 30px;
}

.statement-panel span,
.feature span,
.step-card span,
.contact-list span {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.statement-panel strong {
  display: block;
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 1.14;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.mini-metrics div {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f1fbf7;
}

.mini-metrics b,
.mini-metrics small {
  display: block;
}

.mini-metrics b {
  color: var(--coral);
  font-size: 14px;
}

.mini-metrics small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.about-section {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(69, 185, 239, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 185, 239, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #f7fbfd 0%, #eaf7fb 56%, #f1fbf7 100%);
  background-size:
    44px 44px,
    44px 44px,
    auto;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(69, 185, 239, 0.56),
    rgba(103, 223, 158, 0.56),
    transparent
  );
}

.about-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 68%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(69, 185, 239, 0.11) 45%,
    rgba(103, 223, 158, 0.16) 100%
  );
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 46px;
}

.about-copy .eyebrow {
  color: var(--teal);
}

.about-copy h2 {
  max-width: 690px;
  color: var(--ink);
  font-size: 38px;
}

.about-copy p {
  max-width: 670px;
  color: var(--muted);
}

.about-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
  color: var(--ink);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96),
      rgba(255, 255, 255, 0.86)
    ),
    #fff;
  border-color: rgba(207, 228, 237, 0.92);
  box-shadow: 0 18px 46px rgba(23, 54, 74, 0.12);
  backdrop-filter: blur(10px);
}

.about-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  width: auto;
  background: linear-gradient(90deg, var(--mint), var(--aqua), var(--gold));
}

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

.panel-topline span,
.panel-topline small {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-topline small {
  color: var(--muted);
}

.about-panel strong {
  color: var(--ink);
  font-size: 30px;
}

.about-panel p {
  color: var(--muted);
}

.about-principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.about-principles div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.about-principles b {
  color: var(--coral);
  font-size: 15px;
}

.about-principles small {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.media-frame {
  overflow: hidden;
  background: #14384b;
}

.media-frame.wide img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

.media-frame.compact img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

.game-title {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 52px;
  line-height: 0.98;
  color: var(--ink);
  background: linear-gradient(
    90deg,
    #159f8c 0%,
    #24aeea 38%,
    #f6b23b 72%,
    #f36f4a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 18px rgba(35, 143, 130, 0.16));
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stat {
  padding: 18px;
}

.stat strong {
  display: block;
  color: var(--coral);
  font-size: 28px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

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

.shot {
  overflow: hidden;
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  background: #bceeff;
}

.shot figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-weight: 900;
}

.showcase-gallery {
  align-items: center;
  gap: 24px;
  padding: 22px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(69, 185, 239, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 185, 239, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, #f7fbfd 0%, #eaf7fb 100%);
  background-size:
    38px 38px,
    38px 38px,
    auto;
}

.showcase-gallery .shot {
  position: relative;
  transform: translateY(20px);
}

.showcase-gallery .feature-shot {
  transform: translateY(0);
  box-shadow: 0 26px 64px rgba(23, 54, 74, 0.18);
}

.showcase-gallery .shot img {
  border-bottom: 1px solid var(--line);
}

.showcase-gallery .shot figcaption {
  color: var(--ink);
  background: #fff;
}

.showcase-gallery .feature-shot figcaption {
  color: var(--teal);
}

.feature-grid,
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature,
.step-card {
  min-height: 100%;
  padding: 24px;
}

.feature:nth-child(1) span,
.step-card:nth-child(1) span {
  color: var(--rose);
}

.feature:nth-child(2) span,
.step-card:nth-child(2) span {
  color: var(--teal);
}

.feature:nth-child(3) span,
.step-card:nth-child(3) span {
  color: var(--gold);
}

.feature:nth-child(4) span {
  color: var(--aqua);
}

.feature:nth-child(5) span {
  color: var(--coral);
}

.feature:nth-child(6) span {
  color: var(--ink);
}

.play-flow-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(69, 185, 239, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 185, 239, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, #f7fbfd 0%, #eef9fb 100%);
  background-size:
    42px 42px,
    42px 42px,
    auto;
}

.play-flow-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 45%;
  height: 60%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(103, 223, 158, 0.16) 100%
  );
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.play-flow-section .wrap {
  position: relative;
  z-index: 1;
}

.play-flow-grid {
  position: relative;
  gap: 22px;
}

.play-flow-grid::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 45px;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--aqua), var(--gold));
  border-radius: 999px;
  opacity: 0.6;
}

.play-flow-grid .step-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(207, 228, 237, 0.94);
  box-shadow: 0 18px 42px rgba(23, 54, 74, 0.1);
}

.play-flow-grid .step-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--mint), var(--aqua));
}

.play-flow-grid .step-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--aqua), var(--gold));
}

.play-flow-grid .step-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

.play-flow-grid .step-card span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--ink);
  background: #e8f6fb;
  box-shadow:
    inset 0 0 0 2px #fff,
    0 8px 22px rgba(23, 54, 74, 0.12);
}

.play-flow-grid .step-card h3 {
  font-size: 22px;
}

.play-flow-grid .step-card p {
  font-size: 16px;
}

.contact-section {
  background: #f1fbf7;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
}

.contact-list {
  display: grid;
  gap: 0;
  padding: 28px;
}

.contact-list.full {
  align-self: stretch;
}

.contact-list div {
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-list div:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.contact-list strong,
.contact-list a {
  display: block;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-list a + a {
  margin-top: 6px;
}

.contact-list a:hover,
.footer-links a:hover {
  color: var(--teal);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fafdff;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(69, 185, 239, 0.24);
  border-color: var(--aqua);
}

.subpage-hero {
  padding: 76px 0;
  background: linear-gradient(180deg, #eaf7fb 0%, #f7fbfd 100%);
}

.subpage-hero h1 {
  font-size: 54px;
}

.detail-hero {
  min-height: calc(100svh - 68px);
}

.detail-hero h1 {
  font-size: clamp(64px, 7vw, 98px);
  line-height: 0.96;
  text-shadow: 0 10px 26px rgba(5, 21, 30, 0.42);
}

.detail-hero .hero-copy p {
  max-width: 760px;
  font-size: 23px;
  font-weight: 700;
  text-shadow: 0 3px 14px rgba(5, 21, 30, 0.5);
}

.site-footer {
  padding: 36px 0;
  color: #d8eaf1;
  background: var(--ink);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.footer-links a {
  color: #d8eaf1;
  font-weight: 900;
  text-decoration: none;
}

.legal-page {
  background: #f7fbfd;
}

.legal-shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.legal-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-panel h1 {
  color: var(--ink);
  font-size: 42px;
  line-height: 1.1;
}

.legal-panel h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 22px;
}

.legal-panel p,
.legal-panel li {
  overflow-wrap: anywhere;
}

.mail-link {
  color: var(--teal);
  font-weight: 900;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: calc(100svh - 114px);
    background-position: center;
  }

  .hero-grid,
  .split,
  .about-grid,
  .game-intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

  h1,
  .subpage-hero h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-copy p {
    font-size: 18px;
  }

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

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

@media (max-width: 620px) {
  .nav,
  .wrap,
  .hero-inner,
  .footer-inner,
  .legal-shell {
    width: min(100% - 24px, 1120px);
  }

  .nav-links a {
    padding: 0 9px;
    font-size: 12px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    white-space: normal;
  }

  .nav-links a {
    min-height: 42px;
    padding: 6px 8px;
    text-align: center;
    line-height: 1.2;
  }

  .hero-inner {
    padding: 56px 0 48px;
  }

  .hero-logo {
    width: min(292px, 86%);
  }

  h1,
  .subpage-hero h1 {
    font-size: 38px;
  }

  .product-hero h1 {
    font-size: 48px;
  }

  .detail-hero h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-copy p,
  .copy p,
  .section-head p {
    font-size: 16px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 268px;
  }

  .hero-visual {
    display: none;
  }

  .section,
  .subpage-hero {
    padding: 58px 0;
  }

  .feature-grid,
  .gallery,
  .step-grid,
  .stats,
  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .statement-panel,
  .about-panel,
  .feature,
  .step-card,
  .contact-form,
  .contact-list,
  .legal-panel {
    padding: 22px;
  }

  .about-copy h2 {
    font-size: 30px;
  }

  .about-panel strong {
    font-size: 26px;
  }

  .game-title {
    font-size: 42px;
  }

  .about-principles div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .play-flow-grid::before {
    display: none;
  }

  .play-flow-grid .step-card {
    padding: 22px;
  }

  .showcase-gallery .shot,
  .showcase-gallery .feature-shot {
    transform: none;
  }

  .phone-shell,
  .phone-shell.large {
    width: min(282px, 100%);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
