:root {
  --bg: #060708;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(120, 18, 22, 0.2);
  --line: rgba(255, 255, 255, 0.12);
  --line-red: rgba(220, 24, 36, 0.22);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.38);
  --red: #bf001c;
  --red-dark: #850014;
  --radius: 24px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(196, 24, 26, 0.23), transparent 60%),
    radial-gradient(900px 520px at 92% 20%, rgba(255, 255, 255, 0.07), transparent 62%),
    linear-gradient(180deg, #0f1115 0%, #150a0a 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
}

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

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(12, 16, 26, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
  min-height: 102px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: underline;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.menu-toggle,
.pill-btn {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.nav-links a.active {
  background: linear-gradient(180deg, rgba(196, 24, 26, 0.34), rgba(82, 15, 19, 0.38));
  border-color: rgba(255, 61, 72, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(255, 61, 72, 0.18),
    0 0 0 3px rgba(196, 24, 26, 0.16),
    0 0 28px rgba(196, 24, 26, 0.28);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(255, 52, 65, 0.54);
  border-radius: 16px;
  pointer-events: none;
}

.header-cta {
  margin-left: auto;
  min-width: 260px;
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a80019, #850014);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 44px rgba(196, 24, 26, 0.24);
}

.menu-toggle {
  display: none;
  width: 48px;
  padding: 0;
  font-size: 22px;
  cursor: pointer;
}

main {
  padding-top: 124px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.78fr;
  gap: 18px;
  align-items: stretch;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    radial-gradient(720px 420px at 6% 0%, rgba(196, 24, 26, 0.18), transparent 62%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 24px 70px rgba(0, 0, 0, 0.22);
}

.hero-card {
  padding: 20px;
}

.hero-media {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #020304;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  filter: brightness(0.92) saturate(1.2);
}

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

h1 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 4vw, 2.22rem);
  line-height: 1.15;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.6vw, 1.65rem);
  line-height: 1.2;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.22rem;
  line-height: 1.28;
}

p,
li {
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.red-btn {
  min-height: 52px;
  min-width: 158px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #d00020, #950016);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(190, 0, 28, 0.3);
}

.small-note {
  margin: 12px 0 0;
  color: var(--faint);
}

.facts {
  min-height: 100%;
  padding: 34px 18px;
  background:
    radial-gradient(760px 520px at 30% 0%, rgba(196, 24, 26, 0.17), transparent 56%),
    linear-gradient(180deg, rgba(70, 17, 17, 0.34), rgba(255, 255, 255, 0.02));
}

.facts-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--faint);
  text-transform: uppercase;
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.facts h2 {
  margin-top: 28px;
}

.facts ul {
  padding-left: 20px;
}

.section {
  margin-top: 18px;
  padding: 18px;
}

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

.feature-card {
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.feature-card.with-image {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 18px;
  align-items: center;
}

.app-icon-frame {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.16));
  overflow: hidden;
}

.app-icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step,
.issue,
.resource-link {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(196, 24, 26, 0.18);
  border: 1px solid rgba(196, 24, 26, 0.38);
  font-weight: 900;
}

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

.resource-link {
  min-height: 84px;
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.article-card {
  color: inherit;
  text-decoration: none;
}

.article-card h2 {
  font-size: 1.18rem;
}

.article-card strong {
  color: #fff;
}

.faq {
  overflow: hidden;
  padding: 0;
}

.faq-item + .faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-q {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.faq-a {
  display: none;
  padding: 0 18px 18px;
  color: var(--muted);
}

.faq-item.open .faq-a {
  display: block;
}

.faq-item.open .faq-icon {
  background: rgba(196, 24, 26, 0.28);
}

.site-footer {
  padding: 26px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.5fr;
  gap: 18px;
}

.footer-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.footer-card h3 {
  margin-top: 0;
}

.footer-card a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--faint);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badges span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.86rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.modal-backdrop.show {
  display: grid;
}

.modal {
  width: min(554px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  background: rgba(10, 14, 22, 0.93);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.modal-top {
  position: relative;
  padding: 18px 58px 12px 18px;
}

.modal-top h2 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ghost-btn {
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid rgba(196, 24, 26, 0.44);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.page-hero {
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: 54px 28px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.6)),
    url("IN777-game-h.jpg") center / cover;
}

.page-hero h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
}

.page-copy {
  padding: 24px;
}

.blog-head {
  padding: 52px 0 28px;
  text-align: center;
}

.blog-head h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.blog-head p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.blog-list {
  margin-top: 22px;
  margin-bottom: 28px;
}

.blog-list .article-list {
  width: 100%;
  margin: 0;
}

.subpage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.subpage-primary,
.subpage-side,
.simple-page {
  padding: 18px;
}

.subpage-media {
  overflow: hidden;
  border-radius: 18px;
  background: #f3f3f0;
}

.subpage-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.subpage-primary h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 3.8vw, 2.55rem);
}

.subpage-side {
  min-height: 100%;
  background:
    radial-gradient(760px 520px at 20% 0%, rgba(196, 24, 26, 0.18), transparent 56%),
    linear-gradient(180deg, rgba(70, 17, 17, 0.42), rgba(255, 255, 255, 0.02));
}

.quiet-side h2 {
  margin-bottom: 4px;
  font-size: 1.28rem;
}

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

.mini-facts div {
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
}

.side-rule {
  height: 1px;
  margin: 22px 0;
  background: rgba(255, 255, 255, 0.08);
}

.subpage-section {
  margin-top: 18px;
}

.simple-page {
  margin-top: 28px;
}

.simple-page h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.article-detail {
  margin-top: 28px;
  padding: 28px;
}

.article-detail h1 {
  max-width: 980px;
  font-size: clamp(2.35rem, 5vw, 4rem);
}

.article-detail > p:not(.small-note) {
  max-width: 920px;
  font-size: 1.05rem;
}

.article-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.article-section {
  min-height: 0;
}

.article-section-media {
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.article-section-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.article-block {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .nav-wrap {
    min-height: 104px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(9, 11, 15, 0.96);
  }

  .nav-links.open {
    display: grid;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-cta {
    min-width: 0;
    flex: 1 1 auto;
  }

  .hero-grid,
  .subpage-grid,
  .article-detail-grid,
  .feature-grid,
  .feature-card.with-image,
  .issue-grid,
  .resource-grid,
  .article-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mini-facts {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .nav-wrap,
  .wrap {
    width: calc(100% - 36px);
  }

  .brand {
    max-width: 145px;
    min-height: 70px;
    align-items: center;
  }

  .brand span {
    white-space: normal;
    line-height: 1.25;
  }

  .header-cta {
    min-height: 48px;
    padding-inline: 18px;
    font-size: 0.9rem;
  }

  main {
    padding-top: 122px;
  }

  .hero-card,
  .section,
  .facts {
    padding: 18px;
  }

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

  .modal-backdrop {
    align-items: center;
    padding: 18px;
  }

  .modal-actions {
    align-items: center;
  }

  .modal-actions .red-btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .ghost-btn {
    padding-inline: 18px;
  }
}
