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

:root {
  --bg: #08090d;
  --card: #11131a;
  --border: #242733;
  --text: #f5f7fb;
  --muted: #969cab;
  --accent: #8b7cff;
  --accent2: #5eead4;
}

body {
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 50% -10%, #27234a 0%, transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.navbar {
  height: 72px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.badge {
  color: var(--muted);
  font-size: 13px;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
}

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

.hero {
  text-align: center;
  padding: 75px 0 45px;
}

.eyebrow {
  color: var(--accent2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -3px;
}

.hero h1 span {
  color: var(--accent);
}

.subtitle {
  max-width: 650px;
  margin: 25px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.workspace {
  padding-bottom: 80px;
}

.card {
  background: rgba(17, 19, 26, .92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 25px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.step-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

h2 {
  font-size: 19px;
}

textarea {
  width: 100%;
  min-height: 240px;
  resize: vertical;
  background: #0b0d12;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  outline: none;
}

textarea:focus {
  border-color: var(--accent);
}

.input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  color: var(--muted);
  font-size: 12px;
}

.primary-btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 10px;
}

.primary-btn {
  background: var(--accent);
  color: white;
  padding: 13px 20px;
}

.primary-btn:hover {
  opacity: .9;
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 9px 13px;
}

.hidden {
  display: none !important;
}

.loading {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.loading p {
  color: var(--muted);
  margin-top: 5px;
}

.spinner {
  width: 25px;
  height: 25px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

.results {
  margin-top: 25px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.result-header h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.result-header p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.progress-box {
  min-width: 110px;
  height: 90px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px;
  text-align: center;
}

.progress-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.progress-box strong {
  font-size: 28px;
  color: var(--accent2);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.result-grid .card,
.plan-card {
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-title > span {
  color: var(--accent2);
  font-weight: 800;
}

.section-title h3 {
  font-size: 16px;
}

.requirement {
  padding: 13px;
  background: #0b0d12;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 9px;
}

.requirement-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.priority {
  font-size: 10px;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 999px;
  background: #252235;
  color: #b9b0ff;
}

.category {
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}

.unclear {
  padding: 12px;
  border-left: 3px solid #fbbf24;
  background: #17140c;
  margin-bottom: 10px;
  color: #d8d2c2;
  line-height: 1.5;
}

.plan-step {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.plan-step:last-child {
  border-bottom: 0;
}

.step-circle {
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  font-weight: 800;
  font-size: 12px;
}

.plan-step p {
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}

.success-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 9px;
  background: #0b0d12;
}

.error {
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  background: #2a1215;
  border: 1px solid #542126;
  color: #ffb4bb;
}

footer {
  border-top: 1px solid var(--border);
  padding: 25px 6%;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .navbar {
    padding: 0 4%;
  }

  .badge {
    display: none;
  }

  .hero {
    padding-top: 50px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-header {
    flex-direction: column;
  }

  .progress-box {
    width: 100%;
  }

  .input-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .primary-btn {
    width: 100%;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}