:root {
  --ink: #14221f;
  --muted: #5d6a66;
  --paper: #f7f8f4;
  --white: #ffffff;
  --line: #dfe5df;
  --green: #13856f;
  --green-dark: #0b5e50;
  --coral: #ec6a4c;
  --gold: #d6a03c;
  --charcoal: #10201d;
  --shadow: 0 18px 50px rgba(14, 45, 38, .1);
  --shell: min(1160px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { width: 1.15em; height: 1.15em; stroke-width: 1.8; }
.shell { width: var(--shell); margin: 0 auto; }
.section { padding: 112px 0; }
.eyebrow { margin: 0 0 18px; color: #99e2d3; font-size: 13px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.dark { color: var(--green); }
h1, h2, h3, p { letter-spacing: 0; }
h1, h2, h3 { margin-top: 0; line-height: 1.25; }
h2 { margin-bottom: 22px; font-size: clamp(34px, 4vw, 52px); font-weight: 650; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.18); }
.nav-shell { width: var(--shell); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; color: var(--charcoal); background: #bce9df; border-radius: 4px; }
.brand-mark span { font-family: "STKaiti", "KaiTi", serif; font-size: 25px; line-height: 1; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 19px; font-weight: 700; }
.brand-copy small { font-size: 9px; letter-spacing: .13em; opacity: .72; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.site-nav a { opacity: .82; transition: opacity .2s ease, color .2s ease; }
.site-nav a:hover { opacity: 1; }
.site-nav .nav-cta { padding: 10px 18px; color: var(--charcoal); background: #bce9df; border-radius: 4px; opacity: 1; font-weight: 700; }
.menu-button { display: none; width: 42px; height: 42px; padding: 0; color: white; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; place-items: center; }

.hero { position: relative; min-height: 700px; height: min(82vh, 820px); display: flex; align-items: center; color: var(--white); background: var(--charcoal) url("assets/hero-workspace.jpg") center 58%/cover no-repeat; overflow: hidden; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,19,17,.9) 0%, rgba(5,19,17,.7) 48%, rgba(5,19,17,.24) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 70px; }
.hero h1 { max-width: 820px; margin-bottom: 26px; font-size: clamp(46px, 6vw, 78px); font-weight: 650; }
.hero-lead { max-width: 660px; margin: 0 0 38px; color: rgba(255,255,255,.78); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 4px; cursor: pointer; font-size: 15px; font-weight: 700; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #071b17; background: #aee5d9; box-shadow: 0 12px 30px rgba(24, 147, 122, .25); }
.button-primary:hover { background: #c1eee5; }
.button-quiet { color: var(--white); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35); }
.button-quiet:hover { background: rgba(255,255,255,.14); }
.hero-proof { position: absolute; z-index: 3; bottom: 0; left: 0; width: 100%; background: rgba(7,31,27,.82); border-top: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); }
.proof-grid { min-height: 118px; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid > div { display: flex; align-items: center; gap: 14px; padding: 20px 28px; border-right: 1px solid rgba(255,255,255,.12); }
.proof-grid > div:first-child { padding-left: 0; }
.proof-grid > div:last-child { border-right: 0; }
.proof-grid strong { font-size: 27px; color: #bce9df; white-space: nowrap; }
.proof-grid span { color: rgba(255,255,255,.65); font-size: 13px; }

.section-heading { margin-bottom: 54px; }
.split-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: end; }
.split-heading h2 { margin-bottom: 0; }
.split-heading > p { max-width: 500px; margin: 0 0 8px; color: var(--muted); font-size: 17px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; min-height: 390px; padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.service-card.featured { color: var(--white); background: var(--green-dark); border-color: var(--green-dark); }
.service-card::after { content: ""; position: absolute; right: -45px; bottom: -45px; width: 130px; height: 130px; border: 1px solid rgba(19,133,111,.16); transform: rotate(45deg); }
.service-card.featured::after { border-color: rgba(255,255,255,.12); }
.service-icon { width: 54px; height: 54px; display: grid; place-items: center; color: var(--green-dark); background: #d8f0ea; border-radius: 6px; }
.service-icon svg { width: 25px; height: 25px; }
.service-icon.coral { color: #a73b27; background: #fee4dd; }
.service-icon.gold { color: #805a0e; background: #f7ebcb; }
.card-index { position: absolute; top: 34px; right: 34px; margin: 0; color: #9ca8a4; font-size: 13px; }
.service-card.featured .card-index { color: rgba(255,255,255,.55); }
.service-card h3 { margin: 50px 0 14px; font-size: 23px; }
.service-card > p:not(.card-index) { color: var(--muted); font-size: 15px; }
.service-card.featured > p:not(.card-index) { color: rgba(255,255,255,.7); }
.service-card ul { position: absolute; left: 34px; right: 34px; bottom: 30px; margin: 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 7px 18px; border-top: 1px solid var(--line); list-style: none; font-size: 12px; color: var(--muted); }
.service-card.featured ul { color: rgba(255,255,255,.72); border-color: rgba(255,255,255,.15); }
.service-card li::before { content: "+"; margin-right: 5px; color: var(--coral); }

.language-lab { padding: 112px 0; color: var(--white); background: #172a26; }
.lab-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 86px; align-items: center; }
.lab-copy > p:not(.eyebrow) { max-width: 470px; color: rgba(255,255,255,.63); }
.quality-points { margin-top: 38px; display: grid; gap: 20px; }
.quality-points > div { display: flex; align-items: center; gap: 16px; }
.quality-points > div > svg { width: 26px; height: 26px; color: #aee5d9; }
.quality-points span { display: grid; }
.quality-points strong { font-size: 15px; }
.quality-points small { color: rgba(255,255,255,.5); font-size: 12px; }
.translation-panel { position: relative; color: var(--ink); background: var(--white); border-radius: 8px; box-shadow: 0 30px 70px rgba(0,0,0,.22); overflow: hidden; }
.panel-top { min-height: 76px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.segmented { padding: 4px; display: flex; background: #eff3ef; border-radius: 6px; }
.segmented button { padding: 7px 14px; color: var(--muted); background: transparent; border: 0; border-radius: 4px; cursor: pointer; font-size: 13px; }
.segmented button.active { color: var(--ink); background: white; box-shadow: 0 2px 8px rgba(20,34,31,.08); font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.status > span { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px #dcefe9; }
.translation-source, .translation-result { min-height: 175px; padding: 26px 30px; }
.translation-source { background: #fbfcfa; border-bottom: 1px solid var(--line); }
.translation-result { background: white; }
.language-label { display: flex; justify-content: space-between; color: var(--green-dark); font-size: 12px; font-weight: 700; }
.language-label small { color: #9ba6a2; font-weight: 500; }
.translation-source p, .translation-result p { margin: 28px 0 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 21px; line-height: 1.65; }
.swap-button { position: absolute; z-index: 2; top: 230px; right: 28px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--green-dark); background: white; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 6px 15px rgba(20,34,31,.1); cursor: pointer; }
.panel-footer { min-height: 54px; padding: 0 30px; display: flex; align-items: center; gap: 24px; color: var(--muted); background: #f3f6f3; font-size: 11px; }
.panel-footer span { display: inline-flex; align-items: center; gap: 5px; }
.panel-footer svg { color: var(--green); }

.centered { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.centered > p:last-child { color: var(--muted); }
.process-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.process-list li { position: relative; padding: 0 28px; text-align: center; }
.process-list li:not(:last-child)::after { content: ""; position: absolute; top: 40px; left: 65%; width: 70%; border-top: 1px dashed #b7c2bd; }
.process-list > li > span { position: absolute; top: -10px; left: calc(50% + 26px); z-index: 2; width: 27px; height: 27px; display: grid; place-items: center; color: var(--white); background: var(--coral); border: 3px solid var(--paper); border-radius: 50%; font-size: 9px; }
.process-list li > div > svg { position: relative; z-index: 1; width: 76px; height: 76px; padding: 22px; color: var(--green-dark); background: #e0efe9; border-radius: 50%; }
.process-list h3 { margin: 22px 0 8px; font-size: 18px; }
.process-list p { margin: 0; color: var(--muted); font-size: 13px; }

.contact-section { padding: 100px 0; color: white; background: #0b5e50; }
.contact-layout { display: grid; grid-template-columns: .76fr 1.24fr; gap: 90px; align-items: center; }
.contact-copy > p:not(.eyebrow) { max-width: 430px; color: rgba(255,255,255,.68); }
.contact-copy > a { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; color: #bce9df; font-weight: 700; }
.quote-form { padding: 36px; color: var(--ink); background: white; border-radius: 8px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-form label { display: grid; gap: 7px; margin-bottom: 18px; color: #33423e; font-size: 12px; font-weight: 700; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; padding: 12px 14px; color: var(--ink); background: #f7f9f7; border: 1px solid #dbe2de; border-radius: 4px; outline: none; resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(19,133,111,.1); }
.form-submit { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.form-submit > p { margin: 0; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.form-submit .button-primary { color: white; background: var(--coral); box-shadow: none; }
.form-message { min-height: 0; margin: 14px 0 0; color: var(--green-dark); font-size: 12px; }

.site-footer { color: #c8d3cf; background: #0c1916; }
.footer-main { min-height: 150px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); }
.dark-brand .brand-mark { color: white; background: var(--green); }
.footer-main > p { text-align: center; color: #7f918b; font-size: 13px; }
.footer-links { display: flex; justify-content: flex-end; gap: 24px; font-size: 13px; }
.footer-bottom { min-height: 70px; display: flex; align-items: center; justify-content: space-between; color: #677a74; font-size: 11px; }
.footer-meta { display: flex; align-items: center; gap: 22px; }
.footer-meta a { transition: color .2s ease; }
.footer-meta a:hover { color: #bce9df; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 720px); }
  .section { padding: 82px 0; }
  .menu-button { display: grid; }
  .site-nav { position: absolute; top: 88px; left: 18px; right: 18px; padding: 20px; display: none; align-items: stretch; gap: 0; color: var(--ink); background: white; border-radius: 6px; box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 12px 8px; }
  .site-nav .nav-cta { margin-top: 8px; text-align: center; }
  .hero { min-height: 650px; height: 82vh; background-position: 64% center; }
  .hero-shade { background: rgba(5,19,17,.73); }
  .hero-content { padding-bottom: 90px; }
  .hero-proof { display: none; }
  .split-heading, .lab-layout, .contact-layout { grid-template-columns: 1fr; gap: 44px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 350px; }
  .process-list { grid-template-columns: 1fr 1fr; gap: 50px 0; }
  .process-list li:nth-child(2)::after { display: none; }
  .footer-main { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .footer-main > p { text-align: left; margin: 0; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 28px); }
  h2 { font-size: 34px; }
  .nav-shell { min-height: 76px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 17px; }
  .site-nav { top: 76px; }
  .hero { min-height: 600px; height: 82vh; }
  .hero h1 { font-size: 43px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .split-heading { gap: 26px; }
  .translation-source, .translation-result { min-height: 190px; padding: 24px 20px; }
  .translation-source p, .translation-result p { font-size: 18px; }
  .panel-top { padding: 0 18px; }
  .panel-footer { padding: 14px 20px; flex-wrap: wrap; gap: 8px 16px; }
  .swap-button { right: 18px; top: 243px; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li::after { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .quote-form { padding: 24px 18px; }
  .form-submit { align-items: stretch; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .footer-bottom { padding: 20px 0; align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
  .footer-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
}

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