/* =========================================================================
   MemEco — official site
   ========================================================================= */

:root {
  --bg: #0b111c;
  --bg-2: #0e1626;
  --bg-3: #111a2b;
  --card: rgba(20, 30, 48, 0.72);
  --card-solid: #141e30;
  --line: #22304a;
  --line-soft: rgba(34, 48, 74, 0.6);
  --text: #e9eff9;
  --text-dim: #c3cfe2;
  --muted: #8fa3bf;
  --mint: #4ade80;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --red: #f87171;

  --grad: linear-gradient(120deg, var(--mint), var(--cyan));
  --grad-soft: linear-gradient(120deg, rgba(74, 222, 128, 0.14), rgba(34, 211, 238, 0.14));

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1120px;

  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
    "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(74, 222, 128, 0.28); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--mint);
  color: #06210f;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------------ background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, #16233a 0%, transparent 60%),
    linear-gradient(180deg, #0b111c 0%, #0a101a 100%);
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  pointer-events: none;
}
.bg-glow--mint {
  width: 520px;
  height: 520px;
  top: 120px;
  left: -140px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.22), transparent 65%);
}
.bg-glow--cyan {
  width: 620px;
  height: 620px;
  top: 320px;
  right: -220px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 65%);
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(9, 14, 23, 0.78);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 14px rgba(34, 211, 238, 0.18);
}
.brand-name { font-size: 18px; }
.brand-sub {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
}
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(20, 30, 48, 0.6);
  transition: border-color 0.2s, background 0.2s;
}
.nav-github:hover { border-color: rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.08); text-decoration: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(20, 30, 48, 0.6);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding-top: 76px;
  padding-bottom: 56px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: rgba(20, 30, 48, 0.5);
  border-radius: 999px;
  padding: 5px 12px;
  letter-spacing: 0.02em;
}
.badge--live { color: #bdf7d0; border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.08); }
.badge--live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0.03); }
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 .grad {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.9em;
  line-height: 1.24;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.lead {
  margin: 0 0 32px;
  color: var(--text-dim);
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.9;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
.hero-actions--center { justify-content: center; }

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--grad);
  color: #062012;
  box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(74, 222, 128, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-note {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.72;
  letter-spacing: 0.02em;
}
.btn--ghost {
  background: rgba(20, 30, 48, 0.6);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.07); }
.btn--wide { width: 100%; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.hero-facts strong { color: var(--text); font-size: 16px; margin-right: 4px; letter-spacing: -0.01em; }

/* hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 18px 0 24px;
}
.shot-frame {
  position: relative;
  width: min(400px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(120, 160, 220, 0.22);
  background: linear-gradient(180deg, #17233a, #0f1726);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 90px -20px rgba(34, 211, 238, 0.25);
  overflow: hidden;
}
.shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  background: rgba(10, 16, 27, 0.85);
  border-bottom: 1px solid rgba(120, 160, 220, 0.14);
}
.shot-dot { width: 9px; height: 9px; border-radius: 50%; background: #2a3a55; }
.shot-dot:nth-child(1) { background: #f87171aa; }
.shot-dot:nth-child(2) { background: #fbbf24aa; }
.shot-dot:nth-child(3) { background: #4ade80aa; }
.shot-title {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.shot-frame img { width: 100%; height: auto; }

.float-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(120, 160, 220, 0.22);
  background: rgba(14, 22, 38, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.9);
  animation: float 7s ease-in-out infinite;
  pointer-events: none;
}
.float-label { font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }
.float-value { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.float-value--ok { color: var(--mint); }
.float-card--a { left: -42px; top: 4px; animation-delay: -1.5s; }
.float-card--b { right: -34px; top: 330px; animation-delay: -3.2s; }
.float-card--c { left: -16px; bottom: 14px; animation-delay: -4.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ------------------------------------------------------------------ strip */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--line-soft);
  overflow: hidden;
}
.strip-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 22px;
  background: rgba(12, 19, 31, 0.72);
}
.strip-k { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.strip-v { font-size: 14px; color: var(--text-dim); font-weight: 600; }

/* ------------------------------------------------------------------ sections */
.section { padding-top: 96px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--mint);
}
.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.section-lead { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.95; }

/* ------------------------------------------------------------------ cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 222, 128, 0.28);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.9), 0 0 32px -18px rgba(74, 222, 128, 0.5);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 19, 31, 0.7);
}
.card-icon--mint { color: var(--mint); box-shadow: inset 0 0 18px rgba(74, 222, 128, 0.12); }
.card-icon--cyan { color: var(--cyan); box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.12); }
.card-icon--violet { color: var(--violet); box-shadow: inset 0 0 18px rgba(167, 139, 250, 0.12); }
.card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.85; }
.card-meta {
  margin-top: 14px !important;
  font-size: 11.5px !important;
  color: rgba(143, 163, 191, 0.75) !important;
  letter-spacing: 0.03em;
}
.card-meta::before { content: "— "; }

/* ------------------------------------------------------------------ table */
.table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: auto;
  background: rgba(12, 19, 31, 0.6);
}
.map-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.map-table th,
.map-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.map-table thead th {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  background: rgba(16, 25, 41, 0.8);
}
.map-table tbody tr:last-child td { border-bottom: 0; }
.map-table tbody tr:hover { background: rgba(34, 211, 238, 0.04); }
.map-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.map-table td:nth-child(2) { color: var(--text-dim); }
.map-table td:nth-child(3) { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------ screens */
.screens {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}
.screen {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(12, 19, 31, 0.7);
  padding: 14px;
  transition: border-color 0.2s;
}
.screen:hover { border-color: rgba(34, 211, 238, 0.3); }
.screen img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(120, 160, 220, 0.14);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.9);
}
.screen figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.screen--main img { max-width: 440px; margin: 0 auto; }

/* ------------------------------------------------------------------ metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--line-soft);
  overflow: hidden;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px;
  background: rgba(12, 19, 31, 0.78);
}
.metric-value {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.metric-value .unit { font-size: 0.5em; margin-left: 2px; color: var(--muted); font-weight: 700; }
.metric-label { font-size: 12px; color: var(--muted); line-height: 1.6; }
.metrics-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(143, 163, 191, 0.72);
  line-height: 1.8;
}

/* ------------------------------------------------------------------ steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.step {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--card);
}
.step-no {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mint);
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.85; }

.safety {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.safety-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(12, 19, 31, 0.62);
}
.safety-card h3 { margin: 0 0 14px; font-size: 15px; letter-spacing: 0.01em; }
.safety-card ul { margin: 0; padding: 0; list-style: none; }
.safety-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.safety-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--grad);
}

/* ------------------------------------------------------------------ download */
.download {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.download-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--card);
}
.download-card--primary {
  border-color: rgba(74, 222, 128, 0.35);
  background:
    linear-gradient(180deg, rgba(74, 222, 128, 0.08), rgba(34, 211, 238, 0.03)),
    var(--card);
  box-shadow: 0 0 60px -35px rgba(74, 222, 128, 0.6);
}
.download-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.download-head h3 { margin: 0; font-size: 18px; }
.chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.chip--mint { color: #b9f6cc; border-color: rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.1); }
.download-file {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  word-break: break-all;
}
.download-size { margin: 0 0 20px; font-size: 12.5px; color: var(--muted); }
.download-card .btn { margin-top: auto; }
.download-hint { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

.download-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 13px;
}
.download-foot .sep { color: var(--line); }
.download-note {
  margin: 18px auto 0;
  max-width: 720px;
  font-size: 12px;
  color: rgba(143, 163, 191, 0.75);
  line-height: 1.8;
  text-align: center;
}

/* ------------------------------------------------------------------ start */
.start-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.start-steps li {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--card);
}
.start-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--grad);
  color: #062012;
  font-weight: 800;
  font-size: 15px;
}
.start-steps h3 { margin: 0 0 8px; font-size: 16px; }
.start-steps p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.85; }

/* ------------------------------------------------------------------ faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(12, 19, 31, 0.6);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: rgba(34, 211, 238, 0.28); }
.faq summary {
  position: relative;
  padding: 18px 52px 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-35%) rotate(-135deg); }
.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

/* ------------------------------------------------------------------ cta */
.cta { padding-top: 96px; }
.cta-inner {
  position: relative;
  padding: 56px 32px;
  text-align: center;
  border-radius: 26px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(74, 222, 128, 0.16), transparent 70%),
    radial-gradient(600px 300px at 80% 100%, rgba(34, 211, 238, 0.14), transparent 70%),
    rgba(12, 19, 31, 0.8);
  overflow: hidden;
}
.cta-inner h2 { margin: 0 0 10px; font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -0.02em; }
.cta-inner p { margin: 0 0 26px; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ footer */
.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line-soft);
  padding: 36px 0 48px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.footer-brand img { border-radius: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--muted); }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--text); text-decoration: none; }
.footer-copy { width: 100%; margin: 8px 0 0; font-size: 12px; color: rgba(143, 163, 191, 0.6); }

/* ------------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 36px; }
  .hero-visual { order: -1; }
  .shot-frame { width: min(340px, 100%); }
  .float-card--b { right: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .steps, .safety, .start-steps { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .hero-facts { gap: 10px 20px; }
}

@media (max-width: 760px) {
  .float-card { display: none; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    background: rgba(9, 14, 23, 0.97);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 4px; font-size: 15px; border-radius: 8px; }
  .nav-github { justify-content: center; margin-top: 8px; }
  .nav-toggle { display: block; }
  .site-header.is-scrolled .nav { background: rgba(9, 14, 23, 0.98); }
  .download { grid-template-columns: 1fr; }
  .section { padding-top: 72px; }
  .cta { padding-top: 72px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }

  /* モバイルでは表を 2 列に絞り、横スクロールを無くす */
  .table-wrap { overflow: visible; }
  .map-table { min-width: 0; width: 100%; table-layout: fixed; }
  .map-table th, .map-table td { padding: 12px 13px; font-size: 12.5px; line-height: 1.7; }
  .map-table th:nth-child(3), .map-table td:nth-child(3) { display: none; }
  .map-table th:nth-child(1), .map-table td:nth-child(1) { width: 40%; white-space: normal; }
  .map-table th:nth-child(2), .map-table td:nth-child(2) { width: 60%; word-break: break-word; }
}

@media (max-width: 560px) {
  .shot-frame { width: min(300px, 100%); }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .cards { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .badges .badge:nth-child(n + 3) { display: none; }
  .float-card--a { left: -6px; top: 40px; }
  .float-card--b { right: -6px; top: 180px; }
  .float-card--c { display: none; }
  .brand-sub { display: none; }
  .cta-inner { padding: 40px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
