/* CLREST Custom Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', 'Roboto', sans-serif;
  color: #1e293b;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, #facc15, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient Backgrounds */
.bg-gradient-yellow { background: linear-gradient(135deg, #facc15, #fb923c); }
.bg-gradient-dark   { background: linear-gradient(135deg, #0f172a, #1e293b); }

/* Navbar */
#clrest-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
}
#clrest-navbar.scrolled {
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
#clrest-navbar.top { background: transparent; }

/* Score dots */
.score-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin: 0 2px;
}
.score-dot.filled-yellow { background: linear-gradient(135deg, #facc15, #fb923c); }
.score-dot.filled-red  { background: #f87171; }
.score-dot.filled-blue { background: #60a5fa; }
.score-dot.empty       { background: #e2e8f0; }

/* Animated chart bars */
.chart-bar {
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.6s ease;
  border-radius: 2px 2px 0 0;
}
.chart-bar.animated { transform: scaleY(1); }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Section fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cards hover */
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Button hover effects */
.btn-primary {
  background: linear-gradient(135deg, #facc15, #fb923c);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fde047, #fdba74);
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(250,204,21,0.4);
}
.btn-outline {
  border: 2px solid #facc15;
  color: #facc15;
  background: transparent;
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-outline:hover {
  background: #facc15;
  color: #000;
}

/* Mobile menu */
#mobile-menu {
  display: none;
  background: rgba(15,23,42,0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid #334155;
}
#mobile-menu.open { display: block; }

/* Pricing table */
.pricing-card {
  transition: all 0.3s ease;
  border-radius: 24px;
  padding: 32px;
  background: #fff;
  border: 2px solid #e2e8f0;
}
.pricing-card:hover {
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.pricing-card.popular {
  border-color: #facc15;
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(250,204,21,0.2);
}

/* Case study card */
.case-card .case-image-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.case-play-btn {
  width: 64px; height: 64px;
  background: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.case-play-btn:hover { transform: scale(1.1); }

/* Diagnosis form */
.diagnosis-option {
  padding: 20px 24px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  background: #fff;
  width: 100%;
  text-align: left;
}
.diagnosis-option:hover {
  border-color: #facc15;
  background: #fefce8;
}

/* Form inputs */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
  background: #fff;
}
.form-input:focus {
  outline: none;
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250,204,21,0.2);
}

/* Comparison table */
.comparison-table th, .comparison-table td {
  padding: 16px 24px;
  vertical-align: middle;
}
.comparison-table thead tr th {
  background: #0f172a;
  color: #fff;
  font-weight: 600;
}
.comparison-table .clrest-col {
  background: linear-gradient(to bottom, #fefce8, #fff7ed);
}
.comparison-table .clrest-head {
  background: linear-gradient(135deg, #facc15, #fb923c);
  color: #000;
  font-weight: 700;
}

/* Progress bar */
.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 50px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #facc15, #fb923c);
  border-radius: 50px;
  transition: width 0.5s ease;
}

/* Glow effect */
.glow-yellow {
  box-shadow: 0 0 30px rgba(250,204,21,0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-card.popular { transform: scale(1); }
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.75rem !important; }
}

/* WhatsApp-like tab nav (mobile) */
@media (max-width: 640px) {
  .grid-2-mobile { grid-template-columns: 1fr 1fr; }
}

/* Expandable section */
.expandable { overflow: hidden; max-height: 0; transition: max-height 0.5s ease; }
.expandable.open { max-height: 2000px; }

/* Tailwind-like utility overrides */
.text-gradient-yellow {
  background: linear-gradient(to right, #facc15, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
