/* ============================================
   DESIGN SYSTEM TOKENS
   ============================================ */
:root {
  /* Spacing scale (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Type scale */
  --fs-xs: 0.75rem;    /* 12px */
  --fs-sm: 0.875rem;   /* 14px */
  --fs-base: 1rem;     /* 16px */
  --fs-lg: 1.125rem;   /* 18px */
  --fs-xl: 1.25rem;    /* 20px */
  --fs-2xl: 1.5rem;    /* 24px */
  --fs-3xl: 2rem;      /* 32px */
  --fs-4xl: 2.5rem;    /* 40px */
  --fs-5xl: 3.5rem;    /* 56px */
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.6;
  --lh-relaxed: 1.7;

  /* Color palette - Light (Alibaba Cloud style) */
  --c-primary: #ff6a00;        /* brand orange */
  --c-primary-light: #ff9d0a;
  --c-primary-dark: #e05e00;
  --c-accent: #1354ee;         /* primary action blue */
  --c-accent-light: #4b8bf1;
  --c-accent-dark: #0e43c8;
  --c-accent-tint: #edf2ff;    /* pale blue fills */
  --c-accent-tint-2: #dde8ff;  /* secondary button fill */
  --c-link: #0033cc;
  --c-gradient-text: linear-gradient(90deg, #2055fa 0%, #1b52f8 35%, #a07cfe 75%, #adb9ff 100%);

  --c-bg: #ffffff;
  --c-bg-subtle: #f7f8fa;
  --c-bg-muted: #f0f1f3;
  --c-bg-highlight: #f3f6ff;
  --c-bg-highlight-end: #eef1ff;
  --c-bg-dark: #17191c;
  --c-bg-darker: #0e1013;

  --c-text: #181818;
  --c-text-secondary: #55565a;
  --c-text-tertiary: #85878a;
  --c-text-inverse: #ffffff;
  --c-text-inverse-muted: rgba(255, 255, 255, 0.7);

  --c-border: #e8e8e8;
  --c-border-light: #f0f0f0;
  --c-border-accent: #1354ee;

  /* Semantic */
  --c-success: #16a34a;
  --c-warning: #ff6a00;
  --c-error: #e5484d;
  --c-info: #2563eb;

  /* Shadows (flat, Alibaba Cloud style) */
  --shadow-sm: 0 1px 2px rgba(24, 24, 24, 0.04);
  --shadow-md: 0 2px 8px rgba(24, 24, 24, 0.08);
  --shadow-lg: 0 4px 16px rgba(24, 24, 24, 0.1);
  --shadow-xl: 0 8px 24px rgba(24, 24, 24, 0.12);

  /* Radii (near-square) */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1200px;
  --navbar-height: 64px;
  --announce-height: 40px;
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  --c-accent: #4b8bf1;
  --c-accent-dark: #6f9ff5;
  --c-accent-tint: rgba(75, 139, 241, 0.14);
  --c-accent-tint-2: rgba(75, 139, 241, 0.22);
  --c-link: #8ab0ff;

  --c-bg: #0e1013;
  --c-bg-subtle: #14161a;
  --c-bg-muted: #1a1d22;
  --c-bg-highlight: #131a2b;
  --c-bg-highlight-end: #101625;
  --c-bg-dark: #0a0c0f;
  --c-bg-darker: #060708;

  --c-text: #e8eaed;
  --c-text-secondary: #a3a7ad;
  --c-text-tertiary: #6e7278;
  --c-text-inverse: #0e1013;
  --c-text-inverse-muted: rgba(14, 16, 19, 0.7);

  --c-border: #2a2e35;
  --c-border-light: #1f2228;
  --c-border-accent: #4b8bf1;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* ============================================
   BASE / RESET
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Tahoma, Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--c-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--c-accent-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

address {
  font-style: normal;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--sp-8);
  }
}

.section {
  padding: var(--sp-20) 0;
}

.section--light {
  background: var(--c-bg);
}

.section--gray {
  background: var(--c-bg-subtle);
}

.section--highlighted {
  background: linear-gradient(180deg, var(--c-bg-highlight) 0%, var(--c-bg-highlight-end) 100%);
}

.section--cta {
  background: var(--c-bg);
  padding: var(--sp-16) 0;
}

.section__header {
  text-align: left;
  max-width: 760px;
  margin-bottom: var(--sp-12);
}

.section__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-primary);
  margin-bottom: var(--sp-3);
}

.section__label--accent {
  color: var(--c-accent);
}

.section__title {
  font-size: var(--fs-3xl);
  font-weight: 900;
  line-height: var(--lh-tight);
  color: var(--c-text);
  margin-bottom: var(--sp-4);
}

.section__desc {
  font-size: var(--fs-lg);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
}

@media (min-width: 768px) {
  .section__title {
    font-size: var(--fs-4xl);
  }
}

/* ============================================
   SITE HEADER (announcement bar + navbar)
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Announcement bar */
.announce {
  height: var(--announce-height);
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #e9f6ef 0%, #e8f3ff 50%, #efe9ff 100%);
  border-bottom: 1px solid var(--c-border-light);
}

[data-theme="dark"] .announce {
  background: linear-gradient(90deg, #10231a 0%, #101c2e 50%, #1c1830 100%);
  border-bottom-color: var(--c-border);
}

.announce__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

@media (min-width: 768px) {
  .announce__inner {
    padding-inline: var(--sp-8);
  }
}

.announce__tag {
  flex-shrink: 0;
  padding: 2px var(--sp-2);
  background: var(--c-accent);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.announce__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text);
}

.announce__cta {
  flex-shrink: 0;
  padding: var(--sp-1) var(--sp-5);
  background: linear-gradient(270deg, var(--c-primary-light), var(--c-primary));
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: filter var(--transition-fast);
}

.announce__cta:hover {
  color: #fff;
  filter: brightness(1.08);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: relative;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border-light);
  transition: box-shadow var(--transition-base);
}

[data-theme="dark"] .navbar {
  background: rgba(14, 16, 19, 0.9);
  border-bottom-color: var(--c-border);
}

.navbar--scrolled {
  box-shadow: var(--shadow-md);
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar__logo-img {
  height: 40px;
  width: auto;
  border-radius: var(--radius-sm);
}

.navbar__logo-text {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-text);
  margin-left: var(--sp-3);
  white-space: nowrap;
}

.navbar__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  background: none;
  border: none;
  cursor: pointer;
}

.navbar__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar__menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-4) var(--sp-6);
  gap: var(--sp-1);
  box-shadow: var(--shadow-lg);
}

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

.navbar__link {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--c-accent);
  background: var(--c-accent-tint);
}

@media (min-width: 768px) {
  .navbar__toggle {
    display: none;
  }

  .navbar__menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    padding: 0;
    gap: var(--sp-1);
    box-shadow: none;
    align-items: center;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(var(--navbar-height) + var(--announce-height) + var(--sp-10)) var(--sp-6) var(--sp-10);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, #ffffff 0%, #f3f6ff 55%, #eef1ff 100%);
  overflow: hidden;
}

[data-theme="dark"] .hero__bg {
  background: linear-gradient(135deg, #0c1222 0%, #131a2e 50%, #0c1222 100%);
}

/* Aurora wash across the bottom of the hero (Alibaba Cloud style) */
.hero__aurora {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -30%;
  height: 85%;
  background:
    radial-gradient(55% 90% at 18% 100%, rgba(167, 139, 250, 0.5), transparent 70%),
    radial-gradient(60% 100% at 55% 110%, rgba(96, 140, 250, 0.42), transparent 72%),
    radial-gradient(45% 80% at 85% 100%, rgba(244, 114, 182, 0.32), transparent 70%);
  filter: blur(48px);
  transform: rotate(-4deg);
}

[data-theme="dark"] .hero__aurora {
  opacity: 0.55;
}

/* Thin gradient ribbon sweeping down the right edge */
.hero__ribbon {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(60vw, 900px);
  opacity: 0.9;
}

[data-theme="dark"] .hero__ribbon {
  opacity: 0.6;
}

/* Soft light that trails the cursor across the hero */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: radial-gradient(
    340px circle at var(--glow-x, 50%) var(--glow-y, 40%),
    rgba(19, 84, 238, 0.14),
    rgba(160, 124, 254, 0.07) 45%,
    transparent 72%
  );
}

.hero__glow.is-active {
  opacity: 1;
}

[data-theme="dark"] .hero__glow {
  background: radial-gradient(
    340px circle at var(--glow-x, 50%) var(--glow-y, 40%),
    rgba(75, 139, 241, 0.16),
    rgba(173, 185, 255, 0.06) 45%,
    transparent 72%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: left;
}

/* Promo strip above the headline (Alibaba Cloud style) */
.hero__promo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  background: var(--c-accent-tint);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-8);
  max-width: 100%;
}

.hero__promo:hover {
  background: var(--c-accent-tint-2);
}

.hero__promo-tag {
  flex-shrink: 0;
  padding: 2px var(--sp-3);
  background: var(--c-accent);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
}

.hero__promo-text {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__promo-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  background: var(--c-accent);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.hero__promo:hover .hero__promo-link {
  background: var(--c-accent-dark);
}

[data-theme="dark"] .hero__promo-text {
  color: var(--c-accent-light);
}

.hero__title {
  font-size: var(--fs-4xl);
  font-weight: 900;
  line-height: var(--lh-tight);
  color: var(--c-text);
  margin-bottom: var(--sp-6);
}

.hero__title-accent {
  background: var(--c-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 640px;
  margin-bottom: var(--sp-8);
}

.hero__subtitle strong {
  background: var(--c-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.hero__actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: var(--sp-10);
}

/* Checkmark stat row under the hero actions */
.hero__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-10);
}

.hero__stats li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--c-text);
}

.hero__stats svg {
  color: var(--c-accent);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  }
}

/* ============================================
   BUTTONS (square, Alibaba Cloud style)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--fs-base);
  font-weight: 700;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  line-height: 1.5;
}

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

.btn--primary:hover {
  background: var(--c-accent-dark);
  color: #fff;
}

.btn--tint {
  background: var(--c-accent-tint-2);
  color: var(--c-text);
}

.btn--tint:hover {
  background: #cfe0ff;
  color: var(--c-text);
}

[data-theme="dark"] .btn--tint:hover {
  background: rgba(75, 139, 241, 0.32);
}

/* ============================================
   SERVICE CARDS (hairline border grid)
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--c-bg);
  padding: var(--sp-8);
  transition: background var(--transition-base);
}

.service-card:hover {
  background: var(--c-bg-highlight);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}

.service-card__icon--blue {
  background: var(--c-accent-tint);
  color: var(--c-accent);
}

.service-card__icon--purple {
  background: #f1edff;
  color: #6b4eeb;
}

.service-card__icon--green {
  background: #fff3e8;
  color: var(--c-primary);
}

.service-card__icon--amber {
  background: #e8f3ff;
  color: #0e88f2;
}

[data-theme="dark"] .service-card__icon--blue {
  background: rgba(75, 139, 241, 0.15);
}

[data-theme="dark"] .service-card__icon--purple {
  background: rgba(107, 78, 235, 0.18);
}

[data-theme="dark"] .service-card__icon--green {
  background: rgba(255, 106, 0, 0.14);
}

[data-theme="dark"] .service-card__icon--amber {
  background: rgba(14, 136, 242, 0.15);
}

.service-card__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  color: var(--c-text);
  transition: color var(--transition-base);
}

.service-card:hover .service-card__title {
  color: var(--c-accent);
}

.service-card__desc {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
}

.service-card__arrow {
  display: inline-flex;
  margin-top: auto;
  padding-top: var(--sp-5);
  color: var(--c-primary);
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card__arrow {
  transform: translate(2px, -2px);
}

/* ============================================
   AI CARDS
   ============================================ */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 768px) {
  .ai-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ai-card--wide {
    grid-column: 1 / -1;
  }
}

.ai-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--sp-8);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.ai-card:hover {
  border-color: var(--c-border-accent);
  box-shadow: var(--shadow-md);
}

.ai-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  background: var(--c-accent-tint);
  color: var(--c-accent);
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-4);
}

.ai-card__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-3);
}

.ai-card__desc {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-4);
}

.ai-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-accent);
}

.ai-card__link:hover {
  gap: var(--sp-3);
}

.ai-card__models {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.model-pill {
  flex: 1;
  min-width: 180px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-accent-tint);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.model-pill strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c-accent);
  margin-bottom: var(--sp-1);
}

.model-pill span {
  font-size: var(--fs-xs);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
}

[data-theme="dark"] .model-pill {
  background: var(--c-accent-tint);
}

/* ============================================
   TECH STACK (hairline border grid)
   ============================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
}

@media (min-width: 640px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-4);
  background: var(--c-bg);
  text-align: center;
  transition: background var(--transition-base);
}

.tech-item:hover {
  background: var(--c-bg-highlight);
}

.tech-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-item__icon img {
  display: block;
  max-width: 100%;
  height: auto;
}

.tech-item__name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
}

.tech-item__tag {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-accent);
  padding: var(--sp-1) var(--sp-2);
  background: var(--c-accent-tint);
  border-radius: var(--radius-sm);
}

[data-theme="dark"] .tech-item__tag {
  background: var(--c-accent-tint);
}

/* ============================================
   PARTNERS GRID (hairline border grid)
   ============================================ */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
}

@media (min-width: 640px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8) var(--sp-6);
  background: var(--c-bg);
  text-align: center;
  text-decoration: none;
  transition: background var(--transition-base);
}

.partner-card:hover {
  background: var(--c-bg-highlight);
}

.partner-card__name {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-1);
}

.partner-card__sub {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-3);
}

.partner-card__url {
  font-size: var(--fs-xs);
  color: var(--c-primary);
  font-weight: 500;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  text-align: left;
  padding: var(--sp-16) var(--sp-10);
  background: var(--c-accent-tint);
  border-radius: var(--radius-md);
}

.cta__title {
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--c-text);
  margin-bottom: var(--sp-4);
}

.cta__desc {
  font-size: var(--fs-lg);
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-8);
  max-width: 640px;
}

.cta__email {
  display: inline-block;
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--c-accent);
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.cta__email:hover {
  color: var(--c-accent-dark);
  border-bottom-color: var(--c-accent-dark);
}

@media (min-width: 768px) {
  .cta__title {
    font-size: var(--fs-3xl);
  }
}

/* ============================================
   FOOTER (light, Alibaba Cloud style)
   ============================================ */
.footer {
  background: var(--c-bg-subtle);
  border-top: 1px solid var(--c-border);
  color: var(--c-text-secondary);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-10);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer__logo {
  height: 48px;
  width: auto;
  margin-bottom: var(--sp-4);
  border-radius: var(--radius-sm);
}

.footer__about {
  font-size: var(--fs-sm);
  color: var(--c-text-tertiary);
  line-height: var(--lh-relaxed);
}

.footer__heading {
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text-tertiary);
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__list a {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  transition: color var(--transition-fast);
}

.footer__list a:hover {
  color: var(--c-accent);
}

.footer__address {
  font-size: var(--fs-sm);
  color: var(--c-text-tertiary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-3);
}

.footer__email {
  font-size: var(--fs-sm);
  color: var(--c-primary);
  font-weight: 700;
}

.footer__email:hover {
  color: var(--c-primary-dark);
}

.footer__bottom {
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--c-text-tertiary);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--delay, 0) * 0.1s);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   DARK MODE TOGGLE
   ============================================ */
.theme-toggle {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--c-text-secondary);
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }