@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

:root {
  --bg-canvas: #FFFFFF;
  --color-amber: #FFC20E;
  --color-green: #22C55E;
  --color-purple: #7C3AED;
  --color-purple-deep: #5B21B6;
  --color-black: #000000;
  --color-white: #FFFFFF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--color-black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Base borders & shadows */
.border-black-2 {
  border: 2px solid #000000;
}

.border-black-4 {
  border: 4px solid #000000;
}

.border-black-b-4 {
  border-bottom: 4px solid #000000;
}

.border-black-t-4 {
  border-top: 4px solid #000000;
}

.shadow-neo {
  box-shadow: 4px 4px 0px 0px #000000;
}

.shadow-neo-lg {
  box-shadow: 8px 8px 0px 0px #000000;
}

.shadow-neo-amber {
  box-shadow: 8px 8px 0px 0px #FFC20E;
}

.shadow-neo-purple {
  box-shadow: 8px 8px 0px 0px #7C3AED;
}

.shadow-neo-green {
  box-shadow: 8px 8px 0px 0px #22C55E;
}

/* Hover effects for neo-brutalist elements */
.btn-neo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 4px solid #000000;
  box-shadow: 4px 4px 0px 0px #000000;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  min-height: 48px;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 0px;
}

.btn-neo:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px 0px #000000;
}

.btn-neo:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px 0px #000000;
}

.btn-neo-amber {
  background-color: var(--color-amber);
  color: var(--color-black);
}

.btn-neo-amber:hover {
  background-color: #ffd043;
}

.btn-neo-purple {
  background-color: var(--color-purple);
  color: var(--color-white);
}

.btn-neo-purple:hover {
  background-color: #6d28d9;
}

.btn-neo-black {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-neo-black:hover {
  background-color: #222222;
}

.btn-neo-white {
  background-color: var(--color-white);
  color: var(--color-black);
}

.btn-neo-white:hover {
  background-color: #f3f3f3;
}

/* Pill badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 2px solid #000000;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: #ffffff;
  color: #000000;
}

/* Card container */
.card-neo {
  background-color: #ffffff;
  border: 4px solid #000000;
  box-shadow: 4px 4px 0px 0px #000000;
  padding: 24px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-neo:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px 0px #000000;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-black);
}

.tracking-tight-heavy {
  letter-spacing: -0.03em;
}

/* CSS Animations for Inline STEM SVGs */
@keyframes orbit-electron {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-orbit {
  animation: orbit-electron 14s linear infinite;
  transform-origin: center;
}

.animate-orbit-reverse {
  animation: orbit-electron 18s linear infinite reverse;
  transform-origin: center;
}

@keyframes spin-gear-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-gear-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.animate-gear-cw {
  animation: spin-gear-cw 12s linear infinite;
  transform-origin: center;
}

.animate-gear-ccw {
  animation: spin-gear-ccw 12s linear infinite;
  transform-origin: center;
}

/* ITEM 1: Ball climbing upward along line graph in Achieve Success card (resets to start, never moves down) */
@keyframes ball-climb-graph {
  0% { transform: translate(0px, 0px); opacity: 1; }
  85% { transform: translate(85px, -45px); opacity: 1; }
  92% { transform: translate(85px, -45px); opacity: 0; }
  93% { transform: translate(0px, 0px); opacity: 0; }
  100% { transform: translate(0px, 0px); opacity: 1; }
}

.animate-graph-ball {
  animation: ball-climb-graph 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ITEM 7: Intensive Care steep trend line animation */
@keyframes trend-pulse-line {
  0% { stroke-dashoffset: 200; opacity: 0.6; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.8; }
}

.animate-trend-line {
  stroke-dasharray: 200;
  animation: trend-pulse-line 3s ease-in-out infinite alternate;
}

@keyframes pulse-circuit-node {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.animate-node-pulse-1 {
  animation: pulse-circuit-node 3s ease-in-out infinite;
  transform-origin: center;
}

.animate-node-pulse-2 {
  animation: pulse-circuit-node 3s ease-in-out infinite 1s;
  transform-origin: center;
}

.animate-node-pulse-3 {
  animation: pulse-circuit-node 3s ease-in-out infinite 2s;
  transform-origin: center;
}

@keyframes glyph-revolve {
  from { transform: rotate(0deg) translate(110px) rotate(0deg); }
  to { transform: rotate(360deg) translate(110px) rotate(-360deg); }
}

.animate-glyph-orbit {
  animation: glyph-revolve 16s linear infinite;
  transform-origin: 150px 150px;
}

/* ITEM 9: Testimonial Marquee - multi-line wrapped text */
@keyframes marquee-left {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-track {
  display: inline-flex;
  gap: 28px;
  animation: marquee-left 32s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.testimonial-card {
  width: 360px;
  white-space: normal;
  display: flex;
  flex-col: column;
  justify-content: space-between;
  min-height: 220px;
}

/* Details Summary Accordion custom styling */
details.faq-accordion {
  border: 4px solid #000000;
  box-shadow: 4px 4px 0px 0px #000000;
  background-color: #ffffff;
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

details.faq-accordion[open] {
  box-shadow: 6px 6px 0px 0px #000000;
}

details.faq-accordion summary {
  padding: 18px 24px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  min-height: 48px;
}

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

details.faq-accordion summary .accordion-icon {
  font-size: 1.5rem;
  font-weight: 900;
  transition: transform 0.2s ease;
}

details.faq-accordion[open] summary .accordion-icon {
  transform: rotate(45deg);
}

details.faq-accordion .faq-content {
  padding: 0 24px 20px 24px;
  font-size: 1rem;
  color: #222222;
  border-top: 2px solid #000000;
  padding-top: 16px;
  line-height: 1.6;
}

/* Reduced Motion Safeguard */
@media (prefers-reduced-motion: reduce) {
  .animate-orbit,
  .animate-orbit-reverse,
  .animate-gear-cw,
  .animate-gear-ccw,
  .animate-graph-ball,
  .animate-trend-line,
  .animate-node-pulse-1,
  .animate-node-pulse-2,
  .animate-node-pulse-3,
  .animate-glyph-orbit,
  .marquee-track {
    animation: none !important;
  }
}
