/* ============================================================
   FlyingStone Cloud — AWS Premier Reseller (HK)
   ============================================================ */

:root {
  /* Surface */
  --bg-deep: #050a14;
  --bg-primary: #0a111f;
  --bg-elevated: #0f1828;
  --bg-card: rgba(255, 255, 255, 0.04);

  /* Brand & Accent */
  --aws-orange: #ff9900;
  --aws-orange-soft: rgba(255, 153, 0, 0.12);
  --aws-orange-glow: rgba(255, 153, 0, 0.4);
  --accent-blue: #4593ff;
  --accent-blue-soft: rgba(69, 147, 255, 0.12);
  --accent-violet: #a78bfa;
  --accent-violet-soft: rgba(167, 139, 250, 0.12);
  --accent-mint: #34d399;
  --accent-mint-soft: rgba(52, 211, 153, 0.12);

  /* Text */
  --text-primary: #e6ecf5;
  --text-secondary: #b8c5d6;
  --text-muted: #7c8ba1;

  /* Border */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Shadows */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.45);
  --shadow-orange: 0 12px 36px rgba(255, 153, 0, 0.25);

  /* Layout */
  --header-h: 76px;
  --radius: 8px;
  --radius-sm: 8px;
  --radius-lg: 8px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 153, 0, 0.10), transparent 40%),
    radial-gradient(circle at 88% 60%, rgba(69, 147, 255, 0.10), transparent 40%),
    radial-gradient(circle at 50% 95%, rgba(167, 139, 250, 0.06), transparent 40%);
}

body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
* { min-width: 0; }

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--text-primary);
}
h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text-primary);
}
p { margin: 0; color: var(--text-secondary); }

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-heading p:last-child {
  margin-top: 18px;
  font-size: 17px;
  color: var(--text-secondary);
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px;
  background: var(--aws-orange-soft);
  border: 1px solid rgba(255, 153, 0, 0.28);
  border-radius: 100px;
  color: var(--aws-orange);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* AWS-style smileys badge */
.aws-badge {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 18px;
  padding: 0 6px;
  background: linear-gradient(135deg, var(--aws-orange), #ff5c1c);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(255, 153, 0, 0.5);
}

.led {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 8px var(--accent-mint);
  animation: ledPulse 1.8s ease-in-out infinite;
}
.led-orange { background: var(--aws-orange); box-shadow: 0 0 8px var(--aws-orange); }
.led-blue   { background: var(--accent-blue); box-shadow: 0 0 8px var(--accent-blue); }
.led-violet { background: var(--accent-violet); box-shadow: 0 0 8px var(--accent-violet); }
.led-mint   { background: var(--accent-mint); box-shadow: 0 0 8px var(--accent-mint); }

@keyframes ledPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

/* ---- Reveal on scroll ---- */
.reveal {
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
  padding: 0 40px;
  background: rgba(10, 17, 31, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(10, 17, 31, 0.92);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.4s ease;
}
.brand:hover { transform: translateY(-1px); }

.brand-logo {
  display: inline-flex;
  width: 44px; height: 44px;
  border-radius: 8px;
  filter: drop-shadow(0 6px 14px rgba(255, 153, 0, 0.4));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-logo svg { width: 100%; height: 100%; }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-text strong {
  font-size: 19px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0;
}
.brand-text em {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aws-orange);
}

.nav-links {
  display: flex;
  margin-left: auto;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 600;
}
.nav-links a {
  position: relative;
  padding: 8px 0;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--aws-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.header-action {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--aws-orange), #ff5c1c);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(255, 153, 0, 0.32);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.header-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 153, 0, 0.45);
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin: 5px auto;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ---- Lang & Theme buttons ---- */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-btn,
.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.theme-btn { padding: 8px; border-radius: 50%; width: 36px; height: 36px; justify-content: center; }
.lang-btn:hover,
.theme-btn:hover {
  background: var(--aws-orange-soft);
  border-color: rgba(255, 153, 0, 0.4);
  color: var(--aws-orange);
}
.lang-btn svg { width: 15px; height: 15px; }
.theme-icon { width: 17px; height: 17px; }
.theme-icon-moon { display: none; }
.theme-icon-sun  { display: block; }
[data-theme="light"] .theme-icon-sun  { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(10, 17, 31, 0.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
  min-width: 160px;
  z-index: 1000;
}
.lang-switch.open .lang-menu,
.lang-menu.open { display: block; }
.lang-menu li {
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lang-menu li:hover { background: var(--aws-orange-soft); color: var(--text-primary); }
.lang-menu li.active { background: rgba(255, 153, 0, 0.18); color: var(--aws-orange); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--bg-deep) 0%, rgba(5, 10, 20, 0.84) 38%, rgba(5, 10, 20, 0.54) 72%, var(--bg-deep) 100%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.6), var(--bg-deep) 92%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at 48% 42%, transparent 0 28%, rgba(5, 10, 20, 0.3) 58%, var(--bg-deep) 100%);
  pointer-events: none;
}
.hero-bg-image {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.34;
  filter: saturate(1.05) contrast(1.08);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(69, 147, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 147, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  opacity: 0.6;
}
.hero-glow {
  position: absolute;
  z-index: 2;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.hero-glow-1 {
  top: -120px; left: -100px;
  background: radial-gradient(circle, var(--aws-orange) 0%, transparent 70%);
  opacity: 0.32;
}
.hero-glow-2 {
  bottom: -180px; right: -100px;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  opacity: 0.32;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 60px;
  align-items: center;
}

.hero-text { max-width: 620px; }

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55), 0 0 1px rgba(255, 255, 255, 0.2);
}
.hero-hl {
  background: linear-gradient(135deg, var(--aws-orange) 0%, #ff5c1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--aws-orange), #ff5c1c);
  box-shadow: 0 10px 24px rgba(255, 153, 0, 0.32);
}
.btn-primary:hover { box-shadow: 0 16px 32px rgba(255, 153, 0, 0.45); }

.btn-secondary {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--aws-orange);
  color: var(--aws-orange);
  background: var(--aws-orange-soft);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---- Hero topology ---- */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}

.topology {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
}

.topo-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 4;
}

.topo-core {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--aws-orange), #ff5c1c);
  box-shadow: 0 0 0 6px rgba(255, 153, 0, 0.12), 0 0 30px rgba(255, 153, 0, 0.5);
  z-index: 2;
}
.topo-core svg { width: 38px; height: 38px; }

.topo-pulse {
  position: absolute;
  top: 0; left: 50%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid rgba(255, 153, 0, 0.55);
  transform: translate(-50%, 0);
  animation: topoPulse 2.6s ease-out infinite;
  z-index: 1;
}
.topo-pulse-2 {
  border-color: rgba(69, 147, 255, 0.55);
  animation-delay: 1.3s;
}
@keyframes topoPulse {
  0%   { transform: translate(-50%, 0) scale(0.7); opacity: 0.95; }
  100% { transform: translate(-50%, 0) scale(2.1); opacity: 0; }
}

.topo-label {
  margin-top: 14px;
  padding: 4px 10px;
  background: rgba(10, 17, 31, 0.65);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  white-space: nowrap;
}

.topo-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.topo-rings span {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px dashed rgba(69, 147, 255, 0.22);
  animation: topoRing 28s linear infinite;
}
.topo-rings span:nth-child(1) { width: 80%;  height: 80%;  }
.topo-rings span:nth-child(2) { width: 95%;  height: 95%;  border-style: solid; border-color: rgba(167, 139, 250, 0.18); animation-direction: reverse; animation-duration: 40s; }
.topo-rings span:nth-child(3) { width: 110%; height: 110%; border-color: rgba(255, 153, 0, 0.15); animation-duration: 50s; }
@keyframes topoRing {
  to { transform: rotate(360deg); }
}

/* 6 个节点呈环形分布 */
.topo-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(15, 24, 40, 0.85);
  border: 1px solid var(--border-strong);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 3;
  transition: transform 0.4s ease, border-color 0.3s ease;
}
.topo-node::after {
  content: attr(data-tip);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  background: rgba(10, 17, 31, 0.85);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  white-space: nowrap;
}
.topo-node:hover { transform: scale(1.08); }
.topo-node-aws:hover,
.topo-node-edge:hover { transform: translate(-50%, 0) scale(1.08); }

.topo-mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.topo-logo {
  display: grid;
  place-items: center;
  gap: 2px;
  line-height: 1;
}
.topo-logo strong {
  font-weight: 900;
  letter-spacing: 0;
}
.topo-logo svg {
  overflow: visible;
}
.topo-logo-aws strong {
  color: var(--aws-orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 0.9;
}
.topo-logo-aws svg {
  width: 50px;
  height: 13px;
  fill: none;
  stroke: var(--aws-orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topo-logo-arch svg {
  width: 44px;
  height: 30px;
  fill: rgba(69, 147, 255, 0.12);
  stroke: var(--accent-blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topo-logo-arch strong {
  color: var(--accent-blue);
  font-size: 13px;
  line-height: 1.1;
}

.topo-line {
  position: absolute;
  top: 50%;
  width: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0.55;
}

/* 6 节点位置（笛卡尔环） */
.topo-node-aws,
.topo-node-arch {
  width: 86px;
  height: 86px;
  background: rgba(255, 255, 255, 0.92);
  border-width: 2px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.topo-node-aws    { top: -1%;   left: 50%; transform: translate(-50%, 0); color: var(--aws-orange); border-color: rgba(255, 153, 0, 0.58); }
.topo-node-arch     { top: 18%;  right: 0; color: var(--accent-blue); border-color: rgba(69, 147, 255, 0.58); }
.topo-node-onprem { bottom: 22%; right: 4%; color: var(--accent-violet); border-color: rgba(167, 139, 250, 0.4); }
.topo-node-edge   { bottom: 4%; left: 50%; transform: translate(-50%, 0); color: var(--accent-mint); border-color: rgba(52, 211, 153, 0.4); }
.topo-node-fin    { bottom: 22%; left: 4%; color: var(--accent-blue); border-color: rgba(69, 147, 255, 0.4); }
.topo-node-sec    { top: 22%;  left: 4%; color: var(--accent-mint); border-color: rgba(52, 211, 153, 0.4); }

/* 中心连线（伪元素装饰） */
.topology::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform: translate(-50%, -50%);
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      rgba(255, 153, 0, 0.15) 30deg,
      transparent 60deg,
      transparent 360deg
    );
  animation: topoSweep 8s linear infinite;
  pointer-events: none;
}
@keyframes topoSweep { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---- Hero stats ---- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 80px;
}

.hero-stats .stat {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.25);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-stats .stat::after {
  content: "";
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 153, 0, 0.55), transparent);
}
.hero-stats .stat:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(255, 153, 0, 0.18);
}

.hero-stats strong {
  display: block;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--aws-orange), #ff5c1c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats strong small {
  font-size: 18px;
  margin-left: 4px;
  font-weight: 700;
}
.hero-stats span {
  display: block;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
}


/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  padding: 36px 0;
  background: linear-gradient(180deg, rgba(255, 153, 0, 0.04), rgba(69, 147, 255, 0.04));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-tag {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  flex-shrink: 0;
}
.trust-tag.aws { background: linear-gradient(135deg, var(--aws-orange), #ff5c1c); box-shadow: 0 6px 14px rgba(255, 153, 0, 0.3); }
.trust-tag.arch  { background: linear-gradient(135deg, #1c69ff, #4593ff); box-shadow: 0 6px 14px rgba(28, 105, 255, 0.3); }
.trust-tag.fin { background: linear-gradient(135deg, var(--accent-mint), #06b6d4); box-shadow: 0 6px 14px rgba(52, 211, 153, 0.3); }
.trust-tag.hk  { background: linear-gradient(135deg, var(--accent-violet), #ec4899); box-shadow: 0 6px 14px rgba(167, 139, 250, 0.3); font-size: 14px; }

.trust-item strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.trust-item small {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ============================================================
   SHARED CARD STYLE
   ============================================================ */
.service-card,
.industry-card,
.cred-card,
.metric-card,
.process-step,
.case-tile,
.contact-panel,
.arch-board {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 8px 22px rgba(0, 0, 0, 0.3);
  transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  isolation: isolate;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--card-glow, rgba(255, 153, 0, 0.18)), transparent 60%);
  opacity: 0.55;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 153, 0, 0.55), transparent);
  pointer-events: none;
  z-index: 2;
}
.service-card > * { position: relative; z-index: 1; }

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 60px var(--card-glow, rgba(255, 153, 0, 0.22));
}
.service-card:hover::before { opacity: 1; }

.service-card[data-tier="01"] { --card-glow: rgba(255, 153, 0, 0.22); --card-accent: var(--aws-orange); --icon-from: #ff9900; --icon-to: #ff5c1c; }
.service-card[data-tier="02"] { --card-glow: rgba(69, 147, 255, 0.22); --card-accent: var(--accent-blue); --icon-from: #4593ff; --icon-to: #6366f1; }
.service-card[data-tier="03"] { --card-glow: rgba(52, 211, 153, 0.22); --card-accent: var(--accent-mint); --icon-from: #34d399; --icon-to: #06b6d4; }
.service-card[data-tier="04"] { --card-glow: rgba(167, 139, 250, 0.22); --card-accent: var(--accent-violet); --icon-from: #a78bfa; --icon-to: #ec4899; }
.service-card[data-tier="05"] { --card-glow: rgba(251, 191, 36, 0.22); --card-accent: #fbbf24; --icon-from: #fbbf24; --icon-to: #ef4444; }
.service-card[data-tier="06"] { --card-glow: rgba(34, 211, 238, 0.22); --card-accent: #22d3ee; --icon-from: #22d3ee; --icon-to: #4593ff; }

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--icon-from, var(--aws-orange)), var(--icon-to, #ff5c1c));
  box-shadow: 0 8px 18px var(--card-glow, rgba(255, 153, 0, 0.3));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }

.service-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 50px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.06);
  transition: color 0.4s ease, transform 0.4s ease;
}
.service-card:hover .service-index {
  color: var(--card-accent);
  opacity: 0.4;
}

.service-card h3 { margin-bottom: 10px; font-size: 18px; }
.service-card p {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}
.service-tags li {
  padding: 4px 10px;
  border: 1px solid rgba(255, 153, 0, 0.25);
  background: rgba(255, 153, 0, 0.08);
  border-radius: 100px;
  color: var(--card-accent, var(--aws-orange));
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
}
.service-card:hover .service-tags li {
  border-color: var(--card-accent);
  background: var(--card-glow, rgba(255, 153, 0, 0.18));
}

/* group-focus dim */
.service-grid:has(.service-card:hover) .service-card:not(:hover) {
  opacity: 0.5;
  filter: saturate(0.6);
  transform: scale(0.97);
}

/* ============================================================
   ARCHITECTURE
   ============================================================ */
.arch-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(460px, 1fr);
  gap: 70px;
  align-items: center;
}

.arch-copy h2 { margin-bottom: 18px; }
.arch-copy p { font-size: 17px; }

.arch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.arch-tags li {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(69, 147, 255, 0.25);
  border-radius: 100px;
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s ease;
}
.arch-tags li:hover {
  background: var(--accent-blue);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.arch-board {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 24px;
}

.arch-row {
  position: relative;
  display: grid;
  grid-template-columns: 36px 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
}
.arch-row:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}
.arch-row.accent {
  background: linear-gradient(90deg, rgba(255, 153, 0, 0.1), rgba(255, 255, 255, 0.03) 60%);
  border-color: rgba(255, 153, 0, 0.25);
}

.arch-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(69, 147, 255, 0.18), rgba(167, 139, 250, 0.18));
  border: 1px solid rgba(69, 147, 255, 0.25);
  color: var(--accent-blue);
}
.arch-icon svg { width: 18px; height: 18px; }
.arch-row.accent .arch-icon {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.2), rgba(255, 92, 28, 0.2));
  border-color: rgba(255, 153, 0, 0.35);
  color: var(--aws-orange);
}

.arch-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.arch-row.accent .arch-label { color: var(--aws-orange); }

.arch-row strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.arch-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.arch-state.pulse {
  background: rgba(255, 153, 0, 0.1);
  border-color: rgba(255, 153, 0, 0.3);
  color: var(--aws-orange);
}

.arch-board:has(.arch-row:hover) .arch-row:not(:hover) {
  opacity: 0.55;
  filter: saturate(0.65);
}

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.industry-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px 26px 28px;
  isolation: isolate;
}

.industry-card::after {
  content: "";
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(69, 147, 255, 0.45), transparent);
}

.industry-card[data-vertical="fin"]    { --card-glow: rgba(255, 153, 0, 0.22); --card-accent: var(--aws-orange); --icon-from: #ff9900; --icon-to: #ff5c1c; }
.industry-card[data-vertical="cross"]  { --card-glow: rgba(69, 147, 255, 0.22); --card-accent: var(--accent-blue); --icon-from: #4593ff; --icon-to: #6366f1; }
.industry-card[data-vertical="saas"]   { --card-glow: rgba(167, 139, 250, 0.22); --card-accent: var(--accent-violet); --icon-from: #a78bfa; --icon-to: #ec4899; }
.industry-card[data-vertical="retail"] { --card-glow: rgba(52, 211, 153, 0.22); --card-accent: var(--accent-mint); --icon-from: #34d399; --icon-to: #06b6d4; }

.industry-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 60px var(--card-glow, rgba(69, 147, 255, 0.22));
}

.industry-glyph {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 8px;
  margin-bottom: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--icon-from), var(--icon-to));
  box-shadow: 0 8px 18px var(--card-glow);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.industry-glyph svg { width: 26px; height: 26px; }
.industry-card:hover .industry-glyph { transform: rotate(-6deg) scale(1.05); }

.industry-card h3 { font-size: 18px; margin-bottom: 12px; }
.industry-card p {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.industry-keys {
  margin: auto 0 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px dashed var(--border);
}
.industry-keys li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.95;
  color: var(--text-muted);
}

.industry-grid:has(.industry-card:hover) .industry-card:not(:hover) {
  opacity: 0.5;
  filter: saturate(0.6);
  transform: scale(0.97);
}

/* ============================================================
   CREDENTIALS
   ============================================================ */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.cred-card {
  position: relative;
  overflow: hidden;
  padding: 30px 26px 28px;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.cred-card::after {
  content: "";
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 153, 0, 0.55), transparent);
}

.cred-card[data-cred="aws"]   { --card-glow: rgba(255, 153, 0, 0.22); --card-accent: var(--aws-orange); }
.cred-card[data-cred="arch"]    { --card-glow: rgba(69, 147, 255, 0.22); --card-accent: var(--accent-blue); }
.cred-card[data-cred="audit"] { --card-glow: rgba(52, 211, 153, 0.22); --card-accent: var(--accent-mint); }
.cred-card[data-cred="cases"] { --card-glow: rgba(167, 139, 250, 0.22); --card-accent: var(--accent-violet); }

.cred-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 60px var(--card-glow);
}

.cred-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cred-mark {
  display: grid;
  place-items: center;
  min-width: 64px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}
.cred-mark-aws   { background: linear-gradient(135deg, #ff9900, #ff5c1c); box-shadow: 0 6px 14px rgba(255, 153, 0, 0.3); }
.cred-mark-arch    { background: linear-gradient(135deg, #1c69ff, #4593ff); box-shadow: 0 6px 14px rgba(28, 105, 255, 0.3); font-size: 11.5px; }
.cred-mark-audit { background: linear-gradient(135deg, #34d399, #06b6d4); box-shadow: 0 6px 14px rgba(52, 211, 153, 0.3); }
.cred-mark-cases { background: linear-gradient(135deg, #a78bfa, #ec4899); box-shadow: 0 6px 14px rgba(167, 139, 250, 0.3); }

.cred-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--card-accent);
}
.cred-status.status-verified {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.cred-card h3 { font-size: 17px; margin-bottom: 10px; }
.cred-card p {
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.cred-list {
  margin: auto 0 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px dashed var(--border);
}
.cred-list li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.95;
  color: var(--text-muted);
}

.cred-grid:has(.cred-card:hover) .cred-card:not(:hover) {
  opacity: 0.5;
  filter: saturate(0.6);
  transform: scale(0.97);
}


/* ============================================================
   METRICS
   ============================================================ */
.metrics {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 153, 0, 0.04) 50%, transparent 100%);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 36px 28px;
  text-align: center;
}
.metric-card::after {
  content: "";
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 153, 0, 0.55), transparent);
}

.metric-glyph {
  position: absolute;
  top: 12px;
  right: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.metric-card strong {
  display: block;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--aws-orange) 0%, #ff5c1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric-card:nth-child(2) strong { background: linear-gradient(135deg, #4593ff 0%, #6366f1 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.metric-card:nth-child(3) strong { background: linear-gradient(135deg, #34d399 0%, #06b6d4 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.metric-card:nth-child(4) strong { background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.metric-card span {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

.metric-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg,
    var(--aws-orange) 0%,
    var(--accent-blue) 33%,
    var(--accent-violet) 66%,
    var(--accent-mint) 100%);
  opacity: 0.35;
  z-index: 0;
}

.process-step {
  position: relative;
  padding: 28px 24px 26px;
  z-index: 1;
}

.process-step[data-step="01"] { --card-glow: rgba(255, 153, 0, 0.2); --step-from: #ff9900; --step-to: #ff5c1c; }
.process-step[data-step="02"] { --card-glow: rgba(69, 147, 255, 0.2); --step-from: #4593ff; --step-to: #6366f1; }
.process-step[data-step="03"] { --card-glow: rgba(167, 139, 250, 0.2); --step-from: #a78bfa; --step-to: #ec4899; }
.process-step[data-step="04"] { --card-glow: rgba(52, 211, 153, 0.2); --step-from: #34d399; --step-to: #06b6d4; }

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--step-from), var(--step-to));
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 6px 16px var(--card-glow);
}

.process-step h3 { font-size: 17px; margin-bottom: 10px; }
.process-step p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.process-step:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 50px var(--card-glow);
}

/* ============================================================
   CASES
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.case-tile {
  display: grid;
  place-items: center;
  min-height: 88px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.case-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.case-tile:hover {
  background: rgba(255, 153, 0, 0.06);
  border-color: rgba(255, 153, 0, 0.3);
  color: var(--aws-orange);
  transform: translateY(-4px);
}
.case-tile:hover::before { opacity: 1; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.85fr);
  gap: 60px;
  padding: 56px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 18px; }
.contact-info p { font-size: 16px; }

.contact-meta {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}
.contact-meta li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.meta-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--aws-orange-soft);
  border: 1px solid rgba(255, 153, 0, 0.25);
  color: var(--aws-orange);
}
.meta-icon svg { width: 18px; height: 18px; }
.contact-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-meta p {
  font-size: 14.5px;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
}

.contact-form { display: grid; gap: 18px; }
.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 700;
}
.contact-form label > span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font: inherit;
  font-size: 14.5px;
  outline: none;
  transition: all 0.3s ease;
}
.contact-form select { cursor: pointer; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--aws-orange);
  background: rgba(255, 153, 0, 0.04);
  box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.12);
}
.btn-submit {
  width: 100%;
  margin-top: 6px;
  border: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 60px 0 24px;
  background: rgba(5, 10, 20, 0.85);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .brand-logo {
  width: 48px; height: 48px;
  margin-bottom: 12px;
}
.footer-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.footer-brand p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-meta p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}
.footer-meta p span {
  display: inline-block;
  min-width: 64px;
  color: var(--text-muted);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}


/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-theme="light"] {
  --bg-deep: #f7f9fc;
  --bg-primary: #ffffff;
  --bg-elevated: #f1f5fa;
  --bg-card: rgba(255, 255, 255, 0.7);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.18);

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 36px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] body { background: var(--bg-deep); }
[data-theme="light"] body::before {
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 153, 0, 0.08), transparent 40%),
    radial-gradient(circle at 88% 60%, rgba(69, 147, 255, 0.08), transparent 40%);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(15, 23, 42, 0.06);
}
[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .nav-links a { color: var(--text-secondary); }
[data-theme="light"] .nav-links a:hover { color: var(--text-primary); }

[data-theme="light"] .lang-btn,
[data-theme="light"] .theme-btn {
  background: var(--bg-primary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .lang-menu {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .menu-toggle {
  background: var(--bg-primary);
  border-color: var(--border);
}
[data-theme="light"] .menu-toggle span { background: var(--text-primary); }

[data-theme="light"] .hero {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}
[data-theme="light"] .hero-bg::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 42%, rgba(255, 255, 255, 0.52) 76%, rgba(255, 255, 255, 0.92) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), #ffffff 95%);
}
[data-theme="light"] .hero-bg::before {
  background: radial-gradient(circle at 48% 42%, transparent 0 34%, rgba(255, 255, 255, 0.46) 62%, #ffffff 100%);
}
[data-theme="light"] .hero-bg-image {
  opacity: 0.18;
  filter: saturate(0.95) contrast(1.02);
}
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(69, 147, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 147, 255, 0.08) 1px, transparent 1px);
}

[data-theme="light"] .hero-stats .stat,
[data-theme="light"] .service-card,
[data-theme="light"] .industry-card,
[data-theme="light"] .cred-card,
[data-theme="light"] .metric-card,
[data-theme="light"] .process-step,
[data-theme="light"] .case-tile,
[data-theme="light"] .contact-panel,
[data-theme="light"] .arch-board {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 22px rgba(15, 23, 42, 0.05),
    0 24px 60px rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .hero-stats .stat:hover,
[data-theme="light"] .service-card:hover,
[data-theme="light"] .industry-card:hover,
[data-theme="light"] .cred-card:hover,
[data-theme="light"] .metric-card:hover,
[data-theme="light"] .process-step:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 28px 60px var(--card-glow, rgba(255, 153, 0, 0.18));
}

[data-theme="light"] .hero-stats .stat::after,
[data-theme="light"] .service-card::after,
[data-theme="light"] .industry-card::after,
[data-theme="light"] .cred-card::after,
[data-theme="light"] .metric-card::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
}

[data-theme="light"] .service-index { color: rgba(15, 23, 42, 0.06); }
[data-theme="light"] .metric-glyph { color: rgba(15, 23, 42, 0.06); }

[data-theme="light"] .arch-row {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.7);
}
[data-theme="light"] .arch-row:hover { background: rgba(255, 255, 255, 0.9); }
[data-theme="light"] .arch-row.accent {
  background: linear-gradient(90deg, rgba(255, 153, 0, 0.1), rgba(255, 255, 255, 0.6) 60%);
}
[data-theme="light"] .arch-state {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .case-tile {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--text-primary);
}
[data-theme="light"] .case-tile:hover {
  background: rgba(255, 153, 0, 0.06);
  border-color: rgba(255, 153, 0, 0.3);
  color: var(--aws-orange);
}

[data-theme="light"] .topo-node {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .topo-node-aws {
  border-color: rgba(255, 153, 0, 0.45);
  box-shadow: 0 16px 34px rgba(255, 153, 0, 0.12);
}
[data-theme="light"] .topo-node-arch {
  border-color: rgba(69, 147, 255, 0.45);
  box-shadow: 0 16px 34px rgba(69, 147, 255, 0.12);
}
[data-theme="light"] .topo-node::after {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-secondary);
}
[data-theme="light"] .topo-label {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
}

[data-theme="light"] .topo-rings span:nth-child(1) { border-color: rgba(69, 147, 255, 0.3); }
[data-theme="light"] .topo-rings span:nth-child(2) { border-color: rgba(167, 139, 250, 0.25); }
[data-theme="light"] .topo-rings span:nth-child(3) { border-color: rgba(255, 153, 0, 0.22); }

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea,
[data-theme="light"] .contact-form select {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border);
  color: var(--text-primary);
}
[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus,
[data-theme="light"] .contact-form select:focus {
  border-color: var(--aws-orange);
  background: #fff;
}

[data-theme="light"] .site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
}
[data-theme="light"] .footer-meta p { color: var(--text-secondary); }
[data-theme="light"] .footer-disclaimer { color: var(--text-muted); }

[data-theme="light"] .trust-bar {
  background: linear-gradient(180deg, rgba(255, 153, 0, 0.05), rgba(69, 147, 255, 0.05));
  border-color: var(--border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-text {
    max-width: 720px;
    order: 1;
  }
  .hero-visual {
    order: 2;
  }
  .topology { width: min(360px, 80vw); }

  .arch-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-track::before { display: none; }
  .cases-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .contact-panel { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
}

@media (max-width: 980px) {
  .site-header { padding: 0 20px; gap: 14px; }
  .nav-links { display: none; }
  .header-action { display: none; }
  .menu-toggle { display: block; margin-left: auto; }

  .site-header.nav-open .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    display: grid;
    gap: 0;
    padding: 16px 24px 24px;
    background: rgba(10, 17, 31, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }
  .site-header.nav-open .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
  }
  [data-theme="light"] .site-header.nav-open .nav-links {
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-primary);
  }

  .trust-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact-panel { padding: 32px; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1200px); }

  .section { padding: 70px 0; }
  .section-heading { margin-bottom: 40px; }
  h2 { font-size: clamp(26px, 6.5vw, 36px); }

  .hero {
    padding-top: calc(var(--header-h) + 26px);
    padding-bottom: 56px;
    background: linear-gradient(180deg, #f6fbff 0%, #ffffff 100%);
  }
  .hero-bg-image { display: none; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.94) 42%, #ffffff 100%),
      radial-gradient(circle at 80% 20%, rgba(255, 153, 0, 0.1), transparent 44%);
  }
  .hero-bg::before { display: none; }
  .hero-grid { opacity: 0.32; }
  .hero-glow { opacity: 0.18; filter: blur(110px); }
  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 34px;
  }
  .hero-text {
    order: 1;
    width: 100%;
    padding: 22px 0 6px;
    color: #0f172a;
  }
  .hero h1 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.12;
    color: #0f172a;
    text-shadow: none;
  }
  .hero-hl {
    background: linear-gradient(135deg, #b45309 0%, #ea580c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero-copy { font-size: 15.5px; line-height: 1.65; }
  [data-theme="light"] .hero-copy,
  .hero-copy {
    color: #334155;
  }
  .eyebrow {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(180, 83, 9, 0.24);
    color: #92400e;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  }
  .hero-actions { width: 100%; flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .hero-badges li {
    font-size: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 23, 42, 0.08);
    color: #334155;
  }

  .hero-visual {
    order: 2;
    width: 100%;
    min-height: 350px;
    padding: 28px 0;
    border: 1px solid rgba(69, 147, 255, 0.18);
    border-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(226, 240, 255, 0.72)),
      radial-gradient(circle at 50% 45%, rgba(69, 147, 255, 0.16), transparent 58%);
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.1);
  }
  .topology { width: min(330px, 88vw); }
  .topo-core { width: 76px; height: 76px; }
  .topo-pulse { width: 76px; height: 76px; }
  .topo-node { width: 52px; height: 52px; }
  .topo-node-aws,
  .topo-node-arch { width: 76px; height: 76px; }
  .topo-logo-aws strong { font-size: 20px; }
  .topo-logo-aws svg { width: 44px; height: 12px; }
  .topo-logo-arch svg { width: 38px; height: 26px; }
  .topo-logo-arch strong { font-size: 12px; }
  .topo-mark { font-size: 10.5px; }

  .hero-stats { grid-template-columns: 1fr; gap: 14px; margin-top: 50px; }
  .hero-stats .stat { padding: 22px 20px; }
  .hero-stats strong { font-size: 32px; }

  .trust-inner { grid-template-columns: 1fr; }

  .service-grid,
  .industry-grid,
  .cred-grid,
  .metric-grid,
  .process-track { grid-template-columns: 1fr; gap: 16px; }

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

  .arch-row {
    grid-template-columns: 32px 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 4px;
    column-gap: 10px;
    padding: 14px;
  }
  .arch-row .arch-icon { grid-row: 1; grid-column: 1; }
  .arch-row .arch-label { grid-row: 1; grid-column: 2; font-size: 11.5px; }
  .arch-row .arch-state { grid-row: 1; grid-column: 3; font-size: 9px; padding: 3px 8px; }
  .arch-row strong { grid-row: 2; grid-column: 1 / -1; padding-left: 42px; font-size: 13.5px; }

  .contact-panel { padding: 28px 22px; }
  .contact-meta li { gap: 12px; }
  .contact-meta p { font-size: 13.5px; }

  .footer-grid { padding-bottom: 28px; margin-bottom: 28px; gap: 24px; }
}

@media (max-width: 480px) {
  .brand-text em { display: none; }
  .brand-text strong { font-size: 17px; }
  .container { width: min(100% - 20px, 1200px); }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .led, .topo-pulse, .topology::before { animation: none; }
}

/* Smooth theme transition */
body, .site-header, .service-card, .industry-card, .cred-card,
.metric-card, .process-step, .case-tile, .contact-panel,
.arch-board, .arch-row, .topo-node, .lang-btn, .theme-btn,
.contact-form input, .contact-form textarea, .contact-form select {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.3s ease, box-shadow 0.4s ease;
}


/* ============================================================
   Hero — AWS Partner Badge (replaces old eyebrow + aws-badge)
   ============================================================ */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 30px;
  padding: 10px 22px 10px 12px;
  background: rgba(15, 24, 40, 0.7);
  border: 1px solid rgba(255, 153, 0, 0.32);
  border-radius: 100px;
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(255, 153, 0, 0.18);
  position: relative;
  isolation: isolate;
}

.partner-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.12), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.partner-badge-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 38px;
  padding: 0 8px;
  background: linear-gradient(135deg, #232f3e 0%, #131a26 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.partner-badge-mark svg { width: 100%; height: 100%; display: block; }

.partner-badge-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}
.partner-badge-text strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.partner-badge-text small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--aws-orange);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.partner-badge-tier {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--aws-orange);
  box-shadow: 0 0 0 3px rgba(15, 24, 40, 0.7), 0 0 12px rgba(255, 153, 0, 0.7);
  animation: ledPulse 1.8s ease-in-out infinite;
}

/* Light theme */
[data-theme="light"] .partner-badge {
  background: rgba(15, 24, 40, 0.94);
  border-color: rgba(255, 153, 0, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(255, 153, 0, 0.22);
}
[data-theme="light"] .partner-badge::before {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.16), transparent 60%);
}
[data-theme="light"] .partner-badge-text strong { color: #ffffff; }
[data-theme="light"] .partner-badge-text small { color: var(--aws-orange); }
[data-theme="light"] .partner-badge-tier {
  box-shadow: 0 0 0 3px rgba(15, 24, 40, 0.94), 0 0 12px rgba(255, 153, 0, 0.7);
}

/* Hero h1 — color per theme, no overlay mask */
[data-theme="light"] .hero h1 {
  color: #0f172a;
  text-shadow: none;
}

/* Mobile */
@media (max-width: 700px) {
  .partner-badge {
    margin-bottom: 22px;
    padding: 8px 18px 8px 10px;
    gap: 12px;
  }
  .partner-badge-mark { width: 56px; height: 34px; padding: 0 6px; }
  .partner-badge-text strong { font-size: 12.5px; }
  .partner-badge-text small { font-size: 9.5px; }
}


/* ============================================================
   Hero v2 — Centered, AWS-Premier-Partner style
   覆盖 v1 的左右双栏 + topology 实现
   ============================================================ */

/* Reset hero layout */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 88px);
  padding-bottom: 96px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg-image { display: none !important; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(69, 147, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 147, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at center 35%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at center 35%, #000 30%, transparent 80%);
  opacity: 0.55;
}

.hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(110px);
}
.hero-glow-1 {
  top: -180px;
  left: 50%;
  transform: translateX(-65%);
  background: radial-gradient(circle, rgba(255, 153, 0, 0.55) 0%, transparent 70%);
  opacity: 0.55;
}
.hero-glow-2 {
  bottom: -260px;
  right: 50%;
  transform: translateX(60%);
  background: radial-gradient(circle, rgba(69, 147, 255, 0.45) 0%, transparent 70%);
  opacity: 0.5;
}

/* Decorative streaks at top — like AWS data flow */
.hero-streaks {
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  height: 200px;
  overflow: hidden;
  opacity: 0.4;
  mask-image: linear-gradient(180deg, #000, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}
.hero-streaks span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--aws-orange), transparent);
  animation: streakFall 4s linear infinite;
}
.hero-streaks span:nth-child(1) { left: 18%; animation-delay: 0s; }
.hero-streaks span:nth-child(2) { left: 52%; animation-delay: 1.4s; background: linear-gradient(180deg, transparent, var(--accent-blue), transparent); }
.hero-streaks span:nth-child(3) { left: 81%; animation-delay: 2.6s; background: linear-gradient(180deg, transparent, var(--accent-violet), transparent); }
@keyframes streakFall {
  0%   { opacity: 0; transform: translateY(-100%); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(100%); }
}

/* Inner — centered single column, no more grid split */
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 920px;
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  grid-template-columns: none;
  gap: 0;
}

/* hide v1 split children that we don't need anymore */
.hero-text,
.hero-visual,
.hero-badges,
.partner-badge { display: none !important; }

/* AWS Partner Ribbon (top of hero) */
.hero-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 36px;
  padding: 6px 20px 6px 6px;
  background: rgba(15, 24, 40, 0.82);
  border: 1px solid rgba(255, 153, 0, 0.32);
  border-radius: 100px;
  color: var(--text-primary);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(255, 153, 0, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.hero-ribbon:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 153, 0, 0.55);
  box-shadow: 0 12px 32px rgba(255, 153, 0, 0.28);
}

.hero-ribbon-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 32px;
  padding: 4px 8px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(15, 24, 40, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.hero-ribbon-mark svg { width: 100%; height: 100%; display: block; }

.hero-ribbon-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-ribbon-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1;
}
.hero-ribbon-text strong {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.hero-ribbon-text em {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--aws-orange);
  letter-spacing: 0.04em;
}

.hero-ribbon-arrow {
  font-family: 'JetBrains Mono', monospace;
  color: var(--aws-orange);
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.3s ease;
}
.hero-ribbon:hover .hero-ribbon-arrow { transform: translateX(4px); }

/* H1 — big, centered, with three highlight words */
.hero-h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(44px, 7vw, 86px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.hero-h1 .hero-hl {
  display: inline-block;
  background: linear-gradient(135deg, #ffb347 0%, #ff9900 50%, #ff5c1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  padding: 0 0.04em;
  filter: drop-shadow(0 2px 14px rgba(255, 153, 0, 0.35));
  font-size: 1.05em;
}

.hero-copy {
  margin: 28px auto 0;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.btn-arrow {
  display: inline-block;
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  transition: transform 0.3s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Trust strip */
.hero-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 64px;
}

.hero-trust-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-trust-label::before,
.hero-trust-label::after {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-muted));
}
.hero-trust-label::after { background: linear-gradient(90deg, var(--text-muted), transparent); }

.hero-trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.trust-logo:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 153, 0, 0.4);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.trust-logo svg { width: 18px; height: 18px; flex-shrink: 0; }
.trust-logo strong { font-weight: 700; }

.trust-logo-aws {
  padding: 0 14px;
}
.trust-logo-aws svg {
  width: 60px;
  height: 24px;
  color: var(--aws-orange);
  fill: currentColor;
  stroke: currentColor;
}
.trust-logo-aws svg text { fill: #ffffff; }
.trust-logo-aws:hover svg text { fill: var(--aws-orange); }

.trust-logo-arch {
  color: var(--accent-blue);
}
.trust-logo-arch:hover {
  border-color: rgba(69, 147, 255, 0.45);
  color: var(--accent-blue);
}

.trust-logo-fin { color: var(--accent-mint); }
.trust-logo-fin:hover { border-color: rgba(52, 211, 153, 0.45); color: var(--accent-mint); }

.trust-logo-hk { color: var(--accent-violet); }
.trust-logo-hk:hover { border-color: rgba(167, 139, 250, 0.45); color: var(--accent-violet); }

/* Hero stats — slimmer */
.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 88px;
  width: min(1080px, calc(100% - 48px));
}

.hero-stats .stat {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 24px;
  text-align: left;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.25);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-stats .stat::before {
  content: "";
  position: absolute;
  top: 0; left: 24px;
  width: 32px; height: 2px;
  background: var(--aws-orange);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 0 12px rgba(255, 153, 0, 0.55);
}
.hero-stats .stat:nth-child(2)::before { background: var(--accent-blue); box-shadow: 0 0 12px rgba(69, 147, 255, 0.55); }
.hero-stats .stat:nth-child(3)::before { background: var(--accent-mint); box-shadow: 0 0 12px rgba(52, 211, 153, 0.55); }
.hero-stats .stat:nth-child(4)::before { background: var(--accent-violet); box-shadow: 0 0 12px rgba(167, 139, 250, 0.55); }

.hero-stats .stat::after { display: none; }

.hero-stats .stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 153, 0, 0.28);
  box-shadow: 0 16px 36px rgba(255, 153, 0, 0.16);
}

.hero-stats strong {
  display: block;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  background: linear-gradient(135deg, #ffb347, #ff5c1c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats .stat:nth-child(2) strong { background: linear-gradient(135deg, #4593ff, #6366f1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats .stat:nth-child(3) strong { background: linear-gradient(135deg, #34d399, #06b6d4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats .stat:nth-child(4) strong { background: linear-gradient(135deg, #a78bfa, #ec4899); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero-stats strong small { font-size: 0.55em; margin-left: 2px; font-weight: 800; }

.hero-stats span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---- Light theme overrides ---- */
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}
[data-theme="light"] .hero-glow-1 { opacity: 0.4; }
[data-theme="light"] .hero-glow-2 { opacity: 0.32; }

[data-theme="light"] .hero-ribbon {
  background: rgba(15, 24, 40, 0.94);
  border-color: rgba(255, 153, 0, 0.45);
}

[data-theme="light"] .hero-h1 { color: #0f172a; }

[data-theme="light"] .trust-logo {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .trust-logo:hover {
  background: #ffffff;
  color: var(--text-primary);
  border-color: rgba(255, 153, 0, 0.45);
  box-shadow: 0 8px 18px rgba(255, 153, 0, 0.12);
}
[data-theme="light"] .trust-logo-aws svg text { fill: #232f3e; }
[data-theme="light"] .trust-logo-aws:hover svg text { fill: var(--aws-orange); }

[data-theme="light"] .hero-stats .stat {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 22px rgba(15, 23, 42, 0.05);
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 64px; }
  .hero-h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.15; }
  .hero-copy { font-size: 15.5px; line-height: 1.65; }

  .hero-ribbon { padding: 5px 16px 5px 5px; gap: 10px; flex-wrap: nowrap; }
  .hero-ribbon-mark { width: 46px; height: 26px; padding: 0 4px; }
  .hero-ribbon-text { flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.2; }
  .hero-ribbon-text strong { font-size: 12px; }
  .hero-ribbon-text em { font-size: 9.5px; letter-spacing: 0.02em; }

  .hero-actions { flex-direction: column; width: 100%; max-width: 360px; gap: 12px; }
  .hero-actions .btn { width: 100%; }

  .hero-trust { margin-top: 48px; }
  .hero-trust-label { font-size: 10px; gap: 12px; }
  .hero-trust-label::before, .hero-trust-label::after { width: 22px; }
  .trust-logo { height: 38px; padding: 0 14px; font-size: 12px; gap: 8px; }
  .trust-logo svg { width: 16px; height: 16px; }
  .trust-logo-aws svg,
  .trust-logo-aws img { width: 56px; height: 22px; }

  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
  .hero-stats .stat { padding: 22px 18px 20px; }
}

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


/* ============================================================
   AWS Official Logo — sizing for <img src="assets/aws-logo.svg">
   占位文件位于 assets/aws-logo.svg，用户下载官方 SVG 替换该文件即可
   ============================================================ */
.hero-ribbon-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-ribbon-mark {
  /* 给 img 占位留出比之前更宽松的尺寸 */
  width: 64px;
  height: 32px;
  padding: 4px 6px;
}

.trust-logo-aws {
  padding: 0 16px;
}
.trust-logo-aws img {
  display: block;
  width: 70px;
  height: 26px;
  object-fit: contain;
  /* 占位文件用 currentColor，会跟随父级文字色；用户替换为官方多色 SVG 后自动复位 */
}

/* ============================================================
   Defensive cleanup — 隐藏 v1 未删尽的 Tencent 痕迹（如有）
   ============================================================ */
.trust-tag.tx,
.cred-mark-tx,
.cred-card[data-cred="tx"],
.trust-logo-tx { display: none !important; }


/* ============================================================
   Header — AWS APN brand badge (next to brand)
   ============================================================ */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  margin-left: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  position: relative;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  transition: opacity 0.3s ease;
}
.brand-badge::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 1px;
  height: 28px;
  margin: 0;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-50%);
}
.brand-badge:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
  opacity: 0.85;
}

.brand-badge-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 38px;
  padding: 5px 8px;
  background: #ffffff;
  border-radius: 7px;
  box-shadow:
    inset 0 0 0 1px rgba(15, 24, 40, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}
.brand-badge-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-badge-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}
.brand-badge-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.brand-badge-text em {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--aws-orange);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* light theme — divider line & strong color tweak */
[data-theme="light"] .brand-badge {
  background: transparent;
  border-color: transparent;
}
[data-theme="light"] .brand-badge::before {
  background: rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .brand-badge-text strong { color: #0f172a; }

/* hide on tablet & mobile to keep header from cramping */
@media (max-width: 1180px) {
  .brand-badge { display: none; }
}
