:root {
  color-scheme: dark;
  --bg: #111014;
  --surface: #1c1a20;
  --surface-hover: #28252d;
  --ink: #f6f1ea;
  --muted: #b6b1bb;
  --blue: #9feaff;
  --coral: #ff8554;
  --line: #39353f;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a, button { transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease; }
::selection { background: var(--blue); color: var(--bg); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }
.page { width: min(1180px, calc(100% - 64px)); margin: auto; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 100px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: 17px; font-weight: 800; }
.brand-mark { display: block; width: 56px; height: 40px; }
.top-actions, nav { display: flex; align-items: center; gap: 8px; }
.top-actions { gap: 24px; }
nav a { padding: 10px 12px; text-decoration: none; font-size: 14px; font-weight: 600; }
nav a:hover, .panel-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }
.language-menu { position: relative; }
.language-trigger {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
  color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 600;
}
.language-trigger:hover, .language-menu.open .language-trigger { border-color: var(--blue); }
.language-trigger::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin: -3px 2px 0 6px; }
.language-options {
  display: flex; flex-direction: column; gap: 4px; position: absolute;
  top: calc(100% + 8px); right: 0; min-width: 176px; z-index: 10;
  padding: 6px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); box-shadow: 0 12px 32px #00000066;
  visibility: hidden; opacity: 0; pointer-events: none;
}
.language-menu.open .language-options { visibility: visible; opacity: 1; pointer-events: auto; }
.language-option { display: flex; gap: 10px; align-items: center; border: 0; border-radius: 2px; padding: 10px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.language-option:hover { background: var(--surface-hover); }
.language-option.active { background: var(--blue); color: var(--bg); }
.flag { line-height: 1; }
.hero { border-bottom: 1px solid var(--line); }
.hero-content { padding: 44px 0 48px; text-align: center; }
.hero-mark { display: block; width: 154px; height: 110px; margin: 0 auto 24px; }
.eyebrow { margin: 0 0 16px; font-size: 12px; color: var(--blue); font-weight: 700; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: 52px; line-height: 1.1; font-weight: 750; }
.lead { max-width: 650px; margin: 0 auto 28px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; min-height: 46px; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.button.primary { color: var(--bg); background: var(--coral); }
.button.primary:hover { background: #ff9c73; }
.button.secondary { border-color: var(--line); background: var(--surface); }
.button.secondary:hover { border-color: var(--blue); background: var(--surface-hover); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin: 36px 0 24px; }
h2 { font-size: 30px; line-height: 1.2; margin-bottom: 0; font-weight: 700; }
.section-head p { max-width: 540px; margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.panel { min-width: 0; padding: 24px 0 32px; border-top: 3px solid var(--blue); }
.panel:first-child { border-color: var(--coral); }
.icon { color: var(--blue); font-size: 13px; font-weight: 800; }
.panel:first-child .icon { color: var(--coral); }
.panel h3 { margin: 20px 0 12px; font-size: 23px; line-height: 1.25; }
.panel p { font-size: 15px; line-height: 1.75; color: var(--muted); margin: 0; }
.panel-link { display: inline-flex; margin-top: 20px; font-size: 14px; font-weight: 700; color: var(--blue); text-underline-offset: 5px; }
.about-contact { margin-top: 20px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about h2, .contact-card h2 { margin-bottom: 20px; }
.about p, .contact-card p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 20px; }
.company-name { font-size: 12px; font-weight: 700; color: var(--blue); }
.email-link { display: inline-block; font-size: 21px; color: var(--blue); text-decoration-color: var(--coral); text-underline-offset: 8px; overflow-wrap: anywhere; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0 32px; font-size: 12px; line-height: 1.6; color: var(--muted); }

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; padding: 20px 0; gap: 16px; }
  .top-actions { flex: 1; justify-content: flex-end; gap: 10px; }
  nav a { padding: 10px 8px; }
  .services { gap: 24px; }
  .panel h3 { font-size: 21px; }
  .about-contact { gap: 32px; }
}
@media (max-width: 640px) {
  .page { width: calc(100% - 40px); }
  .topbar { gap: 14px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 42px; height: 30px; }
  .top-actions { display: contents; }
  nav { order: 3; width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 0; }
  nav a { font-size: 13px; padding: 8px 4px; }
  .language-menu { margin-left: auto; }
  .hero-content { padding: 28px 0 32px; }
  .hero-mark { width: 112px; height: 80px; margin-bottom: 20px; }
  .eyebrow { font-size: 10px; line-height: 1.5; margin-bottom: 12px; }
  h1 { font-size: 32px; max-width: 340px; margin-left: auto; margin-right: auto; }
  .lead { font-size: 16px; margin-bottom: 22px; }
  .actions { gap: 8px; }
  .button { padding: 11px 14px; font-size: 13px; }
  .button.primary { flex-basis: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 28px; }
  h2 { font-size: 26px; }
  .services, .about-contact { grid-template-columns: 1fr; gap: 16px; }
  .panel { padding-bottom: 20px; }
  .panel h3 { margin-top: 14px; }
  .about-contact { margin-top: 12px; padding: 28px 0; gap: 32px; }
  footer { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
