:root {
  --bg: #070b0e;
  --panel: #0d151a;
  --panel-2: #111c22;
  --text: #eef7f8;
  --muted: #a8b8bd;
  --line: rgba(175, 226, 232, 0.18);
  --cyan: #39d8ff;
  --amber: #f1a83f;
  --coral: #ff6f61;
  --emerald: #39d99a;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --max: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(57, 216, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 216, 255, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  font-family: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

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

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

p {
  margin: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  color: #061014;
  background: var(--cyan);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 14, 0.82);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #061014;
  font-weight: 900;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--cyan), var(--emerald) 52%, var(--amber));
  box-shadow: 0 0 34px rgba(57, 216, 255, 0.34);
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.94rem;
  border-radius: var(--radius);
  transition: color 0.18s ease, background 0.18s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(57, 216, 255, 0.45);
  border-radius: var(--radius);
  color: #061014;
  background: linear-gradient(135deg, var(--cyan), #8cf4ff);
  font-weight: 800;
  box-shadow: 0 14px 38px rgba(57, 216, 255, 0.22);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-image) right center / cover no-repeat;
  filter: saturate(1.03) contrast(1.04);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 11, 14, 0.92) 0%, rgba(7, 11, 14, 0.62) 44%, rgba(7, 11, 14, 0.04) 100%),
    linear-gradient(180deg, rgba(7, 11, 14, 0.08) 0%, rgba(7, 11, 14, 0.82) 100%);
}

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

.hero-inner,
.page-hero .container {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 760px;
  padding: 82px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 720px;
  font-size: 3.8rem;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.28rem;
}

.hero-copy p {
  max-width: 650px;
  margin-top: 22px;
  color: #d3e2e6;
  font-size: 1.12rem;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 680px;
  margin-top: 46px;
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-metrics div {
  padding: 18px;
  background: rgba(7, 11, 14, 0.72);
}

.hero-metrics strong {
  display: block;
  font-size: 1.7rem;
  color: var(--white);
}

.hero-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 92px 0;
}

.section.compact {
  padding: 68px 0;
}

.band {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(57, 216, 255, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(241, 168, 63, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.025);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 520px;
  color: var(--muted);
}

.kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 18px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.service-card,
.case-card,
.article-card,
.metric-card,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(13, 21, 26, 0.82);
  box-shadow: var(--shadow);
}

.service-card,
.case-card,
.article-card {
  overflow: hidden;
}

.service-card img,
.case-card img,
.article-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.service-card .card-body,
.case-card .card-body,
.article-card .card-body,
.card {
  padding: 24px;
}

.card p,
.service-card p,
.case-card p,
.article-card p,
.contact-card p,
.metric-card p {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--cyan);
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: #dcecef;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.82rem;
}

.pill.cyan {
  color: #041015;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 44px;
}

.split.reverse {
  grid-template-columns: 0.98fr 1.02fr;
}

.media-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #dcecef;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--emerald);
  box-shadow: 0 0 16px rgba(57, 217, 154, 0.45);
}

.metric-card {
  padding: 24px;
}

.metric-card strong {
  display: block;
  color: var(--white);
  font-size: 2.1rem;
  line-height: 1;
}

.metric-card span {
  color: var(--amber);
  font-weight: 900;
}

.process {
  counter-reset: step;
}

.process .card {
  position: relative;
}

.process .card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  color: #061014;
  background: var(--amber);
  font-weight: 900;
}

.flow-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  scroll-margin-top: 96px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(57, 216, 255, 0.08), transparent 44%),
    rgba(13, 21, 26, 0.84);
  box-shadow: var(--shadow);
}

.flow-step {
  position: relative;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  right: -15px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  transform: rotate(45deg);
  z-index: 2;
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: #061014;
  border-radius: var(--radius);
  background: var(--cyan);
  font-weight: 900;
}

.flow-step h3 {
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.flow-step p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

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

.proof-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(13, 21, 26, 0.82);
}

.proof-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.proof-card p {
  color: var(--muted);
}

.case-outcomes,
.deliverable-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.case-outcomes li,
.deliverable-list li {
  padding: 11px 12px;
  color: #dcecef;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.case-study {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 0;
  scroll-margin-top: 96px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(13, 21, 26, 0.82);
  box-shadow: var(--shadow);
}

.case-study img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.case-study-body {
  padding: 30px;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.case-meta span {
  padding: 6px 10px;
  color: var(--cyan);
  border: 1px solid rgba(57, 216, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(57, 216, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.case-grid div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.case-grid h4 {
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 0.92rem;
}

.case-grid p {
  color: var(--muted);
}

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 430px;
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-image) right center / cover no-repeat;
}

.page-hero .container {
  padding: 96px 0 58px;
}

.page-hero p {
  max-width: 680px;
  margin-top: 18px;
  color: #d3e2e6;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--cyan);
}

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

.detail-list li {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.quote-band {
  padding: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(57, 216, 255, 0.12), rgba(241, 168, 63, 0.08));
}

.quote-band p {
  color: var(--white);
  font-size: 1.55rem;
  line-height: 1.45;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
}

.contact-card {
  padding: 26px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: #dcecef;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  font: inherit;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-note {
  min-height: 24px;
  color: var(--emerald);
  font-weight: 800;
}

.cta-band {
  padding: 62px 0;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(57, 216, 255, 0.12), rgba(255, 111, 97, 0.08), rgba(241, 168, 63, 0.1)),
    #091014;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.cta-inner p {
  max-width: 650px;
  color: var(--muted);
}

.site-footer {
  padding: 48px 0 28px;
  background: #05080a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
}

.footer-grid h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 22px;
  font-size: 0.88rem;
}

.icp-link,
.deerflow-link {
  opacity: 0.62;
}

.icp-link:hover,
.deerflow-link:hover {
  opacity: 1;
}

.footer-legal {
  color: rgba(238, 246, 255, 0.58);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 2rem;
  }

  .site-nav,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header.open .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 82px;
    display: grid;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(7, 11, 14, 0.96);
  }

  .grid-3,
  .grid-4,
  .flow-map,
  .proof-grid,
  .split,
  .split.reverse,
  .case-study,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .media-frame img {
    height: 360px;
  }
}

@media (max-width: 680px) {
  .nav-shell,
  .hero-inner,
  .container {
    width: min(100% - 28px, var(--max));
  }

  .brand-text span {
    display: none;
  }

  .hero {
    min-height: 82vh;
  }

  h1 {
    font-size: 2.18rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .section {
    padding: 66px 0;
  }

  .section-head,
  .cta-inner,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .flow-map,
  .proof-grid,
  .split,
  .split.reverse,
  .case-study,
  .case-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .flow-map {
    padding: 12px;
  }

  .service-card img,
  .case-card img,
  .article-card img,
  .case-study img,
  .media-frame img {
    height: 260px;
    min-height: 260px;
  }

  .quote-band {
    padding: 28px;
  }

  .quote-band p {
    font-size: 1.18rem;
  }
}
