:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-soft: #fffaf1;
  --text: #1f2933;
  --muted: #5f6b7a;
  --line: #e6ded1;
  --brand: #246b5a;
  --brand-strong: #184c40;
  --accent: #f3b84f;
  --accent-soft: #fff1cf;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(243, 184, 79, 0.25), transparent 34rem),
    linear-gradient(180deg, #fffaf1 0%, var(--bg) 34rem);
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(36, 107, 90, 0.22);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-color: var(--line);
  color: var(--brand-strong);
  background: rgba(255, 255, 255, 0.62);
}

.main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  flex: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 48px 0 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

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

.compact-actions {
  align-items: center;
  margin-top: 18px;
}

.compact-actions span {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--brand-strong);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

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

.button:hover {
  transform: translateY(-1px);
}

.status-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.status-panel h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
}

.status-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.status-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.status-row dt {
  color: var(--muted);
}

.status-row dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.section {
  padding: 34px 0;
}

.section-header {
  max-width: 700px;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-header p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(31, 41, 51, 0.08);
  text-decoration: none;
}

.card.public {
  background: linear-gradient(135deg, #ffffff 0%, #fff7e6 100%);
}

.card.private {
  background: linear-gradient(135deg, #ffffff 0%, #eef7f4 100%);
}

.card-kicker {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card h3 {
  margin: 16px 0 10px;
  font-size: 1.45rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-cta {
  margin-top: auto;
  padding-top: 22px;
  color: var(--brand-strong);
  font-weight: 800;
}

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

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.trail {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.trail a {
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: none;
}

.list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.75);
}

.notice {
  border: 1px solid #d5c08a;
  border-radius: var(--radius);
  padding: 18px;
  background: var(--accent-soft);
  color: #594311;
  line-height: 1.7;
}

.doris-section {
  padding-top: 28px;
}

.doris-hero,
.doris-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.doris-hero {
  margin-bottom: 24px;
}

.doris-status,
.doris-chat,
.mini-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.08);
}

.doris-status {
  padding: 20px;
}

.doris-status h2,
.doris-panel-header h2,
.mini-panel h2 {
  margin: 0;
  font-size: 1.05rem;
}

.doris-chat {
  min-width: 0;
  overflow: hidden;
}

.doris-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.doris-panel-header p,
.mini-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.pill.muted {
  color: var(--muted);
}

.chat-preview {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: #fbfaf7;
}

.message {
  max-width: 82%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: #fff;
}

.message span {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.message p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.message.user {
  justify-self: end;
  border-color: #cfe1db;
  background: #eef7f4;
}

.prompt-box {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 18px;
  background: #fff;
}

.prompt-box label {
  color: var(--text);
  font-weight: 800;
}

.prompt-box textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--muted);
  background: #f5f2ec;
  font: inherit;
}

.prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.prompt-actions span {
  color: var(--muted);
  font-size: 0.92rem;
}

.prompt-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  opacity: 0.5;
}

.doris-side {
  display: grid;
  gap: 14px;
}

.mini-panel {
  padding: 18px;
}

.task-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.task-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.task-list span {
  width: 10px;
  height: 10px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: #fff;
}

.lab-overview {
  padding: 34px 0 0;
}

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

.metric,
.example-card,
.knowledge-view-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(31, 41, 51, 0.07);
}

.metric {
  padding: 16px;
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--brand-strong);
  font-size: 2rem;
  line-height: 1;
}

.metric p,
.example-card p,
.view-summary p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.knowledge-view-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 20px;
  margin-top: 16px;
  padding: 18px;
}

.view-summary h3,
.flow-panel h3,
.example-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-list span {
  border: 1px solid #cfe1db;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--brand-strong);
  background: #eef7f4;
  font-size: 0.8rem;
  font-weight: 800;
}

.flow-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.flow-list span {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
}

.example-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.example-card {
  padding: 16px;
}

.example-card h3 {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .cards,
  .feature-grid,
  .doris-hero,
  .doris-workspace,
  .metric-grid,
  .knowledge-view-panel,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 26px;
  }

  .card {
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  .main {
    width: min(100% - 24px, 1120px);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .status-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .status-row dd {
    text-align: left;
  }

  .doris-panel-header,
  .prompt-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .message {
    max-width: 100%;
  }
}
