:root {
  color-scheme: dark;
  --bg: #050807;
  --panel: #0b1210;
  --panel-soft: #101816;
  --text: #f4fbf8;
  --muted: #a8bbb5;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #19e6c4;
  --hot: #ff4b43;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(25, 230, 196, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 230, 196, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 72% 18%, rgba(255, 75, 67, 0.14), transparent 28rem),
    radial-gradient(circle at 18% 8%, rgba(25, 230, 196, 0.12), transparent 24rem);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

main {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 8, 7, 0.92) 0%, rgba(5, 8, 7, 0.70) 42%, rgba(5, 8, 7, 0.18) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 8, 7, 0.0) 26%),
    url("hero-quantum-loto.png") center / cover no-repeat;
}

.hero-inner {
  width: min(1080px, calc(100% - 40px));
  min-height: 76vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 40px;
  align-items: center;
  padding: 72px 0 40px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 9vw, 92px);
  line-height: 0.95;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.8;
}

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

.button,
.contact-link,
.back-link {
  color: var(--text);
  text-decoration: none;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  border-color: rgba(25, 230, 196, 0.8);
  background: var(--accent);
  color: #001411;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.app-card,
.section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 18, 16, 0.78);
}

.app-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 18px;
}

.app-name {
  margin-bottom: 4px;
  font-size: 28px;
  font-weight: 900;
}

.app-desc {
  margin-bottom: 0;
  color: var(--muted);
}

.section {
  width: min(1080px, calc(100% - 40px));
  margin: 18px 0;
  padding: 28px;
}

.content-section {
  margin-right: auto;
  margin-left: auto;
}

.section h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

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

article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

article h3 {
  margin-bottom: 10px;
}

article p,
.section p,
.document p {
  color: var(--muted);
  line-height: 1.85;
}

.note {
  border-color: rgba(255, 75, 67, 0.34);
}

.contact-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 800;
}

footer {
  width: min(1080px, calc(100% - 40px));
  margin: 32px auto 0;
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

footer a {
  color: var(--muted);
}

.document {
  width: min(820px, calc(100% - 40px));
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 28px 80px;
}

.document h1 {
  margin-top: 24px;
  font-size: clamp(36px, 7vw, 64px);
}

.document section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.updated,
.back-link {
  color: var(--muted);
}

@media (max-width: 760px) {
  main,
  footer {
    width: 100%;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(5, 8, 7, 0.86) 0%, rgba(5, 8, 7, 0.62) 58%, var(--bg) 100%),
      url("hero-quantum-loto.png") 58% center / cover no-repeat;
  }

  .hero-inner {
    width: min(100% - 28px, 1080px);
    min-height: 640px;
    grid-template-columns: 1fr;
    padding-top: 42px;
    align-content: center;
  }

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

  .section {
    width: min(100% - 28px, 1080px);
    padding: 22px;
  }

  .document {
    width: min(100% - 28px, 820px);
    padding: 40px 18px 64px;
  }

  footer {
    width: min(100% - 28px, 1080px);
    flex-direction: column;
  }
}
