/* Lemnen Lab Design System - Japanese Digital Nuance & Anti-Cloaking Compliant */
:root {
  --bg-deep: #0b0f17;
  --bg-surface: #131a26;
  --bg-card: #182232;
  --bg-subtle: #202c40;
  --border-subtle: #28374f;
  --border-accent: #6366f1;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --cyan: #06b6d4;
  --crimson: #f43f5e;
  --amber: #f59e0b;
  --emerald: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  --font-base: 'Noto Sans JP', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

html {
  font-family: var(--font-base);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.7;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--cyan);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-anchor {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 24px;
}

@media (min-width: 880px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 4px;
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.header-cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-block {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

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

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cyan);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-title span.highlight {
  background: linear-gradient(90deg, #38bdf8, #818cf8, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 48px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), #4338ca);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 48px;
  padding: 14px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

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

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

.hero-image-wrap {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

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

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.stat-item {
  background: var(--bg-surface);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cyan);
}

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

/* Section Header Generic */
.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* Friction Matrix Section */
.matrix-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 680px) {
  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .matrix-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.matrix-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.badge-crimson { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.badge-amber { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-cyan { background: rgba(6, 182, 212, 0.15); color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.3); }

.message-bubble {
  background: #0e141f;
  border-left: 4px solid var(--primary);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-family: monospace, var(--font-base);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.tension-meter {
  margin-bottom: 16px;
}

.tension-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.tension-bar {
  height: 8px;
  background: var(--bg-deep);
  border-radius: 999px;
  overflow: hidden;
}

.tension-fill {
  height: 100%;
  border-radius: 999px;
}

.fill-high { width: 89%; background: linear-gradient(90deg, #f59e0b, #ef4444); }
.fill-mid { width: 78%; background: linear-gradient(90deg, #6366f1, #f59e0b); }
.fill-subtle { width: 64%; background: linear-gradient(90deg, #06b6d4, #6366f1); }
.fill-mod { width: 82%; background: linear-gradient(90deg, #f59e0b, #f43f5e); }
.fill-low { width: 45%; background: linear-gradient(90deg, #10b981, #06b6d4); }
.fill-react { width: 72%; background: linear-gradient(90deg, #6366f1, #ec4899); }

.decoded-meaning {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.rephrase-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.82rem;
  color: #a7f3d0;
}

.rephrase-box strong {
  display: block;
  font-size: 0.74rem;
  color: #34d399;
  margin-bottom: 4px;
  text-transform: uppercase;
}

/* Interactive Simulator / Nuance Case Explorer (Zero Forms) */
.simulator-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.sim-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}

@media (min-width: 768px) {
  .sim-container {
    padding: 40px;
  }
}

.sim-nav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.sim-chip-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.sim-chip-btn:hover, .sim-chip-btn.active {
  background: var(--primary);
  border-color: var(--primary-light);
  color: #ffffff;
}

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

@media (min-width: 840px) {
  .sim-display-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

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

.sim-quote-box {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  padding: 18px;
  background: #090d14;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border-left: 5px solid var(--crimson);
}

.sim-breakdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sim-breakdown-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sim-bullet {
  color: var(--cyan);
  font-weight: 800;
}

.sim-gauge-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.gauge-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 10px solid var(--bg-subtle);
  border-top-color: var(--crimson);
  border-right-color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 16px;
}

.gauge-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.gauge-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.sim-recommendation {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Methodology Section */
.method-section {
  padding: 80px 0;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-subtle);
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .method-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.method-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.method-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.method-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Solutions Section */
.solutions-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 880px) {
  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sol-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}

.sol-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--cyan);
  font-size: 1.4rem;
}

.sol-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.sol-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.sol-features {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-dark);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sol-features li::before {
  content: "✔";
  color: var(--emerald);
  margin-right: 8px;
}

/* FAQ Visible Section */
.faq-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

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

.faq-q {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-q-badge {
  color: var(--cyan);
  font-weight: 900;
}

.faq-a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding-left: 28px;
}

/* Direct Contact Section (ENABLE_FORM = OFF: ZERO FORMS) */
.contact-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.contact-card {
  background: linear-gradient(135deg, var(--bg-card), #16202e);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-card {
    padding: 60px 48px;
  }
}

.contact-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.direct-mail-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  min-width: 48px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--primary), #4338ca);
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  margin-bottom: 24px;
}

.direct-mail-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.55);
}

.contact-meta-notes {
  font-size: 0.82rem;
  color: var(--text-dark);
}

/* Footer & Compliance */
.site-footer {
  background: var(--bg-deep);
  padding: 60px 0 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand-desc {
  line-height: 1.8;
  margin-top: 14px;
  color: var(--text-dark);
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-dark);
}

/* Authentic CMP Widget */
.cmp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  max-width: 480px;
  margin-left: auto;
  background: rgba(19, 26, 38, 0.98);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cmp-heading {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmp-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.cmp-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cmp-pill {
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cmp-pill.locked {
  color: var(--cyan);
  border-color: rgba(6, 182, 212, 0.4);
}

.cmp-actions {
  display: flex;
  gap: 10px;
}

.cmp-btn-accept {
  flex: 1;
  background: var(--primary);
  border: none;
  color: #ffffff;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
}

.cmp-btn-reject {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
}

.cmp-btn-accept:hover { background: var(--primary-light); }
.cmp-btn-reject:hover { background: var(--bg-subtle); color: var(--text-main); }