body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 60px 20px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  margin-bottom: 18px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-brand {
  display: flex;
  justify-content: center;
}

.hero-brand img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(37, 99, 235, 0.1));
}

.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.hero-headline-line {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}

.hero-copy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 34px;
}

.pitch-grid {
  display: flex;
  gap: 16px;
  margin: 28px 0 34px;
  flex-wrap: wrap;
}

.pitch-card {
  flex: 1;
  min-width: 220px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  text-align: left;
}

.pitch-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}

.pitch-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.pitch-copy {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.section-kicker {
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin: 44px 0 18px;
}

/* ENDPOINT CARD */
.endpoint {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.endpoint-header {
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.endpoint-header:hover {
  background: #f1f5f9;
}

.endpoint-caret {
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.endpoint:hover .endpoint-caret {
  color: #2563eb;
}

.method {
  font-weight: 600;
  color: #2563eb;
}

.upload-box {
  display: block;
  border: 2px dashed #cbd5f5;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-box:hover {
  border-color: #2563eb;
  background: #f1f5ff;
}

.upload-content {
  pointer-events: none;
}

.upload-icon {
  font-size: 28px;
  color: #2563eb;
  margin-bottom: 10px;
  line-height: 1;
}

.upload-text {
  font-weight: 500;
  color: #0f172a;
}

.upload-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 5px;
}

/* SMOOTH ANIMATION */
.endpoint-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: all 0.3s ease;
  border-top: 1px solid transparent;
}

.endpoint.open .endpoint-body {
  max-height: 500px;
  padding: 20px;
  border-top: 1px solid #e2e8f0;
}

.endpoint.open .endpoint-caret {
  transform: rotate(180deg);
}

textarea {
  width: 100%;
  max-width: 100%;
  min-height: 120px;
  overflow: hidden;
  resize: none;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #cbd5f5;
  margin-bottom: 10px;
}

input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #cbd5f5;
}

button {
  padding: 10px 16px;
  border: none;
  background: #2563eb;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

button:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

.example {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 5px;
}

pre {
  background: #f1f5f9;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}

.section-shell {
  margin-top: 80px;
  padding: 0 20px;
}

.section-panel {
  background: #f1f5f9;
  border-radius: 18px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-panel.compare-panel {
  max-width: 840px;
}

.section-panel.mission-panel {
  max-width: 790px;
}

.compare-grid {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.compare-card {
  flex: 1;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-width: 0;
  padding: 20px;
  text-align: left;
}

.compare-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.compare-note {
  max-width: 620px;
  margin: 0 auto 24px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.compare-actions button.secondary {
  background: #0f172a;
}

.compare-output {
  margin-top: 20px;
  background: white;
  border: 1px solid #dbeafe;
  min-height: 180px;
  padding: 18px;
}

.demo-insights {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 20px;
}

.insight-card {
  background: white;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 18px;
  min-width: 0;
}

.insight-label {
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.verdict-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.verdict-subtitle {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.verdict-title.is-neutral {
  color: #0f172a;
}

.verdict-title.is-safe {
  color: #15803d;
}

.verdict-title.is-alert {
  color: #b91c1c;
}

.verdict-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.verdict-badge {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
}

.verdict-badge.is-neutral {
  background: #e2e8f0;
  color: #334155;
}

.verdict-badge.is-safe {
  background: #dcfce7;
  color: #166534;
}

.verdict-badge.is-alert {
  background: #fee2e2;
  color: #991b1b;
}

.signal-list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 14px;
  line-height: 1.7;
}

.signal-list li + li {
  margin-top: 6px;
}

.attacker-output {
  margin-top: 0;
  min-height: 260px;
}

.ai-panel {
  margin-top: 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 18px;
}

.ai-title {
  color: #2563eb;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.ai-copy {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.ai-output {
  min-height: 140px;
  margin-top: 14px;
}

.loading-overlay {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
}

.loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.loading-card {
  position: relative;
  width: min(250px, calc(100vw - 48px));
  padding: 16px 18px 14px;
  border: 1px solid rgba(191, 219, 254, 0.45);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.16);
  text-align: center;
  overflow: hidden;
}

.loading-card::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto;
  height: 90px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22), transparent 70%);
  filter: blur(14px);
  animation: driftGlow 4.5s ease-in-out infinite;
}

.loading-badge {
  position: relative;
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loading-orbit {
  position: relative;
  width: 66px;
  height: 66px;
  margin: 12px auto 10px;
}

.loading-ring,
.loading-ring::before,
.loading-ring::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.loading-ring {
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.loading-ring::before,
.loading-ring::after {
  content: "";
  border: 2px solid transparent;
}

.loading-ring::before {
  inset: 4px;
  border-top-color: #60a5fa;
  border-right-color: rgba(96, 165, 250, 0.45);
  animation: spinForward 1.35s linear infinite;
}

.loading-ring::after {
  inset: 12px;
  border-bottom-color: #38bdf8;
  border-left-color: rgba(56, 189, 248, 0.45);
  animation: spinReverse 1.8s linear infinite;
}

.loading-core {
  position: absolute;
  inset: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), rgba(255, 255, 255, 0.75));
  box-shadow: inset 0 0 18px rgba(125, 211, 252, 0.18);
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.loading-title {
  position: relative;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.loading-copy {
  position: relative;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.loading-signal {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 5px;
  margin-top: 12px;
  height: 18px;
}

.loading-signal span {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #93c5fd, #2563eb);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
  animation: signalPulse 1.2s ease-in-out infinite;
}

.loading-signal span:nth-child(1) {
  height: 7px;
  animation-delay: 0s;
}

.loading-signal span:nth-child(2) {
  height: 11px;
  animation-delay: 0.12s;
}

.loading-signal span:nth-child(3) {
  height: 15px;
  animation-delay: 0.24s;
}

.loading-signal span:nth-child(4) {
  height: 10px;
  animation-delay: 0.36s;
}

.loading-signal span:nth-child(5) {
  height: 6px;
  animation-delay: 0.48s;
}

@keyframes spinForward {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes signalPulse {
  0%, 100% {
    transform: scaleY(0.75);
    opacity: 0.55;
  }
  50% {
    transform: scaleY(1.2);
    opacity: 1;
  }
}

@keyframes driftGlow {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(12px) scale(1.08);
  }
}

@media (max-width: 720px) {
  .container {
    padding-top: 40px;
  }

  .hero {
    gap: 8px;
  }

  .hero-brand {
    justify-content: center;
  }

  .hero-brand img {
    width: min(100%, 220px);
  }

  .hero-headline {
    align-items: center;
    text-align: center;
  }

  .compare-grid,
  .compare-actions {
    flex-direction: column;
  }

  .demo-insights {
    grid-template-columns: 1fr;
  }
}
</style>
