:root {
  --ink: #12110f;
  --ink-2: #1b1916;
  --panel: rgba(32, 28, 24, 0.72);
  --paper: #f3ead7;
  --paper-dim: #c8bba3;
  --muted: #8f8576;
  --line: rgba(243, 234, 215, 0.12);
  --accent: #e24b3a;
  --accent-soft: rgba(226, 75, 58, 0.16);
  --ginger: #d28c4b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --sans: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(165deg, #12110f 0%, #1a1816 58%, #241816 100%);
}

.atmosphere-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 12% 88%, rgba(226, 75, 58, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 45% at 92% 8%, rgba(210, 140, 75, 0.1), transparent 50%);
}

.atmosphere-grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.atmosphere-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
}

.atmosphere-orb-a {
  width: 320px;
  height: 320px;
  left: -80px;
  bottom: 8%;
  background: rgba(226, 75, 58, 0.18);
}

.atmosphere-orb-b {
  width: 240px;
  height: 240px;
  right: -50px;
  top: 16%;
  background: rgba(210, 140, 75, 0.12);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
}

.nav a:hover {
  color: var(--paper);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--ginger);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: none;
}

h1,
h2,
h3,
.brand {
  font-family: var(--serif);
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.18;
  letter-spacing: 0.04em;
}

.lede {
  margin: 1.4rem 0 0;
  max-width: 34rem;
  color: var(--paper-dim);
  font-size: 1.02rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.hero-meta span {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper-dim);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hero-portrait {
  margin: 0;
  text-align: center;
}

.hero-portrait img {
  width: min(100%, 420px);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-portrait figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5rem;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.4rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: 0.04em;
}

.section-head p:last-child {
  margin: 0.8rem 0 0;
  color: var(--paper-dim);
}

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

.card,
.agent,
.closing-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.card,
.agent {
  padding: 1.35rem 1.3rem 1.4rem;
}

.card h3,
.agent h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
}

.card p,
.agent p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.92rem;
}

.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.pipeline li {
  padding: 1.2rem 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(28, 25, 22, 0.7);
  min-height: 100%;
}

.pipeline .step {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  margin-bottom: 0.7rem;
}

.pipeline strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.pipeline em {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.84rem;
}

.agent-mark {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #f3c0b8;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.closing {
  padding-bottom: 4rem;
}

.closing-card {
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.closing-card img {
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.closing-card h2 {
  margin: 1.1rem 0 0.7rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.closing-card p {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--paper-dim);
}

.closing-url {
  margin-top: 1.2rem !important;
  color: var(--ginger) !important;
  letter-spacing: 0.12em;
  font-size: 0.88rem;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 2.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer strong {
  display: block;
  color: var(--paper-dim);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.site-footer span {
  display: block;
  margin-top: 0.2rem;
}

@media (max-width: 960px) {
  .hero,
  .pipeline,
  .feature-grid,
  .agent-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pipeline {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 3.4rem;
  }
}

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

  .hero,
  .feature-grid,
  .agent-grid,
  .pipeline,
  .site-footer {
    grid-template-columns: 1fr;
    display: block;
  }

  .hero-portrait {
    margin-top: 1.5rem;
  }

  .card,
  .agent,
  .pipeline li {
    margin-bottom: 0.8rem;
  }

  .site-footer {
    display: flex;
    flex-direction: column;
  }
}

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