:root {
  color-scheme: light;
  --ink: #171614;
  --muted: #65635e;
  --paper: #f5efe5;
  --warm: #fbf8f1;
  --line: #ddd1c0;
  --charcoal: #151413;
  --vermilion: #b73828;
  --gold: #b98536;
  --teal: #168d84;
  --plum: #7a2b55;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.58;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px 28px;
  color: var(--white);
  background: rgba(18, 16, 14, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.brand-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
}

nav a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

nav a:hover {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(16, 14, 13, 0.92) 0%, rgba(16, 14, 13, 0.7) 36%, rgba(16, 14, 13, 0.24) 70%),
    linear-gradient(0deg, rgba(16, 14, 13, 0.62) 0%, rgba(16, 14, 13, 0) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 40px));
  margin: 0 8% 0 auto;
  padding: 104px 0 98px;
}

.hero-generated .hero-content {
  margin: 0 auto 0 8%;
}

.hero-generated .hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 14, 13, 0.94) 0%, rgba(16, 14, 13, 0.72) 34%, rgba(16, 14, 13, 0.18) 76%),
    linear-gradient(0deg, rgba(16, 14, 13, 0.58) 0%, rgba(16, 14, 13, 0) 48%);
}

.hero-generated img {
  object-position: center;
}

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

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

h1 {
  margin-bottom: 14px;
  font-size: 118px;
  line-height: 0.86;
  font-weight: 900;
}

.hero-name {
  margin-bottom: 12px;
  color: #f2bd63;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.14;
  font-weight: 900;
}

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

.lead {
  max-width: 540px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--vermilion);
  border-color: var(--vermilion);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-rail {
  position: absolute;
  z-index: 3;
  inset: auto 28px 22px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-rail article {
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(17, 15, 13, 0.68);
  backdrop-filter: blur(10px);
}

.hero-rail span {
  display: block;
  color: #78d6cc;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-rail strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 14px;
  line-height: 1.34;
}

.band {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.section {
  padding: 60px 28px;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro {
  padding: 34px 28px;
}

.intro-grid,
.case-layout,
.build-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  gap: 38px;
  align-items: start;
}

.intro p,
.section-note,
.copy p,
.case-row span,
.service-card p,
.tile p {
  color: var(--muted);
  font-size: 16px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-note {
  max-width: 390px;
  margin-bottom: 0;
}

.section-note.wide {
  max-width: 520px;
  margin-top: 14px;
}

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

.tile,
.service-card {
  min-height: 238px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.tile-label {
  display: block;
  margin-bottom: 32px;
  color: var(--vermilion);
  font-size: 12px;
  font-weight: 900;
}

.tile p,
.service-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.case-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffaf0;
}

.case-list {
  display: grid;
  gap: 10px;
}

.case-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.case-row:first-child {
  padding-top: 0;
}

.case-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.case-row strong {
  color: var(--vermilion);
  font-size: 14px;
  text-transform: uppercase;
}

.register-band {
  color: var(--white);
  background: var(--charcoal);
}

.register-band .eyebrow {
  color: #83dbd0;
}

.register-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: center;
}

.scan-frame {
  margin: 0;
}

.scan-frame img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #25211d;
}

.scan-frame p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.copy h2 {
  max-width: 760px;
}

.copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

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

.fact-grid article {
  min-height: 116px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.fact-grid span {
  display: block;
  margin-bottom: 20px;
  color: #83dbd0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-grid strong {
  font-size: 16px;
  line-height: 1.4;
}

.service-section {
  background: var(--paper);
}

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

.service-card {
  background: var(--warm);
}

.service-card h3 {
  color: var(--plum);
}

.build-band {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.launch-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.launch-list li {
  padding-left: 4px;
}

.launch-list strong {
  color: var(--ink);
}

footer {
  padding: 26px 28px;
  color: rgba(255, 255, 255, 0.76);
  background: var(--charcoal);
}

.footer-inner {
  display: grid;
  gap: 6px;
}

.footer-inner strong {
  color: var(--white);
  font-size: 18px;
}

.footer-inner span {
  font-size: 13px;
}

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

  nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 138px;
    padding-bottom: 148px;
  }

  .hero-generated .hero-content {
    margin: 0 auto;
  }

  h1 {
    font-size: 78px;
  }

  h2 {
    font-size: 29px;
  }

  .lead {
    font-size: 19px;
  }

  .hero-name {
    font-size: 23px;
  }

  .hero-rail,
  .tiles,
  .service-grid,
  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .case-layout,
  .register-layout,
  .build-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    gap: 12px;
  }

  .brand {
    width: 100%;
    justify-content: space-between;
  }

  .brand-sub {
    font-size: 11px;
  }

  nav {
    font-size: 12px;
  }

  .hero {
    min-height: 84vh;
  }

  .hero img {
    object-position: 38% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(16, 14, 13, 0.9) 0%, rgba(16, 14, 13, 0.7) 46%, rgba(16, 14, 13, 0.2) 100%);
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 206px;
    padding-bottom: 238px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 25px;
  }

  h3 {
    font-size: 18px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-name {
    font-size: 19px;
  }

  .section,
  .intro {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-title {
    display: grid;
    gap: 12px;
  }

  .hero-rail {
    inset: auto 16px 16px 16px;
    grid-template-columns: 1fr;
  }

  .hero-rail article {
    min-height: 58px;
    padding: 9px 11px;
  }

  .hero-rail strong {
    font-size: 13px;
  }

  .tiles,
  .service-grid,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .tile,
  .service-card {
    min-height: auto;
  }

  .tile-label {
    margin-bottom: 18px;
  }

  .case-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
