
:root {
  --bg: #050706;
  --bg-soft: #09100b;
  --panel: #0c120e;
  --panel-2: #101812;
  --text: #edf3ee;
  --muted: #89958d;
  --dim: #536057;
  --green: #a9df98;
  --green-soft: rgba(169, 223, 152, 0.14);
  --green-line: rgba(169, 223, 152, 0.2);
  --red: #d9473f;
  --red-soft: rgba(217, 71, 63, 0.14);
  --line: rgba(217, 236, 221, 0.11);
  --line-strong: rgba(217, 236, 221, 0.22);
  --mono: "IBM Plex Mono", monospace;
  --sans: "Inter", "Noto Sans JP", sans-serif;
  --header-h: 76px;
  --shell: min(1420px, calc(100% - 72px));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 65% -10%, rgba(102, 160, 107, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
}

body.menu-open,
body.booting {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--green);
  color: #061008;
}

.noise-layer,
.scanline-layer {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 9990;
}

.noise-layer {
  background-image: radial-gradient(rgba(255,255,255,.09) .55px, transparent .7px);
  background-size: 4px 4px;
  opacity: .035;
}

.scanline-layer {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,.018) 4px
  );
  opacity: .25;
}

.cursor-glow {
  background: radial-gradient(circle, rgba(169, 223, 152, .12), transparent 68%);
  border-radius: 50%;
  height: 420px;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translate(-50%, -50%);
  width: 420px;
  z-index: 1;
}

.boot-screen {
  align-items: center;
  background: #020403;
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  transition: opacity .65s ease, visibility .65s ease;
  z-index: 10000;
}

.boot-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-inner {
  max-width: 560px;
  padding: 30px;
  width: 100%;
}

.boot-mark {
  color: var(--green);
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -.12em;
}

.boot-title {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .17em;
  margin: 10px 0 30px;
}

.boot-lines {
  display: grid;
  gap: 11px;
}

.boot-lines span {
  color: #748179;
  font-family: var(--mono);
  font-size: .7rem;
  opacity: 0;
  transform: translateY(5px);
}

.boot-lines span.visible {
  animation: bootLine .35s forwards;
}

.boot-lines span:last-child {
  color: var(--green);
}

.boot-progress {
  background: rgba(255,255,255,.06);
  height: 2px;
  margin-top: 28px;
  overflow: hidden;
}

.boot-progress i {
  background: var(--green);
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .15s linear;
}

@keyframes bootLine {
  to { opacity: 1; transform: translateY(0); }
}

.site-header {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(5, 7, 6, .82);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: var(--header-h);
  left: 0;
  padding: 0 34px;
  position: fixed;
  right: 0;
  top: 0;
  transition: background .3s ease, transform .3s ease;
  z-index: 1000;
}

.site-header.scrolled {
  background: rgba(3, 6, 4, .96);
}

.site-header.hidden-header {
  transform: translateY(-100%);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 13px;
  justify-self: start;
}

.brand-mark {
  align-items: center;
  border: 1px solid var(--line-strong);
  color: var(--green);
  display: inline-flex;
  font-family: var(--mono);
  font-size: .86rem;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  letter-spacing: -.08em;
  width: 50px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: .86rem;
  letter-spacing: .13em;
}

.brand-copy small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .12em;
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  gap: 28px;
}

.desktop-nav a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  padding-left: 21px;
  position: relative;
  transition: color .2s ease;
}

.desktop-nav a::before {
  color: var(--dim);
  content: attr(data-code);
  font-size: .5rem;
  left: 0;
  position: absolute;
  top: 1px;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--green);
}

.header-status {
  align-items: center;
  display: flex;
  font-family: var(--mono);
  font-size: .56rem;
  gap: 8px;
  justify-self: end;
  letter-spacing: .08em;
}

.header-status i,
.status-dot {
  animation: pulseDot 1.6s infinite;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  height: 6px;
  width: 6px;
}

.header-status span {
  color: var(--muted);
}

.header-status strong {
  color: var(--green);
  font-weight: 500;
}

@keyframes pulseDot {
  50% { opacity: .3; }
}

.mobile-menu-button {
  background: none;
  border: 0;
  cursor: pointer;
  display: none;
  height: 34px;
  position: relative;
  width: 38px;
}

.mobile-menu-button span {
  background: var(--text);
  height: 1px;
  left: 4px;
  position: absolute;
  transition: .25s ease;
  width: 30px;
}

.mobile-menu-button span:first-child { top: 11px; }
.mobile-menu-button span:last-child { top: 22px; }
.mobile-menu-button.active span:first-child { top: 16px; transform: rotate(45deg); }
.mobile-menu-button.active span:last-child { top: 16px; transform: rotate(-45deg); }

.mobile-nav {
  align-items: stretch;
  background: rgba(4, 7, 5, .985);
  display: flex;
  flex-direction: column;
  gap: 12px;
  inset: var(--header-h) 0 0;
  opacity: 0;
  padding: 28px 22px;
  pointer-events: none;
  position: fixed;
  transform: translateY(-10px);
  transition: .25s ease;
  z-index: 999;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav a {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
}

.mobile-nav a strong {
  font-size: .98rem;
}

.mobile-nav a small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .53rem;
  letter-spacing: .1em;
}

.mobile-nav .mobile-primary {
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  margin-top: 12px;
  padding: 17px;
}

.page-main {
  padding-top: var(--header-h);
  position: relative;
  z-index: 2;
}

.page-hero {
  min-height: 440px;
  overflow: hidden;
  padding: 68px 0 54px;
  position: relative;
}

.page-hero::before {
  background:
    linear-gradient(to right, rgba(5,7,6,.98), rgba(5,7,6,.72), rgba(5,7,6,.25)),
    repeating-linear-gradient(90deg, transparent 0, transparent 59px, rgba(169,223,152,.045) 60px);
  content: "";
  inset: 0;
  position: absolute;
}

.page-hero::after {
  border: 1px solid rgba(169,223,152,.12);
  border-radius: 50%;
  content: "";
  height: 480px;
  position: absolute;
  right: -120px;
  top: -150px;
  width: 480px;
}

.page-hero-inner {
  margin: 0 auto;
  position: relative;
  width: var(--shell);
  z-index: 2;
}

.classification-bar {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-family: var(--mono);
  font-size: .52rem;
  justify-content: space-between;
  letter-spacing: .09em;
  padding-bottom: 13px;
}

.page-kicker {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 70px;
}

.page-kicker i {
  background: var(--red);
  height: 1px;
  width: 44px;
}

.page-kicker span {
  color: var(--green);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
}

.page-hero h1 {
  font-size: clamp(3.8rem, 9vw, 8.5rem);
  letter-spacing: -.065em;
  line-height: .9;
  margin: 24px 0 18px;
}

.page-hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(169,223,152,.62);
}

.page-hero p {
  color: #a7b2aa;
  line-height: 2;
  max-width: 760px;
}

.section-shell {
  margin: 0 auto;
  padding: 110px 0;
  width: var(--shell);
}

.section-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr auto;
  margin-bottom: 56px;
  padding-bottom: 18px;
}

.section-heading small {
  color: var(--green);
  display: block;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .11em;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -.045em;
}

.section-heading p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .08em;
  text-align: right;
}

.eyebrow {
  color: var(--green);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .11em;
}

.panel {
  background: linear-gradient(180deg, rgba(15,22,17,.98), rgba(8,12,9,.98));
  border: 1px solid var(--line-strong);
  position: relative;
}

.panel::before {
  border-left: 2px solid var(--green);
  border-top: 2px solid var(--green);
  content: "";
  height: 18px;
  left: -1px;
  position: absolute;
  top: -1px;
  width: 18px;
}

.panel-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-family: var(--mono);
  font-size: .52rem;
  justify-content: space-between;
  letter-spacing: .08em;
  padding: 14px 17px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ui-button {
  align-items: center;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  font-family: var(--mono);
  font-size: .65rem;
  gap: 18px;
  justify-content: space-between;
  letter-spacing: .07em;
  min-height: 58px;
  padding: 0 18px;
  transition: .25s ease;
}

.ui-button:hover {
  border-color: rgba(169,223,152,.55);
  transform: translateY(-3px);
}

.ui-button.primary {
  background: var(--green-soft);
  border-color: var(--green-line);
}

.ui-button span:last-child {
  color: var(--green);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  margin: 0 auto;
  padding: 34px 0;
  width: var(--shell);
}

.site-footer > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer strong {
  font-size: .76rem;
  letter-spacing: .12em;
}

.site-footer span,
.site-footer p,
.footer-status {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .47rem;
  letter-spacing: .08em;
}

.site-footer p {
  text-align: center;
}

.footer-status {
  align-items: center;
  display: flex;
  gap: 7px;
  justify-self: end;
}

.footer-status i {
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  height: 5px;
  width: 5px;
}

@media (max-width: 1080px) {
  :root { --shell: min(100% - 44px, 1200px); }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 22px;
  }

  .desktop-nav,
  .header-status {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 68px;
    --shell: calc(100% - 36px);
  }

  .cursor-glow { display: none; }
  .brand-copy small { display: none; }

  .page-hero {
    min-height: 390px;
    padding-top: 44px;
  }

  .classification-bar span:last-child { display: none; }
  .page-kicker { margin-top: 54px; }

  .page-hero h1 {
    font-size: clamp(3.5rem, 17vw, 6rem);
  }

  .section-shell { padding: 82px 0; }

  .section-heading {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .section-heading p { text-align: left; }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer > div:first-child,
  .footer-status {
    align-items: center;
    justify-self: center;
  }

  .site-footer p { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


.countdown-panel {
  background: linear-gradient(120deg, rgba(169,223,152,.08), transparent 52%), var(--panel);
  border: 1px solid var(--green-line);
  overflow: hidden;
  position: relative;
}
.countdown-panel::after {
  animation: countdownScan 4s linear infinite;
  background: linear-gradient(90deg, transparent, rgba(169,223,152,.08), transparent);
  content: "";
  inset: 0 auto 0 -50%;
  pointer-events: none;
  position: absolute;
  transform: skewX(-18deg);
  width: 35%;
}
@keyframes countdownScan { to { left: 135%; } }

.countdown-label {
  align-items: center;
  color: var(--green);
  display: flex;
  font-family: var(--mono);
  font-size: .54rem;
  gap: 8px;
  letter-spacing: .1em;
}
.countdown-label i {
  animation: pulseDot 1.3s infinite;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  height: 5px;
  width: 5px;
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.countdown-unit {
  border-right: 1px solid var(--line);
  padding: 18px;
}
.countdown-unit:last-child { border-right: 0; }
.countdown-unit strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  letter-spacing: -.05em;
}
.countdown-unit small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .45rem;
  letter-spacing: .08em;
}
.fixed-operation-cta {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(13,25,16,.9);
  border: 1px solid var(--green-line);
  bottom: 22px;
  box-shadow: 0 15px 40px rgba(0,0,0,.35);
  display: flex;
  font-family: var(--mono);
  font-size: .58rem;
  gap: 13px;
  padding: 13px 16px;
  position: fixed;
  right: 22px;
  transition: .25s ease;
  z-index: 900;
}
.fixed-operation-cta:hover { border-color: rgba(169,223,152,.55); transform: translateY(-4px); }
.fixed-operation-cta i {
  animation: pulseDot 1.4s infinite;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 9px var(--green);
  height: 6px;
  width: 6px;
}
.fixed-operation-cta strong { color: var(--green); font-weight: 500; }

.back-to-top {
  align-items: center;
  background: rgba(5,9,6,.9);
  border: 1px solid var(--line-strong);
  bottom: 22px;
  cursor: pointer;
  display: flex;
  font-family: var(--mono);
  font-size: .52rem;
  height: 46px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 198px;
  transform: translateY(10px);
  transition: .25s ease;
  width: 56px;
  z-index: 900;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width:760px) {
  .fixed-operation-cta { bottom:12px; left:12px; justify-content:center; right:12px; }
  .back-to-top { bottom:78px; right:12px; }
  .countdown-unit { padding:13px 8px; text-align:center; }
}
