:root {
  color-scheme: dark;
  --bg: #070708;
  --surface: #111114;
  --surface-strong: #19191d;
  --text: #f8f8fa;
  --muted: #a4a4ad;
  --line: rgba(255, 255, 255, 0.1);
  --red: #f20d1c;
  --red-deep: #a60812;
  --green: #62e49a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 0%, rgba(242, 13, 28, 0.2), transparent 34rem),
    radial-gradient(circle at 8% 38%, rgba(242, 13, 28, 0.08), transparent 30rem),
    var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(98, 228, 154, 0.8);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(7, 7, 8, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(242, 13, 28, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 680px;
  padding: 86px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: #ff727d;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 3px;
  content: "";
  border-radius: 3px;
  background: var(--red);
}

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

.hero h1 {
  max-width: 750px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7.2vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero h1 span {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.34em;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 32px;
  color: #c7c7cf;
  font-size: clamp(1.06rem, 2vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 820;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: var(--red);
  box-shadow: 0 14px 38px rgba(242, 13, 28, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.device-stage {
  position: relative;
  display: grid;
  place-items: center;
}

.device-stage::before {
  position: absolute;
  width: 90%;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 13, 28, 0.3), transparent 68%);
  filter: blur(18px);
}

.device {
  position: relative;
  width: min(100%, 470px);
  overflow: hidden;
  border: 8px solid #232329;
  border-radius: 32px;
  background: #000;
  box-shadow: var(--shadow);
  transform: rotate(1.6deg);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding: 94px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p {
  color: var(--muted);
}

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

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.12);
}

.card-number {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--red), var(--red-deep));
  font-weight: 900;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.safety-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 42px;
  border: 1px solid rgba(98, 228, 154, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(98, 228, 154, 0.09), rgba(255, 255, 255, 0.025));
}

.safety-panel h2 {
  margin-bottom: 10px;
}

.safety-panel p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
}

.safety-mark {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid rgba(98, 228, 154, 0.35);
  border-radius: 50%;
  color: var(--green);
  background: rgba(98, 228, 154, 0.08);
  font-size: 2rem;
  font-weight: 900;
}

.document-header {
  max-width: 800px;
  padding: 88px 0 44px;
}

.document-header h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.document-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.document-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  align-items: start;
  gap: 48px;
  padding-bottom: 100px;
}

.toc {
  position: sticky;
  top: 100px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: #d7d7dd;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.toc a:hover {
  color: var(--text);
}

.document {
  min-width: 0;
}

.document section {
  scroll-margin-top: 110px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.document section:first-child {
  border-top: 0;
}

.document h2 {
  margin-bottom: 16px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.document h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

.document p,
.document li {
  color: #c5c5cc;
}

.document ul,
.document ol {
  padding-left: 1.25rem;
}

.document li + li {
  margin-top: 8px;
}

.data-table {
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.88rem;
}

.data-table td {
  color: #bcbcc4;
  font-size: 0.9rem;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.notice {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--red);
  border-radius: 0 16px 16px 0;
  background: rgba(242, 13, 28, 0.08);
  color: #d8d8df;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 50px;
}

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

.support-card .icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 14px;
  background: rgba(242, 13, 28, 0.14);
}

.support-card p {
  color: var(--muted);
}

.support-card .text-link {
  color: #ff757f;
  font-weight: 800;
}

.faq {
  padding-bottom: 100px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 22px 4px;
  cursor: pointer;
  font-weight: 800;
}

.faq details p {
  padding: 0 4px 22px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.84rem;
}

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

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 64px;
  }

  .device {
    width: min(100%, 560px);
    transform: none;
  }

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

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

  .toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(100% - 28px, 1120px);
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    gap: 2px;
    font-size: 0.78rem;
  }

  .nav-links a {
    padding: 8px 9px;
  }

  .page-shell {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    gap: 44px;
    padding-top: 52px;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .section {
    padding: 72px 0;
  }

  .safety-panel {
    grid-template-columns: 1fr;
    padding: 30px;
  }

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

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .data-table td {
    border: 0;
    padding: 4px 14px;
  }

  .data-table td:first-child {
    color: #fff;
    font-weight: 800;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
