/* ===================================================================
   Practigence Corporate Website - Core Stylesheet (Material Style)
   =================================================================== */

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

:root {
  --db-text-main: #212121;
  --db-text-muted: #666666;
  --db-accent: #3f51b5; /* Indigo primary */
  --db-accent-hover: #303f9f;
  --db-secondary: #00af9c; /* Teal accent */
  --db-secondary-hover: #008f7e;
  --db-surface: #ffffff;
  --db-background: #f4f5f8;
  --db-border: #e0e0e0;
  --transition-speed: 0.3s;
  --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Material Elevation Shadows */
  --elevation-dp1: 0 2px 2px 0 rgba(0,0,0,0.06), 0 3px 1px -2px rgba(0,0,0,0.04), 0 1px 5px 0 rgba(0,0,0,0.08);
  --elevation-dp2: 0 4px 5px 0 rgba(0,0,0,0.08), 0 1px 10px 0 rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.12);
  --elevation-dp4: 0 8px 10px 1px rgba(0,0,0,0.08), 0 3px 14px 2px rgba(0,0,0,0.06), 0 5px 5px -3px rgba(0,0,0,0.12);
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--db-background);
  /* Modern clean grid pattern background */
  background-image: 
    linear-gradient(rgba(63, 81, 181, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 81, 181, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--db-text-main);
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography Customization */
h1, h2, h3, h4, .site-logo {
  font-family: 'Plus Jakarta Sans', 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

/* ===== Top Banner Cover ===== */
.top-banner-wrap {
  width: 100%;
  overflow: hidden;
  background-color: var(--db-background);
  border-bottom: 1px solid var(--db-border);
}
.top-banner-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 768px) {
  .top-banner-img {
    height: 80px;
  }
}

/* ===== Sticky Navigation Header ===== */
#site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 500;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--db-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: background var(--transition-speed);
}
.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo-icon-img {
  height: 22px;
  width: 16px;
  display: block;
}
.logo-svg {
  fill: currentColor;
}
.logo-text {
  font-size: 22px;
  font-weight: 700;
  margin-left: 10px;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.site-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 20px; /* reduced from 32px to fit desktop containers comfortably */
}
.site-nav ul li {
  flex-shrink: 0; /* prevent navigation item squishing */
}
.nav-link {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: #555555;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
  white-space: nowrap; /* prevent vertical letter wrapping */
}
.nav-link:hover,
.nav-link.active {
  color: var(--db-accent);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--db-accent);
  border-radius: 10px;
  transform-origin: left;
  animation: lineGrow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.nav-btn {
  background: var(--db-accent);
  color: #fff !important;
  border-radius: 30px;
  padding: 10px 24px !important;
  box-shadow: 0 4px 10px rgba(63, 81, 181, 0.15);
  transition: all 0.25s var(--transition-ease);
}
.nav-btn:hover {
  background: var(--db-accent-hover);
  box-shadow: 0 6px 14px rgba(63, 81, 181, 0.25);
  transform: translateY(-1px);
}

/* ===== Inner Website Basic Layout ===== */
.site-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.site-page {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s var(--transition-ease);
  cursor: pointer;
  border: none;
  outline: none;
}
.site-btn.btn-primary {
  background: var(--db-accent);
  color: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(63, 81, 181, 0.2);
}
.site-btn.btn-primary:hover {
  background: var(--db-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(63, 81, 181, 0.3);
}
.site-btn.btn-outline {
  border: 2px solid var(--db-accent);
  color: var(--db-accent);
  border-radius: 30px;
  background: transparent;
}
.site-btn.btn-outline:hover {
  background: rgba(63, 81, 181, 0.05);
  transform: translateY(-2px);
}

/* Grids */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin: 64px 0;
}
@media (max-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Section Header structure */
.section-header {
  margin-bottom: 48px;
}
.section-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: inline-block;
  margin-bottom: 12px;
  color: var(--db-accent);
  background: rgba(63, 81, 181, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
}
.section-header h2 {
  font-size: 35px;
  font-weight: 700;
  margin-bottom: 12px;
}
.header-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--db-accent), #81c784);
  border-radius: 2px;
}

/* Text layouts */
.text-layout {
  padding-top: 60px;
  padding-bottom: 100px;
}
.text-layout p {
  font-size: 17.5px;
  line-height: 1.95;
  margin-bottom: 24px;
}

/* Intro Context Box styling (restored from inline, increased to 15.5px) */
.intro-context-box {
  margin-top: 40px;
  margin-bottom: 24px;
  padding: 28px;
  background: rgba(63, 81, 181, 0.025);
  border-left: 4px solid var(--db-accent);
  border-radius: 8px;
}
.intro-context-box h3 {
  font-size: 18.5px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 0;
  margin-bottom: 12px;
}
.intro-context-box p {
  font-size: 15.5px !important;
  line-height: 1.8 !important;
  color: var(--db-text-main) !important;
  margin-bottom: 14px !important;
}
.intro-context-box p:last-child {
  margin-bottom: 0 !important;
}
.intro-context-box ul {
  font-size: 15.5px !important;
  line-height: 1.9 !important;
  color: var(--db-text-main) !important;
  padding-left: 18px;
  margin: 0;
}

/* ===== Home Page Custom Layouts ===== */
.hero-section {
  padding: 120px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
}
.hero-text-content {
  max-width: 580px;
}
.hero-pretitle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
  color: var(--db-accent);
}
.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 800;
}
.hero-lead {
  font-size: 18px;
  line-height: 1.85;
  margin-bottom: 36px;
  color: var(--db-text-muted);
}
.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-graphic {
  display: flex;
  justify-content: center;
}

/* Premium Academic Hero Image */
.hero-academic-image {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(63, 81, 181, 0.08);
  border: 1px solid rgba(63, 81, 181, 0.1);
  transition: transform 0.5s var(--transition-ease);
}
.hero-academic-image:hover {
  transform: scale(1.02);
}

/* Academic Banner Container */
.banner-academic-container {
  width: 100%;
  margin: 64px 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.banner-academic-image {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(63, 81, 181, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Overview Section Grid */
.overview-section {
  padding: 80px 0 100px;
}
.overview-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.overview-intro h2 {
  font-size: 26px;
  margin-bottom: 16px;
}
.overview-intro p {
  font-size: 17px;
  line-height: 1.85;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.overview-card,
.sofa-example-box,
.processing-structure-box,
.framework-sidebar,
.framework-content-card,
.test-module-box {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(63, 81, 181, 0.04);
}

.overview-card {
  padding: 36px 30px;
  border-radius: 24px 8px;
  transition: all 0.3s;
}
.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(63, 81, 181, 0.08);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(63, 81, 181, 0.2);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 20px;
}
.overview-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.overview-card p {
  font-size: 15.5px;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text-content {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===== Interactive CPU vs HDD Simulator ===== */
.interactive-simulator-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(63, 81, 181, 0.15);
  border-radius: 20px;
  padding: 36px;
  margin-top: 60px;
  box-shadow: 0 8px 30px rgba(63, 81, 181, 0.03);
}
.simulator-header h3 {
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.simulator-header p {
  font-size: 15px;
  color: var(--db-text-muted);
  margin-bottom: 20px;
}
.simulator-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.sim-btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  border: 1.5px solid rgba(63, 81, 181, 0.15);
  background: #fff;
  color: #555555;
  transition: all 0.25s;
}
.sim-btn:hover {
  border-color: var(--db-accent);
  color: var(--db-accent);
  background: rgba(63, 81, 181, 0.02);
}
.sim-btn.active {
  background: var(--db-accent);
  color: #fff;
  border-color: var(--db-accent);
}
.simulator-display-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .simulator-display-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.sim-column h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a1a;
}
.console-body {
  background: #151c17;
  border-radius: 12px;
  border: 1px solid rgba(63, 81, 181, 0.25);
  padding: 18px;
  height: 200px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
}
.console-line {
  margin-bottom: 8px;
  color: #d1ebd3;
  animation: consoleFadeIn 0.3s forwards;
  white-space: pre-wrap;
  word-break: break-all;
}
@keyframes consoleFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.console-line.text-muted {
  color: #5d7e64;
}
.console-line.text-alert {
  color: #ff8a80;
}
.console-line.text-success {
  color: #69f0ae;
}

/* ===== Philosophy Page Custom Layouts ===== */
.philosophy-boxed-card {
  padding: 40px 48px;
  border-radius: 30px 10px 30px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 5px solid var(--db-accent);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(63, 81, 181, 0.04);
  margin-bottom: 48px;
}
.philosophy-boxed-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #1a1a1a;
}
.boxed-lead-text {
  font-size: 17px;
  line-height: 1.85;
  font-weight: 500;
  color: var(--db-text-main);
  font-family: 'Inter', sans-serif;
}

.philosophy-quote-box {
  padding: 40px 48px;
  border-radius: 30px 10px 30px 10px;
  margin-bottom: 56px;
  position: relative;
}
.quote-text {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 24px;
  font-style: italic;
  color: #263a28;
}
.quote-author {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: block;
  text-align: right;
  font-style: normal;
}

.cpu-hdd-comparison {
  margin-top: 56px;
}
.cpu-hdd-comparison h3 {
  font-size: 20px;
  margin-bottom: 24px;
}
.cpu-hdd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.comparison-item {
  padding: 32px;
  border-radius: 8px;
}
.comparison-item h4 {
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 700;
}
.comparison-item.hdd {
  border-radius: 16px 4px;
  background: rgba(142, 142, 159, 0.06);
  border: 1px dashed rgba(63, 81, 181, 0.2);
}
.comparison-item.cpu {
  border-radius: 4px 16px;
  background: rgba(63, 81, 181, 0.04);
  border: 1px solid rgba(63, 81, 181, 0.15);
}
.comparison-item.hdd h4 { color: var(--db-text-muted); }
.comparison-item.cpu h4 { color: var(--db-accent); }
.comparison-item ul {
  list-style: none;
}
.comparison-item li {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}
.comparison-item li::before {
  content: "■";
  position: absolute;
  left: 0;
  font-size: 10px;
  top: 1px;
  color: #81c784;
}

@media (max-width: 768px) {
  .cpu-hdd-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===== Introduction Page Custom Layouts ===== */
.sofa-example-box {
  padding: 32px 36px;
  border-radius: 16px;
  margin: 40px 0;
  background: var(--db-surface, #ffffff);
  border: 1px solid var(--db-border, #e0e0e0);
  box-shadow: var(--elevation-dp1);
}
.sofa-example-box h3 {
  font-size: 21px;
  margin-bottom: 16px;
}
.sofa-intro {
  font-size: 15.5px !important;
  color: var(--db-text-muted);
  margin-bottom: 24px !important;
}
.sofa-interactive-selector {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sofa-control-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.selector-instruction {
  font-size: 14.5px !important;
  font-weight: 600;
  margin-bottom: 8px !important;
}
.attribute-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.attr-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  border: 1.5px solid rgba(63, 81, 181, 0.2);
  background: rgba(255, 255, 255, 0.8);
  color: #555555;
  transition: all 0.25s;
}
.attr-btn:hover {
  background: rgba(63, 81, 181, 0.05);
  color: var(--db-accent);
  border-color: var(--db-accent);
}
.attr-btn.active {
  background: var(--db-accent);
  color: #fff;
  border-color: var(--db-accent);
  box-shadow: 0 4px 10px rgba(63, 81, 181, 0.2);
}

.sofa-vars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.var-card {
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(63, 81, 181, 0.12);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.3s var(--transition-ease);
}
.var-status {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.var-card.active-state {
  border-color: var(--db-accent);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(63, 81, 181, 0.08);
}
.var-card.noise-state {
  opacity: 0.35;
  filter: grayscale(1);
}
.var-status.required {
  background: #e8f5e9;
  color: var(--db-accent);
}
.var-status.noise {
  background: #ffebee;
  color: #c62828;
}

.var-card h5 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}
.var-card p {
  font-size: 13px !important;
  line-height: 1.55;
  color: #666;
  margin-bottom: 0 !important;
}

.sofa-explanation-box {
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 14.5px;
  line-height: 1.65;
  background: rgba(63, 81, 181, 0.05);
  border-left: 3px solid var(--db-accent);
  color: var(--db-text-main);
}

.processing-structure-box {
  margin-top: 48px;
  padding: 30px;
  border-radius: 20px 4px;
}
.processing-structure-box h3 {
  font-size: 18.5px;
  margin-bottom: 12px;
}
.structure-analogy {
  padding-left: 20px;
  border-left: 3px solid #ccc;
}
.analogy-bold {
  font-size: 16.5px !important;
  font-weight: 700;
  line-height: 1.7;
}

/* Case Study Table */
.case-study-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
  line-height: 1.65;
  text-align: left;
}
.case-study-table th,
.case-study-table td {
  padding: 12px 16px;
  border: 1px solid rgba(63, 81, 181, 0.12);
  vertical-align: top;
}
.case-study-table th {
  background: rgba(63, 81, 181, 0.05);
  font-weight: 700;
  color: #1a1a1a;
}
.case-study-table td {
  background: #ffffff;
}

/* ===== Features / Framework Layout styling ===== */
.features-intro {
  margin-bottom: 40px !important;
}
.framework-container {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
.framework-sidebar {
  padding: 28px;
  border-radius: 20px 8px;
}
.framework-sidebar h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.sidebar-help {
  font-size: 12.5px !important;
  color: var(--db-text-muted);
  margin-bottom: 20px !important;
}
.ap-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ap-btn {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid rgba(63, 81, 181, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: #555555;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  text-align: left;
}
.ap-btn:hover {
  border-color: var(--db-accent);
  color: var(--db-accent);
  background: rgba(63, 81, 181, 0.03);
}
.ap-btn.active {
  background: var(--db-accent);
  color: #fff;
  border-color: var(--db-accent);
}
.ap-btn span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f5e9;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--db-accent);
  transition: all 0.2s;
  flex-shrink: 0;
}
.ap-btn.active span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.framework-content-card {
  padding: 48px;
  border-radius: 8px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 350px;
  transition: all 0.3s;
}
#ap-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
#ap-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--db-text-muted);
}
.ap-divider {
  width: 40px;
  height: 2px;
  background: var(--db-accent);
  margin: 20px 0;
}
#ap-description {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--db-text-main);
}
#ap-footer-note {
  margin-top: 36px;
  font-size: 12.5px;
  color: var(--db-text-muted);
}

@media (max-width: 900px) {
  .framework-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== ADHD/ASD Mismatch Interactive Widget styles ===== */
.mismatch-controls {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  border-bottom: 1px solid rgba(63, 81, 181, 0.12);
  padding-bottom: 10px;
}
.mismatch-btn {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1.5px solid transparent;
  background: transparent;
  color: #555555;
  cursor: pointer;
  transition: all 0.25s;
  border-radius: 4px;
}
.mismatch-btn:hover {
  color: var(--db-accent);
}
.mismatch-btn.active {
  background: rgba(63, 81, 181, 0.08);
  color: var(--db-accent);
  border-color: var(--db-accent);
}
.mismatch-card {
  display: none;
}
.mismatch-card.active {
  display: block;
  animation: mismatchFadeIn 0.4s var(--transition-ease);
}
@keyframes mismatchFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.mismatch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .mismatch-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.mismatch-col {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(63, 81, 181, 0.12);
}
.mismatch-col.what {
  background: rgba(142, 142, 159, 0.04);
}
.mismatch-col.why {
  background: rgba(63, 81, 181, 0.03);
  border-color: rgba(63, 81, 181, 0.2);
}
.mismatch-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a1a;
}
.mismatch-col p {
  font-size: 13.8px;
  line-height: 1.7;
  color: var(--db-text-main);
  margin-bottom: 0 !important;
}

/* ===== Test Preview Layout styling ===== */
.test-preview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  margin-top: 30px;
}
@media (max-width: 900px) {
  .test-preview-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.test-module-box {
  padding: 40px;
  border-radius: 20px;
}
.test-module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(63, 81, 181, 0.12);
  margin-bottom: 24px;
}
.test-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: #e8f5e9;
  color: var(--db-accent);
}
.test-timer {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--db-accent);
}

.test-question-box {
  margin-bottom: 32px;
}
.question-intro {
  font-size: 15.5px !important;
  line-height: 1.8;
  margin-bottom: 18px !important;
}
.condition-board {
  padding: 20px 24px;
  border-radius: 6px;
  background: #fcfbf7;
  border: 1px solid rgba(63, 81, 181, 0.1);
  color: #3b4e3d;
}
.condition-board h5 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
.condition-board ul {
  font-size: 14px;
  line-height: 1.7;
}

.test-variables-sorter {
  margin-bottom: 36px;
}
.sorter-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sort-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1.5px solid rgba(63, 81, 181, 0.1);
  background: rgba(255, 255, 255, 0.7);
  gap: 16px;
  transition: all 0.2s;
}
.sort-item.selected-req {
  border-color: var(--db-accent);
  background: #f1f8f1;
  box-shadow: 0 4px 12px rgba(63, 81, 181, 0.06);
}
.sort-item.selected-noi {
  border-color: #c62828;
  background: #ffebee40;
}

.sort-var-title {
  font-size: 14.5px;
  font-weight: 600;
}
.sort-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.sort-btn {
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(63, 81, 181, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: #555555;
  transition: all 0.2s;
}
.sort-btn:hover {
  background: rgba(63, 81, 181, 0.05);
}
.sort-btn.active-req {
  background: var(--db-accent);
  color: #fff;
  border-color: var(--db-accent);
}
.sort-btn.active-noi {
  background: #c62828;
  color: #fff;
  border-color: #c62828;
}
.test-submit-row {
  display: flex;
  justify-content: center;
}

/* Test feedback */
.test-feedback-box {
  margin-top: 36px;
  padding: 30px;
  border-radius: 16px;
  background: #f1f8f1;
  border: 1.5px solid rgba(63, 81, 181, 0.2);
  animation: slideDown 0.4s var(--transition-ease);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}
#feedback-score-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #303f9f;
}
.feedback-details p {
  font-size: 14px !important;
  line-height: 1.7;
  margin-bottom: 20px !important;
}
.feedback-breakdown h5 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feedback-breakdown ul {
  list-style: none;
}
.feedback-breakdown li {
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 10px;
  padding-left: 14px;
  position: relative;
}
.feedback-breakdown li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-weight: 800;
}
.feedback-breakdown .badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
}
.feedback-breakdown .badge.required {
  background: #e8f5e9;
  color: var(--db-accent);
}
.feedback-breakdown .badge.noise {
  background: #ffebee;
  color: #c62828;
}

@media (max-width: 600px) {
  .sort-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .sort-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .sort-btn {
    text-align: center;
  }
}

/* ===== Cognitive Diagnostic Quiz styles ===== */
.diagnostic-badge {
  background: rgba(63, 81, 181, 0.08);
  color: var(--db-accent);
}
.diag-slide {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: slideLeft 0.4s var(--transition-ease);
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.diag-slide.active {
  display: flex;
}
.diag-progress {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--db-accent);
  background: rgba(63, 81, 181, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
}
.diag-question {
  font-size: 16px;
  line-height: 1.75;
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 12px;
}
.diag-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.diag-opt-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1.5px solid rgba(63, 81, 181, 0.12);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.25s;
  text-align: left;
  outline: none;
}
.diag-opt-btn:hover {
  border-color: var(--db-accent);
  background: rgba(63, 81, 181, 0.03);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 81, 181, 0.04);
}
.opt-letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(63, 81, 181, 0.08);
  color: var(--db-accent);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.opt-text {
  font-size: 13.8px;
  line-height: 1.65;
  color: var(--db-text-main);
  font-weight: 500;
}

/* Diagnostic Results View */
.diag-res-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}
.diag-chart-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chart-label {
  width: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--db-text-main);
}
.chart-bar-wrap {
  flex: 1;
  height: 8px;
  background: #e2e1d7;
  border-radius: 8px;
  overflow: hidden;
}
.chart-bar {
  height: 100%;
  background: linear-gradient(90deg, #81c784, var(--db-accent));
  border-radius: 8px;
  width: 0%; /* Dynamic animation by JS */
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.chart-percent {
  width: 35px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--db-accent);
}
.diag-eval-card {
  padding: 20px;
  border-radius: 12px;
  background: #f1f8f1;
  border: 1.5px solid rgba(63, 81, 181, 0.18);
  box-shadow: 0 4px 15px rgba(63, 81, 181, 0.02);
}
.eval-title {
  font-size: 15px;
  font-weight: 700;
  color: #303f9f;
  margin-bottom: 10px;
}
.eval-body {
  font-size: 12px;
  line-height: 1.7;
  color: var(--db-text-main);
}

/* ===== Footer Styling ===== */
#site-footer {
  padding: 40px 0 32px;
  margin-top: 0;
  border-top: 1px solid rgba(63, 81, 181, 0.1);
  background: rgba(247, 246, 240, 0.8);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-img {
  height: 18px;
  width: 13px;
  display: block;
}
.footer-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}
.footer-copy {
  font-size: 11px;
  color: #555;
}
#site-content {
  padding-bottom: 0;
}
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================================================
   Value Proposition Page Styling
   =================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.value-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(63, 81, 181, 0.1);
  border-radius: 16px;
  padding: 35px 30px;
  transition: all 0.3s var(--transition-ease);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(63, 81, 181, 0.03);
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--db-accent), #81c784);
  opacity: 0;
  transition: opacity 0.3s;
}
.value-card:hover {
  transform: translateY(-5px);
  border-color: var(--db-accent);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 40px rgba(63, 81, 181, 0.08);
}
.value-card:hover::before {
  opacity: 1;
}
.value-icon {
  font-size: 32px;
  margin-bottom: 20px;
}
.value-card h3 {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.value-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: var(--db-accent);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.value-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--db-text-main);
  margin-bottom: 24px;
  text-align: justify;
}
.value-bullet {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.value-bullet span {
  color: var(--db-accent);
  font-weight: 700;
}

/* ===================================================================
   Values Tabs Styling
   =================================================================== */
.values-tabs-container {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(63, 81, 181, 0.15);
  border-radius: 20px;
  padding: 40px;
  margin-top: 40px;
  margin-bottom: 60px;
  box-shadow: 0 15px 40px rgba(63, 81, 181, 0.04);
}
.values-tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid rgba(63, 81, 181, 0.1);
  padding-bottom: 20px;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .values-tabs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}
.values-tabs-header h3 {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}
.values-tabs-nav {
  display: flex;
  gap: 10px;
  background: rgba(63, 81, 181, 0.05);
  padding: 6px;
  border-radius: 30px;
}
@media (max-width: 480px) {
  .values-tabs-nav {
    width: 100%;
    overflow-x: auto;
  }
}
.values-tabs-nav .tab-btn {
  background: transparent;
  border: none;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #3f51b5;
  padding: 10px 24px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s var(--transition-ease);
  white-space: nowrap;
}
.values-tabs-nav .tab-btn:hover {
  background: rgba(63, 81, 181, 0.1);
}
.values-tabs-nav .tab-btn.active {
  background: var(--db-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(63, 81, 181, 0.25);
}
.values-tabs-content .tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--transition-ease);
}
.values-tabs-content .tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.tab-panel-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .tab-panel-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}
.tab-panel-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tab-panel-main h4 {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 0;
  margin-bottom: 8px;
}
.tab-panel-bullets {
  background: rgba(63, 81, 181, 0.03);
  border: 1.5px solid rgba(63, 81, 181, 0.08);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
.tab-panel-bullets .value-bullet {
  margin-bottom: 0;
  font-size: 13.5px;
}

/* ===== OVERHAUL / INFO-DENSE LAYOUT ADDITIONS ===== */

/* Glassmorphism Refinements */
.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(63, 81, 181, 0.1);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(63, 81, 181, 0.03);
  transition: all 0.3s var(--transition-ease);
}
.glass-panel:hover {
  border-color: rgba(63, 81, 181, 0.25);
  box-shadow: 0 16px 48px rgba(63, 81, 181, 0.07);
}

/* Accordion Component */
.accordion-wrapper {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accordion-item {
  border: 1px solid rgba(63, 81, 181, 0.12);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s var(--transition-ease);
}
.accordion-item.active {
  border-color: var(--db-accent);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(63, 81, 181, 0.04);
}
.accordion-header {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.2s;
}
.accordion-header:hover {
  background: rgba(63, 81, 181, 0.02);
}
.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s var(--transition-ease);
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background-color: var(--db-text-muted);
  transition: background-color 0.3s;
}
.accordion-icon::before {
  top: 9px;
  left: 3px;
  width: 14px;
  height: 2px;
}
.accordion-icon::after {
  top: 3px;
  left: 9px;
  width: 2px;
  height: 14px;
}
.accordion-item.active .accordion-icon {
  transform: rotate(135deg);
}
.accordion-item.active .accordion-icon::before,
.accordion-item.active .accordion-icon::after {
  background-color: var(--db-accent);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-content-inner {
  padding: 0 24px 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--db-text-main);
}
.accordion-content-inner p {
  margin-bottom: 12px;
}
.accordion-content-inner p:last-child {
  margin-bottom: 0;
}

/* Document Sidebar Layout */
.doc-layout-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}
.doc-sidebar {
  position: sticky;
  top: 110px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(63, 81, 181, 0.08);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.doc-sidebar-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--db-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-left: 8px;
}
.doc-sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doc-sidebar-item a {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--db-text-main);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}
.doc-sidebar-item a:hover {
  background: rgba(63, 81, 181, 0.06);
  color: var(--db-accent);
}
.doc-sidebar-item.active a {
  background: rgba(63, 81, 181, 0.1);
  color: var(--db-accent);
}
.doc-content {
  min-width: 0;
}

@media (max-width: 900px) {
  .doc-layout-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .doc-sidebar {
    position: relative;
    top: 0;
  }
}

/* Macro Modules for Features Page */
.macro-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .macro-modules-grid {
    grid-template-columns: 1fr;
  }
}
.macro-module-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(63, 81, 181, 0.1);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s var(--transition-ease);
}
.macro-module-card:hover {
  border-color: rgba(63, 81, 181, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(63, 81, 181, 0.03);
}
.macro-module-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid rgba(63, 81, 181, 0.08);
}
.macro-module-icon {
  font-size: 24px;
  background: rgba(63, 81, 181, 0.08);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.macro-module-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}
.macro-module-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--db-text-muted);
}
.macro-module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.macro-tag {
  font-size: 11px;
  font-weight: 700;
  background: rgba(63, 81, 181, 0.05);
  border: 1px solid rgba(63, 81, 181, 0.1);
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--db-accent);
}

/* Step Timeline Components */
.step-timeline-container {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 32px 0;
  padding-left: 20px;
}
.step-timeline-container::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: rgba(63, 81, 181, 0.15);
}
.step-timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 20px;
  position: relative;
  margin-bottom: 24px;
}
.step-timeline-item:last-child {
  margin-bottom: 0;
}
.step-timeline-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--db-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  color: var(--db-accent);
  transition: all 0.3s;
}
.step-timeline-item:hover .step-timeline-badge {
  background: var(--db-accent);
  color: #fff;
}
.step-timeline-content {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(63, 81, 181, 0.1);
  border-radius: 12px;
  padding: 18px 24px;
  transition: all 0.25s;
}
.step-timeline-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
}
.step-timeline-content p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--db-text-muted);
  margin: 0;
}

/* IDE Style Code Console for Simulator */
.ide-console-panel {
  background: #111612;
  border: 1px solid rgba(63, 81, 181, 0.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}
.ide-console-header {
  background: #1b221d;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(63, 81, 181, 0.15);
  user-select: none;
}
.ide-dots {
  display: flex;
  gap: 6px;
}
.ide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.ide-dot.red { background: #ff5f56; }
.ide-dot.yellow { background: #ffbd2e; }
.ide-dot.green { background: #27c93f; }
.ide-title {
  font-size: 11px;
  font-family: 'Courier New', Courier, monospace;
  color: #7d9682;
  font-weight: 700;
}
.ide-console-body {
  height: 220px;
  padding: 16px 20px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Styled Report Tiers Cards */
.report-tier-panel-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .report-tier-panel-group {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.report-tier-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(63, 81, 181, 0.12);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--transition-ease);
}
.report-tier-card:hover {
  transform: translateY(-4px);
  border-color: var(--db-accent);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(63, 81, 181, 0.06);
}
.report-tier-card.featured {
  border-color: var(--db-accent);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(63, 81, 181, 0.04);
}
.report-tier-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
}
.report-tier-badge.tier1 { background: #e8f5e9; color: var(--db-accent); }
.report-tier-badge.tier2 { background: #e8f5e9; color: var(--db-accent); border: 1px solid var(--db-accent); }
.report-tier-badge.tier3 { background: #e0f2f1; color: #004d40; }
.report-tier-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
}
.report-tier-sub {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--db-text-muted);
  margin-bottom: 18px;
}
.report-tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--db-text-main);
  padding-left: 0;
}
.report-tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--db-accent);
  font-weight: 800;
}

/* Philosophy Page Overhauls */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 56px 0;
}
@media (max-width: 850px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.philosophy-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(63, 81, 181, 0.12);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s var(--transition-ease);
}
.philosophy-card:hover {
  transform: translateY(-2px);
  border-color: var(--db-accent);
  box-shadow: 0 10px 30px rgba(63, 81, 181, 0.05);
}
.philosophy-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
}
.philosophy-card h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--db-accent);
  border-radius: 2px;
}
.philosophy-card .card-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--db-text-main);
}
.philosophy-card .highlight-box {
  background: rgba(63, 81, 181, 0.04);
  border-left: 3px solid var(--db-accent);
  padding: 16px;
  border-radius: 0 8px 8px 0;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--db-text-muted);
}

/* Split Comparison Panel for Philosophy */
.comparison-split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 48px 0;
}
@media (max-width: 768px) {
  .comparison-split-container {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
  }
}
.comparison-panel {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(63, 81, 181, 0.12);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  box-shadow: 0 4px 20px rgba(63, 81, 181, 0.02);
  transition: all 0.3s;
}
.comparison-panel:hover {
  border-color: rgba(63, 81, 181, 0.22);
  box-shadow: 0 8px 24px rgba(63, 81, 181, 0.04);
}
.comparison-panel-tag {
  position: absolute;
  top: -12px;
  left: 28px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 12px;
  color: #fff;
}
.comparison-panel-tag.math-logic {
  background: var(--db-accent);
}
.comparison-panel-tag.lang-social {
  background: var(--db-text-muted);
}
.comparison-panel h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 16px;
  color: #1a1a1a;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
}
.comparison-panel p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--db-text-main);
  margin-bottom: 12px;
}
.comparison-panel p:last-child {
  margin-bottom: 0;
}
.comparison-panel .highlight-text {
  font-weight: 600;
  padding: 16px;
  border-left: 3px solid var(--db-accent);
  background: rgba(63, 81, 181, 0.03);
  border-radius: 0 8px 8px 0;
  margin-top: 16px;
  font-size: 13px;
  color: #1a1a1a;
}

/* Sofa Experiment Responsive Layout */
@media (min-width: 900px) {
  .sofa-interactive-selector {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
  }
  .sofa-control-sidebar .attribute-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .sofa-control-sidebar .attr-btn {
    text-align: left;
    border-radius: 8px;
    padding: 12px 18px;
  }
}

/* Language Switcher Styling */
.lang-switcher {
  font-size: 13px;
  color: #a5b5a7;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-link {
  text-decoration: none !important;
  color: #555555 !important;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
  font-size: 13px;
}
.lang-link:hover {
  color: var(--db-accent) !important;
}
.lang-link.active {
  color: var(--db-accent) !important;
  font-weight: 700;
  background: rgba(63, 81, 181, 0.08);
}

/* ===== Parallax Background Logos (fixed position for true floating parallax) ===== */
.parallax-bg-logo {
  position: fixed;
  width: 480px;
  height: 480px;
  color: var(--db-accent);
  opacity: 0.045;
  z-index: 0;
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
  transition: none !important;
}
.parallax-bg-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}
#site-content {
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}
.parallax-bg-1 {
  top: 15vh;
  right: -160px;
}
.parallax-bg-2 {
  top: 60vh;
  left: -180px;
}

/* ===== Hamburger / Mobile Nav ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 600;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile slide-in drawer */
.nav-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 550;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-drawer-overlay.open {
  opacity: 1;
}

@media (max-width: 850px) {
  .nav-hamburger {
    display: flex;
  }
  .site-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    z-index: 600;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 90px 24px 40px;
    overflow-y: auto;
  }
  .site-nav.open {
    right: 0;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .site-nav ul li {
    width: 100%;
  }
  .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
  }
  .nav-link:hover {
    background: rgba(63,81,181,0.06);
  }
  .nav-btn {
    display: block;
    text-align: center;
    padding: 12px 16px !important;
    border-radius: 8px;
    margin-top: 8px;
  }
  .lang-switcher {
    margin-top: 8px;
    padding: 8px 16px;
  }
  .nav-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 550;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .nav-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
}

