:root {
  color-scheme: dark;
  --bg: #0b1017;
  --bg-deep: #080d14;
  --surface: #111b28;
  --surface-raised: #192537;
  --line: #304258;
  --line-soft: rgb(149 184 220 / 16%);
  --text: #f3f8ff;
  --muted: #b0bfd0;
  --dim: #8296ab;
  --accent: #34dcf2;
  --cyan: #00cfff;
  --blue: #1679ff;
  --violet: #b047f5;
  --page: 1240px;
  --display: "Arial Narrow", "Roboto Condensed", "Noto Sans JP", sans-serif;
  --body: Inter, "Noto Sans JP", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgb(255 255 255 / 1.7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 1.7%) 1px, transparent 1px),
    radial-gradient(circle at 88% 8%, rgb(0 207 255 / 9%), transparent 25rem),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto, auto;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 52%, var(--violet));
  content: "";
  pointer-events: none;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  transform: translateY(-180%);
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell,
.header-inner {
  width: min(calc(100% - 56px), var(--page));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 2px;
  left: 0;
  width: 100%;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgb(11 16 23 / 94%), rgb(11 16 23 / 76%));
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  min-height: 76px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: block;
  width: 172px;
  overflow: hidden;
}

.brand img {
  width: 100%;
  height: auto;
}

.primary-nav,
.site-footer nav,
.footer-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.primary-nav a,
.site-footer nav a,
.footer-meta > a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  transition: color 150ms ease;
}

.primary-nav a:hover,
.site-footer nav a:hover,
.footer-meta > a:hover {
  color: var(--text);
}

.language-switch {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.language-switch span:not([aria-hidden]),
.language-switch a:hover {
  color: var(--accent);
}

.language-switch [aria-hidden] {
  color: var(--dim);
}

.hero {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(115deg, transparent 47%, rgb(0 207 255 / 5%) 47.1%, transparent 47.4%),
    linear-gradient(155deg, transparent 71%, rgb(255 255 255 / 4%) 71.1%, transparent 71.25%),
    radial-gradient(circle at 72% 44%, rgb(22 121 255 / 12%), transparent 28rem),
    radial-gradient(circle at 94% 78%, rgb(176 71 245 / 7%), transparent 21rem);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 76px;
  right: 0;
  bottom: 0;
  width: 54%;
  border-left: 1px solid var(--line-soft);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 1.5%));
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.hero::after {
  right: 3%;
  bottom: 4%;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--violet);
  border-left: 2px solid var(--violet);
  transform: rotate(45deg);
  opacity: 0.8;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 790px;
  padding-top: 116px;
  padding-bottom: 58px;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.kicker {
  margin: 0 0 1.3rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow span {
  width: 22px;
  height: 2px;
  background: var(--accent);
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.16;
}

h1 {
  max-width: 720px;
  margin-bottom: 1.6rem;
  font-size: clamp(2.55rem, 4.15vw, 4.55rem);
  font-stretch: condensed;
  letter-spacing: -0.045em;
}

h1 span {
  display: block;
}

h1 em {
  background: linear-gradient(100deg, var(--cyan), #7a9cff 58%, #d183ff);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

.hero-summary {
  max-width: 610px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--accent);
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  background: var(--accent);
  box-shadow: 0 0 30px rgb(0 207 255 / 17%);
  color: var(--bg-deep);
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

.hero-microcopy {
  margin-top: 3.5rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  width: 100%;
  justify-self: end;
}

.product-frame {
  position: relative;
  width: min(100%, 620px);
  margin-inline: auto;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgb(0 207 255 / 12%), transparent 24%),
    var(--surface);
  box-shadow: 0 36px 90px rgb(0 0 0 / 42%);
}

.product-frame::before {
  position: absolute;
  z-index: -1;
  inset: -30px;
  border: 1px solid rgb(22 121 255 / 19%);
  content: "";
  clip-path: polygon(8% 0, 100% 0, 100% 91%, 92% 100%, 0 100%, 0 8%);
}

.product-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.frame-corner {
  position: absolute;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-color: var(--accent);
  opacity: 0.85;
}

.frame-corner-a {
  top: -7px;
  left: -7px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.frame-corner-b {
  right: -7px;
  bottom: -7px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.hero-visual-label {
  position: absolute;
  z-index: 2;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.15em;
  line-height: 1.7;
  text-transform: uppercase;
}

.hero-visual-label-top {
  top: 0;
  right: -1rem;
  transform: translateX(100%);
}

.hero-visual-label-bottom {
  right: -1rem;
  bottom: 0;
  transform: translateX(100%);
}

.section {
  position: relative;
  padding-block: clamp(5rem, 9vw, 8rem);
  border-bottom: 1px solid var(--line-soft);
}

.section:nth-of-type(odd) {
  background: rgb(255 255 255 / 0.7%);
}

.section-heading {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  align-items: end;
  gap: 3rem;
}

.section-heading h2,
.closing-cta h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  letter-spacing: -0.04em;
}

.section-heading > p {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.process-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.process-card {
  position: relative;
  display: grid;
  min-height: 250px;
  padding: 0 2.2rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 0.2rem 1rem;
}

.process-card:not(:first-child) {
  padding-left: 2.2rem;
  border-left: 1px solid var(--line-soft);
}

.process-card::after {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 13px;
  height: 13px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  content: "";
  transform: rotate(45deg);
}

.process-card:last-child::after {
  display: none;
}

.step-number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
}

.step-copy h3 {
  margin-bottom: 0.15rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.step-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.line-icon {
  width: 90px;
  margin-top: 2rem;
  grid-column: 1 / -1;
  align-self: end;
  justify-self: center;
  fill: none;
  stroke: var(--text);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.4;
}

.skin-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.skin-card {
  position: relative;
  margin: 0;
}

.skin-card::before {
  position: absolute;
  z-index: -1;
  inset: -1px;
  background: var(--line);
  content: "";
}

.skin-card img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-deep);
  object-fit: cover;
  filter: saturate(0.92);
  transition: filter 180ms ease, transform 180ms ease;
}

.skin-card:hover img {
  filter: saturate(1.08);
  transform: translateY(-4px);
}

.skin-card figcaption {
  position: relative;
  padding: 1.15rem 0.4rem 0 1.4rem;
}

.skin-card figcaption::before {
  position: absolute;
  top: 1.7rem;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.skin-cyan figcaption::before {
  background: var(--cyan);
}

.skin-aurora figcaption::before {
  background: var(--violet);
}

.skin-card figcaption span {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skin-card figcaption small {
  color: var(--muted);
  font-size: 0.78rem;
}

.editor-demo {
  display: grid;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  border: 1px solid var(--line);
  background: rgb(12 20 32 / 78%);
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  box-shadow: inset 0 1px rgb(255 255 255 / 3%);
}

.editor-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-right: 1px solid var(--line);
}

.editor-copy {
  align-self: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.editor-copy h3,
.usage-card h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  letter-spacing: -0.03em;
}

.editor-copy > p:last-child,
.usage-card > div > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.usage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.5rem;
}

.usage-card {
  display: grid;
  min-height: 500px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  align-content: space-between;
  background: linear-gradient(145deg, rgb(255 255 255 / 2.5%), transparent 45%);
}

.usage-primary {
  grid-template-rows: auto auto;
  gap: 2rem;
}

.usage-secondary {
  grid-template-rows: auto auto;
}

.monitor-shell {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 13px 13px 24px;
  border: 1px solid #42546b;
  background: linear-gradient(145deg, #273951, #0b111b 62%);
  box-shadow: 0 30px 50px rgb(0 0 0 / 40%);
}

.monitor-screen {
  padding: 10px;
  border: 1px solid #0a101a;
  background: #060a12;
}

.monitor-screen img {
  width: 100%;
  height: auto;
}

.monitor-stand {
  position: absolute;
  bottom: -28px;
  left: 50%;
  width: 34%;
  height: 28px;
  border-bottom: 5px solid #34465b;
  transform: translateX(-50%);
}

.broadcast-window {
  position: relative;
  width: min(100%, 400px);
  margin: 0 auto 2.2rem;
  padding: 2.4rem 0.75rem 1.4rem;
  border: 1px solid #42546b;
  background: var(--surface-raised);
  box-shadow: 0 25px 45px rgb(0 0 0 / 30%);
}

.broadcast-window img {
  width: 100%;
  height: auto;
  margin: auto;
  border: 1px solid #34465b;
}

.broadcast-bar {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 28px;
  padding-inline: 0.75rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #34465b;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
}

.broadcast-bar span {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.broadcast-window i {
  position: absolute;
  right: 0.6rem;
  bottom: 0.5rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-style: normal;
}

.technology-section {
  background:
    linear-gradient(125deg, transparent 60%, rgb(22 121 255 / 6%)),
    rgb(255 255 255 / 0.7%);
}

.technology-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0.7rem;
}

.technology-node {
  display: grid;
  min-height: 150px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 0.6rem 1rem;
  background: rgb(12 20 32 / 68%);
}

.tech-icon {
  width: 42px;
  grid-row: 1 / 3;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.3;
}

.technology-node > span {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.technology-node small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.flow-arrow {
  align-self: center;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.2rem;
}

.closing-cta {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(120deg, transparent 25%, rgb(255 255 255 / 2%) 25.1%, transparent 25.3%),
    radial-gradient(circle at center, rgb(0 207 255 / 9%), transparent 30rem),
    var(--bg-deep);
}

.closing-inner {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  align-items: center;
  text-align: center;
}

.closing-cta h2 {
  margin-bottom: 1.8rem;
}

.closing-aside {
  justify-self: start;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  line-height: 1.8;
  text-align: left;
  text-transform: uppercase;
}

.closing-aside::before {
  display: block;
  width: 2px;
  height: 26px;
  margin-bottom: 0.7rem;
  background: var(--accent);
  content: "";
}

.closing-aside-right {
  justify-self: end;
  text-align: right;
}

.closing-aside-right::before {
  width: 26px;
  height: 2px;
  margin: 0 0 0.7rem auto;
}

.site-footer {
  padding-block: 1.4rem;
  background: var(--bg-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.brand-footer {
  width: 142px;
}

.footer-meta {
  justify-self: end;
}

.language-gateway {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.gateway-card {
  width: min(calc(100% - 40px), 520px);
  padding: 3rem;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.gateway-card img {
  width: 270px;
  margin: 0 auto 2rem;
}

.gateway-card h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.gateway-card nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 1320px) {
  .hero-visual-label {
    display: none;
  }
}

@media (max-width: 1050px) {
  .hero-grid {
    min-height: auto;
    padding-top: 150px;
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-visual {
    width: min(100%, 690px);
    justify-self: center;
  }

  .split-heading,
  .usage-grid,
  .usage-primary {
    grid-template-columns: 1fr;
  }

  .split-heading {
    gap: 1.2rem;
  }

  .split-heading > p {
    max-width: 650px;
  }

  .usage-primary {
    gap: 3.5rem;
  }

  .monitor-shell {
    width: min(100%, 480px);
  }

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

  .flow-arrow {
    display: none;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .header-inner {
    width: min(calc(100% - 32px), var(--page));
  }

  .header-inner {
    min-height: 68px;
    grid-template-columns: 1fr auto;
  }

  .brand {
    width: 145px;
  }

  .primary-nav {
    display: none;
  }

  .hero-grid {
    padding-top: 120px;
  }

  h1 {
    font-size: clamp(2.35rem, 11.5vw, 3.5rem);
  }

  .section {
    padding-block: 5rem;
  }

  .section-heading h2,
  .closing-cta h2 {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

  .process-grid,
  .skin-gallery,
  .editor-demo,
  .technology-flow {
    grid-template-columns: 1fr;
  }

  .process-card,
  .process-card:not(:first-child) {
    min-height: 210px;
    padding: 1.5rem 0;
    border-left: 0;
  }

  .process-card::after {
    right: auto;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .line-icon {
    width: 74px;
    margin-top: 1rem;
  }

  .skin-gallery {
    gap: 2.8rem;
  }

  .editor-screenshot {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .editor-copy {
    padding: 2rem 1.5rem;
  }

  .usage-card {
    min-height: auto;
  }

  .technology-node {
    min-height: 130px;
  }

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

  .closing-aside {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .site-footer nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-summary {
    font-size: 0.95rem;
  }

  .product-frame {
    padding: 10px;
  }

  .product-frame::before {
    inset: -14px;
  }

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

  .footer-meta {
    justify-self: start;
  }

  .gateway-card {
    padding: 2rem 1.25rem;
  }

  .gateway-card nav {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
