:root {
  --ink: #111827;
  --muted: #667085;
  --line: rgba(134, 155, 184, 0.28);
  --paper: #f6f9fc;
  --white: #ffffff;
  --blue: #216bff;
  --blue-dark: #0d54d8;
  --green: #11b981;
  --amber: #f5b84b;
  --coral: #ff6b6b;
  --cyan: #1ed6d1;
  --violet: #7c5cff;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
  --deep: #101828;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(33, 107, 255, 0.18), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(30, 214, 209, 0.16), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eef6f8 46%, #ffffff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select,
input,
textarea {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(219, 227, 238, 0.75);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(1.4);
}

.brand,
.nav-links,
.hero-actions,
.panel-header,
.tabs,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan), var(--green));
  font-size: 0.82rem;
  box-shadow: 0 0 24px rgba(30, 214, 209, 0.35);
}

.nav-links {
  gap: 26px;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-action,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
}

.nav-action,
.primary-button {
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 14px 34px rgba(33, 107, 255, 0.28);
  cursor: pointer;
}

.nav-action {
  padding: 0 18px;
}

.primary-button {
  padding: 0 22px;
}

.secondary-button {
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.ghost-button {
  border: 1px solid rgba(124, 92, 255, 0.26);
  padding: 0 16px;
  color: var(--blue-dark);
  background: rgba(124, 92, 255, 0.08);
  cursor: pointer;
}

.nav-action:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.mentor-prompts button:hover,
.filter-row button:hover,
.task-actions button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 70px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px) 44px;
}

.hero::after {
  content: "";
  position: absolute;
  right: 7vw;
  top: 96px;
  width: 30vw;
  height: 30vw;
  max-width: 520px;
  max-height: 520px;
  border: 1px solid rgba(33, 107, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(30, 214, 209, 0.08));
  transform: rotate(18deg);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 8vw 8vh auto;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(17, 185, 129, 0.18);
  transform: rotate(-12deg);
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.audience-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.audience-strip span {
  border: 1px solid rgba(33, 107, 255, 0.18);
  border-radius: 999px;
  padding: 9px 12px;
  color: #344054;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.pilot-panel,
.generator,
.results,
.feature-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.35);
}

.generator,
.results {
  border-top: 3px solid rgba(33, 107, 255, 0.32);
}

.feature-card:hover,
.timeline-item:hover,
.day-card:hover,
.project-card:hover,
.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(33, 107, 255, 0.34);
  box-shadow: 0 24px 54px rgba(33, 107, 255, 0.14);
}

.pilot-panel:hover,
.generator:hover,
.results:hover {
  border-color: rgba(30, 214, 209, 0.36);
}

.pilot-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.pilot-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(33, 107, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(17, 185, 129, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(135deg, black, transparent 72%);
  pointer-events: none;
}

.panel-header,
.route-map,
.signal-board {
  position: relative;
}

.panel-header {
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 800;
}

.status-pill {
  border-radius: 999px;
  padding: 7px 11px;
  color: #0d6b50;
  background: rgba(17, 185, 129, 0.14);
  font-size: 0.76rem;
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.signal-board div {
  border: 1px solid rgba(134, 155, 184, 0.26);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.signal-board span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-board strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.1rem;
}

.route-map {
  display: grid;
  gap: 18px;
}

.route-step {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.route-step p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.step-dot {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 7px rgba(245, 184, 75, 0.16);
}

.route-step.active .step-dot {
  background: var(--blue);
  box-shadow: 0 0 0 7px rgba(33, 107, 255, 0.16);
}

.features-band,
.workspace,
.readiness,
.mentor-band {
  padding: 78px clamp(18px, 5vw, 72px);
}

.section-heading,
.workspace-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  padding: 22px;
  box-shadow: none;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green), var(--coral));
  opacity: 0.72;
}

.feature-card:hover .feature-icon {
  transform: rotate(-4deg) scale(1.05);
}

.feature-card p {
  color: var(--muted);
  line-height: 1.62;
}

.feature-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), #2b3a67);
  font-size: 0.76rem;
  font-weight: 800;
}

.workspace {
  background:
    linear-gradient(180deg, rgba(16, 24, 40, 0.05), rgba(16, 24, 40, 0)),
    var(--white);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.generator,
.results {
  padding: 22px;
}

.field-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.split-fields {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 253, 255, 0.84);
  color: var(--ink);
  outline: 0;
}

select,
input {
  min-height: 44px;
  padding: 0 12px;
}

input[type="file"] {
  padding: 10px 12px;
}

textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(33, 107, 255, 0.12);
}

.full-button {
  width: 100%;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.results {
  min-height: 640px;
}

.tabs {
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f8fb;
}

.tab {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.tab.active {
  color: var(--ink);
  background: linear-gradient(180deg, var(--white), #eef6ff);
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.08);
}

.result-pane {
  display: none;
  padding-top: 22px;
}

.result-pane.active {
  display: block;
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.result-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.score {
  min-width: 86px;
  border-radius: 8px;
  padding: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--cyan));
  text-align: center;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(17, 185, 129, 0.22);
}

.score span,
.score small {
  display: block;
}

.score small {
  margin-top: 2px;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.timeline,
.weekly-grid,
.project-grid,
.skill-grid {
  display: grid;
  gap: 12px;
}

.timeline-item,
.day-card,
.project-card,
.skill-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(251, 253, 255, 0.86);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.skill-card {
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(33, 107, 255, 0.12), rgba(30, 214, 209, 0.08));
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card > * {
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 12px;
}

.timeline-item span,
.tag {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-item p,
.day-card p,
.project-card p,
.skill-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.insight-panel {
  margin-top: 14px;
  border: 1px solid rgba(17, 185, 129, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(17, 185, 129, 0.11), rgba(33, 107, 255, 0.07));
}

.insight-panel strong {
  display: block;
  margin-bottom: 6px;
}

.insight-panel p {
  margin-bottom: 0;
  color: #475467;
  line-height: 1.6;
}

.weekly-grid,
.project-grid,
.skill-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tech-strip,
.filter-row,
.mentor-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.task-editor,
.project-brief {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr minmax(130px, 0.6fr) auto;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(33, 107, 255, 0.18);
  border-radius: 8px;
  background: rgba(33, 107, 255, 0.055);
}

.project-brief {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.task-editor[hidden] {
  display: none;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.task-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-weight: 800;
}

.task-actions button:last-child {
  color: #b42318;
  background: rgba(255, 107, 107, 0.08);
}

.ai-suggestions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.project-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.tech-strip span,
.project-stack {
  border: 1px solid rgba(33, 107, 255, 0.2);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  background: rgba(33, 107, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 700;
}

.tech-strip span.known {
  color: #08604a;
  border-color: rgba(17, 185, 129, 0.32);
  background: rgba(17, 185, 129, 0.11);
}

.project-stack {
  display: inline-flex;
  margin-top: 14px;
  border-radius: 8px;
}

.task-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.task-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.filter-row button,
.mentor-prompts button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-weight: 800;
}

.filter-row button.active {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.mentor-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(16, 24, 40, 0.92), rgba(24, 43, 77, 0.92)),
    linear-gradient(135deg, rgba(33, 107, 255, 0.18), rgba(17, 185, 129, 0.16));
  color: var(--white);
}

.mentor-band .eyebrow,
.mentor-band h2 {
  color: var(--white);
}

.mentor-box {
  display: grid;
  gap: 14px;
}

.mentor-log {
  display: grid;
  max-height: 320px;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.mentor-message {
  max-width: 84%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  line-height: 1.55;
}

.mentor-message.ai {
  background: rgba(33, 107, 255, 0.08);
  color: var(--ink);
}

.mentor-message.user {
  justify-self: end;
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), #2b3a67);
}

.mentor-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.readiness {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 38px;
  align-items: start;
}

.readiness h2 {
  max-width: 620px;
}

.readiness-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.readiness-items span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-weight: 700;
}

footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  background: var(--deep);
}

footer span:first-child {
  color: var(--white);
  font-weight: 800;
}

.is-generating .results {
  animation: pulse-panel 420ms ease;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@keyframes pulse-panel {
  0% {
    transform: scale(0.995);
    box-shadow: var(--shadow);
  }
  50% {
    transform: scale(1.004);
    box-shadow: 0 30px 80px rgba(33, 107, 255, 0.22);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 980px) {
  .hero,
  .tool-layout,
  .readiness,
  .mentor-band,
  .ai-suggestions {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
  }

  .nav-links,
  .nav-action {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: 3.1rem;
  }

  .feature-grid,
  .weekly-grid,
  .project-grid,
  .skill-grid,
  .split-fields,
  .button-row,
  .task-editor,
  .project-brief,
  .mentor-input,
  .signal-board {
    grid-template-columns: 1fr;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
