:root {
  --navy: #001721;
  --navy-deep: #001119;
  --blue: #4d76ff;
  --blue-hover: #3b63e8;
  --white: #ffffff;
  --ink: #001721;
  --muted-light: #bfc5c8;
  --muted-dark: #405159;
  --hairline-dark: rgba(0, 23, 33, 0.22);
  --hairline-light: rgba(255, 255, 255, 0.2);
  --font-sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(0, 23, 33, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline-light);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  white-space: nowrap;
}

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

.site-nav a {
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.18s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline-light);
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  border-right: 1px solid var(--hairline-light);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.lang-btn:last-child {
  border-right: none;
}

.lang-btn:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
}

.lang-btn.active {
  background-color: var(--blue);
  color: var(--white);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hairline-light);
  color: var(--white);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

/* Split Sections (Hero / About / Contact) */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.split-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background-color: var(--navy-deep);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.split-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px;
}

/* Hero */
.hero-panel {
  background-color: var(--navy);
  align-items: center;
  text-align: center;
}

.hero-title {
  margin: 0 0 18px 0;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.01em;
}

.hero-subtitle {
  margin: 0 0 32px 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Buttons */
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  background-color: var(--white);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--white);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.btn-light:hover {
  background-color: transparent;
  color: var(--white);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 28px;
  background-color: var(--navy);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--navy);
  cursor: pointer;
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.btn-dark:hover {
  background-color: #042b3c;
}

/* About */
.about-panel {
  background-color: var(--blue);
  color: var(--white);
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 10px 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.92;
}

.section-heading {
  margin: 0 0 22px 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
}

.about-copy {
  margin: 0 0 32px 0;
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.95);
}

/* Services (White Swiss Grid) */
.services-section {
  background-color: var(--white);
  color: var(--ink);
  padding: 88px 40px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.centered {
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
}

.service-card {
  padding: 36px 28px 42px 28px;
  border-right: 1px solid var(--hairline-dark);
}

.service-card:last-child {
  border-right: none;
}

.service-num {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
}

.service-card h3 {
  margin: 0 0 16px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.service-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--muted-dark);
}

/* Portfolio */
.portfolio-section {
  background-color: var(--navy);
  color: var(--white);
  padding: 88px 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline-light);
  background-color: var(--navy-deep);
  aspect-ratio: 1 / 1;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.portfolio-card:hover img {
  transform: scale(1.04);
}

.portfolio-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  background: linear-gradient(180deg, rgba(0, 23, 33, 0) 0%, rgba(0, 23, 33, 0.92) 100%);
}

.portfolio-caption span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #88a8ff;
  margin-bottom: 4px;
}

.portfolio-caption strong {
  font-size: 1.02rem;
  font-weight: 600;
}

/* Partners (Blue Grid) */
.partners-section {
  background-color: var(--blue);
  color: var(--white);
  padding: 80px 40px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid rgba(0, 23, 33, 0.35);
}

.partner-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 136px;
  padding: 20px;
  border-right: 1px solid rgba(0, 23, 33, 0.35);
  color: var(--navy);
}

.partner-cell:last-child {
  border-right: none;
}

/* Statement Banner */
.statement-banner {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  background-color: var(--navy-deep);
  overflow: hidden;
}

.statement-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(0.45);
  transform: scale(1.03);
}

.statement-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.statement-content h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

/* Testimonials */
.testimonials-section {
  background-color: var(--navy);
  color: var(--white);
  padding: 88px 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  padding: 36px 30px;
  border: 1px solid var(--hairline-light);
  background-color: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.testimonial-quote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-author strong {
  display: block;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 4px;
}

.testimonial-author span {
  font-size: 0.86rem;
  color: var(--muted-light);
}

/* Contact */
.contact-panel {
  background-color: var(--white);
  color: var(--ink);
}

.contact-form {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.86rem;
  color: var(--ink);
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 2px;
  border: none;
  border-bottom: 1px solid rgba(0, 23, 33, 0.45);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--blue);
}

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

.form-feedback {
  font-size: 0.88rem;
  min-height: 1.2em;
  color: #0b6e4f;
  font-weight: 500;
}

.form-feedback.error {
  color: #c92a2a;
}

/* Footer */
.site-footer {
  background-color: var(--navy);
  color: var(--white);
  border-top: 1px solid var(--hairline-light);
}

.footer-grid {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--hairline-light);
}

.footer-cell {
  padding: 36px 40px;
  border-right: 1px solid var(--hairline-light);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-cell:last-child {
  border-right: none;
}

.footer-cell strong {
  display: block;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-cell p {
  margin: 4px 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.footer-bottom {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--muted-light);
}

/* Subpages (Blog, Privacy, Accessibility) */
.page-hero {
  background-color: var(--navy);
  padding: 64px 40px 48px 40px;
  border-bottom: 1px solid var(--hairline-light);
}

.page-hero h1 {
  margin: 0 0 10px 0;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted-light);
  max-width: 720px;
}

.page-body {
  background-color: var(--white);
  color: var(--ink);
  padding: 64px 40px;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.blog-card {
  border: 1px solid var(--hairline-dark);
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-cover {
  height: 220px;
  background-color: var(--navy);
  overflow: hidden;
}

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

.blog-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.blog-meta {
  font-size: 0.82rem;
  color: var(--muted-dark);
}

.blog-content h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
}

.blog-content p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--muted-dark);
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin: 32px 0 12px 0;
  font-size: 1.35rem;
  color: var(--ink);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 16px 0;
  line-height: 1.8;
  color: var(--muted-dark);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .split-panel {
    padding: 52px 36px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card:nth-child(2) {
    border-right: none;
  }
  .service-card:nth-child(1),
  .service-card:nth-child(2) {
    border-bottom: 1px solid var(--hairline-dark);
  }
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .partner-cell {
    border-bottom: 1px solid rgba(0, 23, 33, 0.35);
  }
  .testimonials-grid,
  .blog-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 16px 22px;
  }
  .header-actions {
    gap: 10px;
  }
  .lang-btn {
    padding: 4px 7px;
    font-size: 0.72rem;
  }
  .nav-toggle {
    display: inline-block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--navy);
    border-bottom: 1px solid var(--hairline-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 22px 22px 22px;
    gap: 16px;
  }
  .site-nav.open {
    display: flex;
  }
  .split-section {
    grid-template-columns: 1fr;
  }
  .split-media {
    min-height: 300px;
  }
  .split-panel {
    padding: 44px 24px;
  }
  .services-section,
  .portfolio-section,
  .partners-section,
  .testimonials-section,
  .page-hero,
  .page-body {
    padding: 56px 22px;
  }
  .services-grid,
  .portfolio-grid,
  .partners-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-card,
  .partner-cell,
  .footer-cell {
    border-right: none;
    border-bottom: 1px solid var(--hairline-dark);
  }
  .partner-cell {
    border-bottom: 1px solid rgba(0, 23, 33, 0.35);
    min-height: 96px;
  }
  .footer-cell {
    border-bottom: 1px solid var(--hairline-light);
    padding: 28px 22px;
  }
  .footer-cell:last-child {
    border-bottom: none;
  }
  .footer-bottom {
    padding: 18px 22px;
  }
}
