:root {
  --ink: #063b4a;
  --muted: #55737c;
  --paper: #f5fbfc;
  --white: #ffffff;
  --blue: #087c99;
  --blue-deep: #063b4a;
  --blue-soft: #e7f6f8;
  --cyan: #4fbfd0;
  --orange: #c8953a;
  --orange-soft: #fff7e8;
  --line: #c9e4e9;
  --shadow: 0 24px 70px rgba(8, 124, 153, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 74px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(201, 228, 233, 0.78);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(8, 124, 153, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 184px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #123f4a;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--blue);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.btn.primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--blue), #075e75);
  box-shadow: 0 14px 28px rgba(8, 124, 153, 0.24);
}

.btn.secondary {
  color: var(--blue-deep);
  background: var(--white);
  border-color: rgba(8, 124, 153, 0.28);
}

.btn-icon {
  width: 20px;
  text-align: center;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: #f4fbfc;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 760px;
  margin: 0 auto;
  padding: 120px 0 54px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(820px, 100%);
  margin-top: 64px;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.6);
  border-top: 2px solid rgba(8, 124, 153, 0.32);
  border-bottom: 1px solid rgba(8, 124, 153, 0.18);
  backdrop-filter: blur(8px);
}

.hero-panel div {
  display: grid;
  align-content: start;
  min-height: 90px;
  padding: 8px 28px 8px 0;
  background: transparent;
  border-right: 1px solid rgba(8, 124, 153, 0.2);
}

.hero-panel div:not(:first-child) {
  padding-left: 28px;
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  color: var(--blue);
  font-size: 24px;
}

.hero-panel span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.ability-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 0 14px;
  color: var(--blue);
  border: 1px solid rgba(8, 124, 153, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(231, 246, 248, 0.72));
  box-shadow: 0 16px 30px rgba(8, 124, 153, 0.12);
}

.ability-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

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

.intro-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 10px;
}

.intro-text p,
.section-head p,
.feature-card p,
.ai-copy p,
.timeline p,
.contact-info p,
.service-list span {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.services,
.overseas {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  background: var(--white);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.section-head > p {
  max-width: 420px;
  padding-top: 34px;
}

.feature-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 34px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(8, 124, 153, 0.1) 0%, rgba(8, 124, 153, 0) 52%),
    linear-gradient(180deg, rgba(200, 149, 58, 0.08) 0%, rgba(255, 255, 255, 0) 45%);
}

.feature-card img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(8, 124, 153, 0.16);
}

.tag {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.feature-card h3,
.service-grid h3,
.solution-grid h3,
.platform-grid h3,
.timeline h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.34;
}

.feature-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-card li {
  position: relative;
  padding-left: 20px;
  color: #274d57;
  line-height: 1.7;
}

.feature-card li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid article {
  min-height: 248px;
  padding: 30px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.service-grid article:nth-child(3n) {
  border-right: 0;
}

.service-grid article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.service-grid p,
.solution-grid p,
.platform-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.ai-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  background: #eaf7f9;
}

.ai-band > img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.ai-copy {
  display: grid;
  align-content: center;
  padding: clamp(38px, 5vw, 78px);
  background: linear-gradient(180deg, #ffffff 0%, #eaf7f9 100%);
}

.service-list {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.service-list div {
  position: relative;
  padding: 20px 0 20px 34px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.service-list div::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(200, 149, 58, 0.14);
}

.service-list strong,
.service-list span {
  display: block;
}

.service-list strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
}

.solutions {
  background: var(--paper);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.solution-grid article {
  min-height: 230px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  background: transparent;
}

.solution-grid article:last-child {
  border-right: 0;
}

.solution-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.process {
  background: var(--white);
}

.platforms {
  background:
    linear-gradient(180deg, rgba(8, 124, 153, 0.05), rgba(8, 124, 153, 0)),
    var(--paper);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.platform-grid article {
  min-height: 260px;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

.platform-grid article:last-child {
  border-right: 0;
}

.platform-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--white);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  font-weight: 900;
}

.section-head.compact {
  margin-bottom: 28px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: relative;
  margin: 0;
  padding: 34px 0 0;
  list-style: none;
  background: transparent;
  border-top: 1px solid var(--line);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--orange));
}

.timeline li {
  position: relative;
  min-height: 250px;
  padding: 42px 28px 0 0;
  background: transparent;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 7px rgba(8, 124, 153, 0.13);
}

.timeline span {
  display: block;
  margin-bottom: 26px;
  color: var(--blue);
  font-size: 30px;
  font-weight: 900;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 46px;
  align-items: start;
}

.contact-info > p {
  margin-top: 18px;
}

.contact-cards {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-cards a,
.contact-cards div {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.contact-cards .qr-card {
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 18px;
}

.contact-cards img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-cards a:last-child,
.contact-cards div:last-child {
  border-bottom: 0;
}

.contact-cards span {
  color: var(--muted);
  font-weight: 700;
}

.contact-cards strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.5;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form label:nth-of-type(6),
.contact-form button,
.form-note {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #f8fcfd;
  font: inherit;
}

.contact-form textarea {
  padding-top: 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(8, 124, 153, 0.16);
  border-color: var(--blue);
}

.contact-form .btn {
  width: max-content;
  margin-top: 8px;
  font: inherit;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 0.8fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #063b4a;
}

.site-footer div {
  display: grid;
  gap: 8px;
}

.site-footer img {
  width: 184px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
  align-content: center;
}

.footer-contact {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
}

.footer-contact img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  background: var(--white);
}

.footer-contact div {
  display: grid;
  gap: 6px;
}

.footer-contact a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.5;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--white);
}

.page-hero {
  position: relative;
  padding: 150px clamp(20px, 5vw, 72px) 82px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(245, 251, 252, 0.98) 0%, rgba(245, 251, 252, 0.78) 54%, rgba(245, 251, 252, 0.4) 100%),
    url("public/assets/hero-xfl-ai-marketing.png") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.page-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.page-section.alt {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  background: var(--white);
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-grid article {
  min-height: 230px;
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.page-grid article:nth-child(3n) {
  border-right: 0;
}

.page-grid article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.page-grid h3,
.split-copy h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.35;
}

.page-grid p,
.split-copy p,
.page-list li,
.page-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: center;
}

.split-section img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-list {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-list li {
  position: relative;
  padding: 18px 0 18px 28px;
  border-bottom: 1px solid var(--line);
}

.page-list li::before {
  content: "";
  position: absolute;
  top: 29px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.page-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 124, 153, 0.1), rgba(255, 255, 255, 0.82)),
    var(--white);
}

.page-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.nav .active {
  color: var(--blue);
}

@media (max-width: 1040px) {
  .site-header {
    position: absolute;
  }

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

  .intro,
  .intro-text,
  .feature-card,
  .ai-band,
  .contact,
  .timeline {
    grid-template-columns: 1fr;
  }

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

  .service-grid article:nth-child(2n) {
    border-right: 0;
  }

  .service-grid article {
    border-bottom: 1px solid var(--line);
  }

  .service-grid article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .ai-band,
  .contact {
    min-width: 0;
  }

  .ai-band,
  .solution-grid,
  .platform-grid,
  .page-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .solution-grid article,
  .solution-grid article:last-child,
  .platform-grid article,
  .platform-grid article:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .solution-grid article:last-child,
  .platform-grid article:last-child {
    border-bottom: 0;
  }

  .page-grid article,
  .page-grid article:nth-child(3n),
  .page-grid article:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .page-grid article:last-child {
    border-bottom: 0;
  }

  .page-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .brand img {
    width: 156px;
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding-top: 96px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-panel {
    margin-top: 42px;
    padding: 0;
    background: rgba(255, 255, 255, 0.64);
  }

  .hero-panel div {
    min-height: 92px;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(8, 124, 153, 0.18);
  }

  .hero-panel div:not(:first-child) {
    padding-left: 18px;
  }

  .hero-panel div:last-child {
    border-bottom: 0;
  }

  .hero-panel,
  .service-grid,
  .platform-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .section,
  .services,
  .overseas,
  .page-section,
  .page-section.alt {
    width: 100%;
    padding: 70px 16px;
  }

  .page-hero {
    padding: 110px 16px 66px;
  }

  .page-hero h1 {
    font-size: 40px;
  }

  .split-section img {
    min-height: 280px;
  }

  .page-cta {
    padding: 28px;
  }

  .feature-card {
    padding: 22px;
  }

  .feature-card img {
    height: 260px;
  }

  .ai-band > img {
    min-height: 320px;
  }

  .ai-copy {
    padding: 34px 18px;
  }

  .service-grid,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article,
  .service-grid article:nth-child(2n),
  .service-grid article:nth-child(3n),
  .service-grid article:nth-last-child(-n + 2),
  .service-grid article:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-grid article:last-child {
    border-bottom: 0;
  }

  .timeline {
    padding-top: 0;
    border-top: 0;
  }

  .timeline::before {
    top: 8px;
    bottom: 12px;
    left: 7px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--blue), var(--cyan), var(--orange));
  }

  .timeline li {
    min-height: auto;
    padding: 0 0 34px 36px;
  }

  .timeline li::before {
    top: 4px;
    left: 0;
  }

  .timeline span {
    margin-bottom: 12px;
  }

  .contact-form label:nth-of-type(6),
  .contact-form button,
  .form-note {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

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