:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #202124;
  --muted: #68625a;
  --line: #e8e1d4;
  --yellow: #f7c948;
  --charcoal: #25221d;
  --red: #d94a38;
  --green: #13795b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(37, 34, 29, 0.08);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.nav-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--charcoal);
  box-shadow: inset 0 -3px 0 rgba(37, 34, 29, 0.18);
  font-size: 14px;
}

nav {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.nav-cta,
.primary-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--charcoal);
  color: #fffdf7;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 34, 29, 0.16);
}

.primary-button:hover,
.nav-cta:hover {
  background: #11100d;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.secondary-button {
  min-height: 42px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--paper);
  font-weight: 750;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px) 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.lede {
  max-width: 690px;
  color: #4d4841;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  color: var(--muted);
}

.product-shot {
  border: 1px solid #d8d0c0;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2926;
  color: #fff;
  box-shadow: 0 30px 70px rgba(37, 34, 29, 0.22);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 14px;
  background: #1d1b18;
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--yellow);
}

.video-panel {
  display: grid;
  min-height: 280px;
  place-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(247, 201, 72, 0.22), transparent 42%),
    linear-gradient(160deg, #36322c, #151412);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.subtitle-panel {
  padding: 22px;
  background: #fffdf7;
  color: var(--charcoal);
}

.subtitle-panel p {
  margin-bottom: 8px;
  line-height: 1.55;
}

.active-line {
  border-left: 4px solid var(--yellow);
  padding-left: 12px;
  font-weight: 800;
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.tool-row button {
  min-height: 48px;
  border: 0;
  background: #2f2b25;
  color: #fff7d6;
}

.section {
  padding: 84px clamp(18px, 5vw, 72px);
}

.section > p,
.section > h2 {
  max-width: 760px;
}

.scenario-section,
.demo-section,
.about-section,
.privacy-summary,
.apply-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.scenario-section p,
.demo-section p,
.about-section p,
.apply-copy p,
.privacy-summary li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.scenario-grid article,
.feature-card,
.application-form,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.scenario-grid article {
  min-height: 150px;
  padding: 24px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.feature-card {
  padding: 24px;
}

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

.demo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.demo-strip span {
  display: grid;
  place-items: center;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  font-weight: 850;
}

.demo-strip span:nth-child(2),
.demo-strip span:nth-child(4) {
  background: #fff5cf;
}

.portrait-placeholder {
  display: grid;
  min-height: 320px;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--charcoal);
  font-size: 54px;
  font-weight: 900;
}

.privacy-summary {
  background: #f3eee4;
}

.privacy-summary ul {
  margin: 0;
  padding-left: 20px;
}

.apply-section {
  background: var(--charcoal);
  color: #fffdf7;
}

.apply-copy p {
  color: #ded6c7;
}

.note {
  border-left: 4px solid var(--yellow);
  padding-left: 14px;
}

.application-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  color: var(--ink);
}

label {
  display: grid;
  gap: 8px;
  color: #39352f;
  font-size: 15px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9d1c2;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffefa;
  color: var(--ink);
  font-size: 16px;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(247, 201, 72, 0.72);
  outline-offset: 2px;
}

.wide,
.consent,
.form-helper,
.form-message {
  grid-column: 1 / -1;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.consent {
  display: flex;
  align-items: flex-start;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-helper,
.form-message {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.form-message.success {
  color: var(--green);
  font-weight: 800;
}

.form-message.error {
  color: var(--red);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.plain-page {
  max-width: 940px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.plain-page h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.plain-page section {
  margin-top: 34px;
}

.plain-page li,
.plain-page p {
  color: var(--muted);
  line-height: 1.85;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero,
  .scenario-section,
  .demo-section,
  .about-section,
  .privacy-summary,
  .apply-section {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: 44px;
  }

  .product-shot {
    margin-inline: -6px;
  }

  .video-panel {
    min-height: 210px;
  }

  .tool-row,
  .demo-strip,
  .feature-grid,
  .scenario-grid,
  .application-form {
    grid-template-columns: 1fr;
  }

  .demo-strip span {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding-block: 60px;
  }
}
