:root {
  --bg: #f7f7f5;
  --bg-2: #efefec;
  --panel: #ffffff;
  --panel-soft: #f4f4f2;

  --ink: #131316;
  --ink-2: #5b5d66;
  --ink-3: #8d8f99;

  --hair: rgba(19, 19, 22, 0.10);
  --hair-soft: rgba(19, 19, 22, 0.06);

  --accent: #2b54ff;
  --accent-ink: #1f3fc9;
  --accent-soft: rgba(43, 84, 255, 0.10);
  --accent-line: rgba(43, 84, 255, 0.28);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(19,19,22,0.04), 0 1px 1px rgba(19,19,22,0.03);
  --shadow-2: 0 4px 12px -4px rgba(19,19,22,0.10), 0 2px 4px -2px rgba(19,19,22,0.06);
  --shadow-3: 0 24px 48px -18px rgba(19,19,22,0.18), 0 6px 14px -8px rgba(19,19,22,0.10);

  --font: "Geist Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Geist Variable", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono Variable", ui-monospace, "SF Mono", monospace;
  --pad: clamp(20px, 5vw, 80px);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }

.washes { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.wash { position: absolute; border-radius: 50%; filter: blur(120px); }
.w1 { width: 60vw; height: 60vw; top: -20vw; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(43,84,255,0.05), transparent 64%); }
.w2 { display: none; }
.w3 { display: none; }

main, .footer { position: relative; z-index: 2; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s, padding 0.5s var(--ease);
}
.nav.scrolled {
  background: rgba(247, 247, 245, 0.75);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--hair-soft);
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand-glyph { width: 30px; height: 21px; color: var(--accent); }

.nav > .brand { margin-right: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; margin-right: 28px; }
.nav-links a { font-size: 0.94rem; color: var(--ink-2); transition: color 0.3s; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--accent);
  border-radius: 2px;
  transition: width 0.32s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.is-active { color: var(--ink); font-weight: 600; }
.nav-links a.is-active::after { width: 100%; }

.nav-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  color: var(--ink-2);
  border: 1px solid var(--hair);
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.nav-icon svg { width: 17px; height: 17px; }
.nav-icon::after { display: none !important; }
.nav-icon:hover { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-cta {
  font-size: 0.9rem; font-weight: 500;
  padding: 9px 18px; border-radius: 100px;
  border: 1px solid var(--ink); color: var(--bg);
  background: var(--ink);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.nav-cta:hover { opacity: 0.84; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 1.7px; background: var(--ink); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.7px) rotate(-45deg); }

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--maxw); margin: 0 auto;
  padding: 150px var(--pad) 110px;
  text-align: center; align-items: center;
  position: relative;
}

.rf-canvas {
  display: block;
  width: 200px; height: 64px;
  margin-bottom: 22px;
}
@media (max-width: 520px) { .rf-canvas { width: 172px; height: 56px; } }

.pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.8rem; font-weight: 500;
  color: var(--ink-2);
  padding: 8px 18px 8px 14px; border-radius: 100px;
  border: 1px solid var(--hair);
  background: var(--panel);
  margin-bottom: 30px;
  box-shadow: var(--shadow-1);
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  position: relative;
}
.pill-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0.4;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.5; } 100% { transform: scale(1.6); opacity: 0; } }

.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.7rem, 8vw, 6.4rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  max-width: 16ch;
  color: var(--ink);
}
.grad { color: var(--ink-3); font-weight: 300; }

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 300; color: var(--ink-2);
  max-width: 54ch; margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-scroll {
  position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3);
}
.hero-scroll-line { width: 1px; height: 38px; background: var(--hair); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 1px; height: 50%;
  background: var(--accent); animation: scrolldrop 2s var(--ease) infinite;
}
@keyframes scrolldrop { 0% { top: -50%; } 100% { top: 100%; } }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-weight: 500; font-size: 0.98rem;
  padding: 14px 28px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.35s, background 0.35s, border-color 0.35s, color 0.3s, opacity 0.3s;
}
.btn-primary {
  color: var(--bg);
  background: var(--ink);
  box-shadow: var(--shadow-2);
}
.btn-primary:hover { transform: translateY(-2px); opacity: 0.92; box-shadow: var(--shadow-3); }
.btn-ghost { color: var(--ink); border-color: var(--hair); background: var(--panel); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 9vw, 130px) var(--pad); }
.section--flush { padding-top: 0; }

.page-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(130px, 16vh, 200px) var(--pad) clamp(40px, 6vw, 70px);
}
.page-head--tight { padding-bottom: clamp(20px, 2.5vw, 30px); }
.page-head--tight .page-title { margin-bottom: 0; }
.page-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 18px;
  max-width: 18ch;
}
.page-lead {
  color: var(--ink-2);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 400;
  max-width: 56ch;
  line-height: 1.6;
}

.empty {
  max-width: 520px;
  margin: clamp(20px, 4vw, 50px) 0 clamp(40px, 8vw, 90px);
  padding: clamp(36px, 5vw, 56px);
  border: 1px dashed var(--hair);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--shadow-1);
}
.empty-mark { display: inline-flex; align-items: flex-end; gap: 5px; height: 22px; margin-bottom: 22px; }
.empty-mark i {
  width: 5px; border-radius: 3px; background: var(--accent); opacity: 0.5;
  animation: signal 1.8s var(--ease) infinite;
}
.empty-mark i:nth-child(1) { height: 6px;  animation-delay: 0s; }
.empty-mark i:nth-child(2) { height: 11px; animation-delay: 0.15s; }
.empty-mark i:nth-child(3) { height: 16px; animation-delay: 0.3s; }
.empty-mark i:nth-child(4) { height: 22px; animation-delay: 0.45s; }
@keyframes signal {
  0%, 100% { opacity: 0.22; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}
.empty h2 {
  font-family: var(--display);
  font-weight: 600; font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.empty p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; max-width: 46ch; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.86rem; font-weight: 500; color: var(--ink-2);
  margin-bottom: 22px;
  transition: gap 0.3s var(--ease), color 0.3s;
}
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: var(--accent-ink); gap: 10px; }

.mcs-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px 28px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--shadow-1);
  margin-bottom: 26px;
}
.ctl { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ctl-label {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
}
.ctl-hint {
  font-size: 0.78rem; color: var(--accent-ink); font-weight: 500;
  margin-top: 2px;
}

.select-wrap { position: relative; }
.select {
  appearance: none; -webkit-appearance: none;
  width: 100%;
  font-family: var(--font); font-size: 1rem; font-weight: 500;
  color: var(--ink);
  padding: 11px 38px 11px 14px;
  border: 1px solid var(--hair); border-radius: var(--r-sm);
  background: var(--bg); cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.select:hover { border-color: var(--ink-3); }
.select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.select-caret {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--ink-3); pointer-events: none;
}

.mcs-table-wrap {
  border: 1px solid var(--hair); border-radius: var(--r-lg);
  background: var(--panel);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-2);
}
.mcs-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.mcs-table th, .mcs-table td {
  text-align: left; padding: 14px 18px;
  font-size: 0.92rem; border-bottom: 1px solid var(--hair-soft);
}
.mcs-table thead th {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500;
  background: var(--bg-2);
}
.mcs-table tbody tr { transition: background 0.2s; }
.mcs-table tbody tr:hover { background: var(--accent-soft); }
.mcs-table tbody tr.is-peak { background: var(--accent-soft); }
.mcs-table tbody tr.is-peak .strong { color: var(--accent-ink); }
.mcs-table tbody tr.is-na { opacity: 0.4; }
.mcs-table tbody tr.is-na:hover { background: transparent; }
.mcs-table tbody tr:last-child td { border-bottom: 0; }
.mcs-table .mono { font-family: var(--mono); }
.mcs-table .num { text-align: right; }
.mcs-table .strong { font-weight: 600; color: var(--ink); }
.mcs-table .new-tag {
  font-family: var(--font); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
  color: #fff; background: var(--accent);
  padding: 2px 6px; border-radius: 100px; vertical-align: middle; margin-left: 4px;
}

.scroll-hint {
  display: none;
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3);
  margin-bottom: 10px;
}

.mcs-note {
  margin-top: 20px; color: var(--ink-3); font-size: 0.84rem; line-height: 1.6;
  max-width: 72ch;
}
.mcs-note code {
  font-family: var(--mono); font-size: 0.8rem;
  background: var(--bg-2); padding: 2px 6px; border-radius: 5px; color: var(--ink-2);
}
@media (max-width: 600px) {
  .mcs-table th, .mcs-table td { padding: 12px 14px; font-size: 0.86rem; }
  .scroll-hint { display: block; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 16px;
}
.section-head { max-width: 620px; margin-bottom: 50px; }
.section-head--center { max-width: none; text-align: center; margin-bottom: 36px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 16px;
}
.section-head p { color: var(--ink-2); font-weight: 300; font-size: 1.06rem; max-width: 50ch; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid--single { grid-template-columns: minmax(0, 480px); justify-content: center; }
.tile {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 30px 28px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tile::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 2;
}
.tile:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-3);
}
.tile:hover::before { transform: scaleX(1); }

.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.tile-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}
.tile-idx { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); opacity: 0.7; }
.tile h3 { font-family: var(--display); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 10px; }
.tile p { color: var(--ink-2); font-weight: 400; font-size: 0.98rem; margin-bottom: 24px; flex: 1; line-height: 1.65; }
.tile-go {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600; color: var(--accent-ink);
  transition: gap 0.35s var(--ease);
}
.tile-go svg { width: 16px; height: 16px; color: var(--accent-ink); transition: transform 0.35s var(--ease); }
.tile:hover .tile-go { gap: 12px; }
.tile:hover .tile-go svg { transform: translate(2px, -2px); }

.grid:has(.feature) { grid-template-columns: 1.5fr 1fr; }
.tile.feature { background: var(--bg-2); }
.tile.feature h3 { font-size: 1.6rem; }

.about-inner {
  max-width: 720px;
  padding: clamp(40px, 5vw, 64px);
  border: 1px solid var(--hair); border-radius: 24px;
  background: var(--bg-2);
}
.about-inner h2 { font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -0.035em; line-height: 1.08; margin-bottom: 18px; }
.about-lead { color: var(--ink-2); font-weight: 300; font-size: 1.1rem; margin-bottom: 32px; }
.join { display: flex; gap: 10px; max-width: 480px; }
.join input {
  flex: 1; background: var(--panel);
  border: 1px solid var(--hair); border-radius: 100px;
  padding: 14px 22px; color: var(--ink); font-family: var(--font); font-size: 0.98rem;
  transition: border-color 0.3s;
}
.join input::placeholder { color: var(--ink-3); }
.join input:focus { outline: none; border-color: var(--ink); }
.join .btn { white-space: nowrap; }
.join-note { margin-top: 14px; font-size: 0.85rem; color: var(--ink-3); }
.join-note.ok { color: var(--ink); font-weight: 500; }
.join-note.err { color: #c0392b; }

.footer { border-top: 1px solid var(--hair); max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--pad) 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { color: var(--ink-2); font-weight: 300; font-size: 0.96rem; max-width: 34ch; margin-top: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.footer-col a { color: var(--ink-2); font-size: 0.95rem; width: fit-content; transition: color 0.3s; }
.footer-col a:hover { color: var(--ink); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--hair-soft);
  color: var(--ink-3); font-size: 0.86rem; flex-wrap: wrap; gap: 10px;
}
.footer-status { display: inline-flex; align-items: center; gap: 9px; }
.footer-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: blink 2.6s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.divider {
  border: 0;
  height: 1px;
  background: var(--hair);
  max-width: var(--maxw);
  margin: 0 auto;
  width: calc(100% - var(--pad) * 2);
}

.up { opacity: 0; transform: translateY(22px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.up.in { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open-menu {
    background: rgba(247,247,245,0.97); backdrop-filter: blur(22px);
    border-bottom-color: var(--hair-soft);
  }
  .nav.open-menu .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 12px var(--pad) 24px;
    background: rgba(247,247,245,0.98); backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--hair-soft);
  }
  .nav.open-menu .nav-links a { padding: 12px 0; font-size: 1.05rem; }
  .nav-icon { width: 40px; height: 40px; }
  .grid, .grid:has(.feature) { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .join { flex-direction: column; }
  .join .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-base { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .up { opacity: 1; transform: none; }
  .aura { display: none; }
}
