:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0d0d0f;
  --panel-2: #141417;
  --text: #f6f6f3;
  --muted: #a7a7a1;
  --line: rgba(255, 255, 255, 0.12);
  --red: #e01321;
  --red-soft: rgba(224, 19, 33, 0.18);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(224, 19, 33, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.08), transparent 22rem),
    linear-gradient(135deg, #060606 0%, #09090b 48%, #020202 100%);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 176px;
  min-height: 54px;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}

.site-nav {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.62);
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: 48px;
  align-items: center;
  padding: 70px 0 64px;
}

.eyebrow {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 0.78rem;
  margin: 0 0 16px;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3rem, 8vw, 7.8rem);
  max-width: 880px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.lead {
  color: #d9d9d3;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.9;
  max-width: 760px;
  margin: 28px 0 0;
}

.hero-actions,
.manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  color: white;
  background: linear-gradient(135deg, #ff2634, #b90b16);
  box-shadow: 0 16px 36px rgba(224, 19, 33, 0.25);
}

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

.button.is-loading {
  pointer-events: none;
  opacity: 0.68;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -22%;
  width: 76%;
  aspect-ratio: 1;
  border: 34px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.card-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 40%, rgba(224, 19, 33, 0.18) 40% 42%, transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, 0.04) 22px 23px);
  opacity: 0.9;
}

.spec-label {
  position: relative;
  display: inline-flex;
  color: var(--text);
  background: var(--red);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 900;
}

.hero-card h2 {
  position: relative;
  margin-top: 36px;
  max-width: 360px;
}

.hero-card dl {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 48px 0 0;
}

.hero-card div:not(.card-lines) {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 900;
}

.section {
  padding: 72px 0;
}

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

.intro-grid article,
.pdf-frame,
.studio-section,
.support-grid a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.intro-grid article {
  padding: 28px;
  border-radius: 26px;
}

.intro-grid span {
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.intro-grid h2 {
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  margin-top: 24px;
}

.intro-grid p,
.section-heading p,
.studio-section p,
.pdf-frame p {
  color: var(--muted);
  line-height: 1.9;
}

.section-heading {
  max-width: 760px;
}

.manual-section {
  padding-top: 88px;
}

.pdf-status {
  color: var(--muted);
  margin: 18px 0 0;
}

.pdf-frame {
  overflow: hidden;
  margin-top: 28px;
  height: min(78vh, 820px);
  min-height: 520px;
  border-radius: 28px;
  background: #101010;
}

.pdf-frame object {
  width: 100%;
  height: 100%;
  border: 0;
}

.studio-section {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 44px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 20%, var(--red-soft), transparent 22rem),
    rgba(255, 255, 255, 0.045);
}

.studio-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #070707;
  color: white;
  font-weight: 1000;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  letter-spacing: -0.12em;
  box-shadow: inset 0 0 0 1px rgba(224, 19, 33, 0.28);
}

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

.support-grid a {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 24px;
  text-decoration: none;
  color: var(--text);
}

.support-grid a:hover {
  border-color: rgba(224, 19, 33, 0.8);
  background: rgba(224, 19, 33, 0.09);
}

.support-grid span {
  color: var(--red);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 26px 0 42px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
  color: var(--text);
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    position: relative;
    align-items: flex-start;
    gap: 16px;
  }

  .site-nav {
    display: none;
  }

  .brand {
    width: 150px;
  }

  .hero,
  .intro-grid,
  .studio-section,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 36px;
  }

  .hero-card {
    min-height: 360px;
  }

  .section {
    padding: 48px 0;
  }

  .pdf-frame {
    min-height: 420px;
    height: 68vh;
  }

  .studio-section {
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
  }
}
