:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #596273;
  --line: #d7ddd8;
  --paper: #fbfaf6;
  --paper-strong: #ffffff;
  --forest: #155e54;
  --forest-dark: #0b3f39;
  --amber: #c66a20;
  --clay: #8f4f32;
  --blue: #245c73;
  --shadow: 0 18px 46px rgba(17, 24, 39, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

.site-nav,
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(215, 221, 216, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  padding: 8px 14px;
  color: #fff !important;
  background: var(--forest);
  border-radius: 8px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(690px, calc(100svh - 116px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #10151c;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(10, 16, 22, 0.9), rgba(10, 16, 22, 0.5), rgba(10, 16, 22, 0.12)), url("/assets/hero-aspen-ai.png");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  width: min(720px, calc(100% - 40px));
  margin-left: clamp(20px, 8vw, 96px);
  padding: 80px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #f2b56b;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 44px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--forest);
}

.button.primary:hover {
  background: var(--forest-dark);
}

.button.secondary {
  color: var(--forest);
  background: #fff;
  border-color: var(--line);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.button.small {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
}

.button.full {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 6vw, 72px);
}

.intro-band {
  background: #fff;
}

.section-grid,
.two-column {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
}

.section-grid p,
.two-column p,
.product-band p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 34px;
}

.capability-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.capability-grid article {
  min-height: 238px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.capability-grid span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--amber);
  font-weight: 900;
}

.capability-grid p,
.plain-list p {
  color: var(--muted);
}

.product-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  background: #f1eee6;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-main {
  min-height: calc(100svh - 72px);
}

.product-hero {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 72px) 48px;
  max-width: 1120px;
}

.product-hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 6vw, 72px);
}

.product-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
}

.workflow-strip {
  max-width: 1180px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 0;
}

.workflow-strip div {
  min-height: 120px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.workflow-strip span {
  display: block;
  color: var(--clay);
  font-weight: 900;
  margin-bottom: 18px;
}

.site-footer {
  padding: 32px clamp(20px, 6vw, 72px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #e6ebe8;
  background: #111827;
}

.site-footer p {
  margin: 6px 0 0;
  color: #aeb7c2;
}

.site-footer a {
  color: #e6ebe8;
  text-decoration: none;
  margin-left: 18px;
}

.auth-page {
  min-height: 100svh;
  background: #111827 url("/assets/hero-aspen-ai.png") center / cover fixed;
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.72);
}

.auth-shell {
  position: relative;
  min-height: 100svh;
  padding: 32px 20px;
  display: grid;
  place-items: center;
}

.auth-brand {
  position: absolute;
  top: 28px;
  left: clamp(20px, 5vw, 56px);
  color: #fff;
}

.auth-brand small {
  color: rgba(255, 255, 255, 0.72);
}

.auth-panel {
  width: min(440px, 100%);
  padding: 32px;
  background: rgba(251, 250, 246, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  margin-bottom: 26px;
  font-size: 34px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

form {
  display: grid;
  gap: 16px;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--clay);
}

.auth-link {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.auth-link a {
  color: var(--forest);
  font-weight: 800;
}

.app-page {
  background: #f5f4ef;
}

.app-topbar {
  gap: 18px;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

[data-quota-chip] {
  padding: 5px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--forest);
  font-weight: 800;
}

.app-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: calc(100svh - 72px);
}

.session-panel {
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-heading h1,
.panel-heading h2 {
  margin: 0;
}

.panel-heading h1 {
  font-size: 32px;
}

.panel-heading h2 {
  font-size: 20px;
}

.session-list {
  display: grid;
  gap: 10px;
}

.session-item {
  width: 100%;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  text-align: left;
  cursor: pointer;
}

.session-item strong,
.session-item span {
  display: block;
}

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

.workbench {
  padding: clamp(18px, 4vw, 42px);
}

.task-form,
.runtime-panel {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

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

.wide {
  grid-column: 1 / -1;
}

.runtime-panel {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.status-row strong {
  color: var(--ink);
}

.display-text {
  min-height: 88px;
  padding: 16px;
  border-radius: 8px;
  background: #f5f4ef;
  border: 1px solid var(--line);
  white-space: pre-wrap;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.result-card {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.result-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.result-card strong {
  display: block;
  margin-top: 8px;
  color: var(--forest);
  font-size: 22px;
}

.json-box {
  max-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: #111827;
  color: #d8f3dc;
  font-size: 12px;
}

.json-box:empty {
  display: none;
}

@media (max-width: 980px) {
  .capability-grid,
  .workflow-strip,
  .form-grid,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-layout,
  .section-grid,
  .two-column,
  .product-band {
    grid-template-columns: 1fr;
  }

  .session-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    min-height: calc(100svh - 112px);
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-left: 18px;
  }

  .capability-grid,
  .workflow-strip,
  .form-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .account-chip,
  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer a {
    display: inline-block;
    margin: 12px 12px 0 0;
  }
}
