/* Polish. Kept as plain CSS because Tailwind Play CDN does not process @apply. */

html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }

.input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.2rem;
  border: 1px solid #d5d9e0;
  background: #ffffff;
  color: #161a24;
  font-size: 0.9rem;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #b0b7c3; }
.input:focus {
  outline: none;
  border-color: #4f6bed;
  box-shadow: 0 0 0 3px rgba(79, 107, 237, 0.15);
}
textarea.input { line-height: 1.5; resize: vertical; }
select.input { appearance: none; padding-right: 2rem;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%234a5568' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/></svg>");
  background-repeat: no-repeat; background-position: right 0.6rem center; background-size: 1rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 0.9rem; font-weight: 500;
  transition: background-color .15s, border-color .15s, color .15s;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: #161a24; color: #ffffff; border: 1px solid #161a24; }
.btn-primary:hover { background: #232936; border-color: #232936; }

.btn-secondary { background: #ffffff; color: #161a24; border: 1px solid #d5d9e0; }
.btn-secondary:hover { background: #f6f7f9; }

/* Pill selectors: always white background, only the BORDER changes on state. */
.radio-pill, .checkbox-pill { cursor: pointer; user-select: none; }
.radio-pill > span, .checkbox-pill > span {
  display: inline-flex; align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 0.25rem;
  border: 1.5px solid #d5d9e0;
  background: #ffffff;
  color: #3b4353;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color .15s, color .15s;
}
.radio-pill:hover > span, .checkbox-pill:hover > span {
  border-color: #7c6bf5;
  color: #6D28D9;
  background: #ffffff;
}
.radio-pill > input:checked + span, .checkbox-pill > input:checked + span {
  border-color: #6D28D9;
  color: #6D28D9;
  background: #ffffff;
  box-shadow: none;
}

/* Form section card: 3D purple shadow, sharper corners */
.form-section {
  border-radius: 0.5rem;
  border: 1px solid #d5d9e0;
  background: #ffffff;
  padding: 1.5rem;
  box-shadow:
    0 1px 0 rgba(15, 27, 45, 0.05),
    0 12px 24px -10px rgba(124, 107, 245, 0.35),
    0 4px 8px -3px rgba(124, 107, 245, 0.18);
}
.form-section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eceef2;
}
.form-section-number {
  color: #7C6BF5;
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
}
.form-section-title {
  color: #0F1B2D;
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
}

/* Framework chips: natural width, subtle shadow, small radius */
.chip-3d {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 0.35rem;
  font-weight: 700;
  color: #A78BFA;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.05);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Processing page, animated building blocks */
.pxb-blocks {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}
.pxb-blocks span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: linear-gradient(180deg, #7C6BF5 0%, #3B5BDB 100%);
  transform: translateY(0) scale(0.6);
  opacity: 0.15;
  animation: pxb-block-build 1.4s ease-in-out infinite;
}
.pxb-blocks span:nth-child(1) { animation-delay: 0.00s; }
.pxb-blocks span:nth-child(2) { animation-delay: 0.12s; }
.pxb-blocks span:nth-child(3) { animation-delay: 0.24s; }
.pxb-blocks span:nth-child(4) { animation-delay: 0.36s; }
.pxb-blocks span:nth-child(5) { animation-delay: 0.48s; }

@keyframes pxb-block-build {
  0%    { transform: translateY(0)     scale(0.5); opacity: 0.15; height: 6px; }
  40%   { transform: translateY(-6px)  scale(1);   opacity: 1;    height: 18px; }
  70%   { transform: translateY(-6px)  scale(1);   opacity: 1;    height: 18px; }
  100%  { transform: translateY(0)     scale(0.5); opacity: 0.15; height: 6px; }
}

/* Progress bar, gradient fill + moving shimmer overlay */
.pxb-progress-bar {
  background: linear-gradient(90deg, #7C6BF5 0%, #3B5BDB 50%, #7C6BF5 100%);
  background-size: 200% 100%;
  animation: pxb-progress-flow 3s linear infinite;
}
.pxb-progress-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: pxb-shimmer 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pxb-progress-flow {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes pxb-shimmer {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* Landing cards, purple 3D depth */
.card-3d {
  box-shadow:
    0 1px 0 rgba(15, 27, 45, 0.05),
    0 12px 24px -10px rgba(124, 107, 245, 0.35),
    0 4px 8px -3px rgba(124, 107, 245, 0.18);
  transition: transform .18s ease, box-shadow .18s ease;
  will-change: transform;
}
.card-3d:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 0 rgba(15, 27, 45, 0.06),
    0 18px 32px -12px rgba(124, 107, 245, 0.45),
    0 8px 14px -4px rgba(124, 107, 245, 0.22);
}

/* Landing CTA buttons on the hero cards */
.btn-hero {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #232936 0%, #0F1B2D 100%);
  color: #ffffff;
  font-family: 'Poppins', 'Inter', ui-sans-serif, system-ui;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid #0F1B2D;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 14px -6px rgba(124, 107, 245, 0.55);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-hero:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #3B5BDB 0%, #3345A8 100%);
  border-color: #3345A8;
  color: #BAE6FD !important;               /* baby blue on hover, not red */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 10px 18px -6px rgba(124, 107, 245, 0.70);
}
.btn-hero,
.btn-hero:link,
.btn-hero:visited,
.btn-hero:active,
.btn-hero:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Framework tags */
.tag {
  display: inline-flex; align-items: center;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.tag-nist    { background: #ffffff; color: #047857; border-color: #a7f3d0; }
.tag-llm     { background: #ffffff; color: #4338ca; border-color: #c7d2fe; }
.tag-agentic { background: #ffffff; color: #a21caf; border-color: #f5d0fe; }
.tag-atlas   { background: #ffffff; color: #92400e; border-color: #fde68a; }
