* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f8fafc;
  line-height: 1.6;
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
  color: #f8fafc;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: #60a5fa;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin: 0;
}

.subtitle {
  max-width: 720px;
  margin: 1.5rem auto 2rem;
  font-size: 1.1rem;
  color: #d1d5db;
}

.button {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

main {
  padding: 3rem 0 4rem;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

section p,
section li,
pre {
  color: #334155;
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.05);
}

.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 0.75rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

ul {
  padding-left: 1.25rem;
}

.footer {
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  color: #64748b;
}

/* Analyzer Styles */
.analyzer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .analyzer-container {
    grid-template-columns: 1fr;
  }
}

.input-section,
.results-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #111827;
  font-size: 0.95rem;
}

textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  color: #111827;
  background: #f8fafc;
  transition: border-color 0.2s;
}

textarea:focus,
select:focus {
  outline: none;
  border-color: #38bdf8;
  background: #ffffff;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

.button-primary {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.button-primary:hover {
  background: #22d3ee;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(56, 189, 248, 0.3);
}

.button-primary:active {
  transform: translateY(0);
}

/* Results Section */
.results-section h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.risk-badge {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.risk-badge.critical {
  background: #fee2e2;
  color: #991b1b;
}

.risk-badge.high {
  background: #fef3c7;
  color: #92400e;
}

.risk-badge.medium {
  background: #fef08a;
  color: #713f12;
}

.risk-badge.low {
  background: #dcfce7;
  color: #15803d;
}

.risk-badge.safe {
  background: #d1fae5;
  color: #065f46;
}

.findings-list {
  margin-bottom: 1.5rem;
}

.finding {
  padding: 1rem;
  margin-bottom: 1rem;
  background: #f8fafc;
  border-left: 4px solid #38bdf8;
  border-radius: 0.25rem;
}

.finding.critical {
  border-left-color: #dc2626;
  background: #fef2f2;
}

.finding.high {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.finding.medium {
  border-left-color: #eab308;
  background: #fefce8;
}

.finding.low {
  border-left-color: #22c55e;
  background: #f0fdf4;
}

.finding-title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.finding-desc {
  font-size: 0.9rem;
  color: #475569;
}

.summary-box {
  padding: 1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 0.5rem;
  color: #0c4a6e;
  line-height: 1.6;
}

.error-message {
  padding: 1rem;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  color: #991b1b;
  margin-bottom: 1rem;
}

/* Loading Spinner */
.spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.spinner-dot {
  width: 30px;
  height: 30px;
  border: 3px solid #e2e8f0;
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

