:root {
  color-scheme: dark;

  --bg: #07070a;
  --bg-section: #0d0c12;
  --surface: #14121a;
  --surface-raised: #17141f;

  --accent: #ff4fa3;
  --accent-soft: #ff83bd;
  --accent-pale: #ffd3e2;

  --text: #f7f4f8;
  --muted: #a7a0ae;
  --muted-deep: #8a8290;

  --line: rgba(255, 181, 211, 0.13);
  --line-soft: rgba(255, 181, 211, 0.08);
  --line-strong: rgba(255, 131, 189, 0.34);

  --font-display: "Unbounded", "Manrope", "Segoe UI", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-jp: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;

  --shell: 1080px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 46% at 78% -8%, rgba(255, 79, 163, 0.055), transparent 60%),
    radial-gradient(ellipse 48% 42% at 4% 34%, rgba(255, 131, 189, 0.025), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 181, 211, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  opacity: 0.35;
  pointer-events: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #1a0812;
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 10px;
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.jp {
  font-family: var(--font-jp);
  letter-spacing: 0.06em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: var(--accent);
  content: "";
  opacity: 0.85;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 7, 10, 0.76);
  backdrop-filter: blur(16px);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
}

.brand__mark {
  width: 42px;
  height: auto;
  filter: brightness(1.08) drop-shadow(0 8px 22px rgba(255, 79, 163, 0.3));
}

.brand__type {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand__meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.head-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navlink {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition:
    color 0.25s var(--ease),
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.navlink:hover {
  background: rgba(255, 79, 163, 0.06);
  color: var(--text);
}

.navlink.is-active {
  border-color: var(--line);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition:
    transform 0.3s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #1a0812;
  box-shadow: 0 14px 38px -24px rgba(255, 79, 163, 0.95);
}

.btn--primary:hover {
  background: #ff6ab3;
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(247, 244, 248, 0.025);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 79, 163, 0.07);
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 38px;
  padding-inline: 15px;
  font-size: 10px;
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 244, 248, 0.02);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.4;
  white-space: nowrap;
}

.pill__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.pill--ok {
  border-color: var(--line-strong);
  background: rgba(255, 79, 163, 0.07);
  color: var(--accent-soft);
}

.pill--ok .pill__dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 79, 163, 0.12);
  animation: pulse 2.6s var(--ease) infinite;
}

.pill--off {
  border-style: dashed;
  color: var(--muted-deep);
}

.pill--off .pill__dot {
  background: var(--muted-deep);
  animation: none;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(255, 79, 163, 0.12);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 79, 163, 0.02);
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip {
  padding: 3px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(20px, 2.6vw, 28px);
}

.card h2 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.site-foot {
  position: relative;
  z-index: 1;
  margin-top: clamp(44px, 7vw, 84px);
  padding-block: 26px 34px;
  border-top: 1px solid var(--line-soft);
}

.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted-deep);
  font-size: 11.5px;
}

.site-foot a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.site-foot a:hover {
  color: var(--text);
}

.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 620px) {
  .brand__meta {
    display: none;
  }

  .head-nav .navlink {
    padding-inline: 9px;
    font-size: 12px;
  }

  .btn--sm {
    padding-inline: 12px;
  }
}
