/* ═══════════════════════════════════════════════════════════════
   SIGNET SCIENCE — Design System & Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --color-bg-primary:       #050814;
  --color-bg-secondary:     #0D1225;
  --color-accent-primary:   #F908ED;
  --color-accent-secondary: #FFBD07;
  --color-text-primary:     #F0F4FF;
  --color-text-muted:       #7B8DB0;
  --color-border:           rgba(255,255,255,0.08);
  --gradient-brand: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));

  --text-hero:    clamp(52px, 6vw, 80px);
  --text-h1:      clamp(40px, 4.5vw, 56px);
  --text-h2:      clamp(28px, 3vw, 36px);
  --text-h3:      22px;
  --text-body-lg: 18px;
  --text-body:    16px;
  --text-label:   12px;

  --nav-height: 68px;
  --section-pad: clamp(80px, 10vw, 140px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* ── UTILITIES ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.section-label span {
  color: var(--color-accent-primary);
}
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent-primary);
  color: #050814;
}
.btn-primary:hover {
  background: #FF2CF5;
  box-shadow: 0 0 24px rgba(249, 8, 237, 0.4);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1.5px solid var(--color-border);
  color: var(--color-text-primary);
  position: relative;
  background: transparent;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 100px;
  padding: 1.5px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-outline:hover::before { opacity: 1; }
.btn-outline:hover {
  border-color: transparent;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(5, 8, 20, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav.scrolled {
  background: rgba(5, 8, 20, 0.92);
  border-bottom-color: var(--color-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-icon {
  width: 32px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(249, 8, 237, 0.4));
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-name {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-primary);
}
.nav-logo-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.25s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--color-accent-primary);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--color-text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 22px !important;
  font-size: 14px !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.97);
  backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.25s;
}
.mobile-nav a:hover { color: var(--color-text-primary); }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: url('assets/images/home.jpg') center/cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 20, 0.7);
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(249, 8, 237, 0.03) 0%, transparent 70%);
  pointer-events: none;
}
.hero-canvas {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-canvas canvas {
  width: 100%;
  height: 100%;
}
.hero > .container {
  position: relative;
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 60px 0;
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Merriweather', serif;
  font-weight: 800;
  font-size: var(--text-hero);
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero h1 .accent {
  color: var(--color-accent-primary);
}
.hero-chinese {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 28px);
  color: #f50f0f;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.trust-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-bar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: 28px;
}
.trust-logos span {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-muted);
  opacity: 0.5;
  transition: opacity 0.3s ease;
  cursor: default;
}
.trust-logos span:hover { opacity: 1; }

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  animation: float 2.5s ease-in-out infinite;
  z-index: 2;
}
.scroll-indicator svg {
  width: 20px;
  height: 20px;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION: APPROACH
   ═══════════════════════════════════════════════════════════════ */
.approach {
  background: url('assets/images/our_approach.jpg') center/cover no-repeat;
  padding: var(--section-pad) 0;
  position: relative;
}
.approach::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 18, 37, 0.75);
  z-index: 0;
}
.approach > .container {
  position: relative;
  z-index: 1;
}
.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 560px;
}
.approach h2 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.2;
  position: sticky;
  top: calc(var(--nav-height) + 40px);
}
.approach-body {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  max-width: 55ch;
  line-height: 1.7;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}
.stat-item {}
.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* HITL Cycle Diagram */
.hitl-diagram {
  margin-top: 56px;
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: rgba(5, 8, 20, 0.5);
}
.hitl-diagram svg { width: 100%; height: auto; }

/* ═══════════════════════════════════════════════════════════════
   SECTION: HUMAN DIMENSION
   ═══════════════════════════════════════════════════════════════ */
.human-dimension {
  padding: var(--section-pad) 0;
  background: var(--color-bg-primary);
}
.hd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hd-text {
  padding-left: 24px;
  border-left: 2px solid;
  border-image: var(--gradient-brand) 1;
}
.hd-text h2 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hd-text p {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hd-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hd-visual::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 189, 7, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hd-visual img {
  max-height: 500px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION: SERVICES
   ═══════════════════════════════════════════════════════════════ */
.services {
  background: var(--color-bg-secondary);
  padding: var(--section-pad) 0;
}
.services-header {
  text-align: center;
  margin-bottom: 56px;
}
.services-header h2 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.2;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}
.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--color-accent-primary);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--text-h3);
  margin-bottom: 4px;
  line-height: 1.3;
}
.service-title-zh {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #f50f0f;
  opacity: 0.7;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-body);
  line-height: 1.6;
}

.service-cta-card {
  grid-column: 1 / -1;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.service-cta-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
}
.service-cta-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--text-h3);
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION: CASE STUDIES
   ═══════════════════════════════════════════════════════════════ */
.work {
  padding: var(--section-pad) 0;
}
.work-header {
  margin-bottom: 64px;
}
.work-header h2 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.2;
}
.case-study {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.case-study::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 8, 20, 0.72) 0%,
    rgba(5, 8, 20, 0.58) 50%,
    rgba(5, 8, 20, 0.35) 100%
  );
  z-index: 1;
}
.case-study:nth-child(even)::before {
  background: linear-gradient(
    to left,
    rgba(5, 8, 20, 0.72) 0%,
    rgba(5, 8, 20, 0.58) 50%,
    rgba(5, 8, 20, 0.35) 100%
  );
}
.case-study .container {
  position: relative;
  z-index: 2;
}
.case-study:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}
.case-content {
  max-width: 600px;
}
.case-study:nth-child(even) .case-content {
  margin-left: auto;
}
.case-client {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: 12px;
}
.case-content h3 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.case-content p {
  color: var(--color-text-primary);
  font-size: var(--text-body-lg);
  line-height: 1.7;
  margin-bottom: 20px;
  opacity: 0.9;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.case-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  font-size: 13px;
  color: var(--color-text-muted);
}
.case-link {
  color: var(--color-accent-primary);
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}
.case-link:hover { gap: 12px; }

/* ═══════════════════════════════════════════════════════════════
   SECTION: COMMUNITY
   ═══════════════════════════════════════════════════════════════ */
.community {
  background: var(--color-bg-secondary);
  padding: var(--section-pad) 0;
}
.community-header {
  max-width: 700px;
  margin-bottom: 48px;
}
.community-header h2 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.2;
  margin-bottom: 20px;
}
.community-header p {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.community-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.community-tile {
  background: rgba(5, 8, 20, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.3s ease;
}
.community-tile:hover {
  border-color: rgba(249, 8, 237, 0.2);
}
.community-tile-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent-primary);
  flex-shrink: 0;
}
.community-tile-icon svg { width: 100%; height: 100%; }
.community-tile span {
  font-weight: 500;
  font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION: CLIENTS TICKER
   ═══════════════════════════════════════════════════════════════ */
.clients {
  padding: var(--section-pad) 0;
  overflow: hidden;
}
.clients-header {
  text-align: center;
  margin-bottom: 48px;
}
.clients-header h2 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.2;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
  background: var(--color-bg-primary);
  transition: background 0.3s ease;
}
.logo-item:hover {
  background: var(--color-bg-secondary);
}
.logo-item img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.45;
  transition: opacity 0.3s ease;
  filter: brightness(0) invert(1);
}
.logo-item:hover img {
  opacity: 0.85;
}
.clients-sub {
  text-align: center;
  margin-top: 40px;
  color: var(--color-text-muted);
  font-size: var(--text-body);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION: MISSION
   ═══════════════════════════════════════════════════════════════ */
.mission {
  background: var(--color-bg-secondary);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.mission::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='%237B8DB0'/%3E%3Ccircle cx='150' cy='80' r='1' fill='%237B8DB0'/%3E%3Ccircle cx='250' cy='30' r='1' fill='%237B8DB0'/%3E%3Ccircle cx='350' cy='120' r='1' fill='%237B8DB0'/%3E%3Ccircle cx='100' cy='200' r='1' fill='%237B8DB0'/%3E%3Ccircle cx='300' cy='180' r='1' fill='%237B8DB0'/%3E%3Ccircle cx='200' cy='300' r='1' fill='%237B8DB0'/%3E%3Cline x1='50' y1='50' x2='150' y2='80' stroke='%237B8DB0' stroke-width='0.3'/%3E%3Cline x1='150' y1='80' x2='250' y2='30' stroke='%237B8DB0' stroke-width='0.3'/%3E%3Cline x1='250' y1='30' x2='350' y2='120' stroke='%237B8DB0' stroke-width='0.3'/%3E%3Cline x1='100' y1='200' x2='300' y2='180' stroke='%237B8DB0' stroke-width='0.3'/%3E%3Cline x1='300' y1='180' x2='200' y2='300' stroke='%237B8DB0' stroke-width='0.3'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
}
.mission-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.mission h2 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.3;
  margin-bottom: 24px;
}
.mission p {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION: TEAM
   ═══════════════════════════════════════════════════════════════ */
.team {
  background: var(--color-bg-secondary);
  padding: var(--section-pad) 0;
}
.team-header {
  text-align: center;
  margin-bottom: 56px;
}
.team-header h2 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: var(--text-h2);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: rgba(5, 8, 20, 0.5);
  transition: border-color 0.3s ease;
}
.team-card:hover { border-color: rgba(249, 8, 237, 0.15); }
.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: var(--color-bg-secondary);
  overflow: hidden;
  position: relative;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-avatar::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  padding: 2px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.team-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--text-h3);
  margin-bottom: 4px;
}
.team-title-zh {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #f50f0f;
  opacity: 0.7;
  margin-bottom: 2px;
}
.team-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.team-title + .team-title-zh {
  margin-bottom: 16px;
}
.team-bio {
  color: var(--color-text-muted);
  font-size: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
}
.team-social {
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}
.team-social:hover { color: var(--color-accent-primary); }
.team-social svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════════════════════════════
   SECTION: FAQ
   ═══════════════════════════════════════════════════════════════ */
.faq {
  padding: var(--section-pad) 0;
  background: var(--color-bg-primary);
}
.faq-header {
  text-align: center;
  margin-bottom: 48px;
}
.faq-header h2 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: var(--text-h2);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: var(--text-body-lg);
  color: var(--color-text-primary);
  transition: color 0.3s ease;
}
.faq-question:hover { color: var(--color-accent-primary); }
.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  margin-left: 16px;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-text-muted);
  transition: transform 0.3s ease;
}
.faq-icon::before {
  width: 14px; height: 1.5px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 1.5px; height: 14px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer-inner {
  padding-bottom: 24px;
  color: var(--color-text-muted);
  font-size: var(--text-body);
  line-height: 1.7;
  max-width: 65ch;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION: CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact {
  background: var(--color-bg-secondary);
  padding: var(--section-pad) 0;
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.contact-header {
  margin-bottom: 48px;
}
.contact-header h2 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.2;
  margin-bottom: 12px;
}
.contact-header p {
  color: var(--color-text-muted);
  font-size: var(--text-body-lg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  position: relative;
  z-index: 1;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text-muted);
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-primary);
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus {
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(249, 8, 237, 0.15);
}
textarea.form-input { resize: vertical; min-height: 120px; }
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237B8DB0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.btn-submit {
  width: 100%;
  margin-top: 8px;
}
.contact-info {
  padding-top: 16px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.contact-info-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.contact-info-value {
  font-weight: 500;
}
.contact-info-value a {
  color: var(--color-accent-primary);
  transition: opacity 0.3s;
}
.contact-info-value a:hover { opacity: 0.8; }
.contact-status {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(5, 8, 20, 0.5);
}
.contact-status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.contact-status-item:not(:last-child) { margin-bottom: 12px; }
.contact-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-primary);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-logo-icon {
  width: 28px;
  height: auto;
  filter: drop-shadow(0 0 5px rgba(249, 8, 237, 0.3));
}
.footer-logo-name {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 16px;
}
.footer-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  padding: 6px 0;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--color-text-primary); }
.footer-subscribe {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.footer-subscribe input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--color-text-primary);
}
.footer-subscribe input:focus {
  border-color: var(--color-accent-primary);
}
.footer-subscribe button {
  padding: 10px 16px;
  background: var(--color-accent-primary);
  color: #050814;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s;
}
.footer-subscribe button:hover { background: #00ffdf; }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.footer-bottom a {
  color: var(--color-text-muted);
  transition: color 0.25s;
}
.footer-bottom a:hover { color: var(--color-text-primary); }

/* ═══════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .approach-grid { grid-template-columns: 1fr; gap: 32px; }
  .approach h2 { position: static; }
  .hd-grid { grid-template-columns: 1fr; gap: 40px; }
  .hd-visual { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .case-study { min-height: 400px; padding: 60px 0; }
  .case-study::before,
  .case-study:nth-child(even)::before {
    background: rgba(5, 8, 20, 0.65);
  }
  .case-study:nth-child(even) .case-content { margin-left: 0; }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .community-tiles { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .nav-links, .nav .btn { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .hero-content { max-width: 100%; padding: 40px 0; }
  .hero-canvas { width: 100%; opacity: 0.3; }
  .hero h1 { font-size: clamp(36px, 8vw, 52px); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }

  .stat-row { grid-template-columns: 1fr; gap: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-cta-card { flex-direction: column; gap: 16px; text-align: center; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .community-tiles { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .trust-logos { gap: 16px; }
}
