/* Neumorphic Design System — Tactile Minimalism */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ── Surface & Depth ── */

.neumorphic-convex {
  box-shadow: 6px 6px 12px #c7ddf2, -4px -4px 8px #ffffff;
}

.neumorphic-concave {
  box-shadow: inset 4px 4px 8px rgba(162, 180, 197, 0.4), inset -4px -4px 8px #ffffff;
}

/* ── Buttons ── */

.neumorphic-button-primary {
  background: linear-gradient(135deg, #2e4edc 0%, #1c40d0 100%);
  box-shadow: 4px 4px 12px rgba(46, 78, 220, 0.3);
}

.neumorphic-button-disabled {
  background: #e4effc;
  box-shadow: 4px 4px 10px #c7ddf2, -4px -4px 10px #ffffff;
  cursor: not-allowed;
}

.neumorphic-button-secondary {
  background: #f6f9ff;
  box-shadow: 4px 4px 10px #c7ddf2, -4px -4px 10px #ffffff;
}

.neumorphic-button-secondary:hover {
  box-shadow: 5px 5px 14px #c7ddf2, -5px -5px 12px #ffffff;
}

/* ── Glass Nav ── */

.glass-nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.tonal-transition {
  background: linear-gradient(to bottom, transparent, rgba(199, 221, 242, 0.2));
}

/* ── Lifecycle Animations ── */

@keyframes breathing-glow {
  0%,
  100% {
    box-shadow: inset 4px 4px 8px rgba(46, 78, 220, 0.1), inset -4px -4px 8px #ffffff,
      0 0 0px rgba(46, 78, 220, 0);
    transform: scale(1);
  }
  50% {
    box-shadow: inset 4px 4px 12px rgba(46, 78, 220, 0.2), inset -4px -4px 12px #ffffff,
      0 0 25px rgba(46, 78, 220, 0.15);
    transform: scale(1.03);
  }
}

.status-active-glow {
  animation: breathing-glow 3s ease-in-out infinite;
  border-color: rgba(46, 78, 220, 0.3);
}

@keyframes text-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.animate-status-text {
  animation: text-blink 2s ease-in-out infinite;
}

.lifecycle-node {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── FAQ Accordion ── */

.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 300px;
  opacity: 1;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

/* ── Scroll Reveal ── */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 767px) {
  .glass-nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
