/* =====================================================
   Replai Landing Page - Style
   ===================================================== */

/* CSS Variables */
:root {
  /* Primary Colors - Blue Diamond Theme */
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  
  /* Accent Colors */
  --accent-cyan: #22d3ee;
  --accent-violet: #8b5cf6;
  --accent-pink: #ec4899;
  
  /* Neutrals - Dark Theme */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a25;
  --bg-card: rgba(26, 26, 37, 0.8);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Borders */
  --border-subtle: rgba(148, 163, 184, 0.1);
  --border-accent: rgba(59, 130, 246, 0.3);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-500), var(--accent-cyan));
  --gradient-hero: linear-gradient(135deg, var(--accent-violet), var(--primary-500), var(--accent-cyan));
  --gradient-glow: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  
  /* Spacing */
  --container-max: 1200px;
  --section-padding: 120px;
  
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  
  /* Animation */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--text-secondary);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight {
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  width: 100%;
  height: 0.35em;
  background: var(--gradient-primary);
  opacity: 0.3;
  border-radius: 4px;
  z-index: -1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 12px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 
    0 4px 20px rgba(59, 130, 246, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 30px rgba(59, 130, 246, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-download {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 20px 40px;
  border: 1px solid var(--border-accent);
  gap: 16px;
}

.btn-download:hover {
  background: var(--primary-600);
  border-color: var(--primary-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.btn-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.btn-platform {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Section Badges */
.section-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-400);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid var(--border-accent);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-violet);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--primary-500);
  top: 20%;
  right: -150px;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  bottom: -100px;
  left: 30%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 100;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 10px 20px !important;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.nav-cta:hover {
  border-color: var(--border-accent) !important;
  background: var(--bg-card);
}

.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 24px;
}

.language-switcher select {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.language-switcher select:focus {
  outline: none;
  border-color: var(--border-accent);
  background: var(--bg-card);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: auto;
  padding: 160px 24px 80px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.badge-icon {
  font-size: 1rem;
}

.hero-description {
  font-size: 1.25rem;
  margin: 24px 0 40px;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.version-info {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Hero Compatible Apps */
.hero-compatible {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  padding: 20px 0 60px;
}

/* Hero Visual (legacy) */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 0 24px 80px;
}

.app-preview {
  perspective: 1000px;
}

.preview-window {
  width: 100%;
  max-width: 500px;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: rotateX(5deg);
  transition: transform var(--transition-slow);
}

.preview-window:hover {
  transform: rotateX(0deg);
}

.window-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.window-title {
  flex: 1;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-right: 60px;
}

.window-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  padding: 16px 20px;
  border-radius: 16px;
  max-width: 85%;
}

.chat-bubble p {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.chat-bubble.incoming {
  background: var(--bg-tertiary);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-bubble.outgoing {
  background: var(--primary-600);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.ai-response {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--primary-400);
}

.ai-icon {
  font-size: 0.875rem;
}

/* =====================================================
   Compatible Apps Section
   ===================================================== */
.compatible-apps {
  padding: 60px 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.compatible-header {
  text-align: center;
  margin-bottom: 32px;
}

.compatible-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.app-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.app-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
  min-width: 100px;
}

.app-logo-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.app-logo-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.app-logo-item span {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.app-logo-item.more {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 211, 238, 0.1));
  border-color: var(--border-accent);
}

.app-logo-item.more .more-icon {
  font-size: 1.75rem;
  color: var(--primary-400);
  font-weight: 300;
  line-height: 1;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compatible-note {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* =====================================================
   Features Section
   ===================================================== */
.features {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-badge {
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 211, 238, 0.1));
  border-radius: 16px;
  margin-bottom: 24px;
  color: var(--primary-400);
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =====================================================
   How It Works Section
   ===================================================== */
.how-it-works {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Steps Visual Layout */
.steps-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.step-card {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: all var(--transition-base);
}

.step-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(59, 130, 246, 0.1);
}

.step-image {
  width: 100%;
  height: 180px;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gradient-primary);
  color: white;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 100px;
  margin-bottom: 16px;
}

.step-card h3 {
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.step-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.step-card p strong {
  color: var(--primary-400);
}

/* Step Arrows */
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.step-arrow svg {
  opacity: 0.8;
}

/* Flow Summary */
.flow-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 32px;
  background: var(--bg-card);
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  max-width: fit-content;
  margin: 0 auto;
  flex-wrap: wrap;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 500;
}

.flow-icon {
  font-size: 1.25rem;
}

.flow-connector {
  color: var(--primary-400);
  font-size: 1.25rem;
  font-weight: 300;
}

/* Legacy step styles (kept for compatibility) */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.step:hover {
  border-color: var(--border-accent);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.step-content h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.95rem;
}

.step-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--primary-500), transparent);
  margin-left: 55px;
}

/* =====================================================
   Download Section
   ===================================================== */
.download {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.download-card {
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
  border-radius: 32px;
  border: 1px solid var(--border-subtle);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-glow);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.download-content {
  position: relative;
  z-index: 1;
}

.download-content h2 {
  margin-bottom: 8px;
}

.download-content > p {
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.download-info {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.info-icon {
  font-size: 1.125rem;
}

.install-note {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  padding: 24px 32px;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  text-align: left;
}

.install-note h4 {
  color: #fbbf24;
  margin-bottom: 12px;
  font-size: 1rem;
}

.install-note p {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.install-note ol {
  padding-left: 24px;
  color: var(--text-secondary);
}

.install-note li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.install-note strong {
  color: var(--text-primary);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
  padding: 40px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 32px;
  height: 32px;
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-400);
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
  .steps-visual {
    flex-direction: column;
    gap: 32px;
  }

  .step-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }

  .step-card {
    max-width: 400px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  .navbar {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  .hero-content {
    padding: 120px 20px 60px;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-description br {
    display: none;
  }

  .preview-window {
    transform: none;
  }

  .compatible-apps {
    padding: 40px 0;
  }

  .app-logos {
    gap: 16px;
  }

  .app-logo-item {
    padding: 12px 16px;
    min-width: 80px;
  }

  .app-logo-item img {
    width: 32px;
    height: 32px;
  }

  .app-logo-item span {
    font-size: 0.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step-connector {
    margin-left: 0;
  }

  .step-card {
    min-width: unset;
    width: 100%;
    padding: 20px;
  }

  .step-image {
    height: 150px;
  }

  .flow-summary {
    padding: 16px 20px;
    gap: 12px;
    border-radius: 20px;
  }

  .flow-item {
    font-size: 0.875rem;
  }

  .flow-icon {
    font-size: 1rem;
  }

  .flow-connector {
    font-size: 1rem;
  }

  .download-card {
    padding: 40px 24px;
  }

  .download-info {
    gap: 16px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* =====================================================
   Animations
   ===================================================== */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .step,
  .step-card,
  .btn {
    animation: fadeInUp 0.6s ease both;
  }

  .features-grid .feature-card:nth-child(1) { animation-delay: 0.1s; }
  .features-grid .feature-card:nth-child(2) { animation-delay: 0.2s; }
  .features-grid .feature-card:nth-child(3) { animation-delay: 0.3s; }
  .features-grid .feature-card:nth-child(4) { animation-delay: 0.4s; }

  .steps .step:nth-child(1) { animation-delay: 0.1s; }
  .steps .step:nth-child(3) { animation-delay: 0.2s; }
  .steps .step:nth-child(5) { animation-delay: 0.3s; }

  .steps-visual .step-card:nth-child(1) { animation-delay: 0.1s; }
  .steps-visual .step-card:nth-child(3) { animation-delay: 0.3s; }
  .steps-visual .step-card:nth-child(5) { animation-delay: 0.5s; }

  .step-arrow {
    animation: fadeIn 0.4s ease both;
  }

  .steps-visual .step-arrow:nth-child(2) { animation-delay: 0.2s; }
  .steps-visual .step-arrow:nth-child(4) { animation-delay: 0.4s; }

  .flow-summary {
    animation: fadeInUp 0.6s ease 0.7s both;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ================================================
   料金プランセクション
   ================================================ */

.pricing {
  padding: 100px 0;
  background: linear-gradient(180deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-color: rgba(59, 130, 246, 0.4);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
}

.pricing-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.pricing-icon.free {
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.2) 0%, rgba(107, 114, 128, 0.2) 100%);
  color: #9ca3af;
}

.pricing-icon.user {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
  color: #3b82f6;
}

.pricing-icon.team {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
  color: #8b5cf6;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.pricing-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.pricing-price {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  font-family: 'Outfit', sans-serif;
}

.price-period {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.pricing-features li svg {
  color: #22c55e;
  flex-shrink: 0;
}

.pricing-features li strong {
  color: white;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.pricing-note {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 40px;
}

/* ================================================
   チーム機能セクション
   ================================================ */

.team-features {
  padding: 100px 0;
  background: linear-gradient(180deg, #0a0a0f 0%, #0d0d14 100%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.team-feature {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.team-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.1);
}

.team-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #a78bfa;
}

.team-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.team-feature p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* ダウンロードセクション追加スタイル */
.install-note-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  text-align: center;
}

/* ================================================
   レスポンシブ: 料金・チーム
   ================================================ */

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* =====================================================
   Interactive Demo Section
   ===================================================== */
.demo-section {
  margin-top: 80px;
  text-align: center;
}

.demo-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 40px;
  font-weight: 600;
}

.demo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Demo Chat Window */
.demo-chat-window {
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.demo-window-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
}

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

.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.demo-dot.red { background: #ff5f57; }
.demo-dot.yellow { background: #febc2e; }
.demo-dot.green { background: #28c840; }

.demo-window-title {
  flex: 1;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-right: 52px;
}

.demo-chat-content {
  padding: 20px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* Demo Messages */
.demo-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: messageSlideIn 0.5s ease both;
}

.demo-message.incoming {
  justify-content: flex-start;
}

.demo-message.outgoing {
  justify-content: flex-end;
}

.demo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.demo-bubble {
  max-width: 280px;
  padding: 12px 16px;
  border-radius: 16px;
  position: relative;
}

.demo-message.incoming .demo-bubble {
  background: var(--bg-tertiary);
  border-bottom-left-radius: 4px;
}

.demo-message.outgoing .demo-bubble {
  background: linear-gradient(135deg, var(--primary-600), var(--accent-violet));
  border-bottom-right-radius: 4px;
}

.demo-sender {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.demo-text {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Selection Animation */
.selectable-text {
  position: relative;
}

.demo-message.incoming .demo-bubble {
  position: relative;
}

.demo-message.incoming .demo-bubble::after {
  content: '';
  position: absolute;
  top: 28px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(59, 130, 246, 0.3);
  border-radius: 4px;
  opacity: 0;
  animation: selectionPulse 6s ease-in-out infinite;
}

@keyframes selectionPulse {
  0%, 10% { opacity: 0; }
  15%, 35% { opacity: 1; }
  40%, 100% { opacity: 0; }
}

/* AI Generated Message Animation */
.demo-message.ai-generated {
  opacity: 0;
  animation: aiMessageAppear 6s ease-in-out infinite;
}

@keyframes aiMessageAppear {
  0%, 45% { opacity: 0; transform: translateY(10px); }
  55%, 90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

.ai-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.ai-sparkle {
  animation: sparkle 1s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Typing Animation */
.typing-text {
  overflow: hidden;
  animation: typeReveal 6s ease-in-out infinite;
}

@keyframes typeReveal {
  0%, 45% { max-height: 0; opacity: 0; }
  55% { max-height: 0; opacity: 1; }
  65%, 90% { max-height: 200px; opacity: 1; }
  100% { max-height: 0; opacity: 0; }
}

/* Keyboard Animation */
.demo-keyboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  min-width: 280px;
}

.keyboard-instruction {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  width: 100%;
}

.instruction-step {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.instruction-step[data-step="1"] {
  animation: stepHighlight1 6s ease-in-out infinite;
}

.instruction-step[data-step="2"] {
  animation: stepHighlight2 6s ease-in-out infinite;
}

.instruction-step[data-step="3"] {
  animation: stepHighlight3 6s ease-in-out infinite;
}

@keyframes stepHighlight1 {
  0%, 5% { opacity: 0.5; background: transparent; color: var(--text-muted); }
  10%, 30% { opacity: 1; background: rgba(59, 130, 246, 0.15); color: var(--primary-400); }
  35%, 100% { opacity: 0.5; background: transparent; color: var(--text-muted); }
}

@keyframes stepHighlight2 {
  0%, 30% { opacity: 0.5; background: transparent; color: var(--text-muted); }
  35%, 50% { opacity: 1; background: rgba(139, 92, 246, 0.15); color: var(--accent-violet); }
  55%, 100% { opacity: 0.5; background: transparent; color: var(--text-muted); }
}

@keyframes stepHighlight3 {
  0%, 50% { opacity: 0.5; background: transparent; color: var(--text-muted); }
  55%, 85% { opacity: 1; background: rgba(34, 211, 238, 0.15); color: var(--accent-cyan); }
  90%, 100% { opacity: 0.5; background: transparent; color: var(--text-muted); }
}

.keyboard-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.key {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 56px;
  background: linear-gradient(180deg, #3a3a42 0%, #2a2a32 100%);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 0 #1a1a20,
    0 6px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.1s ease;
}

.control-key {
  animation: keyPress 6s ease-in-out infinite;
}

@keyframes keyPress {
  0%, 32% { 
    transform: translateY(0);
    box-shadow: 0 4px 0 #1a1a20, 0 6px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, #3a3a42 0%, #2a2a32 100%);
  }
  35% { 
    transform: translateY(3px);
    box-shadow: 0 1px 0 #1a1a20, 0 2px 5px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, var(--primary-600) 0%, var(--primary-700) 100%);
  }
  38%, 42% { 
    transform: translateY(0);
    box-shadow: 0 4px 0 #1a1a20, 0 6px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, #3a3a42 0%, #2a2a32 100%);
  }
  45% { 
    transform: translateY(3px);
    box-shadow: 0 1px 0 #1a1a20, 0 2px 5px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, var(--primary-600) 0%, var(--primary-700) 100%);
  }
  48%, 100% { 
    transform: translateY(0);
    box-shadow: 0 4px 0 #1a1a20, 0 6px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, #3a3a42 0%, #2a2a32 100%);
  }
}

.key-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: lowercase;
}

.key-symbol {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 600;
}

.tap-indicator {
  display: flex;
  gap: 8px;
}

.tap-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
}

.tap-dot:nth-child(1) {
  animation: tapDot1 6s ease-in-out infinite;
}

.tap-dot:nth-child(2) {
  animation: tapDot2 6s ease-in-out infinite;
}

@keyframes tapDot1 {
  0%, 32% { opacity: 0.3; background: var(--text-muted); transform: scale(1); }
  35%, 42% { opacity: 1; background: var(--primary-400); transform: scale(1.2); }
  48%, 100% { opacity: 0.3; background: var(--text-muted); transform: scale(1); }
}

@keyframes tapDot2 {
  0%, 42% { opacity: 0.3; background: var(--text-muted); transform: scale(1); }
  45%, 52% { opacity: 1; background: var(--primary-400); transform: scale(1.2); }
  58%, 100% { opacity: 0.3; background: var(--text-muted); transform: scale(1); }
}

/* Clipboard Indicator */
.clipboard-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.15));
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  animation: clipboardShow 6s ease-in-out infinite;
}

@keyframes clipboardShow {
  0%, 60% { opacity: 0; transform: translateY(10px); }
  65%, 90% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(10px); }
}

.clipboard-indicator svg {
  stroke: currentColor;
}

/* Demo Note */
.demo-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 32px;
  opacity: 0.7;
}

/* Message Animation */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Demo Responsive */
@media (max-width: 900px) {
  .demo-container {
    flex-direction: column;
    gap: 32px;
  }
  
  .demo-chat-window {
    max-width: 100%;
  }
  
  .demo-keyboard {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 480px) {
  .demo-bubble {
    max-width: 220px;
  }
  
  .demo-text {
    font-size: 0.85rem;
  }
  
  .key {
    width: 100px;
    height: 48px;
  }
  
  .instruction-step {
    font-size: 0.8rem;
  }
}


