/* Hao Lab brand landing — Cream Cafe palette
   Style guide: ~/Projects/pbl-agent-hardware/design/brand/style-guide.md
   IP anchor:   ~/Projects/pbl-agent-hardware/design/ip/README.md */

:root {
  --cream: #FCF6E4;
  --cream-deep: #F7F0DE;
  --paper: #F4ECD6;
  --tea-brown: #645239;
  --espresso: #543923;
  --taupe: #A6846F;
  --sage: #9BA27B;
  --sage-soft: #D4D6BE;
  --terracotta: #D97757;
  --terracotta-deep: #C6613F;
  --shadow-soft: 0 4px 12px rgba(100, 82, 57, 0.08);
  --shadow-card: 0 10px 28px rgba(100, 82, 57, 0.10);
  --shadow-cta: 0 6px 16px rgba(198, 97, 63, 0.22);
  --radius-btn: 14px;
  --radius-card: 28px;
  --font-display: "LXGW WenKai Screen", "LXGW WenKai", "PingFang SC", "Source Han Serif SC", serif;
  --font-body: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans Rounded SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--tea-brown);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* light mode lock — style guide §12 */
@media (prefers-color-scheme: dark) {
  html, body { background: var(--cream); color: var(--tea-brown); }
}

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

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(20px, 5vw, 56px) 24px;
  gap: clamp(20px, 4vw, 40px);
}

/* ── nav ──────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
}

.brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--espresso);
  letter-spacing: 0.02em;
}

.menu {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  flex: 1 1 auto;
  justify-content: center;
  font-size: 15px;
}

.menu a {
  color: var(--taupe);
  padding: 6px 4px;
  transition: color 0.15s ease;
}

.menu a:hover { color: var(--tea-brown); }

.menu a.active {
  color: var(--espresso);
  font-weight: 500;
  position: relative;
}

.menu a.active::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: -2px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}

/* ── CTA buttons ─────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.cta-primary {
  background: var(--terracotta);
  color: var(--cream);
  box-shadow: var(--shadow-cta);
}
.cta-primary:hover {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(198, 97, 63, 0.28);
}

.cta-sm  { padding: 10px 20px; font-size: 14px; }
.cta-lg  { padding: 13px 28px; font-size: 15px; }

/* ── hero ───────────────────────────────────────────── */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 1080px;
  background: var(--cream-deep);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(36px, 6vw, 72px) clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.45;
  color: var(--espresso);
  margin: 0 0 clamp(24px, 4vw, 40px);
  letter-spacing: 0.02em;
}

.hero-art {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-art img {
  width: clamp(220px, 32vw, 360px);
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── footer ─────────────────────────────────────────── */
.foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--taupe);
  border-top: 1px solid rgba(166, 132, 111, 0.18);
  padding: 18px 4px 4px;
}

.foot-legal {
  display: flex;
  gap: 22px;
  letter-spacing: 0.02em;
}

.foot-legal a {
  color: inherit;
  transition: color 0.15s ease;
}

.foot-legal a:hover { color: var(--tea-brown); }

.foot-byline {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}

.foot-tag {
  font-size: 13px;
  color: var(--taupe);
}

.foot-sep { color: var(--sage-soft); }

.foot-brand {
  font-family: var(--font-display);
  color: var(--espresso);
  font-size: 16px;
  letter-spacing: -0.005em;
}

/* ── responsive: mobile (<= 720px) ──────────────────── */
@media (max-width: 720px) {
  .page {
    padding: 20px 18px 18px;
    gap: 20px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px;
    row-gap: 8px;
  }

  .menu {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    font-size: 14px;
  }

  .brand {
    font-size: 20px;
    flex: 1;
  }

  .hero-card {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 28px 22px 32px;
    border-radius: 22px;
  }

  .hero-copy h1 {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .hero-art {
    order: -1;
    margin-bottom: 4px;
  }

  .hero-art img {
    width: min(56vw, 240px);
  }

  .foot {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
    row-gap: 10px;
  }

  .foot-byline {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .foot-tag {
    font-size: 12px;
  }

  .foot-legal {
    gap: 16px;
    align-self: flex-end;
  }
}
