:root {
  color-scheme: dark;
  --bg: #17171f;
  --bg-deep: #111116;
  --surface: #20202a;
  --surface-raised: #262632;
  --text: #f0f0f3;
  --muted: #aaaab6;
  --subtle: #747480;
  --line: #353542;
  --line-bright: #474757;
  --accent: #8e6ed1;
  --accent-bright: #b397e8;
  --accent-soft: rgba(142, 110, 209, 0.14);
  --green: #68c59a;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: block;
  width: 238px;
}

.brand img {
  width: 100%;
  height: auto;
  margin: -16px 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

nav a {
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

nav .language-link {
  padding: 7px 12px;
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  color: var(--text);
  letter-spacing: 0.08em;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 178px 0 108px;
  background:
    radial-gradient(circle at 75% 38%, rgba(123, 95, 191, 0.14), transparent 28%),
    linear-gradient(135deg, #191923 0%, #15151d 55%, #101015 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, transparent, black 52%, black);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(60px, 8vw, 116px);
}

.eyebrow,
.section-index {
  margin: 0 0 26px;
  color: var(--accent-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 16px rgba(179, 151, 232, 0.85);
}

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

h1 {
  max-width: 700px;
  margin-bottom: 27px;
  font-size: clamp(3rem, 6vw, 5.7rem);
  font-weight: 560;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

h1 em {
  color: var(--muted);
  font-style: normal;
  font-weight: 310;
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 35px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 43px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #9c7ddb;
}

.button-secondary {
  border-color: var(--line-bright);
  color: var(--muted);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--muted);
  color: var(--text);
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.73rem;
  letter-spacing: 0.09em;
  list-style: none;
  text-transform: uppercase;
}

.platform-list li:not(:last-child)::after {
  content: "/";
  margin: 0 13px;
  color: var(--line-bright);
}

.signal-console {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(179, 151, 232, 0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(39, 39, 52, 0.91), rgba(23, 23, 31, 0.94));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.signal-console::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% -18% -13% 24%;
  border-radius: 50%;
  background: rgba(123, 95, 191, 0.18);
  filter: blur(58px);
}

.console-topline,
.console-footer {
  display: flex;
  justify-content: space-between;
  color: var(--subtle);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
}

.console-topline {
  margin-bottom: 27px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.signal-state {
  color: var(--green);
}

.signal-state i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(104, 197, 154, 0.8);
}

.route-row {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr 0.5fr;
  align-items: center;
  gap: 13px;
  font-size: 0.7rem;
}

.route-row-head {
  margin-bottom: 12px;
  color: var(--subtle);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.route-row-head span:last-child {
  text-align: right;
}

.node,
.process {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: rgba(17, 17, 22, 0.55);
}

.node-out {
  border-color: rgba(142, 110, 209, 0.42);
  color: var(--accent-bright);
  text-align: center;
}

.process {
  display: flex;
  justify-content: space-between;
}

.process b {
  color: var(--text);
  font-weight: 500;
}

.route-line {
  height: 19px;
  margin-left: 41%;
  border-left: 1px solid rgba(142, 110, 209, 0.48);
}

.route-line-alt {
  border-color: rgba(255, 255, 255, 0.12);
}

.meter {
  height: 94px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 5px;
  margin: 27px 0 20px;
  padding: 13px 13px 9px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0 17px, rgba(255, 255, 255, 0.035) 17px 18px);
}

.meter span {
  height: var(--level);
  min-height: 4px;
  border-radius: 1px 1px 0 0;
  background: linear-gradient(to top, rgba(123, 95, 191, 0.58), var(--accent-bright));
}

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

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(60px, 10vw, 140px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.body-copy {
  color: var(--muted);
  font-size: 1.06rem;
}

.body-copy > p {
  margin-bottom: 22px;
}

.protocols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.protocols div {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.012);
}

.protocols span,
.protocols strong {
  display: block;
}

.protocols span {
  margin-bottom: 7px;
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.protocols strong {
  color: var(--text);
  font-weight: 550;
}

.features {
  background: var(--bg-deep);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 54px;
}

.section-heading h2 {
  max-width: 640px;
}

.section-heading > p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-card {
  min-height: 394px;
  padding: clamp(30px, 4vw, 48px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 52%);
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 54px;
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
}

.feature-mark {
  position: relative;
  width: 58px;
  height: 30px;
}

.feature-mark::before,
.feature-mark::after {
  content: "";
  position: absolute;
}

.delay-mark::before {
  inset: 14px 0 auto;
  height: 1px;
  background: var(--line-bright);
}

.delay-mark::after {
  width: 10px;
  height: 10px;
  top: 9px;
  left: 31px;
  border: 1px solid var(--accent-bright);
  border-radius: 50%;
  background: var(--bg-deep);
}

.curve-mark::before {
  width: 54px;
  height: 27px;
  border-top: 2px solid var(--accent-bright);
  border-radius: 70% 0 0;
  transform: rotate(-14deg) translateY(10px);
}

.curve-mark::after {
  width: 5px;
  height: 5px;
  top: 2px;
  right: 0;
  border-radius: 50%;
  background: var(--accent-bright);
}

.merge-mark::before,
.merge-mark::after {
  width: 53px;
  height: 16px;
  border-bottom: 1px solid var(--accent-bright);
  border-radius: 0 0 100% 0;
  transform: rotate(18deg);
}

.merge-mark::after {
  transform: scaleY(-1) rotate(18deg);
}

.monitor-mark {
  border: 1px solid var(--line-bright);
  border-radius: 3px;
}

.monitor-mark::before {
  width: 5px;
  height: 15px;
  bottom: 5px;
  left: 8px;
  background: var(--accent);
  box-shadow: 10px -7px var(--accent-bright), 20px 3px #66549a, 30px -3px #9a7fd3;
}

.feature-card h3 {
  margin-bottom: 20px;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  font-weight: 470;
  letter-spacing: -0.035em;
}

.feature-card h3 small {
  color: var(--accent-bright);
  font-size: 0.7em;
  font-weight: 300;
}

.feature-card > p {
  max-width: 510px;
  color: var(--muted);
}

.feature-card .feature-detail {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.88rem;
}

.philosophy {
  background:
    linear-gradient(90deg, transparent, rgba(142, 110, 209, 0.035), transparent),
    var(--bg);
}

.status-section {
  padding: 0 0 112px;
}

.status-panel {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  padding: 48px;
  border: 1px solid rgba(142, 110, 209, 0.35);
  border-radius: 7px;
  background: linear-gradient(120deg, rgba(142, 110, 209, 0.13), rgba(255, 255, 255, 0.015));
}

.status-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 7px;
  color: var(--accent-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.status-label span {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent-bright);
}

.status-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

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

.company {
  background: var(--surface);
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(60px, 10vw, 140px);
}

.company-intro {
  max-width: 420px;
  margin-top: 28px;
  color: var(--muted);
}

.company-details {
  font-style: normal;
}

.company-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-bright);
}

.company-row:first-child {
  border-top: 1px solid var(--line-bright);
}

.company-row > span {
  color: var(--subtle);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-row p {
  margin: 0;
  color: var(--muted);
}

.company-row strong {
  color: var(--text);
  font-weight: 570;
}

.company-row a {
  text-decoration-color: var(--line-bright);
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.company-row a:hover,
.company-row a:focus-visible {
  color: var(--accent-bright);
}

footer {
  padding: 41px 0;
  background: var(--bg-deep);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner img {
  width: 190px;
  height: auto;
  margin: -14px 0;
}

.footer-inner p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

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

@media (max-width: 900px) {
  .hero {
    padding-top: 148px;
  }

  .hero-grid,
  .two-column,
  .company-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 70px;
  }

  .signal-console {
    width: min(100%, 620px);
  }

  .two-column,
  .company-grid {
    gap: 42px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 25px;
  }

  .status-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

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

  .header-inner {
    min-height: 76px;
    gap: 16px;
  }

  .brand {
    width: 178px;
  }

  nav {
    display: flex;
    flex: 0 0 auto;
  }

  nav a:not(.language-link) {
    display: none;
  }

  .hero {
    padding: 126px 0 76px;
  }

  .hero::before {
    background-size: 44px 44px;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.35rem);
  }

  .hero-lede {
    font-size: 1.03rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .platform-list {
    row-gap: 8px;
  }

  .signal-console {
    padding: 17px;
  }

  .route-row {
    grid-template-columns: 0.78fr 1.35fr 0.5fr;
    gap: 7px;
    font-size: 0.57rem;
  }

  .node,
  .process {
    padding: 9px 7px;
  }

  .meter {
    gap: 3px;
  }

  .section {
    padding: 78px 0;
  }

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

  .feature-card {
    min-height: 0;
  }

  .feature-top {
    margin-bottom: 38px;
  }

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

  .status-section {
    padding-bottom: 78px;
  }

  .status-panel {
    padding: 30px 24px;
  }

  .company-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

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

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