/* MoldMaker global styles */

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #5e8eff 0%, #ff7849 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #91b4ff 0%, #5e8eff 60%, #3a6bff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glowing button */
.btn-glow {
  box-shadow: 0 0 20px rgba(58, 107, 255, 0.4), 0 4px 15px rgba(58, 107, 255, 0.2);
  transition: box-shadow 0.2s, transform 0.2s;
}
.btn-glow:hover {
  box-shadow: 0 0 30px rgba(58, 107, 255, 0.6), 0 8px 20px rgba(58, 107, 255, 0.3);
  transform: translateY(-1px);
}

/* Grid background */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Noise texture for cards */
.card-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Gradient border card */
.border-gradient {
  position: relative;
  background: linear-gradient(#0f1117, #0f1117) padding-box,
              linear-gradient(135deg, rgba(58,107,255,0.4), rgba(255,90,31,0.2)) border-box;
  border: 1px solid transparent;
}

/* Animated gradient background for hero */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(58,107,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(255,90,31,0.10) 0%, transparent 60%),
    #030712;
}

/* Glow orb decoration */
.orb-blue {
  background: radial-gradient(circle, rgba(58,107,255,0.3) 0%, transparent 70%);
  filter: blur(40px);
}
.orb-orange {
  background: radial-gradient(circle, rgba(255,90,31,0.2) 0%, transparent 70%);
  filter: blur(40px);
}

/* Feature card hover */
.feature-card {
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(58,107,255,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(58,107,255,0.1);
}

/* Step connector line */
.step-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  width: calc(100% - 16px);
  height: 1px;
  background: linear-gradient(90deg, rgba(58,107,255,0.4), transparent);
}

/* Prose styles for legal pages */
.prose-legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.prose-legal h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #d1d5db;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.prose-legal p {
  color: #9ca3af;
  line-height: 1.75;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
}
.prose-legal ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
}
.prose-legal ul li {
  color: #9ca3af;
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 0.25rem;
}
.prose-legal a {
  color: #5e8eff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose-legal strong {
  color: #d1d5db;
  font-weight: 600;
}

/* Pricing toggle */
.pricing-toggle input:checked ~ .toggle-dot {
  transform: translateX(20px);
}
.pricing-toggle input:checked ~ .toggle-track {
  background: #1f4de0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Code blocks */
pre, code {
  font-family: 'JetBrains Mono', monospace;
}
.code-block {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #e2e8f0;
}
.code-block .keyword { color: #7aa2f7; }
.code-block .string  { color: #9ece6a; }
.code-block .comment { color: #565f89; }
.code-block .func    { color: #bb9af7; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.badge-blue  { background: rgba(58,107,255,0.15); color: #91b4ff; border: 1px solid rgba(58,107,255,0.2); }
.badge-orange { background: rgba(255,90,31,0.12); color: #ffad8a; border: 1px solid rgba(255,90,31,0.2); }
.badge-green { background: rgba(52,211,153,0.12); color: #6ee7b7; border: 1px solid rgba(52,211,153,0.2); }
.badge-purple { background: rgba(167,139,250,0.12); color: #c4b5fd; border: 1px solid rgba(167,139,250,0.2); }

/* Table styles */
.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.data-table td {
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  color: #d1d5db;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Animation utilities */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(58,107,255,0.3); }
  50%       { box-shadow: 0 0 35px rgba(58,107,255,0.5); }
}
.animate-pulse-glow {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
