/* ==========================================================================
   KAGURA 神楽 — Discord Bot
   Monochrome / editorial theme
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-alt: #111112;

  --ink: #f3f1ec;
  --ink-muted: #a9a7a1;
  --ink-faint: #706e69;

  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.09);

  --radius-sm: 3px;
  --radius-md: 6px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;

  --font-display: "Shippori Mincho", "Noto Serif JP", serif;
  --font-body: "Noto Serif JP", "Shippori Mincho", serif;
}

/* -------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
code { font-family: inherit; }

section[id] { scroll-margin-top: var(--header-h); }

::selection { background: var(--ink); color: var(--bg); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 720px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { left: 24px; top: 12px; }

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 16px;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:not(:disabled):hover { background: transparent; color: var(--ink); }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-lg { padding: 15px 32px; font-size: 0.98rem; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* -------------------------------------------------------------------------
   Header / Nav
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark { border-radius: 50%; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}
.logo-sub {
  margin-left: 10px;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-menu ul { display: flex; align-items: center; gap: 30px; }
.nav-menu a:not(.btn) {
  color: var(--ink-muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  transition: color 0.2s var(--ease);
}
.nav-menu a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  width: 20px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  margin: 0 auto;
}
.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 { position: relative; }

.hero-banner-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1983 / 793;
  overflow: hidden;
  background: #000;
}
.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}
.hero-banner-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-copy {
  text-align: center;
  max-width: 640px;
  padding: 8px 24px 96px;
}

.hero-copy .eyebrow { text-align: center; margin-top: 8px; }

.nowrap-ja { white-space: nowrap; }

.hero-lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.75;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-note {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* -------------------------------------------------------------------------
   Sections (generic)
   ------------------------------------------------------------------------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2rem);
}
.section-lead {
  color: var(--ink-muted);
  max-width: 480px;
  margin-top: 14px;
  font-size: 0.98rem;
}

/* -------------------------------------------------------------------------
   Features
   ------------------------------------------------------------------------- */
.feature-list {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  border-bottom: 1px solid var(--line-soft);
}
.feature-row {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
}
.feature-num {
  flex-shrink: 0;
  width: 2.4em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink-faint);
}
.feature-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-body p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* -------------------------------------------------------------------------
   Commands (coming soon)
   ------------------------------------------------------------------------- */
.coming-soon {
  margin-top: 44px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 96px 24px;
  text-align: center;
}
.coming-soon-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.coming-soon-text {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink-muted);
}

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */
.faq-list { margin-top: 44px; }
.faq-item {
  border-bottom: 1px solid var(--line-soft);
  padding: 24px 0;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-toggle { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--ink-faint);
  transition: opacity 0.2s var(--ease);
}
.faq-toggle::before { left: 0; top: 50%; width: 100%; height: 1px; transform: translateY(-50%); }
.faq-toggle::after { top: 0; left: 50%; width: 1px; height: 100%; transform: translateX(-50%); }
.faq-item[open] .faq-toggle::after { opacity: 0; }

.faq-item p { margin-top: 16px; color: var(--ink-muted); font-size: 0.94rem; max-width: 600px; line-height: 1.8; }
.faq-item p a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.2s var(--ease);
}
.faq-item p a:hover { text-decoration-color: var(--ink); }

/* -------------------------------------------------------------------------
   Closing CTA
   ------------------------------------------------------------------------- */
.cta-close {
  text-align: center;
  border-top: 1px solid var(--line-soft);
}
.cta-inner { max-width: 480px; margin: 0 auto; }
.cta-inner .eyebrow { text-align: center; }
.cta-close h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin-bottom: 14px; }
.cta-close p { color: var(--ink-muted); margin-bottom: 34px; font-size: 0.98rem; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line-soft); }

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 40px 24px;
}
.footer-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.footer-nav a { font-size: 0.86rem; color: var(--ink-muted); letter-spacing: 0.04em; transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding: 20px 24px;
}
.footer-copy { color: var(--ink-faint); font-size: 0.8rem; letter-spacing: 0.04em; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--ink-faint); font-size: 0.8rem; transition: color 0.2s var(--ease); }
.footer-legal a:hover { color: var(--ink-muted); }

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .hero-banner-wrap { aspect-ratio: 4 / 5; }
  .coming-soon { padding: 64px 24px; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 11, 12, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-menu ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .nav-menu ul li { width: 100%; }
  .nav-menu ul a { display: block; padding: 14px 4px; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav-cta { margin-top: 16px; }
  .nav-cta .btn { width: 100%; }

  .feature-list { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .footer-top, .footer-bottom { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 480px) {
  .hero-banner-wrap { aspect-ratio: 3 / 4; }
  .hero-copy { padding-bottom: 72px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* -------------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}
