/* ============================================
   monmonmon - Custom styles (non-Tailwind)
   ============================================ */

@font-face {
  font-family: 'Outfit';
  src: url('assets/outfit.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('assets/dmsans.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('assets/dmsans-italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Cherry Bomb One';
  src: url('assets/cherry.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Brand font utility */
.font-brand {
  font-family: 'Cherry Bomb One', 'Outfit', sans-serif;
  font-weight: 400;
}

/* Terminal syntax highlighting */
.terminal .prompt { color: #6a9e7e; }
.terminal .command { color: rgba(255, 255, 255, 0.9); }
.terminal .json-key { color: #f0c6d2; }
.terminal .json-string { color: #d4e4d9; }
.terminal .json-bool { color: #d4b45a; }
.terminal .json-punct { color: rgba(255, 255, 255, 0.4); }

/* Scroll-triggered reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero staggered animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-hero-1 { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-hero-2 { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.animate-hero-3 { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.animate-hero-4 { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.animate-hero-5 { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }

/* Comparison column direction flip for alternating feature details */
.direction-rtl { direction: rtl; }
.direction-rtl > * { direction: ltr; }

/* Nav scroll effect */
nav.scrolled {
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
}

/* Strikethrough styling */
.strike {
  text-decoration: line-through;
  opacity: 0.35;
  text-decoration-thickness: 3px;
}

/* Highlight underline on hero em */
.hero-highlight {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 12px;
  background: #f0c6d2;
  border-radius: 6px;
  z-index: -1;
  opacity: 0.7;
}

/* Steps connecting line */
.steps-line::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, #f0c6d2, #d4e4d9, #f5edda, #f0c6d2);
  border-radius: 1px;
}

@media (max-width: 900px) {
  .steps-line::before { display: none; }
}

/* Pricing check marks */
.pricing-check::before {
  content: '\2713';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d4e4d9;
  color: #4a7a59;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}

/* Accordion */
.accordion details {
  overflow: hidden;
}

.accordion summary {
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: #6b6b8a;
  transition: transform 0.2s ease;
}

.accordion details[open] summary::after {
  content: '\2212';
}
