:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #dde5ef;
  --paper: #f7f9ff;
  --panel: rgba(255, 255, 255, 0.94);
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #d9fbf5;
  --coral: #f15f5f;
  --coral-soft: #ffe3df;
  --violet: #7c5cff;
  --violet-soft: #ede8ff;
  --gold: #f4aa24;
  --gold-soft: #fff0c9;
  --blue: #2276d2;
  --blue-soft: #e5f1ff;
  --shadow: 0 22px 60px rgba(37, 48, 83, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(13, 148, 136, 0.20), transparent 32%),
    linear-gradient(135deg, #fbfcff 0%, #eef6ff 42%, #fff7eb 100%);
  color: var(--ink);
}

button,
textarea,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px;
}

.hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.94), rgba(35, 65, 117, 0.88)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  width: min(820px, 100%);
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 6vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-text {
  width: min(650px, 100%);
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.55;
}

.hero-actions,
.actions,
.skill-cloud,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-link,
.primary-button,
.secondary-button,
.ghost-button,
.file-button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  white-space: nowrap;
}

.hero-link,
.primary-button {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.24);
}

.hero-link:hover,
.primary-button:hover {
  background: var(--teal-dark);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(12px);
}

.install-button {
  background: #fff;
  color: var(--ink);
}

.install-button[hidden] {
  display: none;
}

.secondary-button,
.file-button {
  background: #eef3ff;
  color: var(--ink);
}

.hero-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.path-card {
  min-height: 156px;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  align-items: end;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.path-card.coral {
  background: linear-gradient(145deg, #ff806f, #e8455c);
}

.path-card.teal {
  background: linear-gradient(145deg, #2dd4bf, #0f766e);
  transform: translateY(26px);
}

.path-card.violet {
  background: linear-gradient(145deg, #9b87ff, #6543e8);
}

.path-card.gold {
  background: linear-gradient(145deg, #ffd166, #f59e0b);
  transform: translateY(26px);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 18px;
}

.input-panel,
.results {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.input-panel {
  min-height: 720px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

h2 {
  margin-bottom: 5px;
  font-size: 1.18rem;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.panel-heading p,
.empty-state p,
.card p,
.project-meta,
.summary-strip p,
.section-card small {
  color: var(--muted);
}

.panel-heading p {
  margin-bottom: 0;
  line-height: 1.45;
}

.file-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

textarea {
  width: 100%;
  flex: 1;
  min-height: 420px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: #fbfdff;
  line-height: 1.5;
}

textarea:focus {
  outline: 4px solid rgba(13, 148, 136, 0.18);
  border-color: var(--teal);
}

.results {
  min-height: 720px;
  padding: 18px;
  overflow: hidden;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric-card {
  border-radius: 8px;
  padding: 14px;
  min-height: 94px;
}

.metric-card.teal {
  background: var(--teal-soft);
}

.metric-card.coral {
  background: var(--coral-soft);
}

.metric-card.violet {
  background: var(--violet-soft);
}

.metric-card.gold {
  background: var(--gold-soft);
}

.summary-strip span {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.metric-card.teal span {
  color: var(--teal-dark);
}

.metric-card.coral span {
  color: #c73749;
}

.metric-card.violet span {
  color: #6543e8;
}

.metric-card.gold span {
  color: #a96500;
}

.summary-strip p {
  margin: 9px 0 0;
  font-size: 0.86rem;
  font-weight: 750;
}

.section-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.section-card {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fff;
  color: var(--ink);
  display: grid;
  gap: 8px;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.section-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 48, 83, 0.12);
}

.section-card.active {
  border-color: transparent;
  background: linear-gradient(145deg, #172033, #315c9d);
  color: #fff;
}

.section-card.active small {
  color: rgba(255, 255, 255, 0.78);
}

.section-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--violet-soft);
  color: #6543e8;
  font-weight: 900;
}

.section-card:nth-child(2) .section-icon {
  background: var(--coral-soft);
  color: #c73749;
}

.section-card:nth-child(3) .section-icon {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.section-card:nth-child(4) .section-icon {
  background: var(--gold-soft);
  color: #a96500;
}

.section-card.active .section-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.empty-state {
  min-height: 420px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 30px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(13, 148, 136, 0.08)),
    #fff;
}

.empty-state h2 {
  margin-bottom: 8px;
  font-size: 1.55rem;
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.topic-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.5fr) minmax(180px, 1fr);
  gap: 14px;
  border-left: 6px solid var(--teal);
}

.pill-row,
.task-list,
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pill {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.pill.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill.amber {
  background: var(--gold-soft);
  color: #a96500;
}

.pill.rose {
  background: var(--coral-soft);
  color: #c73749;
}

.task {
  padding: 10px 12px;
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: #f8fbff;
}

.task strong {
  display: block;
  margin-bottom: 3px;
}

.skill-cloud {
  align-items: center;
}

.skill-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fbfdff;
  font-weight: 800;
}

.project-card {
  display: grid;
  gap: 10px;
  border-left: 6px solid var(--coral);
}

.project-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.project-actions span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfdff;
  font-weight: 750;
}

.plan-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.step-number {
  inline-size: 38px;
  block-size: 38px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--violet), var(--blue));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

@media (max-width: 1080px) {
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .hero-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .path-card {
    min-height: 128px;
  }

  .path-card.teal,
  .path-card.gold {
    transform: none;
  }

  .input-panel,
  .results {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .summary-strip,
  .section-picker,
  .hero-board,
  .topic-card {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .shell {
    padding: 14px;
  }

  .hero-copy {
    padding: 24px;
  }

  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-strip,
  .section-picker,
  .hero-board,
  .topic-card {
    grid-template-columns: 1fr;
  }

  .ghost-button,
  .hero-link,
  .file-button,
  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
