@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300&family=Work+Sans:wght@400;500;600;700&display=swap");

:root {
  --navy: #0d1137;
  --deep: #041f3f;
  --teal: #6fc2bc;
  --gold: #f4b64e;
  --cyan: #32d6ff;
  --ink: #1f2937;
  --heading: #0b2441;
  --muted: #667085;
  --subtle: #8a94a6;
  --line: #e4e8ef;
  --line-strong: #d6dde8;
  --soft: #fafafa;
  --panel: #ffffff;
  --code: #f6f8fb;
  --ok: #2f9e73;
  --danger: #d94b4b;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(13, 17, 55, .04);
}

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

html {
  background: var(--soft);
  scroll-behavior: smooth;
}

body {
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, #ffffff 0, #ffffff 286px, transparent 286px),
    var(--soft);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

::selection {
  background: rgba(111, 194, 188, .26);
  color: var(--navy);
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 286px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 28px 18px 36px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.sidebar-logo {
  padding: 0 10px 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.sidebar-logo .brand {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar-logo .brand::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.sidebar-logo .tagline {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.sidebar-section {
  padding: 16px 10px 6px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px 10px;
  color: #475467;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  border-radius: 7px;
  border-left: 3px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.sidebar a:hover {
  background: #f4f7fb;
  color: var(--heading);
}

.sidebar a.active {
  background: rgba(111, 194, 188, .13);
  color: var(--navy);
  border-left-color: var(--teal);
  font-weight: 600;
}

.sidebar-badge {
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.badge-teal {
  background: rgba(111, 194, 188, .2);
  color: #236863;
}

.badge-gold {
  background: rgba(244, 182, 78, .22);
  color: #8a5a00;
}

.badge-navy {
  background: rgba(13, 17, 55, .08);
  color: var(--navy);
}

.main {
  flex: 1;
  width: min(100%, 1020px);
  max-width: 1020px;
  padding: 54px 56px 88px;
}

.page-header {
  margin-bottom: 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.page-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #28736d;
  margin-bottom: 8px;
}

.page-title {
  max-width: 760px;
  font-size: 38px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.18;
  margin-bottom: 14px;
}

.page-desc {
  max-width: 720px;
  font-size: 16px;
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.intro-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.intro-card .ic-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(111, 194, 188, .14);
  font-size: 18px;
}

.intro-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}

.intro-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.demo-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  overflow: hidden;
}

.demo-header {
  padding: 26px 28px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.demo-num {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.num-teal {
  background: rgba(111, 194, 188, .2);
  color: #236863;
}

.num-gold {
  background: rgba(244, 182, 78, .24);
  color: #815403;
}

.num-navy {
  background: var(--navy);
  color: #ffffff;
}

.num-cyan {
  background: rgba(50, 214, 255, .16);
  color: var(--deep);
}

.demo-header-info {
  flex: 1;
}

.demo-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 5px;
}

.demo-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.demo-objective {
  max-width: 680px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.demo-tools {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #475467;
}

.tool-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.demo-duration {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(13, 17, 55, .06);
  color: var(--navy);
  height: fit-content;
}

.demo-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  background: #fbfcfe;
}

.tab-btn {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.tab-btn:hover {
  color: var(--heading);
  background: #ffffff;
  border-color: var(--line);
}

.tab-btn.active {
  color: var(--navy);
  background: #ffffff;
  border-color: var(--line-strong);
  box-shadow: inset 0 -2px 0 var(--teal);
  font-weight: 600;
}

.tab-content {
  display: block;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.tab-content:last-child {
  border-bottom: none;
}

.tab-content::before {
  display: block;
  font-family: "Barlow Condensed", "Work Sans", sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 18px;
}

.tab-content[id^="setup-"]::before {
  content: "Setup";
}

.tab-content[id^="prompt-"]::before {
  content: "Prompt";
}

.tab-content[id^="files-"]::before {
  content: "Data and files";
}

.tab-content[id="files-07"]::before {
  content: "Instructions GPT";
}

.tab-content[id^="output-"]::before {
  content: "Expected output";
}

.steps {
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.step:last-child {
  margin-bottom: 0;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 4px;
}

.step-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.step-body code,
.app-note code {
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 12px;
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--deep);
}

.prompt-block {
  background: #101828;
  border: 1px solid #1d2939;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #0d1137;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.prompt-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}

.prompt-block .step-note {
  padding: 14px 20px 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.6;
}

.copy-btn {
  display: inline-block;
  font-family: "Work Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  transform: translateY(-1px);
}

.copy-btn.copied {
  color: var(--teal);
}

.file-actions .copy-btn {
  color: var(--heading);
  background: #ffffff;
  border-color: var(--line-strong);
}

.file-actions .copy-btn:hover {
  color: var(--navy);
  background: #f8fafc;
  border-color: var(--teal);
}

.file-actions .copy-btn.copied {
  color: #28736d;
}

.file-actions .download-btn {
  color: #815403;
  background: rgba(244, 182, 78, .14);
  border-color: rgba(244, 182, 78, .32);
}

.file-actions .download-btn:hover {
  color: #5f3e00;
  background: rgba(244, 182, 78, .2);
  border-color: var(--gold);
}

.prompt-text {
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
  padding: 20px;
  white-space: pre-wrap;
  word-break: break-word;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.file-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.file-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  background: #fbfcfe;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease;
}

.file-toggle:hover {
  background: #f4f7fb;
}

.file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.file-icon {
  font-size: 15px;
}

.file-ext {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: #eef2f6;
  border-radius: 999px;
  padding: 1px 7px;
}

.toggle-arrow {
  font-size: 12px;
  color: var(--muted);
  transition: transform .2s ease;
}

.file-block.open .toggle-arrow {
  transform: rotate(90deg);
}

.file-body {
  display: none;
}

.file-block.open .file-body {
  display: block;
}

.file-actions {
  display: flex;
  justify-content: flex-end;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(111, 194, 188, .06);
  gap: 8px;
}

.file-content {
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  color: #344054;
  padding: 18px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 420px;
  overflow-y: auto;
  background: #ffffff;
}

.checklist {
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist .check {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 3px;
  cursor: pointer;
  background: #ffffff;
  transition: background .15s ease, border-color .15s ease;
}

.checklist .check:hover {
  border-color: var(--teal);
  background: rgba(111, 194, 188, .08);
}

.output-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.output-item {
  padding: 14px 16px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.output-item::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 28px;
}

.app-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.app-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}

.app-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.app-link {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: background .15s ease, transform .15s ease;
}

.app-link:hover {
  background: var(--deep);
  transform: translateY(-1px);
}

.app-card-body {
  padding: 20px 22px;
}

.knowledge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.knowledge-list a,
.knowledge-list span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.knowledge-list a:hover {
  border-color: var(--teal);
  color: var(--navy);
}

.app-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.section-label {
  font-family: "Barlow Condensed", "Work Sans", sans-serif;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 14px;
}

.tip-box {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(111, 194, 188, .08);
  border: 1px solid rgba(111, 194, 188, .26);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.55;
}

.tip-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.file-content::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.file-content::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.file-content::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
  background: #d0d5dd;
  border-radius: 999px;
}

.overview-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.overview-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 15px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.overview-link strong {
  color: var(--heading);
  font-size: 15px;
  font-weight: 600;
}

.overview-link span {
  color: var(--muted);
  font-size: 13px;
}

.overview-link:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 17, 55, .07);
}

@media (max-width: 900px) {
  body {
    background: var(--soft);
  }

  .layout {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main {
    width: 100%;
    padding: 28px 20px 52px;
  }

  .page-header {
    margin-bottom: 28px;
    padding-bottom: 22px;
  }

  .page-title {
    font-size: 30px;
  }

  .intro-grid,
  .output-grid {
    grid-template-columns: 1fr;
  }

  .demo-header,
  .app-card-header,
  .overview-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .demo-header,
  .tab-content,
  .app-grid {
    padding: 22px;
  }

  .demo-tabs {
    grid-template-columns: 1fr;
    padding: 12px;
  }
}
