/* ============================================================
   MUSHIN — MARKETING SITE — style.css
   Dark / Cyan / Glassmorphism design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Tokens ───────────────────────────────────────────────── */
:root {
  --bg:          #07070d;
  --bg-2:        #0d0d1a;
  --bg-3:        #111122;
  --surface:     rgba(255,255,255,0.04);
  --surface-h:   rgba(255,255,255,0.07);
  --border:      rgba(0,229,255,0.12);
  --border-h:    rgba(0,229,255,0.35);

  --cyan:        #00e5ff;
  --cyan-dim:    rgba(0,229,255,0.15);
  --cyan-glow:   rgba(0,229,255,0.4);
  --orange:      #ff6b35;
  --orange-dim:  rgba(255,107,53,0.15);
  --red:         #ff3b55;

  --text-1:      #f0f4ff;
  --text-2:      #9ba8c4;
  --text-3:      #5a6480;

  --font-head:   'Outfit', sans-serif;
  --font-body:   'Inter', sans-serif;

  --radius:      12px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  --transition:  0.25s cubic-bezier(0.4,0,0.2,1);
  --glow-cyan:   0 0 40px rgba(0,229,255,0.18), 0 0 80px rgba(0,229,255,0.08);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 3px; }

/* ─── Canvas Background (Hero) ───────────────────────────────── */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

/* ─── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 64px;
  background: rgba(7,7,13,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(7,7,13,0.95);
  border-bottom-color: var(--border-h);
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-1);
  background: linear-gradient(90deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--cyan); }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem clamp(1.5rem, 8vw, 6rem) 5rem;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 1rem;
  border: 1px solid var(--border-h);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  margin-bottom: 2rem;
  animation: fadeSlideDown 0.8s ease both;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 50%, #7b8fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  animation: fadeSlideDown 0.9s 0.1s ease both;
}
.hero-kana {
  font-size: 0.45em;
  font-weight: 300;
  opacity: 0.55;
  display: block;
  letter-spacing: 0.3em;
}
.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  animation: fadeSlideDown 1s 0.2s ease both;
}
.hero-sub em {
  color: var(--text-1);
  font-style: normal;
  font-weight: 500;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeSlideDown 1.1s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-transform: none;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #0099bb 100%);
  color: #000;
  box-shadow: 0 4px 24px rgba(0,229,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,229,255,0.55);
  color: #000;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text-1);
  border: 1px solid var(--border-h);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--surface-h);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.4;
  animation: fadeIn 1.5s 1s ease both;
}
.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  animation: bounceDown 1.8s infinite;
}

/* ─── SECTIONS ───────────────────────────────────────────────── */
section { padding: 6rem clamp(1.5rem, 8vw, 6rem); }
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 650px;
  line-height: 1.75;
}

/* ─── CONCEPT SECTION ────────────────────────────────────────── */
.concept {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.concept-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.concept-prose {
  font-size: 1.15rem;
  color: var(--text-2);
  line-height: 1.9;
  max-width: 700px;
  margin-bottom: 4rem;
}
.concept-prose strong {
  color: var(--text-1);
  font-weight: 600;
}
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.concept-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.concept-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.concept-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--glow-cyan);
}
.concept-card:hover::before { opacity: 1; }
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.card-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-1);
}
.card-body {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ─── FEATURES SECTION ───────────────────────────────────────── */
.features {
  background: var(--bg-2);
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.features-header {
  margin-bottom: 3rem;
}
.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.features-list {
  display: grid;
  gap: 1rem;
}
.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: default;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-item::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan) 0%, #7b8fff 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
}
.feature-item:hover {
  border-color: var(--border-h);
  background: var(--surface-h);
  transform: translateX(4px);
}
.feature-item:hover::after { transform: scaleY(1); }
.feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.feature-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.2rem;
}
.feature-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.55;
}

.plugin-preview {
  position: sticky;
  top: 6rem;
}
.plugin-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-h);
  box-shadow:
    0 0 0 1px rgba(0,229,255,0.06),
    0 30px 80px rgba(0,0,0,0.7),
    var(--glow-cyan);
}
.plugin-frame img {
  width: 100%;
  filter: brightness(1.05) contrast(1.02);
}
.plugin-frame-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(7,7,13,0.95) 0%, transparent 100%);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}

/* ─── SIGNAL PATH SECTION ────────────────────────────────────── */
.signal-path {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.signal-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.signal-prose {
  font-size: 1.15rem;
  color: var(--text-2);
  font-style: italic;
  line-height: 1.9;
  max-width: 680px;
  margin: 1.5rem auto 4rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  text-align: left;
}
.signal-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 3rem;
}
.chain-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.chain-box {
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-h);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all var(--transition);
  cursor: default;
}
.chain-box:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}
.chain-label {
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
}
.chain-arrow {
  flex-shrink: 0;
  padding: 0 0.5rem;
  color: var(--cyan);
  font-size: 1.2rem;
  opacity: 0.7;
  margin-bottom: 1.25rem;
}

/* ─── DOWNLOAD SECTION ───────────────────────────────────────── */
.download {
  background: var(--bg-3);
}
.download-inner {
  max-width: 900px;
  margin: 0 auto;
}
.download-card {
  background: var(--surface);
  border: 1px solid var(--border-h);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--glow-cyan);
}
.download-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.download-desc {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}
.requirements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.requirements li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-2);
}
.req-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}
.install-steps {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.install-steps h4 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}
.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-2);
}
.step-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid var(--border-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan);
  margin-top: 0.05rem;
}
.download-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.platform-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.platform-badge svg {
  width: 16px; height: 16px;
  opacity: 0.6;
}
.macos-note {
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem clamp(1.5rem, 8vw, 6rem);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  background: linear-gradient(90deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 0.3rem;
  font-style: italic;
}
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-3);
  transition: color var(--transition);
  letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--cyan); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 0.4; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px var(--cyan); opacity: 1; }
  50%       { box-shadow: 0 0 16px var(--cyan); opacity: 0.6; }
}
@keyframes bounceDown {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-layout {
    grid-template-columns: 1fr;
  }
  .plugin-preview { position: static; }
  .download-card {
    grid-template-columns: 1fr;
  }
  .download-cta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .signal-chain { gap: 0; }
  .chain-arrow { font-size: 0.9rem; padding: 0 0.2rem; }
  .chain-box { padding: 0.6rem 0.8rem; font-size: 0.7rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
