/* ==========================================================================
   YoutubeTheaterLive - Cinematic High-End Landing Page Styles
   Ultra-modern dark aesthetic, glassmorphism, responsive motion graphics
   ========================================================================== */

:root {
  --bg-deep: #06090e;
  --bg-surface: #0c111a;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(24, 32, 50, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(88, 166, 255, 0.45);
  
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-dim: #606771;
  
  --accent-cyan: #58a6ff;
  --accent-purple: #a371f7;
  --accent-pink: #f778ba;
  --accent-glow: rgba(88, 166, 255, 0.25);
  --accent-gradient: linear-gradient(135deg, #58a6ff 0%, #a371f7 50%, #f778ba 100%);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow-x: hidden;
  background: var(--bg-deep);
  min-height: 100vh;
}

/* Ambient Canvas Background (Stardust / Atmospheric Glow) */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

/* Page Container */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation Header */
header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 14, 0.85);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 16px rgba(88, 166, 255, 0.4);
}

.brand-title span.cinema {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav.site-nav a:hover, nav.site-nav a.active {
  color: var(--text-main);
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(88, 166, 255, 0.12);
  border: 1px solid rgba(88, 166, 255, 0.35);
  color: var(--accent-cyan) !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: rgba(88, 166, 255, 0.22);
  box-shadow: 0 0 16px rgba(88, 166, 255, 0.3);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
section.hero {
  padding: 80px 0 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #c9d1d9;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fb950;
  box-shadow: 0 0 8px #3fb950;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

h1.hero-headline {
  font-size: clamp(38px, 6.2vw, 64px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  max-width: 900px;
}

h1.hero-headline span.gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

p.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: #a0aec0;
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 400;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: var(--accent-gradient);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(88, 166, 255, 0.35);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(88, 166, 255, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 600;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Interactive Simulator Showcase (ファーストビューの目玉ギミック)
   ========================================================================== */
.simulator-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 70px;
  background: #0d121c;
  border: 1px solid rgba(88, 166, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 50px rgba(88, 166, 255, 0.15);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.simulator-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(18, 24, 38, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-dot.red { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #27c93f; }

.sim-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sim-badge {
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: var(--text-muted);
}

.sim-btn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(88, 166, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-btn-toggle:hover {
  background: var(--accent-cyan);
  color: #06090e;
}

/* Simulator Body */
.sim-stage {
  position: relative;
  height: 480px;
  background: #080c14;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.6s ease;
}

/* Dim Mode Overlay in Simulator */
.sim-surroundings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, filter 0.5s ease;
  z-index: 5;
}

.sim-stage.dimmed .sim-surroundings {
  opacity: 0.15;
  filter: blur(8px);
}

/* Mock YouTube Header & Sidebar */
.mock-yt-header {
  height: 38px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  font-size: 11px;
  color: var(--text-dim);
}

.mock-yt-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 14px;
  padding: 14px;
}

.mock-yt-sidebar {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
}

/* Mock Player Area */
.sim-player-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.mock-player {
  position: relative;
  height: 290px;
  background: radial-gradient(circle at center, #1b273d 0%, #0a0f18 100%);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* Ambilight glow pulsating behind/around player */
.sim-ambilight-glow {
  position: absolute;
  inset: -20px;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(88, 166, 255, 0.35) 0%, rgba(163, 113, 247, 0.25) 50%, transparent 80%);
  filter: blur(30px);
  z-index: 8;
  opacity: 0.8;
  pointer-events: none;
  animation: ambilight-pulse 4s infinite alternate ease-in-out;
}

@keyframes ambilight-pulse {
  0% { transform: scale(0.96); opacity: 0.6; }
  100% { transform: scale(1.03); opacity: 0.95; }
}

.mock-video-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: #cc0000;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.mock-video-title {
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Bottom Flow Danmaku Ticker Stage */
.sim-flow-stage {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.sim-flow-item {
  position: absolute;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000;
  will-change: transform;
}

/* Real-time Canvas Visualizer */
#sim-canvas-eq {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 38px;
  z-index: 15;
  pointer-events: none;
}

/* Procedural Skin Ground in Simulator */
.sim-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(180deg, #10152a 0%, #030408 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 12;
  transition: background 0.8s ease;
}

/* Walking Airi mascot */
.sim-airi-walker {
  position: absolute;
  top: -44px;
  left: 30%;
  width: 32px;
  height: 50px;
  pointer-events: none;
  animation: airi-walk-cycle 16s linear infinite;
}

@keyframes airi-walk-cycle {
  0% { transform: translateX(550px) scaleX(-1); }
  48% { transform: translateX(-50px) scaleX(-1); }
  50% { transform: translateX(-50px) scaleX(1); }
  98% { transform: translateX(550px) scaleX(1); }
  100% { transform: translateX(550px) scaleX(-1); }
}

.sim-airi-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

/* Skin Selector Chips in Simulator */
.skin-chips {
  display: flex;
  gap: 8px;
}

.skin-chip {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.skin-chip.active, .skin-chip:hover {
  background: rgba(88, 166, 255, 0.2);
  border-color: var(--accent-cyan);
  color: #fff;
}

/* ==========================================================================
   Feature Showcases (Grid & Detailed Highlights)
   ========================================================================== */
section.features {
  padding: 60px 0;
}

.section-tag {
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h2.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

p.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-box:hover {
  border-color: rgba(88, 166, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.feature-box:hover::before {
  opacity: 1;
}

.feature-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
}

.feature-box h3 {
  font-size: 20px;
  font-weight: 750;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.feature-box p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-kbd {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  background: rgba(88, 166, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}

/* ==========================================================================
   Privacy & Architecture (信頼と安全性の訴求)
   ========================================================================== */
section.architecture {
  padding: 60px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 17, 26, 0.7) 100%);
  border-radius: 28px;
  margin: 60px 0;
  border: 1px solid var(--border-subtle);
}

.arch-container {
  padding: 40px 48px;
}

.arch-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
}

.pillar-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Support & Donation Section (Stripe導線)
   ========================================================================== */
section.support-cta {
  padding: 70px 0;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.08) 0%, rgba(163, 113, 247, 0.08) 100%);
  border: 1px solid rgba(88, 166, 255, 0.3);
  border-radius: 28px;
  padding: 56px 40px;
  max-width: 840px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  font-size: 32px;
  font-weight: 850;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-box p {
  font-size: 16px;
  color: #c9d1d9;
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.support-btn-stripe {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: #635bff;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(99, 91, 255, 0.4);
  transition: all 0.25s ease;
}

.support-btn-stripe:hover {
  background: #7a73ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 91, 255, 0.6);
}

.stripe-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* Footer */
footer.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .pillars-row {
    grid-template-columns: 1fr;
  }
  .mock-yt-body {
    grid-template-columns: 1fr;
  }
  .mock-yt-sidebar {
    display: none;
  }
  .sim-stage {
    height: 420px;
  }
  .arch-container {
    padding: 30px 24px;
  }
  .cta-box {
    padding: 40px 20px;
  }
}

/* ==========================================================================
   Legal & Document Pages (利用規約・プライバシーポリシー)
   ========================================================================== */
.legal-wrapper {
  max-width: 860px;
  margin: 40px auto 80px;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 56px 48px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.legal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.legal-header h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 850;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-main);
}

.legal-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-muted);
}

.legal-card h2 {
  font-size: 21px;
  font-weight: 750;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.legal-card h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.legal-card p {
  font-size: 15px;
  color: #c9d1d9;
  line-height: 1.85;
  margin-bottom: 16px;
}

.legal-card ul {
  margin: 16px 0 24px 22px;
  color: #c9d1d9;
}

.legal-card li {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-card a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-card a:hover {
  color: #79c0ff;
}

.legal-card hr {
  margin: 50px 0;
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

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

.legal-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-weight: 700;
  width: 28%;
}

.legal-table td {
  background: rgba(0, 0, 0, 0.2);
  color: #c9d1d9;
}

@media (max-width: 640px) {
  .legal-card {
    padding: 32px 20px;
    border-radius: 16px;
  }
  .legal-table th, .legal-table td {
    padding: 10px 12px;
    display: block;
    width: 100%;
  }
  .legal-table th {
    background: rgba(255, 255, 255, 0.06);
    border-bottom: none;
  }
}

