/* ============================================
   Allpaqa Audio - Common Stylesheet
   Dark / Modern Theme
============================================ */

:root {
  --bg-base: #0b0d12;
  --bg-elevated: #14171f;
  --bg-card: #1a1e29;
  --bg-card-hover: #20253242;
  --border: #2a2f3d;
  --border-strong: #3a4255;
  --text-primary: #e8ecf2;
  --text-secondary: #a0a8b8;
  --text-muted: #6b7080;
  --accent: #5eead4;
  --accent-hover: #2dd4bf;
  --accent-glow: rgba(94, 234, 212, 0.15);
  --accent-secondary: #818cf8;
  --danger: #f87171;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --max-width: 1200px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background ambient gradient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(94, 234, 212, 0.08), transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(129, 140, 248, 0.06), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

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

/* ============================================
   Header / Navigation
============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand:hover {
  color: var(--text-primary);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--bg-base);
  box-shadow: 0 0 20px var(--accent-glow);
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

/* Plugins dropdown (Neural-style) */
.nav-dropdown { position: relative; }

.nav-caret {
  display: inline-block;
  font-size: 10px;
  margin-left: 5px;
  opacity: 0.65;
  transition: transform var(--transition);
}
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 244px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 12px 8px;
  margin: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.nav-dropdown-soon {
  display: block;
  padding: 9px 12px;
  color: var(--text-muted);
  font-size: 15px;
}
.nav-dropdown-soon em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 8px;
}

.nav-dropdown-all {
  margin-top: 8px;
  padding-top: 12px !important;
  border-top: 1px solid var(--border);
  color: var(--accent) !important;
  font-weight: 600 !important;
}

@media (max-width: 860px) {
  .nav-dropdown-menu { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

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

.lang-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  font-size: 12px;
  font-weight: 600;
}

.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition);
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: 0.04em;
}

.lang-toggle button:hover {
  color: var(--text-primary);
}

.lang-toggle button.active {
  background: var(--accent);
  color: var(--bg-base);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
}

/* ============================================
   Layout
============================================ */
main {
  flex: 1;
  width: 100%;
}

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

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #fff, #b6bdca);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 640px;
}

/* ============================================
   Hero
============================================ */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 30%, #8b94a8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
}

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

/* Split hero (homepage) — copy left, product visual right */
.hero-split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
  text-align: left;
}

.hero-split .hero-logo { margin: 0 0 22px; }
.hero-split .hero-title { font-size: clamp(32px, 4.2vw, 54px); }
.hero-split .hero-subtitle { margin-left: 0; margin-right: 0; max-width: 520px; }
.hero-split .hero-actions { justify-content: flex-start; }

.hero-visual { position: relative; }

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle at 60% 40%, var(--accent-glow), transparent 65%);
  z-index: -1;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-split .hero-logo { margin: 0 auto 22px; }
  .hero-split .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-split .hero-actions { justify-content: center; }
  .hero-visual { max-width: 440px; margin: 0 auto; }
}

/* ============================================
   Buttons
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-base);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-base);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding: 12px 18px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================
   Cards (Plugin grid)
============================================ */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.plugin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.plugin-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.plugin-card-visual {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1e29, #0b0d12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.plugin-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    var(--accent-glow),
    transparent 60%
  );
}

.plugin-card-logo {
  position: relative;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plugin-card-visual--image {
  background: linear-gradient(135deg, #f4f6fa, #d8dde6);
}

.plugin-card-visual--image::before {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(94, 234, 212, 0.18),
    transparent 60%
  );
}

.plugin-card-img {
  position: relative;
  max-width: 55%;
  max-height: 75%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.15));
}

/* Full-bleed UI screenshot inside a plugin card */
.plugin-card-visual--shot {
  background: linear-gradient(135deg, #14171f, #0b0d12);
}

.plugin-card-shot {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Plugin feature row (full-width, image left, copy right) — homepage */
.plugin-feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}

.plugin-feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

a.plugin-feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.plugin-feature.coming-soon { opacity: 0.9; }

.plugin-feature-visual {
  position: relative;
  min-height: 420px;
  background: linear-gradient(135deg, #1a1e29, #0b0d12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.plugin-feature-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--accent-glow), transparent 60%);
  pointer-events: none;
}

.plugin-feature-visual img {
  position: relative;
  width: 86%;
  max-height: 84%;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.plugin-feature-rotator {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plugin-feature-rotator img {
  position: absolute;
  top: 4%;
  left: 4%;
  right: 4%;
  bottom: 4%;
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 92%;
  margin: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.plugin-feature-rotator img.is-active {
  opacity: 1;
}
.plugin-feature-rotator img.is-logo {
  border: none;
  box-shadow: none;
  width: 50%;
  height: 50%;
  inset: 25%;
}

.plugin-feature-soon {
  position: relative;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.plugin-feature-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 800px) {
  .plugin-feature { grid-template-columns: 1fr; }
  .plugin-feature-visual { min-height: 220px; }
  .plugin-feature-body { padding: 26px; }
}

.plugin-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plugin-card-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
}

.plugin-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.plugin-card-description {
  color: var(--text-secondary);
  font-size: 14px;
  flex: 1;
}
.plugin-card-description p {
  margin: 0 0 10px;
  line-height: 1.7;
}
.plugin-card-description p:last-child {
  margin-bottom: 0;
}

.plugin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.plugin-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge.coming {
  border-style: dashed;
  color: var(--text-muted);
}

/* Coming-soon card */
.plugin-card.coming-soon {
  border-style: dashed;
  opacity: 0.7;
}

.plugin-card.coming-soon .plugin-card-logo {
  color: var(--text-muted);
  background: none;
  -webkit-text-fill-color: var(--text-muted);
  font-size: 28px;
}

/* ============================================
   Product detail page
============================================ */
.product-hero {
  padding: 60px 0 40px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.product-visual {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a1e29, #0b0d12);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    var(--accent-glow),
    transparent 60%
  );
}

.product-visual-logo {
  position: relative;
  font-size: 96px;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-visual--logo {
  background: linear-gradient(135deg, #f4f6fa, #d8dde6);
  border-color: var(--border-strong);
}

.product-visual--logo::before {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(94, 234, 212, 0.18),
    transparent 60%
  );
}

.product-visual-img {
  position: relative;
  max-width: 70%;
  max-height: 70%;
  width: auto;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

/* Hero color showcase — "lineup of colors" entry */
.hero-showcase-band {
  width: 100%;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(94, 234, 212, 0.1), transparent 55%),
    radial-gradient(ellipse at 80% 120%, rgba(129, 140, 248, 0.08), transparent 50%);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
}

.hero-showcase-eyebrow {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero-showcase-title {
  text-align: center;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #fff 40%, #8b94a8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero-showcase-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-showcase-grid img:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.hero-showcase-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 18px;
}

@media (max-width: 720px) {
  .hero-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Hero image carousel (Fifty product page) ─────────────────────────── */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(320px, 50vw, 580px);
}

.hero-carousel-slide img {
  max-width: 94%;
  max-height: 94%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.hero-carousel-slide--logo img {
  max-width: 240px;
  max-height: 52%;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 12, 18, 0.55);
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background var(--transition), color var(--transition);
  z-index: 2;
}

.hero-carousel-arrow:hover {
  background: rgba(10, 12, 18, 0.85);
  color: #fff;
}

.hero-carousel-arrow--prev { left: 12px; }
.hero-carousel-arrow--next { right: 12px; }

.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.hero-carousel-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

@media (max-width: 600px) {
  .hero-carousel-arrow { width: 32px; height: 32px; font-size: 18px; }
}

/* Banner-style hero — full-width horizontal image on top, text below */
.product-hero-banner {
  padding: 0 0 32px;
  max-width: none;
  margin: 0;
}

.hero-banner-card {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, #f4f6fa 0%, #e3e8f0 50%, #d0d6e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-strong);
}

.hero-banner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(94, 234, 212, 0.18),
    transparent 60%
  );
  pointer-events: none;
}

.hero-banner-img {
  position: relative;
  height: 72%;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.12));
}

.hero-text-area {
  padding-top: 56px;
  padding-bottom: 16px;
}

.hero-text-area .product-tagline {
  max-width: 720px;
}

@media (max-width: 860px) {
  .hero-banner-card {
    height: 200px;
  }
  .hero-banner-img {
    height: 64%;
  }
  .hero-text-area {
    padding-top: 36px;
  }
}

@media (max-width: 480px) {
  .hero-banner-card {
    height: 160px;
  }
}

/* Visually-hidden helper (kept for screen readers / SEO) */
.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;
}

/* Highlight cards (Matrix Pad / Tuner / UI) */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.highlight-card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}

.highlight-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.highlight-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.highlight-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* Screenshot frame (light tile on dark site) */
.screenshot-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.screenshot-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    var(--accent-glow),
    transparent 60%
  );
}

.screenshot-tile {
  position: relative;
  background: linear-gradient(135deg, #f7f9fc, #dde2eb);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 48px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.product-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.product-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.product-tagline {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.product-meta strong {
  color: var(--text-secondary);
  font-weight: 600;
  margin-right: 6px;
}

.product-support-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.feature-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 18px;
}

.feature-item-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-item-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.feature-item-desc strong {
  color: var(--text-primary);
}

.feature-item-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.feature-item-list li {
  position: relative;
  padding-left: 14px;
  line-height: 1.55;
}

.feature-item-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.feature-item-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Download grid */
.download-tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(135deg,
              rgba(94, 234, 212, 0.08),
              rgba(94, 234, 212, 0.03));
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 0 0 22px;
}
.download-tip-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.download-tip-body {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.download-tip-body strong {
  color: var(--text-primary);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.download-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
}

.download-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow);
}

.download-item-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.download-item-os {
  font-weight: 700;
  font-size: 16px;
}

.download-item-detail {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   Manual page
============================================ */
.manual-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 60px 0;
}

.manual-toc {
  position: sticky;
  top: 90px;
  align-self: start;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

.manual-toc h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.manual-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.manual-toc a {
  display: block;
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.manual-toc a:hover {
  color: var(--accent);
}

.manual-content h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
  scroll-margin-top: 90px;
}

/* Sections themselves are the anchor targets ("#dsp", "#drive", etc.) */
.manual-content section,
.fifty-modules > section {
  scroll-margin-top: 80px;
}

.manual-content h2:first-child {
  margin-top: 0;
}

.manual-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 8px;
}

.manual-content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.manual-content ul {
  margin: 12px 0 12px 24px;
  color: var(--text-secondary);
}

.manual-content li {
  margin-bottom: 6px;
}

.param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.param-table th,
.param-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.param-table th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.param-table td {
  color: var(--text-secondary);
}

.param-table tr:last-child td {
  border-bottom: none;
}

.param-name {
  color: var(--accent) !important;
  font-weight: 600;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

/* Fifty page: prominent section dividers */
.fifty-modules > section {
  margin-top: 96px;
  padding-top: 56px;
  position: relative;
  scroll-margin-top: 80px;
}

.fifty-modules > section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--accent-secondary) 30%,
    transparent 70%
  );
  border-radius: 2px;
}

.fifty-modules > section:first-child {
  margin-top: 0;
  padding-top: 0;
}

.fifty-modules > section:first-child::before {
  display: none;
}

.fifty-modules > section > h2 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-top: 0;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #fff 50%, #6b7080);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  scroll-margin-top: 90px;
}

.fifty-modules > section h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.fifty-modules > section h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: -3px;
}

/* Theme pair (Standard vs POP) */
.theme-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 12px;
}

.theme-pair figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.theme-pair figure img {
  width: 100%;
  height: auto;
  display: block;
}

.theme-pair figcaption {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Accent color gallery */
.ui-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 12px;
}

.ui-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.ui-gallery img:hover {
  transform: translateY(-4px);
}

@media (max-width: 720px) {
  .ui-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .theme-pair {
    grid-template-columns: 1fr;
  }
}

/* Effect screenshot figure inside a module section */
.fx-shot {
  margin: 0 0 28px;
  max-width: 100%;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.section-logo {
  margin: 28px 0 36px;
  text-align: center;
}
.section-logo img {
  display: block;
  margin: 0 auto;
  max-width: 360px;
  width: 70%;
  height: auto;
  opacity: 0.95;
}

.fx-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.fx-shot figcaption {
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 540px) {
  .fx-shot {
    max-width: 100%;
  }
}

.module-eyebrow {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.module-eyebrow .module-num {
  color: var(--text-muted);
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}

/* Detailed preset list (e.g. EQ presets) */
.preset-list {
  list-style: none !important;
  margin: 8px 0 24px !important;
  padding: 0 !important;
}

.preset-list li {
  padding: 16px 0;
  margin: 0 !important;
  border-top: 1px solid var(--border);
}

.preset-list li:first-child {
  border-top: none;
  padding-top: 4px;
}

.preset-list .preset-name {
  display: inline-block;
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}

.preset-list p {
  margin: 0 !important;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Parameter list inside module sections */
.module-params {
  list-style: none !important;
  margin: 12px 0 24px !important;
  padding: 16px 20px !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-params li {
  position: relative;
  padding-left: 18px !important;
  margin-bottom: 0 !important;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.module-params li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.module-params li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   About page
============================================ */
.about-hero {
  text-align: center;
  padding: 80px 0 40px;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-content p {
  margin-bottom: 18px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: var(--bg-base);
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* ============================================
   Footer
============================================ */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand-text {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 360px;
  margin-top: 12px;
}

.footer-col h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   Utility
============================================ */
.lang-en,
.lang-ja {
  display: none;
}

html[data-lang="ja"] .lang-ja {
  display: inline;
}

html[data-lang="en"] .lang-en {
  display: inline;
}

html[data-lang="ja"] .lang-ja-block {
  display: block;
}

html[data-lang="en"] .lang-en-block {
  display: block;
}

.lang-ja-block,
.lang-en-block {
  display: none;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 860px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-title {
    font-size: 40px;
  }
  .product-visual-logo {
    font-size: 72px;
  }
  .manual-layout {
    grid-template-columns: 1fr;
  }
  .manual-toc {
    position: static;
    border-left: none;
    border-bottom: 1px solid var(--border);
    padding-left: 0;
    padding-bottom: 16px;
  }
  .manual-toc ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px;
    gap: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px;
    width: 100%;
  }
  .section {
    padding: 56px 0;
  }
  .hero {
    padding: 60px 0 48px;
  }
}
