/* ========================================
   MOAI-Dispatcher Promotional HP
   Design System & Styles
   ======================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+JP:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);

  --accent-blue: #3b82f6;
  --accent-blue-light: #60a5fa;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --accent-orange: #f59e0b;

  --gradient-primary: linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #1e1b4b 40%, #0f172a 100%);
  --gradient-card: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.05));
  --gradient-accent: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(59, 130, 246, 0.3);

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.15);
  --shadow-glow-sm: 0 0 30px rgba(59, 130, 246, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Utility --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-blue-light);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.8;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* stagger delays */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

.delay-6 {
  transition-delay: 0.6s;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo img {
  height: 36px;
  filter: invert(1);
}

.nav-logo span {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-cta {
  background: var(--gradient-primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-sm);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 8s ease-in-out infinite reverse;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  padding: 8px 20px;
  margin-bottom: 32px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-blue-light);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-primary);
  color: #fff;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Hero visual (right side) */
.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.hero-visual {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.hero-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  width: 380px;
}

.route-animation {
  width: 100%;
  height: 260px;
  position: relative;
}

.route-animation svg {
  width: 100%;
  height: 100%;
}

.route-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.route-stat {
  text-align: center;
}

.route-stat .value {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.route-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
  position: relative;
  z-index: 3;
  margin-top: -60px;
  margin-bottom: 60px;
}

.stats-bar .container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 64px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ========================================
   PROBLEMS SECTION
   ======================================== */
.problems {
  padding: var(--section-padding);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.problem-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-sm);
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.problem-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

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

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
  padding: var(--section-padding);
  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-accent), transparent);
}

.features-header {
  text-align: center;
  margin-bottom: 72px;
}

.features-header .section-desc {
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* ========================================
   FLOW SECTION
   ======================================== */
.flow {
  padding: var(--section-padding);
}

.flow-header {
  text-align: center;
  margin-bottom: 72px;
}

.flow-header .section-desc {
  margin: 0 auto;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan), var(--accent-green));
  z-index: 0;
}

.flow-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.flow-step-number {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: var(--shadow-glow-sm);
  transition: all 0.4s ease;
}

.flow-step:hover .flow-step-number {
  border-color: var(--accent-blue-light);
  box-shadow: var(--shadow-glow);
  transform: scale(1.08);
}

.flow-step-number .step-icon {
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.flow-step-number .step-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-blue-light);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.flow-step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.flow-step p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
}

.flow-step-details {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.flow-tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.78rem;
  color: var(--accent-blue-light);
  font-weight: 500;
}

/* ========================================
   CONSTRAINTS SECTION
   ======================================== */
.constraints {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

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

.constraints-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}

.constraints-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.constraint-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.4s ease;
}

.constraint-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(8px);
}

.constraint-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.85rem;
}

.constraint-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.constraint-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.constraints-visual {
  position: relative;
}

.constraints-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.constraint-gauge {
  margin-bottom: 28px;
}

.constraint-gauge:last-child {
  margin-bottom: 0;
}

.gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.gauge-header span:first-child {
  font-size: 0.9rem;
  font-weight: 600;
}

.gauge-header span:last-child {
  font-size: 0.85rem;
  color: var(--accent-green);
  font-weight: 600;
}

.gauge-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
}

.gauge-fill.visible {
  /* width set by inline style */
}

.gauge-fill.blue {
  background: var(--gradient-primary);
}

.gauge-fill.green {
  background: linear-gradient(90deg, #10b981, #06d6a0);
}

.gauge-fill.purple {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.gauge-fill.orange {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* ========================================
   OUTPUTS SECTION
   ======================================== */
.outputs {
  padding: var(--section-padding);
}

.outputs-header {
  text-align: center;
  margin-bottom: 72px;
}

.outputs-header .section-desc {
  margin: 0 auto;
}

.outputs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.output-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.output-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.output-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-sm);
}

.output-card:hover::after {
  opacity: 1;
}

.output-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1;
}

.output-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.output-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
  padding: var(--section-padding);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-logo img {
  height: 28px;
  filter: invert(1);
}

.footer-logo span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

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

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

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

  .constraints-layout {
    grid-template-columns: 1fr;
  }

  .outputs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
    padding: 36px 40px;
  }

  .flow-steps::before {
    display: none;
  }
}

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

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-visual {
    display: none;
  }

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

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .stats-bar .container {
    grid-template-columns: 1fr 1fr;
  }

  .footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

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

  .stats-bar .container {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

/* ========================================
   LANDING PAGE — PRODUCT GRID
   ======================================== */
.hero-landing {
  min-height: 80vh;
  padding: 140px 0 180px;
}

.hero-landing .hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero-landing .hero-content p {
  margin-left: auto;
  margin-right: auto;
}

.hero-landing .hero-buttons {
  justify-content: center;
}

.products-section {
  padding: var(--section-padding);
}

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

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--product-accent, var(--gradient-primary));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.product-card:hover::before {
  opacity: 1;
}

.product-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.2rem;
  transition: transform 0.4s ease;
}

.product-card:hover .product-icon {
  transform: scale(1.15);
}

.product-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card .product-sub {
  font-size: 0.8rem;
  color: var(--accent-blue-light);
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

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

.product-card .product-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--accent-blue-light);
  font-weight: 600;
  transition: gap 0.3s ease;
}

.product-card:hover .product-arrow {
  gap: 12px;
}

/* Landing page responsive */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   PRODUCT PAGE — COMPACT HERO
   ======================================== */
.hero-product {
  min-height: 70vh;
  padding: 140px 0 180px;
}

.hero-product .hero-content {
  max-width: 640px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent-blue-light);
}

.breadcrumb span {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text-secondary);
}

/* Theme accent overrides for product pages */
[data-theme="blue"] {
  --product-accent: linear-gradient(90deg, #3b82f6, #60a5fa);
}

[data-theme="cyan"] {
  --product-accent: linear-gradient(90deg, #06b6d4, #22d3ee);
}

[data-theme="green"] {
  --product-accent: linear-gradient(90deg, #10b981, #34d399);
}

[data-theme="indigo"] {
  --product-accent: linear-gradient(90deg, #6366f1, #818cf8);
}

[data-theme="purple"] {
  --product-accent: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

[data-theme="orange"] {
  --product-accent: linear-gradient(90deg, #f59e0b, #fbbf24);
}

[data-theme="teal"] {
  --product-accent: linear-gradient(90deg, #14b8a6, #2dd4bf);
}

[data-theme="amber"] {
  --product-accent: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* ========================================
   CONTACT FORM MODAL
   ======================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.modal-container h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.modal-container .modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group label .required {
  color: #ef4444;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.3);
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.form-note a {
  color: var(--accent-blue-light);
  text-decoration: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.2rem;
}

.form-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .modal-container {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
/* ========================================
   AGENT SKILL & APPS PAGES — SHARED
   ======================================== */
.page-section {
  padding: var(--section-padding);
  position: relative;
}

.page-section.alt {
  background: var(--bg-secondary);
}

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

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head .section-desc {
  margin: 0 auto;
}

.hero-compact h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.25;
}

.hero-visual-card img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
}

.hero-visual-card .hero-visual-caption {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.chip {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--accent-blue-light);
  white-space: nowrap;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.key-point {
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 20px 0;
}

.key-point strong {
  color: var(--text-primary);
}

.muted-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Tabs (chain story / apps selector) */
.tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.tab-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--gradient-card);
  border-color: var(--accent-blue);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow-sm);
}

.tab-btn .tab-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-blue-light);
}

.tab-btn.inline {
  flex-direction: row;
  gap: 8px;
}

.tab-pane {
  display: none;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.tab-pane.active {
  display: grid;
  animation: modal-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane .pane-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.tab-pane h3 {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
}

.tab-pane p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.tab-pane p strong {
  color: var(--text-primary);
}

.pane-visual img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #fff;
}

.pane-visual img + img {
  margin-top: 12px;
}

.pane-visual .pane-caption {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Compare (課題 vs 変革) */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px 32px;
}

.compare-card.solution {
  border-color: var(--border-accent);
  background: var(--gradient-card);
}

.compare-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.compare-list li {
  display: flex;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.compare-list strong {
  color: var(--text-primary);
}

.compare-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

.compare-mark.cross {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.compare-mark.check {
  background: var(--gradient-primary);
  color: #fff;
}

/* ROI simulator */
.sim-box {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.sim-control {
  margin-bottom: 28px;
}

.sim-control:last-child {
  margin-bottom: 0;
}

.sim-control-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.sim-control-head output {
  color: var(--accent-blue-light);
  font-weight: 700;
}

.sim-slider {
  width: 100%;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

.sim-results-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.sim-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sim-result {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sim-result-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.sim-result-val {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sim-result-val span {
  font-size: 0.9rem;
  margin-left: 4px;
}

.sim-result-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sim-rec {
  margin-top: 20px;
}

.sim-rec .chip {
  margin: 0 2px;
}

/* Console / browser mock window */
.mock-window {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.mock-window-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef4444;
}

.mock-dots span:nth-child(2) {
  background: #f59e0b;
}

.mock-dots span:nth-child(3) {
  background: #10b981;
}

.mock-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mock-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mock-tab {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  color: var(--text-secondary);
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.mock-tab.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

.mock-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  padding: 32px;
}

.prompt-text {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 10px 0 20px;
}

.prompt-text .agent-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.mock-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mock-output img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  background: #fff;
  transition: opacity 0.2s ease;
}

.metric-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.metric-pill {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.metric-pill-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.metric-pill-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-green);
}

button.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Skills catalog */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: all 0.4s ease;
}

.skill-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-sm);
}

.skill-card .skill-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  font-weight: 700;
  margin: 12px 0 4px;
}

.skill-card .skill-headline {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-blue-light);
  margin-bottom: 10px;
}

.skill-card .skill-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.skill-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.skill-card-foot .more {
  color: var(--accent-blue-light);
  font-weight: 600;
  white-space: nowrap;
}

.skill-modal-meta {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 20px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.skill-modal-meta strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.skill-modal-meta div + div {
  margin-top: 12px;
}

.skill-modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all 0.4s ease;
}

.roadmap-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.roadmap-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.roadmap-time {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue-light);
  margin-bottom: 6px;
}

.roadmap-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* CTA benefit list */
.cta-benefits {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: -12px 0 40px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.cta-benefits li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 800;
  margin-right: 8px;
}

/* Apps: meta rows */
.app-badge {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.app-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 20px 0 24px;
  padding: 18px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.app-meta dt {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.app-meta dd {
  color: var(--text-secondary);
}

.flow-step .flow-note {
  margin: 16px auto 0;
  max-width: 320px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.flow-step .flow-note strong {
  color: var(--accent-green);
}

/* Apps: interactive table demo */
.demo-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 700;
}

.demo-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.demo-status.stale {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.demo-table th,
.demo-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.demo-table th {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

.editable-cell {
  display: inline-block;
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.6);
  border-radius: 6px;
  padding: 2px 8px;
  color: #fbbf24;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.editable-cell:hover {
  background: rgba(245, 158, 11, 0.22);
}

.demo-hint {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.demo-body .btn-primary {
  width: 100%;
  justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .tab-pane,
  .sim-box,
  .mock-body {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .compare-grid,
  .skills-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .tab-pane,
  .sim-box {
    padding: 28px 20px;
  }

  .mock-body {
    padding: 20px;
  }

  .sim-results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .demo-table th:nth-child(4),
  .demo-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 480px) {
  .sim-results-grid {
    grid-template-columns: 1fr;
  }

  .app-meta {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .app-meta dd {
    margin-bottom: 8px;
  }
}
