:root {
  --bg: #0d0f12;
  --bg-soft: #14181d;
  --paper: #f4efe4;
  --paper-muted: #d8d0c3;
  --line: rgba(244, 239, 228, 0.16);
  --line-dark: rgba(13, 15, 18, 0.12);
  --gold: #c49a4a;
  --red: #a7352e;
  --teal: #4f8b83;
  --ink: #161719;
  --muted: #717171;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body,
h1,
h2,
h3,
p,
li,
dd,
dt,
span {
  text-wrap: pretty;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-pad {
  padding: 104px 0;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--paper);
  background: rgba(13, 15, 18, 0.72);
  border-bottom: 1px solid rgba(244, 239, 228, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  overflow: hidden;
  background: #050505;
  border: 1px solid rgba(196, 154, 74, 0.42);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: rgba(244, 239, 228, 0.76);
  font-size: 14px;
}

.desktop-nav a,
.mobile-nav a {
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

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

.nav-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--paper);
  background: rgba(167, 53, 46, 0.82);
  border: 1px solid rgba(244, 239, 228, 0.18);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(244, 239, 228, 0.22);
  border-radius: 6px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-toggle span + span {
  margin-top: 5px;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 116px 0 64px;
  background:
    linear-gradient(90deg, rgba(13, 15, 18, 0.98) 0%, rgba(13, 15, 18, 0.86) 43%, rgba(13, 15, 18, 0.2) 100%),
    radial-gradient(circle at 78% 32%, rgba(196, 154, 74, 0.18), transparent 34%),
    linear-gradient(145deg, #0d0f12 0%, #171a1f 52%, #2b1916 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(0deg, #0d0f12 0%, transparent 100%);
  pointer-events: none;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 239, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 228, 0.04) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent 78%);
  opacity: 0.45;
}

.hero-portrait {
  position: absolute;
  right: max(-110px, calc((100vw - var(--max)) / 2 - 170px));
  bottom: -30px;
  width: min(62vw, 820px);
  max-height: 92vh;
  object-fit: contain;
  object-position: bottom right;
  filter: saturate(0.94) contrast(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 24px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(72px, 10vw, 136px);
  line-height: 0.95;
  font-weight: 900;
  white-space: nowrap;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 4.1vw, 56px);
  line-height: 1.14;
  font-weight: 900;
}

.one-line-title {
  max-width: none;
}

@media (min-width: 1021px) {
  .one-line-title {
    font-size: clamp(34px, 3.15vw, 44px);
    line-height: 1.12;
    white-space: nowrap;
  }
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
}

.hero-lede {
  max-width: 960px;
  margin-bottom: 34px;
  color: rgba(244, 239, 228, 0.88);
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.32;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fffaf0;
  background: var(--red);
  border-color: rgba(244, 239, 228, 0.1);
}

.button.primary:hover {
  background: #bf4038;
}

.button.secondary {
  color: var(--paper);
  background: rgba(244, 239, 228, 0.06);
  border-color: rgba(244, 239, 228, 0.28);
}

.button.secondary:hover {
  background: rgba(244, 239, 228, 0.12);
}

.hero-proof {
  display: grid;
  width: min(780px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(244, 239, 228, 0.12);
  background: rgba(244, 239, 228, 0.1);
}

.hero-proof div {
  padding: 18px;
  background: rgba(13, 15, 18, 0.58);
  backdrop-filter: blur(8px);
}

.hero-proof dt {
  color: var(--paper);
  font-size: 24px;
  font-weight: 900;
}

.hero-proof dd {
  margin: 4px 0 0;
  color: rgba(244, 239, 228, 0.68);
  font-size: 13px;
}

.problem-section {
  background: #f3efe7;
  color: var(--ink);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: start;
}

.problem-section .eyebrow,
.products .eyebrow,
.apply .eyebrow {
  color: var(--red);
}

.section-intro h2 {
  color: var(--ink);
}

.problem-list {
  display: grid;
  gap: 18px;
}

.problem-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
}

.problem-list span {
  color: var(--red);
  font-size: 15px;
  font-weight: 900;
}

.problem-list h3 {
  margin-bottom: 6px;
}

.problem-list p {
  grid-column: 2;
  margin-bottom: 0;
  color: #55504b;
}

@media (min-width: 1021px) {
  .problem-section .two-column {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .problem-list {
    grid-template-columns: 1fr;
  }

  .problem-list article {
    min-height: 94px;
    align-items: center;
    grid-template-columns: 54px max-content 1fr;
    padding: 26px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.55);
  }

  .problem-list h3 {
    margin: 0;
    white-space: nowrap;
  }

  .problem-list p {
    grid-column: auto;
    white-space: nowrap;
  }
}

.manifesto {
  background:
    linear-gradient(135deg, rgba(167, 53, 46, 0.26), transparent 48%),
    linear-gradient(90deg, #111418 0%, #171b20 100%);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 56px;
  align-items: end;
}

.manifesto-grid p:last-child {
  margin-bottom: 26px;
  color: rgba(244, 239, 228, 0.78);
  font-size: 22px;
  line-height: 1.5;
}

@media (min-width: 1021px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .manifesto-grid p:last-child {
    max-width: none;
    font-size: 20px;
    white-space: nowrap;
  }
}

.principle-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: rgba(244, 239, 228, 0.12);
  border: 1px solid rgba(244, 239, 228, 0.12);
}

.principle-row span {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 10px;
  background: rgba(13, 15, 18, 0.42);
  color: var(--paper);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.founder {
  background: #0d0f12;
}

.section-heading {
  max-width: none;
  margin-bottom: 54px;
}

.section-heading.compact {
  max-width: none;
}

.section-heading p:not(.eyebrow) {
  color: rgba(244, 239, 228, 0.72);
  font-size: 19px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(244, 239, 228, 0.12);
  border: 1px solid rgba(244, 239, 228, 0.12);
}

@media (min-width: 1021px) {
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline li {
    min-height: 220px;
  }

  .timeline p {
    white-space: nowrap;
  }
}

.timeline li {
  min-height: 286px;
  padding: 28px;
  background: #15191e;
}

.timeline time {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
}

.timeline p {
  margin-bottom: 0;
  color: rgba(244, 239, 228, 0.68);
}

.method {
  background: #11161b;
}

.method-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.method-panel {
  min-height: 280px;
  padding: 28px;
  background: #f3efe7;
  color: var(--ink);
  border-radius: 8px;
}

.method-panel.featured {
  grid-column: span 2;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(167, 53, 46, 0.54), transparent 54%),
    #1a1f25;
  border: 1px solid rgba(244, 239, 228, 0.12);
}

.panel-label {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.featured .panel-label {
  color: var(--gold);
}

.method-panel p {
  margin-bottom: 0;
  color: #5a5751;
}

.method-panel.featured p {
  color: rgba(244, 239, 228, 0.72);
}

.products {
  background: #f3efe7;
  color: var(--ink);
}

.products .section-heading p:not(.eyebrow) {
  color: #595651;
}

.product-table {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fffaf1;
}

.table-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.65fr;
  min-height: 72px;
  border-bottom: 1px solid var(--line-dark);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row span {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-right: 1px solid var(--line-dark);
}

.table-row span:last-child {
  border-right: 0;
}

.table-head {
  min-height: 58px;
  color: var(--paper);
  background: #151719;
  font-weight: 900;
}

.table-row:not(.table-head) span:first-child {
  color: var(--red);
  font-weight: 900;
}

.cases {
  background: #0d0f12;
}

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

@media (min-width: 1021px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-grid p:not(.case-type) {
    white-space: nowrap;
  }
}

.case-grid article {
  display: flex;
  min-height: 370px;
  flex-direction: column;
  padding: 26px;
  background: #15191e;
  border: 1px solid rgba(244, 239, 228, 0.1);
  border-radius: 8px;
}

.case-type {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.case-grid p:not(.case-type) {
  color: rgba(244, 239, 228, 0.68);
}

.case-metrics {
  display: grid;
  gap: 1px;
  margin: auto 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 228, 0.12);
  border-radius: 6px;
  background: rgba(244, 239, 228, 0.1);
}

.case-metrics div {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(13, 15, 18, 0.42);
}

.case-metrics dt {
  flex: 0 0 138px;
  color: #f6ead2;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 900;
  white-space: nowrap;
}

.case-metrics dd {
  margin: 0;
  color: rgba(244, 239, 228, 0.58);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.content-base {
  background:
    linear-gradient(90deg, #19130f 0%, #15191e 60%, #10201d 100%);
  border-top: 1px solid rgba(244, 239, 228, 0.1);
  border-bottom: 1px solid rgba(244, 239, 228, 0.1);
}

.content-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.content-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.content-items span {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: rgba(244, 239, 228, 0.08);
  border: 1px solid rgba(244, 239, 228, 0.12);
  border-radius: 6px;
  font-weight: 800;
}

.apply {
  background: #f3efe7;
  color: var(--ink);
}

.apply-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

@media (min-width: 1021px) {
  .apply-layout {
    grid-template-columns: 1fr;
  }

  .apply-copy p:not(.eyebrow) {
    white-space: nowrap;
  }
}

.apply-copy p:not(.eyebrow) {
  color: #55504b;
  font-size: 19px;
}

.apply-points {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.apply-points li {
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  background: #fffaf1;
  font-weight: 800;
}

.lead-form {
  padding: 30px;
  background: #fffaf1;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

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

label {
  display: grid;
  gap: 8px;
}

label.full {
  grid-column: 1 / -1;
}

label span {
  color: #504a43;
  font-size: 14px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(13, 15, 18, 0.16);
  border-radius: 6px;
  outline: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(167, 53, 46, 0.12);
}

.form-submit {
  width: 100%;
  margin-top: 22px;
}

.form-status {
  min-height: 26px;
  margin: 14px 0 0;
  color: #4d4a44;
  font-weight: 700;
}

.form-status.success {
  color: #1d6b4f;
}

.form-status.error {
  color: #a7352e;
}

.site-footer {
  background: #0a0b0d;
  border-top: 1px solid rgba(244, 239, 228, 0.1);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  color: rgba(244, 239, 228, 0.62);
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 1020px) {
  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 20px 22px;
    background: rgba(13, 15, 18, 0.96);
    border-bottom: 1px solid rgba(244, 239, 228, 0.12);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .menu-open .mobile-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(244, 239, 228, 0.08);
    color: rgba(244, 239, 228, 0.82);
    font-weight: 800;
  }

  .hero {
    align-items: end;
    padding-bottom: 42px;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13, 15, 18, 0.96) 0%, rgba(13, 15, 18, 0.72) 44%, rgba(13, 15, 18, 0.2) 100%);
    z-index: 1;
  }

  .hero-portrait {
    right: 50%;
    bottom: 30%;
    width: min(84vw, 620px);
    max-height: 50vh;
    transform: translateX(50%);
    opacity: 0.82;
  }

  .hero-content {
    z-index: 2;
  }

  .hero-proof,
  .timeline,
  .method-layout,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-panel.featured {
    grid-column: 1 / -1;
  }

  .two-column,
  .manifesto-grid,
  .content-grid,
  .apply-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .principle-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .section-shell {
    width: min(100% - 28px, var(--max));
  }

  .section-pad {
    padding: 72px 0;
  }

  .site-header {
    min-height: 66px;
    padding: 12px 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .mobile-nav {
    top: 66px;
  }

  .hero {
    min-height: 820px;
    padding-top: 96px;
  }

  .hero-portrait {
    bottom: 38%;
    width: min(108vw, 540px);
    max-height: 44vh;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(58px, 18vw, 74px);
  }

  h2 {
    font-size: 30px;
  }

  .one-line-title {
    white-space: normal;
  }

  h3 {
    font-size: 20px;
  }

  .hero-lede {
    font-size: 21px;
    line-height: 1.38;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
  }

  .hero-actions {
    margin-bottom: 30px;
  }

  .hero-proof,
  .timeline,
  .case-grid,
  .content-items,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .case-grid article {
    min-height: 0;
  }

  .hero-proof div {
    padding: 14px 16px;
  }

  .principle-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .principle-row span {
    min-height: 58px;
    font-size: 16px;
  }

  .problem-list article {
    grid-template-columns: 42px 1fr;
  }

  .table-row,
  .table-head {
    display: block;
    min-height: 0;
  }

  .table-head {
    display: none;
  }

  .table-row {
    padding: 18px;
  }

  .table-row span {
    display: block;
    padding: 0;
    border-right: 0;
  }

  .table-row span + span {
    margin-top: 8px;
  }

  .lead-form {
    padding: 22px;
  }

  .footer-inner {
    display: grid;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
