:root {
  --cream: #F7F5F0;
  --cream-2: #F0ECE3;
  --ink: #1A1A1A;
  --ink-2: #45403A;
  --gold: #C8923E;
  --gold-2: #D9A441;
  --gold-3: #E0B45C;
  --gold-deep: #9A6A1F;
  --dark: #1C1A16;
  --dark-2: #262219;
  --line: #E3DDD0;
  --white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

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

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== Sidebar navigation ===== */
.side-rail {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background-color: var(--dark);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  z-index: 100;
}

.side-rail .rail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.rail-brand .mark {
  width: 40px;
  height: 40px;
  background-color: var(--gold);
  color: var(--dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.rail-brand .name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.5px;
}

.rail-brand .tag {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-3);
  margin-top: 2px;
}

.side-rail .rail-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  color: #CBC5B8;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.rail-nav a:hover {
  color: var(--gold-3);
  border-left-color: var(--gold);
  background-color: var(--dark-2);
}

.rail-nav a .num {
  font-size: 12px;
  color: var(--gold);
  margin-right: 10px;
  font-family: Georgia, "Times New Roman", serif;
}

.rail-foot {
  margin-top: auto;
}

.rail-foot .rail-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-3);
  margin-bottom: 18px;
}

.rail-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold-3);
}

.rail-foot .rail-contact {
  font-size: 14px;
  color: #CBC5B8;
  line-height: 1.9;
}

.rail-foot .rail-contact a:hover {
  color: var(--gold-3);
}

.rail-toggle {
  display: none;
}

/* ===== Main ===== */
.page-main {
  margin-left: 280px;
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
}

.hero-section::before {
  content: "SYSTEMS";
  position: absolute;
  top: 40px;
  left: -20px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 180px;
  letter-spacing: 10px;
  color: #E9E3D6;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: start;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.hero-section h1 {
  font-size: 58px;
  line-height: 1.05;
  margin-bottom: 26px;
}

.hero-section h1 .accent {
  color: var(--gold-deep);
  font-style: italic;
}

.hero-lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--dark);
  border: 2px solid var(--gold);
}

.btn-primary:hover {
  background-color: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.btn-ghost:hover {
  background-color: var(--ink);
  color: var(--cream);
}

.spec-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.spec-card .spec-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
  font-weight: 700;
}

.spec-card table {
  width: 100%;
  border-collapse: collapse;
}

.spec-card td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.spec-card td:first-child {
  color: var(--ink-2);
}

.spec-card td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
}

.spec-card tr:last-child td {
  border-bottom: none;
}

/* ===== Marquee ===== */
.marquee {
  background-color: var(--dark);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--dark-2);
  border-bottom: 1px solid var(--dark-2);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--gold-3);
  padding: 0 28px;
  white-space: nowrap;
}

.marquee span b {
  color: var(--cream);
  font-weight: 400;
  margin-left: 28px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Capability stack ===== */
.stack-section {
  padding: 110px 0;
  background-color: var(--cream);
}

.section-head {
  margin-bottom: 64px;
}

.section-head .kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 40px;
  max-width: 640px;
}

.section-head .intro {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 620px;
  margin-top: 18px;
}

.stack-list {
  list-style: none;
}

.stack-item {
  display: grid;
  grid-template-columns: 90px 1.1fr 1.6fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.stack-item .idx {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
}

.stack-item h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.stack-item p {
  color: var(--ink-2);
  font-size: 16px;
}

.stack-item .tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-item .tags span {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 5px 14px;
}

/* ===== Statement band ===== */
.statement-band {
  background-color: var(--dark);
  padding: 110px 0;
  color: var(--cream);
}

.statement-band .quote-mark {
  display: block;
  width: 56px;
  height: 4px;
  background-color: var(--gold);
  border-radius: 2px;
  margin-bottom: 30px;
}

.statement-band h2 {
  color: var(--cream);
  font-size: 40px;
  line-height: 1.3;
  max-width: 900px;
}

.statement-band h2 em {
  color: var(--gold-3);
  font-style: italic;
}

.statement-band .byline {
  margin-top: 30px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-3);
}

/* ===== Comparison ===== */
.compare-section {
  padding: 110px 0;
  background-color: var(--cream-2);
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border: 1px solid var(--line);
}

.compare-table th, .compare-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
}

.compare-table thead th {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  color: var(--cream);
}

.compare-table thead th.col-traditional {
  background-color: var(--ink-2);
}

.compare-table thead th.col-xingcheng {
  background-color: var(--gold-deep);
}

.compare-table thead th:first-child {
  background-color: var(--dark);
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.compare-table .check {
  color: var(--gold-deep);
  font-weight: 700;
}

.compare-table .cross {
  color: #8B8272;
}

/* ===== Process ===== */
.process-section {
  padding: 110px 0;
  background-color: var(--cream);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.process-step {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px;
  position: relative;
}

.process-step .step-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 60px;
  color: var(--gold-3);
  line-height: 1;
  margin-bottom: 16px;
}

.process-step h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.process-step p {
  color: var(--ink-2);
  font-size: 15px;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 110px 0;
  background-color: var(--cream-2);
}

.faq-list {
  max-width: 820px;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question .plus {
  font-size: 28px;
  color: var(--gold-deep);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item.open .plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 0 24px;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 720px;
}

/* ===== Contact ===== */
.contact-section {
  padding: 110px 0;
  background-color: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-size: 40px;
  margin-bottom: 18px;
}

.contact-info p {
  color: var(--ink-2);
  margin-bottom: 28px;
}

.contact-lines {
  list-style: none;
  margin-top: 8px;
}

.contact-lines li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 16px;
}

.contact-lines li .label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-deep);
  width: 90px;
  flex-shrink: 0;
}

.contact-lines a {
  color: var(--ink);
  font-weight: 600;
}

.contact-lines a:hover {
  color: var(--gold-deep);
}

.contact-form {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px;
}

.contact-form .field {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background-color: var(--white);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--gold-deep);
  font-weight: 600;
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--dark);
  color: #CBC5B8;
  position: relative;
  overflow: hidden;
}

.footer-news {
  padding: 64px 0;
  border-bottom: 1px solid var(--dark-2);
}

.footer-news-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-news h3 {
  color: var(--cream);
  font-size: 28px;
  max-width: 420px;
}

.footer-news-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-news-form input {
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  background-color: var(--dark-2);
  border: 1px solid #3A352B;
  color: var(--cream);
  border-radius: 3px;
  min-width: 260px;
}

.footer-news-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.footer-news-form button {
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  background-color: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.footer-news-form button:hover {
  background-color: var(--gold-3);
}

.footer-main {
  padding: 64px 0 40px;
  position: relative;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col h4 {
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 15px;
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: #CBC5B8;
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--gold-3);
}

.footer-watermark {
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 130px;
  letter-spacing: 4px;
  color: #2A251D;
  pointer-events: none;
  line-height: 1;
  visibility: hidden;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--dark-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #8B8272;
}

.footer-bottom .legal-links a {
  color: #CBC5B8;
  margin-left: 22px;
}

.footer-bottom .legal-links a:hover {
  color: var(--gold-3);
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-section h1 {
    font-size: 46px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .side-rail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
  }

  .side-rail .rail-brand {
    margin-bottom: 0;
  }

  .rail-brand .mark {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .rail-brand .name {
    font-size: 18px;
  }

  .rail-brand .tag {
    display: none;
  }

  .side-rail .rail-nav {
    display: none;
  }

  .side-rail .rail-foot {
    display: none;
  }

  .side-rail.open {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100vh;
    padding: 24px 24px;
  }

  .side-rail.open .rail-nav {
    display: flex;
    margin-top: 40px;
  }

  .side-rail.open .rail-foot {
    display: block;
  }

  .rail-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
  }

  .rail-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--cream);
    margin: 5px auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .side-rail.open .rail-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .side-rail.open .rail-toggle span:nth-child(2) {
    opacity: 0;
  }

  .side-rail.open .rail-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .page-main {
    margin-left: 0;
    padding-top: 74px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-section {
    padding: 70px 0 70px;
  }

  .hero-section::before {
    font-size: 100px;
  }

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

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

  .stack-item {
    grid-template-columns: 70px 1fr;
  }

  .stack-item .idx {
    font-size: 34px;
  }

  .stack-item p {
    grid-column: 2;
  }

  .section-head h2,
  .statement-band h2 {
    font-size: 32px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 22px;
  }

  .hero-section h1 {
    font-size: 36px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom .legal-links a {
    margin-left: 0;
    margin-right: 22px;
  }
}
