:root {
  color-scheme: dark light;
  --ink: #151923;
  --muted: #5f6876;
  --line: #dfe5ec;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --teal: #087f78;
  --teal-dark: #075a56;
  --amber: #d98712;
  --brick: #a43d31;
  --blue: #3957c4;
  --shadow: 0 20px 60px rgba(16, 24, 40, 0.12);
  --max: 1160px;
}

:root[data-theme="blue"] {
  color-scheme: light;
  --ink: #132235;
  --muted: #52667c;
  --line: #d7e5f2;
  --paper: #ffffff;
  --soft: #f5f9ff;
  --teal: #007c94;
  --teal-dark: #005f7e;
  --amber: #c47500;
  --brick: #be5749;
  --blue: #256fd2;
  --light-band: #eef6ff;
  --light-contact-start: rgba(234, 246, 255, 0.98);
  --light-contact-end: rgba(248, 251, 255, 0.98);
  --hero-wash-strong: rgba(239, 247, 255, 0.95);
  --hero-wash-mid: rgba(239, 247, 255, 0.82);
  --hero-wash-light: rgba(239, 247, 255, 0.34);
  --hero-wash-bottom: rgba(245, 249, 255, 0.98);
  --shadow: 0 18px 48px rgba(30, 64, 95, 0.12);
}

:root[data-theme="orange"] {
  color-scheme: light;
  --ink: #251a12;
  --muted: #695e56;
  --line: #eaded1;
  --paper: #ffffff;
  --soft: #fff8f1;
  --teal: #0b7b72;
  --teal-dark: #075f59;
  --amber: #e26a00;
  --brick: #c84c2f;
  --blue: #356cbd;
  --light-band: #fff0e3;
  --light-contact-start: rgba(255, 241, 225, 0.98);
  --light-contact-end: rgba(255, 250, 245, 0.98);
  --hero-wash-strong: rgba(255, 246, 236, 0.95);
  --hero-wash-mid: rgba(255, 246, 236, 0.82);
  --hero-wash-light: rgba(255, 246, 236, 0.36);
  --hero-wash-bottom: rgba(255, 248, 241, 0.98);
  --shadow: 0 18px 48px rgba(120, 72, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  color: #fff;
  background: rgba(12, 16, 24, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #0a2a28;
  background: #67e5d4;
  font-size: 14px;
}

.brand-text {
  overflow: hidden;
  max-width: 220px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.nav-links a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  border-color: #67e5d4;
  outline: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 11, 18, 0.88) 0%, rgba(7, 11, 18, 0.76) 38%, rgba(7, 11, 18, 0.26) 100%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.42) 0%, rgba(7, 11, 18, 0.18) 66%, rgba(244, 247, 250, 0.96) 100%);
}

.hero-content {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 74px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button.primary {
  color: #072826;
  background: #65dfcd;
  box-shadow: 0 14px 30px rgba(101, 223, 205, 0.26);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #8ff0e2;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(860px, 100%);
  margin: 46px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.hero-facts div {
  padding: 18px;
  background: rgba(7, 11, 18, 0.34);
}

.hero-facts dt {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 800;
}

.hero-facts dd {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.section {
  padding: clamp(64px, 8vw, 108px) 0;
}

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

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: start;
}

.intro {
  padding-top: 54px;
}

.section h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

.lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

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

.service-card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 32px rgba(16, 24, 40, 0.06);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
}

.card-icon svg {
  width: 23px;
  height: 23px;
}

.service-card:nth-child(2) .card-icon {
  background: var(--blue);
}

.service-card:nth-child(3) .card-icon {
  background: var(--brick);
}

.service-card h3,
.scenario-item h3,
.process-steps h3 {
  margin: 22px 0 10px;
  font-size: 21px;
  line-height: 1.3;
}

.service-card p,
.scenario-item p,
.process-steps p,
.contact-section p {
  margin: 0;
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: #2f3846;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.band {
  background: #18202b;
  color: #fff;
}

.band .section-kicker {
  color: #65dfcd;
}

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

.scenario-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.scenario-item span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #071412;
  background: #65dfcd;
  font-weight: 900;
}

.scenario-item h3 {
  margin-top: 0;
  color: #fff;
}

.scenario-item p {
  color: rgba(255, 255, 255, 0.7);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.process-steps li {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.process-steps span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.stack-section {
  padding-top: 34px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #253040;
  background: #fff;
  font-weight: 750;
}

.seo-section {
  padding-top: 36px;
}

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

.faq-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  padding: clamp(70px, 9vw, 116px) 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(21, 25, 35, 0.98), rgba(7, 90, 86, 0.9)),
    #151923;
}

.contact-inner {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.contact-section .section-kicker {
  color: #f5ad36;
}

.contact-section p {
  max-width: 690px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.site-footer {
  padding: 26px 20px;
  color: #6b7380;
  background: #fff;
  text-align: center;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

:root[data-theme] .site-header {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(42, 70, 96, 0.14);
  box-shadow: 0 8px 28px rgba(31, 57, 84, 0.08);
}

:root[data-theme] .brand-mark {
  color: #fff;
  background: var(--teal);
}

:root[data-theme] .nav-links {
  color: rgba(19, 34, 53, 0.74);
}

:root[data-theme] .nav-links a:hover,
:root[data-theme] .nav-links a:focus-visible {
  color: var(--teal-dark);
  border-color: var(--teal);
}

:root[data-theme] .theme-toggle {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(30, 64, 95, 0.18);
}

:root[data-theme] .theme-toggle:hover,
:root[data-theme] .theme-toggle:focus-visible {
  background: #fff;
  border-color: rgba(0, 143, 140, 0.36);
}

:root[data-theme] .hero {
  color: var(--ink);
}

:root[data-theme] .hero-overlay {
  background:
    linear-gradient(90deg, var(--hero-wash-strong) 0%, var(--hero-wash-mid) 42%, var(--hero-wash-light) 100%),
    linear-gradient(180deg, rgba(250, 253, 255, 0.5) 0%, rgba(250, 253, 255, 0.18) 62%, var(--hero-wash-bottom) 100%);
}

:root[data-theme] .hero-copy {
  color: #405268;
}

:root[data-theme] .button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(31, 57, 84, 0.18);
}

:root[data-theme] .button.secondary:hover,
:root[data-theme] .button.secondary:focus-visible {
  background: #fff;
}

:root[data-theme] .hero-facts {
  border-color: rgba(31, 57, 84, 0.15);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

:root[data-theme] .hero-facts div {
  background: rgba(255, 255, 255, 0.76);
}

:root[data-theme] .hero-facts dt {
  color: #64758a;
}

:root[data-theme] .hero-facts dd {
  color: var(--ink);
}

:root[data-theme] .service-card,
:root[data-theme] .process-steps li,
:root[data-theme] .tag-cloud span,
:root[data-theme] .faq-item {
  box-shadow: var(--shadow);
}

:root[data-theme] .band {
  color: var(--ink);
  background: var(--light-band);
}

:root[data-theme] .band .section-kicker {
  color: var(--teal-dark);
}

:root[data-theme] .scenario-item {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

:root[data-theme] .scenario-item span {
  color: #fff;
  background: var(--teal);
}

:root[data-theme] .scenario-item h3 {
  color: var(--ink);
}

:root[data-theme] .scenario-item p {
  color: var(--muted);
}

:root[data-theme] .contact-section {
  color: var(--ink);
  background:
    linear-gradient(120deg, var(--light-contact-start), var(--light-contact-end)),
    #f7fbff;
  border-top: 1px solid var(--line);
}

:root[data-theme] .contact-section .section-kicker {
  color: var(--amber);
}

:root[data-theme] .contact-section p {
  color: var(--muted);
}

:root[data-theme] .site-footer {
  color: #5e6e82;
  background: #f9fcff;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  .theme-toggle span {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 11, 18, 0.9) 0%, rgba(7, 11, 18, 0.66) 100%),
      linear-gradient(180deg, rgba(7, 11, 18, 0.22), rgba(244, 247, 250, 0.98));
  }

  :root[data-theme] .hero-overlay {
    background:
      linear-gradient(90deg, var(--hero-wash-strong) 0%, var(--hero-wash-mid) 100%),
      linear-gradient(180deg, rgba(250, 253, 255, 0.18), var(--hero-wash-bottom));
  }

  .hero-content {
    padding-top: 104px;
  }

  .hero-facts,
  .service-grid,
  .scenario-list,
  .process-steps,
  .faq-list,
  .two-column {
    grid-template-columns: 1fr;
  }

  .process-steps li {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .brand-text {
    max-width: 168px;
  }

  .hero-content,
  .section-inner,
  .contact-inner {
    width: min(100% - 32px, var(--max));
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .service-card,
  .scenario-item,
  .process-steps li {
    padding: 22px;
  }
}
