:root {
  color-scheme: light;
  --background: #fbf7ef;
  --surface: #fffdf8;
  --ink: #181716;
  --muted: #68635c;
  --line: #e6e0d8;
  --accent: #1d5f6f;
  --accent-2: #9f4f42;
  --gold: #bd8a33;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(230, 224, 216, 0.72);
  background: rgba(251, 248, 241, 0.96);
  backdrop-filter: blur(16px);
}

.nav-inner {
  width: min(1360px, calc(100% - 32px));
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
}

.brand-link img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.brand-name {
  display: none;
  line-height: 1.08;
}

.brand-name small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.site-nav {
  flex: 1;
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  overflow-x: auto;
  scrollbar-width: none;
  color: #2b2925;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav .primary-link {
  margin-left: auto;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

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

.site-nav a.is-active {
  color: var(--accent);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: #111;
}

.primary-link:hover {
  color: #fff;
  background: #2d2a25;
}

.chat-shell {
  background: var(--background);
}

.chat-home-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(72px, 16vh, 180px) 16px 64px;
}

.prompt-entry {
  width: min(860px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lumi-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 20px);
}

.lumi-logo-card {
  width: clamp(62px, 6vw, 80px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
}

.lumi-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lumi-prompt-heading h1 {
  max-width: 760px;
  margin: 0;
  color: #050505;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.22;
  font-weight: 760;
  letter-spacing: 0;
  text-align: left;
}

.prompt-card {
  width: min(680px, 100%);
  min-height: 136px;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(222, 216, 207, 0.95);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow:
    0 22px 70px rgba(53, 41, 30, 0.1),
    0 1px 2px rgba(53, 41, 30, 0.1);
  backdrop-filter: blur(12px);
}

.prompt-card textarea {
  min-height: 76px;
  width: 100%;
  resize: none;
  border: 0;
  outline: 0;
  padding: 20px 24px 8px;
  color: #1d1b18;
  background: transparent;
  font: inherit;
  font-size: 18px;
  line-height: 1.5;
}

.prompt-card textarea::placeholder {
  color: #a9a39a;
}

.prompt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px 16px;
}

.prompt-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt-tools button {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  color: #76716b;
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.prompt-tools button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prompt-tools .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.prompt-tools .pro-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
}

.prompt-tools .pro-button svg {
  width: 16px;
  height: 16px;
}

.prompt-tools .pro-button span {
  font-size: 13px;
  font-weight: 500;
}

.prompt-tools button:hover {
  background: rgba(230, 224, 216, 0.46);
}

.prompt-tools .send-button {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  color: #fff;
  background: #050505;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.prompt-tools .send-button svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.2;
}

.prompt-tools .send-button:hover {
  background: #1b1b1b;
}

.hero {
  min-height: calc(100vh - 104px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--background);
}

.hero::after {
  content: "";
  position: absolute;
  right: 4vw;
  bottom: 0;
  width: min(38vw, 480px);
  aspect-ratio: 1;
  background: url("./assets/brand/mogulumi-agent-logo.png") center / contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 760;
}

h1 {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.98;
  font-weight: 820;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 660px;
  font-size: clamp(44px, 7vw, 80px);
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: #393631;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.58;
  font-weight: 520;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.section h2,
.content h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-intro,
.content-lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.product-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface);
}

.product-card h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.product-card p {
  color: var(--muted);
  line-height: 1.65;
}

.product-card a {
  color: var(--accent);
  font-weight: 780;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.principle {
  border-top: 3px solid var(--gold);
  padding-top: 18px;
}

.principle strong {
  display: block;
  font-size: 18px;
}

.principle span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.62;
}

.content {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 92px;
}

.content h2 {
  margin-top: 44px;
  font-size: 28px;
  letter-spacing: 0;
}

.content p,
.content li {
  color: #37332f;
  font-size: 17px;
  line-height: 1.78;
}

.content a {
  color: var(--accent);
  font-weight: 720;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(230, 224, 216, 0.72);
  background: var(--background);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  color: #716b63;
  font-size: 13px;
  text-align: center;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-inner img {
  width: 18px;
  height: 18px;
}

@media (max-width: 860px) {
  .nav-inner {
    min-height: 92px;
  }

  .brand-link img {
    width: 72px;
    height: 72px;
  }

  .site-nav {
    display: none;
  }

  .chat-home-main {
    align-items: start;
    padding-top: 76px;
  }

  .lumi-prompt-heading {
    gap: 12px;
  }

  .lumi-logo-card {
    width: clamp(62px, 18vw, 78px);
  }

  .lumi-prompt-heading h1 {
    text-align: left;
    font-size: clamp(22px, 6vw, 30px);
  }

  .prompt-card {
    margin-top: 28px;
    border-radius: 22px;
  }

  .hero {
    min-height: 760px;
    align-items: start;
  }

  .hero::after {
    right: 50%;
    bottom: 12px;
    width: min(82vw, 390px);
    transform: translateX(50%);
    opacity: 0.48;
  }

  .hero-inner {
    padding-top: 52px;
    padding-bottom: 390px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 48px);
  }

  .product-grid,
  .principles {
    grid-template-columns: 1fr;
  }
}
