/* ---------- Base ---------- */
:root {
  --bg: #0b0b0b;
  --panel: #121212;
  --soft: #1a1a1a;
  --text: #e9e9e9;
  --muted: #a9a9a9;
  --accent: #e11d2a; /* Bushiō Rot */
  --ring: rgba(225, 29, 42, .35);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

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

.noise {
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(600px 400px at 70% 35%, rgba(225,29,42,.12), transparent 60%),
    radial-gradient(800px 600px at 10% 80%, rgba(225,29,42,.06), transparent 55%);
  mix-blend-mode: normal;
  opacity: .9;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(11,11,11,.85), rgba(11,11,11,.45), rgba(11,11,11,0));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 0;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.wordmark { letter-spacing: .18em; font-weight: 700; font-size: clamp(.9rem, 2vw, 1rem); }

.nav a {
  color: var(--muted); text-decoration: none; margin-left: 1rem; font-size: .95rem;
}
.nav a:hover { color: var(--text); }
.sm-hide { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 16vh, 160px) 0 64px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: radial-gradient(40% 50% at 85% 70%, rgba(225,29,42,.2), transparent 60%);
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(400px 400px at 75% 72%, rgba(225,29,42,.18), transparent 60%),
    /* url('assets/hero.jpg') center/cover no-repeat;
  opacity: .22;
  filter: saturate(0.8) contrast(1.05); */
}

.hero-inner { position: relative; z-index: 1; }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  color: var(--muted);
  font-size: .85rem;
}

.hero-title {
  margin: 1rem 0 .6rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}

.breaker { display: block; margin-top: .4rem; font-size: clamp(1.3rem, 3.8vw, 2.2rem); }
.dim { color: var(--muted); }
#rotate { color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2.7vw, 1.2rem);
  max-width: 60ch;
}

.hero-actions { display: flex; gap: .8rem; margin-top: 1rem; }

.kanji {
  margin-top: 2.4rem;
  color: rgba(255,255,255,.8);
  font-size: clamp(1rem, 3vw, 1.4rem);
  letter-spacing: .2em;
}

/* ---------- Buttons ---------- */
.btn {
  --padx: 1.0rem; --pady: .75rem;
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--pady) var(--padx);
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; font-weight: 600;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  will-change: transform;
  font-size: .95rem;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--accent), #b3121c);
  box-shadow: 0 8px 20px var(--ring);
  color: white;
  border-color: rgba(255,255,255,.06);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: rgba(255,255,255,.05);
  color: var(--text);
  border-color: rgba(255,255,255,.12);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- Features ---------- */
.features { padding: 72px 0; }
.features h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 .2rem; }
.features .sub { color: var(--muted); margin: 0 0 1.4rem; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  min-height: 150px;
}
.card h3 { margin-top: .2rem; margin-bottom: .4rem; font-size: 1.2rem; }
.card p { color: var(--muted); }

/* ---------- Manifest ---------- */
.manifest { padding: 64px 0 32px; }
.manifest h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .2rem; }
.manifest .sub { color: var(--muted); margin-bottom: 1rem; }

.quote {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.6rem);
  box-shadow: var(--shadow);
}
blockquote { margin: 0; font-size: clamp(1.1rem, 3vw, 1.6rem); line-height: 1.4; }

.dots {
  display: flex; gap: .5rem; align-items: center; margin-top: .7rem;
}
.dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255,255,255,.35); border: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.dot.active { background: var(--accent); transform: scale(1.1); }

/* ---------- Signup ---------- */
.signup { padding: 72px 0; }
.signup h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .2rem; }
.signup .sub { color: var(--muted); margin-bottom: 1rem; }

.form { display: flex; gap: .6rem; flex-wrap: wrap; }
.form input {
  flex: 1 1 240px;
  background: var(--soft); color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: .8rem 1rem;
  outline: none;
}
.form input:focus { border-color: var(--accent); box-shadow: 0 0 0 6px var(--ring); }
.tiny { color: var(--muted); font-size: .85rem; margin-top: .6rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0 32px;
}
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.site-footer .right a { color: var(--muted); text-decoration: none; margin-left: 1rem; }
.site-footer .right a:hover { color: var(--text); }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (min-width: 760px) {
  .sm-hide { display: inline-flex; }
}
