:root {
  color-scheme: light;
  --ink: #15161a;
  --muted: #606878;
  --line: #dfe3ea;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #be7c2f;
  --danger: #b42318;
  --ok: #047857;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--soft);
}
a { color: var(--brand-dark); text-decoration: none; }
.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { font-weight: 780; font-size: 19px; color: var(--ink); }
.brand span { color: var(--brand); }
nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
nav form { margin: 0; }
.nav-cta { border: 1px solid var(--brand); padding: 8px 12px; border-radius: 6px; }
.link-button { border: 0; background: transparent; color: var(--brand-dark); cursor: pointer; font: inherit; padding: 0; }

.hero {
  min-height: min(760px, calc(100svh - 112px));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 48px;
  align-items: center;
  padding: 56px min(7vw, 96px);
  background:
    linear-gradient(110deg, rgba(13, 23, 31, .94), rgba(42, 47, 50, .7)),
    url("https://images.unsplash.com/photo-1516035069371-29a1b244cc32?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: white;
}
.hero h1 { font-size: clamp(42px, 6vw, 74px); line-height: 1.02; max-width: 900px; margin: 12px 0 20px; letter-spacing: 0; }
.lead { font-size: 20px; line-height: 1.7; max-width: 760px; color: rgba(255,255,255,.86); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-size: 12px; font-weight: 760; margin: 0 0 8px; }
.hero .eyebrow { color: #f3c98b; }
.hero-actions, .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-weight: 700;
  cursor: pointer;
}
.button.primary { background: var(--brand); color: white; border-color: var(--brand); }
.button.secondary { background: white; color: var(--ink); }
.button.full { width: 100%; }
.hero-panel { display: grid; gap: 14px; }
.metric { background: rgba(28,36,42,.72); border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 20px; backdrop-filter: blur(10px); }
.metric span, .label { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.metric span { color: rgba(255,255,255,.7); }
.metric strong { font-size: 24px; }
.band, .page { padding: 48px min(6vw, 88px); }
.narrow { max-width: 980px; margin: 0 auto; }
.section-title h2, .page h1 { margin: 0; font-size: 34px; letter-spacing: 0; }
.feature-grid, .summary-grid, .grid-2, .detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; }
.feature-grid article, .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(20,30,40,.04);
}
.panel { margin-bottom: 18px; }
.panel h1, .panel h2, .feature-grid h3 { margin-top: 0; }
.auth-shell { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 32px; }
.form-panel { width: min(440px, 100%); }
label { display: grid; gap: 7px; margin: 0 0 16px; font-weight: 650; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cbd3df;
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
  background: white;
}
textarea { resize: vertical; }
.muted { color: var(--muted); }
.alert { background: #fff0ed; color: var(--danger); border: 1px solid #ffd1c9; padding: 12px 14px; border-radius: 6px; margin-bottom: 16px; }
.success { border-color: #9ed8c7; background: #effaf6; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.status { display: inline-flex; border-radius: 999px; padding: 4px 9px; background: #eef2f7; color: #334155; font-weight: 750; font-size: 12px; }
.status.completed { background: #dcfce7; color: #166534; }
.status.failed { background: #fee2e2; color: #991b1b; }
.status.running, .status.queued { background: #fef3c7; color: #92400e; }
.prompt-box { white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
video { width: 100%; border-radius: 8px; background: #111; margin: 18px 0; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.inline-form input { max-width: 320px; }
.site-footer { padding: 28px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); background: white; }

@media (max-width: 820px) {
  .site-header { padding: 0 16px; }
  nav { gap: 10px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; padding: 40px 20px; }
  .feature-grid, .summary-grid, .grid-2, .detail-grid { grid-template-columns: 1fr; }
  .band, .page { padding: 32px 18px; }
  .toolbar { align-items: flex-start; flex-direction: column; }
}
