/* ========================================
   Qiyun Zhisuang - Modern Tech Style System
   ======================================== */

/* CSS Variables - Bright Tech Theme */
:root {
  color-scheme: light;

  /* Vibrant Gradient Colors */
  --primary-blue: #0066ff;
  --primary-purple: #7c3aed;
  --primary-pink: #ec4899;
  --primary-orange: #f97316;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;

  /* Light Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;

  /* Gradient Backgrounds */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --gradient-vibrant: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
  --gradient-warm: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%);

  /* Surface Colors */
  --surface: rgba(255, 255, 255, 0.9);
  --surface-hover: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(102, 126, 234, 0.2);

  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* Effects */
  --glow-blue: 0 10px 40px rgba(102, 126, 234, 0.3);
  --glow-purple: 0 10px 40px rgba(124, 58, 237, 0.3);
  --glow-strong: 0 20px 60px rgba(102, 126, 234, 0.4);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);

  /* Spacing */
  --max: 1240px;
  --radius: 16px;
  --nav-height: 68px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.6s ease;
}

/* Local order checkout and payment-result surfaces. They never contain provider secrets. */
.payment-page {
  min-height: 100vh;
  background: #f7f7f5;
  color: #171717;
}

.payment-shell {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 32px 0 80px;
}

.payment-back {
  display: inline-flex;
  margin-bottom: 34px;
  color: #666;
  font-size: 14px;
}

.payment-back:hover { color: #171717; }

.payment-panel {
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid #dededb;
  background: #fff;
}

.payment-eyebrow {
  margin-bottom: 18px;
  color: #777;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.payment-panel h1 {
  margin-bottom: 20px;
  color: #171717;
  font-size: clamp(36px, 7vw, 64px);
  letter-spacing: 0;
  -webkit-text-fill-color: #171717;
}

.payment-intro,
.payment-note {
  max-width: 600px;
  color: #666;
  font-size: 15px;
}

.payment-state {
  margin: 30px 0 18px;
  padding: 14px 16px;
  border-left: 3px solid #999;
  background: #f7f7f5;
  color: #444;
}

.payment-state[data-kind="success"] { border-left-color: #16794a; color: #155c3b; }
.payment-state[data-kind="error"] { border-left-color: #a33b2b; color: #8a2e21; }

.order-summary {
  display: grid;
  gap: 0;
  margin: 24px 0;
  border-top: 1px solid #dededb;
}

.order-summary > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #dededb;
}

.order-summary dt { color: #777; font-size: 13px; }
.order-summary dd { margin: 0; color: #171717; font-size: 14px; overflow-wrap: anywhere; }

.order-items { margin: 22px 0; border-top: 1px solid #dededb; }
.order-item { padding: 12px 0; border-bottom: 1px solid #dededb; color: #444; font-size: 14px; }

.payment-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 12px 22px;
  border: 1px solid #171717;
  background: #171717;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.payment-action:hover:not(:disabled) { background: #333; }
.payment-action:disabled { cursor: not-allowed; opacity: .45; }
.payment-link { text-decoration: none; }

@media (max-width: 600px) {
  .payment-shell { width: min(100% - 28px, 760px); padding-top: 20px; }
  .payment-panel { padding: 28px 22px; }
  .order-summary > div { grid-template-columns: 1fr; gap: 3px; }
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 4px;
}

/* ========================================
   Loading Screen
   ======================================== */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loading-content {
  text-align: center;
  width: 300px;
}

.loading-text {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.3em;
  margin-bottom: 30px;
  animation: pulse 1s ease-in-out infinite;
}

.loading-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8), #ffffff);
  background-size: 200% 100%;
  animation: progressShine 1.5s linear infinite;
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transition: width 0.3s ease;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes progressShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   Particle Canvas Background
   ======================================== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ========================================
   Cursor Glow Effect
   ======================================== */
.cursor-glow {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(48px, 8vw, 120px);
  margin-bottom: 30px;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(36px, 6vw, 72px);
  margin-bottom: 24px;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 16px;
  color: var(--text-primary);
}

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

/* ========================================
   Utility Classes
   ======================================== */
.neon-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
}

/* ========================================
   Skip Link
   ======================================== */
.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--primary-blue);
  color: #ffffff;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-medium);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.09);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--nav-height);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 8px 0;
  text-decoration: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.brand:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-text small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 2px;
  min-width: 0;
  margin-left: auto;
}

.nav-links > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-links > a::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.nav-links > a:hover {
  background: rgba(100, 116, 139, 0.08);
  color: var(--text-primary);
}

.nav-links > a:hover::after,
.nav-links > a[aria-current="location"]::after {
  transform: scaleX(1);
}

.nav-links > a[aria-current="location"] {
  color: var(--primary-blue);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 12px;
  padding: 3px;
  border: 1px solid rgba(100, 116, 139, 0.15);
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.9);
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.language-button:hover {
  color: var(--primary-blue);
  background: rgba(255, 255, 255, 0.72);
}

.language-button[aria-pressed="true"] {
  background: #ffffff;
  color: #0052cc;
  box-shadow: 0 1px 4px rgba(71, 85, 105, 0.16);
}

.language-main {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
}

.language-region {
  display: none;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.86);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.menu-toggle:hover {
  border-color: rgba(0, 102, 255, 0.3);
  background: #ffffff;
}

.menu-toggle:active {
  transform: translateY(1px);
}

.menu-icon {
  display: grid;
  gap: 4px;
  width: 18px;
}

.menu-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Buttons
   ======================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 32px;
  border: 2px solid var(--primary-blue);
  border-radius: var(--radius);
  background: transparent;
  color: var(--primary-blue);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  z-index: -1;
}

.button:hover::before {
  transform: translateX(0);
}

.button:hover {
  color: #ffffff;
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
  border-color: transparent;
}

.button.neon-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--glow-blue);
}

.button.neon-button:hover {
  box-shadow: var(--glow-strong);
  transform: translateY(-4px);
}

.button.neon-button.pulse {
  animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
  }
  50% {
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.5);
  }
}

.button.glass-button {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-color: rgba(102, 126, 234, 0.3);
  color: var(--primary-blue);
}

.button.glass-button:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary-purple);
  color: var(--primary-purple);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
  justify-content: center;
}

.contact-band .button-row {
  justify-content: flex-start;
}

.contact-band .contact-cta {
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 10px;
  background: #ffffff;
  color: #3d3ca4;
  font-weight: 760;
  box-shadow: 0 14px 30px rgba(38, 31, 112, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: none;
}

.contact-band .contact-cta::before {
  display: none;
}

.contact-band .contact-cta:hover {
  border-color: #ffffff;
  background: #eef3ff;
  color: #2f2d8e;
  box-shadow: 0 18px 36px rgba(38, 31, 112, 0.3);
  transform: translateY(-2px);
}

.contact-band .contact-cta:active {
  box-shadow: 0 8px 18px rgba(38, 31, 112, 0.22);
  transform: translateY(0);
}

.contact-band .contact-cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#hero-particles {
  width: 100%;
  height: 100%;
}

.grid-overlay {
  display: none; /* Remove grid background */
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 30px 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero-copy {
  max-width: 900px;
  margin: auto 0;
}

.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  display: inline-block;
  opacity: 1 !important;
}

.glitch {
  position: relative;
  animation: glitchText 5s infinite;
}

@keyframes glitchText {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-2px, 2px); }
  94% { transform: translate(2px, -2px); }
  96% { transform: translate(-2px, -2px); }
  98% { transform: translate(2px, 2px); }
}

.hero-title-animated {
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  background: none;
  -webkit-text-fill-color: #ffffff;
  opacity: 1 !important;
}

.hero-description {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.95);
  opacity: 1 !important;
}

.scroll-indicator {
  position: relative;
  margin-top: 60px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.scroll-indicator svg {
  animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.scroll-arrow {
  display: none;
}

/* ========================================
   Identity Section
   ======================================== */
.identity-section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: #f8fafc;
  border-top: none;
  border-bottom: none;
}

.identity-inner {
  display: grid;
  grid-template-columns: minmax(250px, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(40px, 8vw, 100px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 30px;
}

.identity-intro h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 0;
  padding: 40px;
}

.identity-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  transition: all var(--transition-normal);
}

.identity-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.identity-item dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.identity-item dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ========================================
   Services Section
   ======================================== */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 30px;
  background: #ffffff;
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-heading p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.service-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-group {
  position: relative;
  padding: 40px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--radius);
  transition: all var(--transition-normal);
  transform-style: preserve-3d;
  min-height: 400px;
  box-shadow: var(--shadow-soft);
}

.service-card-3d {
  transition: transform 0.3s ease;
}

.card-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
  filter: blur(20px);
}

.service-group:hover .card-glow {
  opacity: 0.3;
}

.service-group h3 {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.service-group p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

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

.service-group li {
  position: relative;
  padding: 14px 14px 14px 40px;
  background: rgba(102, 126, 234, 0.1);
  border-left: 3px solid var(--primary-blue);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.service-group li::before {
  content: '▹';
  position: absolute;
  left: 14px;
  color: var(--primary-blue);
  font-size: 20px;
  line-height: 1;
}

.service-group li:hover {
  background: rgba(102, 126, 234, 0.15);
  transform: translateX(8px);
}

.service-group-automation {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

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

/* ========================================
   About Section
   ======================================== */
.about {
  position: relative;
  z-index: 1;
  background: #f8fafc;
  border-top: none;
  border-bottom: none;
}

.about-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 30px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.about-copy p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.principles {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

.principle {
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  border-left: 3px solid var(--primary-purple);
  border-radius: 8px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-soft);
}

.principle:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(8px);
  box-shadow: var(--shadow-medium);
}

.principle strong {
  display: block;
  font-size: 16px;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.principle span {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-media {
  position: relative;
  isolation: isolate;
  height: clamp(480px, 44vw, 560px);
  margin: 0;
  overflow: hidden;
  background: transparent;
}

#code-rain {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 72% 76% at 52% 50%, #000 28%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 76% at 52% 50%, #000 28%, transparent 100%);
}

.about-media img {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 138%;
  max-width: none;
  height: auto;
  object-fit: contain;
  opacity: 1;
  mix-blend-mode: normal;
  filter: saturate(1.06) contrast(1.08);
  transform: translate(-50%, -52%);
  transform-origin: center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-band {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.scan-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.02) 2px,
    rgba(255, 255, 255, 0.02) 4px
  );
  pointer-events: none;
  animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(20px); }
}

.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 60px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 30px;
}

.contact-inner h2 {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.contact-inner p {
  font-size: 18px;
  line-height: 1.8;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.95);
}

.contact-details {
  padding: 40px;
}

.contact-details h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.contact-details p {
  font-size: 15px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-details strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.contact-details a {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  font-weight: 600;
}

.contact-details a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.contact-details a:hover::after {
  transform: scaleX(1);
}

.contact-details.glass-card {
  background: #11183f;
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 3px solid #a8b8ff;
  box-shadow: 0 22px 50px rgba(20, 19, 72, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.contact-details.glass-card h3 {
  color: #ffffff;
}

.contact-details.glass-card p {
  color: rgba(255, 255, 255, 0.86);
}

.contact-details.glass-card strong {
  color: rgba(210, 220, 255, 0.72);
}

.contact-details.glass-card a {
  color: #d8f7ff;
}

.contact-details.glass-card a:hover {
  color: #ffffff;
}

/* ========================================
   Privacy Section
   ======================================== */
.privacy-section {
  position: relative;
  z-index: 1;
  padding: 120px 30px;
  background: #ffffff;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(50px, 10vw, 120px);
  max-width: var(--max);
  margin: 0 auto;
}

.privacy-intro {
  position: sticky;
  top: 120px;
}

.privacy-intro h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 20px;
}

.privacy-effective {
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.privacy-intro > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.privacy-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.privacy-detail {
  padding: 30px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--radius);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-soft);
}

.privacy-detail:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.privacy-detail h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 16px;
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}

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

.privacy-detail li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.privacy-detail li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-size: 18px;
}

.privacy-contact {
  grid-column: 1 / -1;
  padding: 30px;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid var(--primary-blue);
  border-radius: var(--radius);
  margin-top: 20px;
}

.privacy-contact strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.privacy-contact a {
  color: var(--text-primary);
  font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */
footer {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 30px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-record {
  white-space: nowrap;
}

/* ========================================
   Animations
   ======================================== */
.reveal {
  /* Don't hide content by default - let GSAP handle it */
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 900px) {
  .hero-grid,
  .identity-inner,
  .about-grid,
  .contact-inner,
  .privacy-layout,
  .service-group-automation {
    grid-template-columns: 1fr;
  }

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

  .identity-grid,
  .privacy-details {
    grid-template-columns: 1fr;
  }

  .about-media {
    height: clamp(320px, 60vw, 420px);
    margin-top: 12px;
  }

  .about-media img {
    width: 124%;
  }

  #code-rain {
    opacity: 0.15;
  }

  .privacy-intro {
    position: static;
  }

  .section {
    padding: 80px 30px;
  }

  .identity-section,
  .about-inner,
  .contact-inner {
    padding: 80px 30px;
  }
}

@media (max-width: 860px) {
  .nav-shell {
    min-height: 64px;
    padding: 0 20px;
  }

  .brand-text small {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(100, 116, 139, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px rgba(51, 65, 85, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links > a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 12px;
  }

  .nav-links > a::after {
    right: auto;
    bottom: 4px;
    width: 28px;
  }

  .language-switcher {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin: 8px 0 0;
    padding: 9px 0 0;
    border: 0;
    border-top: 1px solid rgba(100, 116, 139, 0.14);
    border-radius: 0;
    background: transparent;
  }

  .language-button {
    width: 100%;
    min-height: 42px;
    border: 1px solid transparent;
  }

  .language-button[aria-pressed="true"] {
    border-color: rgba(0, 102, 255, 0.16);
    background: rgba(0, 102, 255, 0.07);
    box-shadow: none;
  }
}

@media (max-width: 700px) {
  .nav-shell {
    min-height: 64px;
    padding: 0 20px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

  h1 {
    font-size: clamp(40px, 12vw, 64px);
    margin-bottom: 20px;
  }

  h2 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .hero-grid {
    padding: 80px 20px 60px;
  }

  .section {
    padding: 60px 20px;
  }

  .identity-section,
  .about-inner,
  .contact-inner,
  .privacy-section {
    padding: 60px 20px;
  }

  .service-group {
    padding: 30px;
    min-height: 0;
  }

  .about-media {
    height: min(74vw, 320px);
    margin-top: 8px;
  }

  .about-media img {
    width: 128%;
    transform: translate(-50%, -50%);
  }

  .contact-band .button-row {
    justify-content: stretch;
  }

  .contact-band .contact-cta {
    width: 100%;
  }

  .identity-grid {
    padding: 30px;
    gap: 16px;
  }

  .identity-item {
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
  }

  .cursor-glow {
    display: none;
  }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .grid-overlay {
    animation: none;
  }

  .loading-text {
    animation: none;
  }

  .glitch {
    animation: none;
  }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  #loading-screen,
  #particle-canvas,
  .cursor-glow,
  #hero-particles,
  #code-rain,
  .scroll-indicator,
  .scan-lines {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .site-header {
    position: static;
  }

  a {
    text-decoration: underline;
  }
}

/* ========================================
   Monochrome Product-Tech Redesign
   ======================================== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --text-primary: #171717;
  --text-secondary: #666666;
  --text-muted: #8a8a8a;
  --line: #eaeaea;
  --line-strong: #d4d4d4;
  --primary-blue: #0070f3;
  --primary-purple: #171717;
  --primary-pink: #171717;
  --accent-cyan: #0070f3;
  --surface: #ffffff;
  --glass-bg: #ffffff;
  --glass-border: #eaeaea;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 16px 36px rgba(0, 0, 0, 0.1);
  --radius: 6px;
  --nav-height: 64px;
}

html {
  scroll-padding-top: var(--nav-height);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  overflow-x: clip;
}

h1,
h2,
h3 {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

p,
li,
dd {
  letter-spacing: 0;
}

#loading-screen {
  background: #ffffff;
}

#loading-screen .loading-text {
  color: #171717;
  text-shadow: none;
}

#loading-screen .loading-bar {
  background: #eaeaea;
}

#loading-screen .loading-progress {
  background: #171717;
  box-shadow: none;
}

#particle-canvas,
.cursor-glow,
#hero-particles,
.scroll-indicator,
.scan-lines {
  display: none !important;
}

.site-header {
  z-index: 100;
  min-height: var(--nav-height);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: var(--nav-height);
  max-width: var(--max);
  padding: 0 32px;
}

.brand {
  gap: 0;
  min-width: 210px;
  color: var(--text-primary);
}

.brand-mark {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-text {
  gap: 2px;
}

.brand-text strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  background: none;
  -webkit-text-fill-color: #0070f3;
  color: #0070f3;
}

.brand-text small {
  color: #8a8a8a;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.brand:hover strong {
  color: var(--text-primary);
}

.nav-links {
  gap: 2px;
}

.nav-links a,
.language-button,
.menu-toggle {
  border: 1px solid transparent;
  border-radius: 999px;
  color: #666666;
  font-size: 13px;
  font-weight: 500;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-links a {
  padding: 8px 11px;
}

.nav-links a:hover,
.nav-links a[aria-current="location"] {
  border-color: var(--line);
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.language-switcher {
  gap: 2px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.language-button {
  min-height: 32px;
  padding: 5px 8px;
  background: transparent;
  color: #8a8a8a;
  cursor: pointer;
}

.language-button:hover,
.language-button[aria-pressed="true"] {
  border-color: #171717;
  background: #171717;
  color: #ffffff;
}

.language-main {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.menu-toggle {
  color: var(--text-primary);
}

.menu-toggle:hover {
  border-color: var(--line-strong);
  background: var(--bg-tertiary);
}

.hero {
  min-height: calc(100dvh - var(--nav-height));
  border-bottom: 1px solid var(--line);
  background: var(--bg-secondary);
}

.hero-background {
  z-index: 0;
  background-image: linear-gradient(to right, transparent calc(50% - 0.5px), rgba(23, 23, 23, 0.07) 50%, transparent calc(50% + 0.5px)), linear-gradient(to bottom, transparent calc(50% - 0.5px), rgba(23, 23, 23, 0.07) 50%, transparent calc(50% + 0.5px));
  background-size: 100% 100%, 100% 100%;
}

.hero-background::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 51%;
  content: "";
  background: linear-gradient(90deg, transparent 0%, rgba(250, 250, 250, 0.18) 20%, rgba(250, 250, 250, 0.05) 100%), url("images/hero-technology-background.jpg") center / cover no-repeat;
  filter: grayscale(1) contrast(1.15);
  opacity: 0.18;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 100%);
}

.hero-background::after {
  display: none;
}

.grid-overlay {
  display: block;
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(23, 23, 23, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 23, 23, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.34;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 80px;
  min-height: calc(100dvh - var(--nav-height));
  max-width: var(--max);
  padding: 96px 32px 120px;
  text-align: left;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
}

.kicker {
  display: inline-block;
  margin-bottom: 24px;
  color: #666666;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title-animated {
  max-width: 620px;
  margin-bottom: 28px;
  color: #171717;
  font-size: 72px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
  text-shadow: none;
  -webkit-text-fill-color: #171717;
}

.hero-description {
  max-width: 560px;
  margin: 0 0 32px;
  color: #666666;
  font-size: 18px;
  line-height: 1.7;
}

.button-row {
  justify-content: flex-start;
  gap: 10px;
  margin-top: 0;
}

.button {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #ffffff;
  color: #171717;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button::before {
  display: none;
}

.button:hover {
  border-color: #cfcfcf;
  background: #f5f5f5;
  color: #171717;
  box-shadow: none;
  transform: translateY(-1px);
}

.hero .primary-action,
.contact-band .contact-cta {
  border-color: #171717;
  background: #171717;
  color: #ffffff;
}

.hero .primary-action:hover,
.contact-band .contact-cta:hover {
  border-color: #333333;
  background: #333333;
  color: #ffffff;
}

.hero .secondary-action {
  border-color: #e5e5e5;
  background: #ffffff;
  color: #171717;
}

.hero .secondary-action:hover {
  border-color: #cfcfcf;
  background: #f5f5f5;
}

.identity-section {
  padding: 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.identity-inner {
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1.4fr);
  gap: 80px;
  max-width: var(--max);
  padding: 0 32px;
}

.identity-intro {
  padding: 72px 0;
}

.section-label,
.section-label.neon-text {
  display: inline-block;
  margin-bottom: 18px;
  color: #737373;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.identity-intro h2 {
  max-width: 310px;
  margin-bottom: 0;
  font-size: 42px;
  line-height: 1.04;
}

.identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.identity-item {
  min-height: 145px;
  padding: 30px 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  transition: background 160ms ease;
}

.identity-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.identity-item:hover {
  background: #fafafa;
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.identity-item dt {
  margin-bottom: 12px;
  color: #8a8a8a;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.identity-item dd {
  color: #171717;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.section {
  max-width: none;
  padding: 128px 32px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: end;
  gap: 80px;
  max-width: var(--max);
  margin: 0 auto 60px;
  text-align: left;
}

.section-heading h2 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 52px;
}

.section-heading p {
  max-width: 480px;
  margin-bottom: 0;
  color: #666666;
  font-size: 16px;
  line-height: 1.7;
}

.service-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-group {
  min-height: 320px;
  padding: 36px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  transform: none;
  transition: background 180ms ease;
}

.service-group:hover {
  background: #fafafa;
  box-shadow: none;
  transform: none;
}

.service-group .card-glow {
  display: none;
}

.service-group h3 {
  margin-bottom: 16px;
  font-size: 24px;
  letter-spacing: 0;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.service-group p {
  max-width: 480px;
  color: #666666;
  font-size: 15px;
  line-height: 1.7;
}

.service-group ul {
  gap: 0;
  margin-top: 32px;
}

.service-group li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-left: 0;
  border-radius: 0;
  background: transparent;
  color: #171717;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.5;
  box-shadow: none;
  transform: none;
}

.service-group li:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.service-group li::before {
  display: none;
}

.service-group-automation {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  min-height: 0;
  background: #fafafa;
}

.service-group-automation:hover {
  background: #f5f5f5;
}

.about {
  color: #ffffff;
  border-bottom: 1px solid #252525;
  background: #111111;
}

.about-inner {
  max-width: var(--max);
  padding: 128px 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 80px;
  min-height: 0;
}

.about-copy {
  width: auto;
  padding: 0;
}

.about .section-label,
.about .section-label.neon-text {
  color: #a3a3a3;
}

.about h2 {
  max-width: 620px;
  margin-bottom: 28px;
  color: #ffffff;
  font-size: 52px;
}

.about-copy p {
  max-width: 590px;
  color: #a3a3a3;
  font-size: 16px;
  line-height: 1.75;
}

.about .principles {
  margin-top: 42px;
  border-color: #333333;
}

.about .principle {
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #333333;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.about .principle:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.about .principle strong {
  color: #ffffff;
  font-size: 14px;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.about .principle span {
  color: #bdbdbd;
  font-size: 14px;
  line-height: 1.6;
}

.about-media {
  height: 520px;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.about-media img {
  width: 124%;
  filter: saturate(0.85) contrast(1.08);
  transform: translate(-50%, -52%);
}

#code-rain {
  opacity: 0.1;
}

.contact-band {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: #171717;
}

.contact-inner {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 80px;
  max-width: var(--max);
  padding: 128px 32px;
}

.contact-inner h2 {
  max-width: 650px;
  margin-bottom: 24px;
  color: #171717;
  font-size: 60px;
  line-height: 0.98;
  background: none;
  -webkit-text-fill-color: #171717;
}

.contact-inner p {
  max-width: 560px;
  color: #666666;
  font-size: 17px;
  line-height: 1.7;
}

.contact-band .button-row {
  margin-top: 30px;
}

.contact-band .contact-cta {
  min-height: 44px;
  padding: 10px 18px;
  border-color: #171717;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  box-shadow: none;
}

.contact-band .contact-cta:hover {
  border-color: #333333;
  background: #333333;
  box-shadow: none;
}

.contact-details.glass-card {
  align-self: start;
  background: #111111;
  border: 1px solid #2d2d2d;
  border-left: 3px solid #ffffff;
  border-radius: 6px;
  box-shadow: none;
}

.contact-details.glass-card h3 {
  color: #ffffff;
}

.contact-details.glass-card p {
  color: #d4d4d4;
}

.contact-details.glass-card strong {
  color: #8f8f8f;
}

.contact-details.glass-card a {
  color: #ffffff;
}

.contact-details.glass-card a:hover {
  color: #b3b3b3;
}

.privacy-section {
  padding: 128px 32px;
  background: #ffffff;
}

.privacy-layout {
  grid-template-columns: minmax(230px, 0.55fr) minmax(0, 1.45fr);
  gap: 96px;
  max-width: var(--max);
  margin: 0 auto;
}

.privacy-intro {
  max-width: 380px;
}

.privacy-intro h2 {
  margin-bottom: 20px;
  font-size: 52px;
}

.privacy-effective {
  color: #171717;
  font-size: 14px;
  font-weight: 650;
  background: none;
  -webkit-text-fill-color: #171717;
}

.privacy-intro > p:last-child {
  color: #666666;
  font-size: 15px;
  line-height: 1.7;
}

.privacy-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.privacy-detail {
  padding: 24px 0 28px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.privacy-detail:hover {
  background: #ffffff;
  box-shadow: none;
  transform: none;
}

.privacy-detail h3 {
  margin-bottom: 14px;
  color: #171717;
  font-size: 18px;
  letter-spacing: 0;
}

.privacy-detail ul {
  gap: 10px;
  padding-left: 18px;
}

.privacy-detail li {
  color: #666666;
  font-size: 14px;
  line-height: 1.65;
}

.privacy-detail li::before {
  color: #171717;
}

.privacy-contact {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 0 0;
  color: #666666;
  font-size: 14px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.privacy-contact strong {
  color: #171717;
  background: none;
  -webkit-text-fill-color: #171717;
}

.privacy-contact a {
  color: #171717;
  text-decoration: underline;
  text-decoration-color: #cfcfcf;
  text-underline-offset: 4px;
}

footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  max-width: var(--max);
  padding: 28px 32px;
  color: #737373;
  font-size: 12px;
}

.footer-links a:hover {
  color: #171717;
}

.reveal,
.js .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .identity-inner,
  .about-grid,
  .contact-inner,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-background::before {
    top: 46%;
    width: 100%;
    height: 54%;
    opacity: 0.1;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
  }

  .hero-background::after {
    top: 52%;
    right: 6%;
    bottom: 8%;
    width: 88%;
  }

  .hero-grid {
    min-height: 740px;
    padding: 88px 24px 96px;
  }

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

  .identity-inner {
    gap: 0;
    padding: 0 24px;
  }

  .identity-intro {
    padding: 72px 0 36px;
  }

  .identity-grid {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section,
  .about-inner,
  .contact-inner,
  .privacy-section {
    padding: 88px 24px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 44px;
  }

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

  .service-group-automation {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-media {
    height: min(72vw, 420px);
  }

  .contact-inner {
    gap: 48px;
  }

  .privacy-layout {
    gap: 56px;
  }

  .privacy-intro {
    position: static;
    max-width: 620px;
  }
}

@media (max-width: 860px) {
  .nav-shell {
    min-height: var(--nav-height);
    padding: 0 20px;
  }

  .brand {
    min-width: 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .nav-links {
    top: var(--nav-height);
    right: 20px;
    left: 20px;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  }

  .nav-links a {
    border-radius: 6px;
    padding: 11px 12px;
  }

  .language-switcher {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 6px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .language-button {
    border-radius: 6px;
  }
}

@media (max-width: 700px) {
  .brand-mark {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero-grid {
    min-height: 680px;
    padding: 72px 20px 84px;
  }

  .hero-title-animated {
    font-size: 46px;
    letter-spacing: -0.065em;
  }

  .hero-description {
    font-size: 16px;
  }

  .identity-inner,
  .section,
  .about-inner,
  .contact-inner,
  .privacy-section {
    padding-right: 20px;
    padding-left: 20px;
  }

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

  .identity-item,
  .identity-item:nth-child(odd) {
    min-height: 0;
    border-right: 0;
  }

  .section-heading h2,
  .about h2,
  .privacy-intro h2 {
    font-size: 40px;
  }

  .service-group {
    min-height: 0;
    padding: 28px 24px;
  }

  .about .principle {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .about-media {
    height: min(78vw, 320px);
    margin-top: 12px;
  }

  .contact-inner h2 {
    font-size: 46px;
  }

  .contact-details.glass-card {
    padding: 28px;
  }

  .privacy-details {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-background {
    transform: none !important;
  }
}

/* Language and region selector: explicit labels avoid ambiguous territory codes. */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 18px;
  padding: 0 0 0 16px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
}

.language-label {
  color: #858585;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.language-control {
  position: relative;
  flex: 0 0 auto;
}

.language-trigger {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 181px;
  min-height: 34px;
  padding: 6px 11px 6px 13px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fafafa;
  color: #171717;
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

html.js .language-trigger {
  display: flex;
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
  border-color: #a8a8a8;
  background: #ffffff;
}

.language-trigger:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  border-color: #171717;
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

.language-chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.language-trigger[aria-expanded="true"] .language-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.language-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 240px;
  gap: 2px;
  padding: 5px;
  border: 1px solid #dedede;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(23, 23, 23, 0.14);
}

.language-menu[hidden] {
  display: none;
}

.language-option {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #5d5d5d;
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.language-option:hover,
.language-option:focus-visible,
.language-option[aria-selected="true"] {
  border-color: #e2e2e2;
  background: #f5f5f5;
  color: #171717;
}

.language-select {
  min-width: 156px;
  min-height: 34px;
  padding: 6px 28px 6px 11px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fafafa;
  color: #171717;
  color-scheme: light;
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

html.js .language-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.language-select:hover {
  border-color: #a8a8a8;
  background: #ffffff;
}

.language-select:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  border-color: #171717;
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

.language-select option {
  background: #ffffff;
  color: #171717;
}

@media (max-width: 860px) {
  .language-switcher {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: center;
    gap: 10px;
    margin: 8px 4px 0;
    padding: 10px 4px 2px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .language-label {
    font-size: 12px;
  }

  .language-control {
    width: 100%;
  }

  .language-trigger {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border-radius: 8px;
    font-size: 13px;
  }

  .language-menu {
    right: 0;
    left: 0;
    min-width: 0;
  }

  .language-select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border-radius: 8px;
    font-size: 13px;
  }
}

/* Standalone company pages used by public platform reviewers and customers. */
.nav-links > a[aria-current="page"],
.nav-links a[aria-current="page"] {
  border-color: var(--line);
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-links > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.footer-links a[aria-current="page"] {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.subpage-hero {
  min-height: min(620px, calc(100dvh - var(--nav-height)));
}

.subpage-hero .hero-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  min-height: min(620px, calc(100dvh - var(--nav-height)));
  padding-top: 72px;
  padding-bottom: 80px;
}

.subpage-hero .hero-title-animated {
  font-size: clamp(52px, 6vw, 76px);
}

.subpage-hero .hero-description {
  max-width: 620px;
}

body[data-page="about"] .subpage-hero .hero-background::before {
  background-image: linear-gradient(90deg, transparent 0%, rgba(250, 250, 250, 0.12) 20%, rgba(250, 250, 250, 0.02) 100%), url("images/workstation-development.jpg");
}

body[data-page="contact"] .subpage-hero .hero-background::before {
  background-image: linear-gradient(90deg, transparent 0%, rgba(250, 250, 250, 0.16) 20%, rgba(250, 250, 250, 0.04) 100%), url("images/hero-business-collaboration.jpg");
}

.subpage-section {
  padding: 112px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.subpage-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 80px;
  max-width: var(--max);
  margin: 0 auto;
}

.subpage-copy h2,
.subpage-narrow h2 {
  margin-bottom: 28px;
  font-size: 48px;
}

.subpage-copy > p:not(.section-label) {
  max-width: 660px;
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.subpage-media {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-tertiary);
}

.subpage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) saturate(0.8) contrast(1.03);
}

.subpage-narrow {
  max-width: 880px;
  margin: 0 auto;
}

.subpage-principles {
  border-top: 1px solid var(--line);
}

.subpage-principles .principle {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.subpage-principles strong {
  color: var(--text-primary);
  font-size: 15px;
}

.subpage-principles span,
.subpage-note {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.subpage-note {
  max-width: 700px;
}

@media (max-width: 900px) {
  .subpage-hero,
  .subpage-hero .hero-grid {
    min-height: 560px;
  }

  .subpage-hero .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .subpage-overview-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .subpage-section {
    padding: 88px 24px;
  }

  .subpage-media {
    max-width: 720px;
  }
}

@media (max-width: 700px) {
  .subpage-hero,
  .subpage-hero .hero-grid {
    min-height: 520px;
  }

  .subpage-hero .hero-grid {
    padding: 56px 20px 64px;
  }

  .subpage-hero .hero-title-animated {
    font-size: 48px;
  }

  .subpage-section {
    padding: 72px 20px;
  }

  .subpage-copy h2,
  .subpage-narrow h2 {
    font-size: 38px;
  }

  .subpage-principles .principle {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 18px;
  }
}

/* Standalone page refinements and customer-service dialog. */
@media (min-width: 901px) {
  .identity-inner {
    grid-template-columns: minmax(350px, 0.72fr) minmax(0, 1.28fr);
    gap: 48px;
  }
}

html:lang(zh) .identity-intro h2 {
  max-width: none;
  white-space: nowrap;
}

.customer-service-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #333333;
}

.contact-details.glass-card .customer-service-entry strong {
  margin: 0;
  color: #8f8f8f;
}

.customer-service-trigger {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid #f5f5f5;
  border-radius: 999px;
  background: #f5f5f5;
  color: #171717;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.customer-service-trigger:hover {
  border-color: #d4d4d4;
  background: #d4d4d4;
}

.customer-service-trigger:active {
  transform: translateY(1px);
}

body.has-open-dialog {
  overflow: hidden;
}

.customer-service-dialog {
  width: min(440px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #171717;
}

.customer-service-dialog::backdrop {
  background: rgba(23, 23, 23, 0.72);
  backdrop-filter: blur(4px);
}

.customer-service-dialog-panel {
  position: relative;
  overflow: auto;
  max-height: calc(100dvh - 32px);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  box-shadow: 0 24px 70px rgba(23, 23, 23, 0.24);
}

.customer-service-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  background: #ffffff;
  color: #171717;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.customer-service-dialog-close:hover {
  background: #f0f0f0;
}

.customer-service-dialog-label {
  margin: 0 52px 10px 0;
  color: #737373;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.customer-service-dialog h2 {
  margin: 0 52px 10px 0;
  color: #171717;
  font-size: 32px;
  line-height: 1.15;
}

.customer-service-dialog-panel > p:not(.customer-service-dialog-label) {
  margin: 0 0 24px;
  color: #666666;
  font-size: 15px;
  line-height: 1.7;
}

.customer-service-qr {
  width: min(100%, 312px);
  margin: 0 auto;
  padding: 14px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #ffffff;
}

.customer-service-qr img {
  width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  html:lang(zh) .identity-intro h2 {
    font-size: clamp(30px, 9.5vw, 38px);
  }

  .customer-service-entry {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .customer-service-trigger {
    width: 100%;
  }

  .customer-service-dialog-panel {
    padding: 32px 20px 24px;
  }
}

/* Business service catalogue, detail, order, and payment surfaces. */
.commerce-hero .hero-description {
  max-width: 680px;
}

.commerce-hero .button-row {
  margin-top: 30px;
}

.catalog-section,
.commerce-process,
.detail-section,
.payment-section,
.order-section {
  padding: 112px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.catalog-inner,
.commerce-process-inner,
.detail-two-column,
.payment-section-inner,
.order-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.commerce-heading {
  max-width: 760px;
  margin-bottom: 58px;
}

.commerce-heading h2 {
  max-width: 760px;
}

.catalog-list {
  border-top: 1px solid var(--line);
}

.service-offer {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.service-offer-reverse .service-offer-media {
  order: 2;
}

.service-offer-reverse .service-offer-copy {
  order: 1;
}

.service-offer-media {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-tertiary);
}

.service-offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.18) saturate(0.86) contrast(1.04);
}

.service-offer-index {
  margin: 0 0 18px;
  color: var(--text-tertiary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.service-offer-copy h3 {
  margin: 0 0 18px;
  color: var(--text-primary);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.12;
}

.service-offer-copy > p:not(.service-offer-index) {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.75;
}

.service-offer-copy ul {
  display: grid;
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-offer-copy li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 15px;
}

.service-offer-copy li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 12px 1px 0;
  border-radius: 50%;
  background: var(--primary-blue);
}

.service-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 26px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.service-price strong {
  color: var(--text-primary);
  font-size: 16px;
}

.commerce-process {
  background: var(--bg-secondary);
}

.process-steps,
.payment-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-steps li,
.payment-steps li {
  min-height: 196px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-steps span,
.payment-steps > li > span {
  display: block;
  margin-bottom: 32px;
  color: var(--text-tertiary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.process-steps strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 17px;
}

.process-steps p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.detail-hero,
.order-hero,
.payment-hero {
  border-bottom: 1px solid var(--line);
  background: var(--bg-secondary);
}

.detail-hero-inner,
.order-hero-inner,
.payment-hero-inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: 72px;
  align-items: center;
  min-height: 630px;
  padding: 86px 0;
}

.detail-hero-copy h1,
.order-hero h1,
.payment-hero h1 {
  max-width: 720px;
  margin: 12px 0 24px;
  color: var(--text-primary);
  font-size: clamp(46px, 6vw, 80px);
  line-height: 1.02;
}

.detail-hero-copy > p:not(.kicker),
.order-hero-inner > p:not(.kicker),
.payment-hero-inner > p:not(.kicker) {
  max-width: 660px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.75;
}

.detail-hero-copy .button-row {
  margin-top: 34px;
}

.detail-hero-media {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-tertiary);
}

.detail-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.22) saturate(0.82) contrast(1.04);
}

.detail-commercial {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-commercial div {
  display: grid;
  gap: 7px;
}

.detail-commercial span {
  color: var(--text-tertiary);
  font-size: 13px;
}

.detail-commercial strong {
  color: var(--text-primary);
  font-size: 16px;
}

.detail-two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 84px;
  align-items: start;
}

.detail-two-column h2 {
  max-width: 520px;
  margin: 14px 0 22px;
  color: var(--text-primary);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
}

.detail-lead {
  max-width: 520px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.75;
}

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

.detail-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.55;
}

.detail-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 14px 2px 0;
  border-radius: 50%;
  background: var(--primary-blue);
}

.detail-section-muted {
  background: var(--bg-secondary);
}

.deliverables {
  border-top: 1px solid var(--line);
}

.deliverables .principle {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.deliverables strong {
  color: var(--text-primary);
  font-size: 16px;
}

.deliverables span {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.agent-boundary {
  padding: 88px 32px;
  background: #171717;
  color: #fafafa;
}

.agent-boundary-inner {
  width: min(880px, 100%);
  margin: 0 auto;
}

.agent-boundary h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 32px;
}

.agent-boundary p {
  max-width: 760px;
  margin: 0;
  color: #d2d2d2;
  font-size: 16px;
  line-height: 1.8;
}

.order-hero-inner,
.payment-hero-inner {
  padding: 90px 0 82px;
}

.order-hero h1,
.payment-hero h1 {
  font-size: clamp(44px, 6vw, 74px);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 72px;
  align-items: start;
}

.order-form {
  padding: 0;
}

.form-heading {
  margin-bottom: 38px;
}

.form-heading h2 {
  margin: 12px 0 0;
  color: var(--text-primary);
  font-size: 42px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 22px;
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field span {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 650;
}

.form-field span::after {
  content: " *";
  color: var(--primary-blue);
}

.form-field:nth-child(5) span::after {
  content: "";
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-primary);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
}

.form-field input,
.form-field select {
  min-height: 52px;
  padding: 12px 15px;
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  border-color: #c8c8c8;
  background-color: #ffffff;
  background-image: linear-gradient(45deg, transparent 50%, #555555 50%), linear-gradient(135deg, #555555 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-field select:hover {
  border-color: #8e8e8e;
  background-color: #fcfcfc;
}

.form-field textarea {
  min-height: 170px;
  padding: 13px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #949494;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.16);
}

.form-field select:focus {
  background-color: #ffffff;
}

.form-field select option {
  background: #ffffff;
  color: var(--text-primary);
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-hint {
  max-width: 440px;
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.6;
}

.order-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.order-status[data-state="success"] {
  color: #1b6f4a;
}

.order-status[data-state="error"] {
  color: #a52b2b;
}

.order-aside {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.order-aside-block {
  display: grid;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.order-aside-block strong {
  color: var(--text-primary);
  font-size: 24px;
}

.order-aside-block p:not(.section-label) {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.order-aside-block a {
  color: var(--text-primary);
  font-size: 16px;
  text-decoration: none;
}

.order-aside-block a:hover {
  color: var(--primary-blue);
}

.order-aside-note {
  margin-top: 24px;
  padding: 18px;
  border-left: 3px solid var(--primary-blue);
  background: var(--bg-tertiary);
}

.order-aside-note p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.payment-status {
  display: grid;
  gap: 8px;
  max-width: 500px;
  margin-top: 40px;
  padding: 22px 24px;
  border-left: 3px solid var(--primary-blue);
  background: #ffffff;
}

.payment-status span {
  color: var(--text-tertiary);
  font-size: 13px;
}

.payment-status strong {
  color: var(--text-primary);
  font-size: 22px;
}

.payment-status p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

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

.payment-steps li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  min-height: 176px;
}

.payment-steps > li > span {
  margin: 2px 0 0;
}

.payment-steps h3 {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: 20px;
}

.payment-steps p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.payment-notice {
  padding: 88px 32px;
  background: #171717;
  color: #ffffff;
}

.payment-notice-inner {
  width: min(880px, 100%);
  margin: 0 auto;
}

.payment-notice .section-label {
  color: #a8b8ff;
}

.payment-notice-inner > p:not(.section-label) {
  max-width: 780px;
  margin: 16px 0 30px;
  color: #d8d8d8;
  font-size: 18px;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .service-offer,
  .detail-hero-inner,
  .detail-two-column,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .service-offer-reverse .service-offer-media,
  .service-offer-reverse .service-offer-copy {
    order: initial;
  }

  .detail-hero-inner {
    gap: 46px;
    min-height: auto;
    padding: 72px 0 80px;
  }

  .detail-two-column {
    gap: 44px;
  }

  .order-layout {
    gap: 56px;
  }

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

@media (max-width: 700px) {
  .catalog-section,
  .commerce-process,
  .detail-section,
  .payment-section,
  .order-section {
    padding: 76px 20px;
  }

  .detail-hero-inner,
  .order-hero-inner,
  .payment-hero-inner {
    width: min(100% - 40px, 1180px);
  }

  .detail-hero-inner {
    padding: 58px 0 68px;
  }

  .order-hero-inner,
  .payment-hero-inner {
    padding: 64px 0 58px;
  }

  .service-offer {
    gap: 32px;
    padding: 40px 0;
  }

  .service-offer-copy h3 {
    font-size: 36px;
  }

  .service-price,
  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .process-steps,
  .payment-steps,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .payment-steps li {
    min-height: 0;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .form-actions .button {
    width: 100%;
  }

  .deliverables .principle {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .agent-boundary,
  .payment-notice {
    padding: 72px 20px;
  }
}
