/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand__name {
  display: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

/* Nav pill — light variant of source's floating capsule */
.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem;
  background: var(--color-surface);
  border-radius: var(--pill);
  border: 1px solid var(--color-border);
}

.nav-item {
  position: relative;
}

.nav > a,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: var(--pill);
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.nav a[aria-current="page"] {
  background: var(--color-accent);
  color: #fff;
}

.nav-item > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
}

.subnav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  display: none;
  min-width: 360px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 0.55rem;
  box-shadow: var(--shadow-card);
}

/* Transparent bridge across the 10px gap so the menu stays open while the
   pointer travels from the Solutions link down into the dropdown. */
.subnav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.subnav a {
  display: block;
  width: 100%;
  white-space: normal;
  line-height: 1.35;
  color: var(--color-text);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
}

.subnav a:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.nav-item:hover .subnav,
.nav-item:focus-within .subnav {
  display: block;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button--primary {
  background: var(--color-accent);
  color: #fff;
}

.button--primary:hover {
  background: var(--color-accent-strong);
  color: #fff;
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  color: var(--color-accent-strong);
  border-color: var(--color-border);
}

.button--ghost:hover {
  background: var(--color-accent-soft);
}

.button__arrow {
  font-size: 1.1em;
  line-height: 1;
}

/* ---------- Hero with globe ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.hero__globe-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

/* Canvas-rendered wireframe globe — square so the projection stays circular. */
.hero__globe {
  display: block;
  width: min(720px, 94vw);
  height: min(720px, 94vw);
}

.hero__inner {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 0 5.5rem;
}

.hero__pill {
  display: inline-flex;
  margin-bottom: 1.4rem;
  padding: 0.4rem 1rem;
  border-radius: var(--pill);
  border: 1px solid var(--color-accent);
  color: var(--color-accent-strong);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.1;
  font-weight: 600;
  max-width: 16ch;
  color: var(--color-text);
  /* Soft white halo keeps dark text crisp over the green wireframe */
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.9);
}

.hero__lead {
  margin: 1.4rem auto 0;
  max-width: 44ch;
  color: var(--color-muted);
  font-size: 1.1rem;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.95);
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Partner strip ---------- */
.partners {
  padding: 3.5rem 0 4.5rem;
}

/* Deep-green 托底 panel for the partner logos */
.partners__panel {
  background: linear-gradient(160deg, #135446 0%, #0e463a 100%);
  border-radius: var(--radius-lg);
  padding: 2.6rem clamp(1.5rem, 4vw, 3rem) 2.8rem;
  box-shadow: var(--shadow-card);
}

.partners__label {
  text-align: center;
  color: rgba(214, 255, 240, 0.78);
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

/* Full 5-logo strip rendered as light marks on the green panel. lighten()
   keeps the white logos and resolves the strip's near-black background
   exactly into the panel green (panel is lighter per-channel). */
.partner-strip {
  display: block;
  width: 100%;
  max-width: 940px;
  height: auto;
  margin: 0 auto;
  mix-blend-mode: lighten;
}

/* ---------- Card / solution grids ---------- */
.about-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.solutions-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

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

.card__icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.text-center .card__icon {
  margin-left: auto;
  margin-right: auto;
}

/* Clickable, animated solution cards (icon-forward) */
.solution-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  padding: 2.2rem 1.6rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1.2), box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.solution-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  margin-bottom: 0.4rem;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.3, 1.3), background 0.28s ease,
    color 0.28s ease;
}

.solution-card__icon svg {
  width: 38px;
  height: 38px;
}

.solution-card h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--color-green-deep);
}

.solution-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  flex: 1;
}

.solution-card:hover,
.solution-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(14, 26, 22, 0.14);
  border-color: var(--color-accent);
  outline: none;
}

.solution-card:hover .solution-card__icon,
.solution-card:focus-visible .solution-card__icon {
  transform: scale(1.12) rotate(-5deg);
  background: var(--color-accent);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .solution-card,
  .solution-card__icon {
    transition: none;
  }
  .solution-card:hover,
  .solution-card:focus-visible {
    transform: none;
  }
  .solution-card:hover .solution-card__icon,
  .solution-card:focus-visible .solution-card__icon {
    transform: none;
  }
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5.5rem 0;
  background:
    radial-gradient(900px 360px at 50% 120%, rgba(31, 122, 104, 0.5), transparent 70%),
    var(--color-surface);
}

.cta h2 {
  margin: 0 auto 1.6rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 18ch;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 0 2.5rem;
  background: var(--color-surface);
  font-size: 0.95rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
}

.footer-columns h4 {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
}

.footer-brand img {
  height: 38px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-columns a,
.footer-columns p {
  display: block;
  color: var(--color-text);
  margin: 0.45rem 0;
}

.footer-columns a:hover {
  color: var(--color-accent-strong);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--color-muted);
}

.legal-links {
  display: flex;
  gap: 1.2rem;
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.contact-list li {
  margin: 0 0 1.2rem;
  color: var(--color-muted);
}

.contact-list strong {
  color: var(--color-text);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-accent-soft);
  border-color: var(--color-accent);
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---------- Generic page header ---------- */
.page-hero {
  padding: 4.5rem 0 3rem;
  background:
    radial-gradient(800px 320px at 80% -20%, rgba(57, 141, 141, 0.1), transparent 70%),
    var(--color-bg);
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  max-width: 18ch;
}

.page-hero p {
  margin: 0;
  max-width: 60ch;
  color: var(--color-muted);
  font-size: 1.1rem;
}

/* Two-column solution hero: text + cinematic image */
.solution-hero {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.solution-hero__text .button {
  margin-top: 1.6rem;
}

.solution-hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 60px rgba(14, 26, 22, 0.18);
}

@media (max-width: 860px) {
  .solution-hero {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    right: 1.25rem;
    top: 74px;
    min-width: 280px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    padding: 0.6rem;
    box-shadow: var(--shadow-card);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item > a::after {
    margin-left: auto;
  }

  .subnav {
    position: static;
    display: block;
    min-width: 0;
    margin-top: 0.35rem;
    box-shadow: none;
    border: none;
    padding: 0 0 0 0.6rem;
  }

  .subnav::before {
    display: none;
  }

  .hero__inner {
    min-height: 520px;
  }

  .partner-row,
  .about-grid,
  .solutions-grid,
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 560px) {
  .partner-row,
  .about-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
  }
}
