* {
  box-sizing: border-box;
}

:root {
  --bg: #0a1a1f;
  --panel: #0f242d;
  --card: #102e38;
  --accent: #20c997;
  --accent-2: #f0b429;
  --text: #e7f2f1;
  --muted: #8fb0b0;
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "DM Mono", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(32, 201, 151, 0.12), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(240, 180, 41, 0.14), transparent 35%),
    linear-gradient(135deg, #07131a, #0a1a1f 50%, #0a1c24);
  min-height: 100vh;
}

.background-texture {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 98%, rgba(255, 255, 255, 0.02) 99%),
    linear-gradient(90deg, transparent 98%, rgba(255, 255, 255, 0.02) 99%);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.8;
  z-index: 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  padding: 56px 64px 28px;
  z-index: 1;
}

.hero__content {
  padding: 24px 28px;
  background: rgba(16, 46, 56, 0.7);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: 42px;
  line-height: 1.1;
  margin: 6px 0 12px;
}

.hero .lede {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 720px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__panel {
  background: linear-gradient(145deg, #0f242d, #0c1b23);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  align-content: start;
}

.panel__title {
  font-weight: 600;
  letter-spacing: 0.6px;
}

.panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.panel__note {
  color: var(--muted);
  margin: 0;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(32, 201, 151, 0.12);
  border: 1px solid rgba(32, 201, 151, 0.35);
  font-size: 12px;
  letter-spacing: 0.2px;
}

.btn {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  font-weight: 600;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), #1bb188);
  border-color: rgba(32, 201, 151, 0.6);
  color: #0c1316;
}

.btn.ghost {
  background: transparent;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 180, 41, 0.6);
}

.layout {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 18px;
  padding: 0 64px 56px;
  z-index: 1;
  position: relative;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.card__header h2 {
  margin: 0;
}

.card__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.practice {
  grid-column: 1;
}

.feedback {
  grid-column: 2;
}

.questions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.question {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
}

.question__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.question__prompt {
  margin: 6px 0 10px;
  font-weight: 600;
}

.options {
  display: grid;
  gap: 8px;
}

.option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}

.option:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.short-answer {
  width: 100%;
  min-height: 120px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  resize: vertical;
  font-family: "DM Mono", monospace;
}

.scoreline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.scoreline__item {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
}

.scoreline .label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.scoreline .value {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 700;
}

.feedback__body {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.feedback__item {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px;
  background: rgba(240, 180, 41, 0.06);
}

.feedback__item h4 {
  margin: 0 0 6px;
}

.feedback__foot {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}

.toggle input {
  display: none;
}

.toggle__slider {
  width: 42px;
  height: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  transition: background 0.2s ease;
}

.toggle__slider::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text);
  top: 3px;
  left: 4px;
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle__slider {
  background: rgba(32, 201, 151, 0.25);
}

.toggle input:checked + .toggle__slider::after {
  transform: translateX(16px);
}

.ref__list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}

.ref__item {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ref__item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.ref__tag {
  font-size: 12px;
  color: var(--muted);
}

.rubric__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 42px 24px 18px;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 0 24px 42px;
  }

  .feedback {
    grid-column: 1;
  }
}
