/* Tirenmobi — Africa TikTok Agency Website */

:root {
  /* 深咖啡暖色调 — 比纯黑更舒适，比浅色更有质感 */
  --color-bg: #1e1612;
  --color-surface: #2a211a;
  --color-surface-2: #322820;
  --color-surface-alt: #261e18;
  --color-card: #2e251e;
  --color-text: #f5efe8;
  --color-muted: #b8a99a;
  --color-orange: #e8864a;
  --color-gold: #daa04e;
  --color-teal: #6ec4b0;
  --color-copper: #c97b4a;
  --gradient-brand: linear-gradient(135deg, #e8864a 0%, #daa04e 50%, #6ec4b0 100%);
  --gradient-hero: linear-gradient(
    125deg,
    rgba(30, 22, 18, 0.82) 0%,
    rgba(46, 37, 30, 0.62) 50%,
    rgba(30, 22, 18, 0.45) 100%
  );
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --nav-h: 72px;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  --border: rgba(245, 239, 232, 0.1);
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* African kente pattern overlay */
.kente-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 12px, #daa04e 12px, #daa04e 13px),
    repeating-linear-gradient(-45deg, transparent, transparent 12px, #c97b4a 12px, #c97b4a 13px);
  pointer-events: none;
}

.container {
  width: min(100% - 48px, var(--max-w));
  margin: 0 auto;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(30, 22, 18, 0.94);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--color-gold); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  background: var(--color-surface-2);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--border);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-btn.active {
  background: var(--gradient-brand);
  color: #fff;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

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

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-africa {
  position: absolute;
  right: -5%;
  bottom: 10%;
  width: min(45vw, 500px);
  opacity: 0.14;
  z-index: 1;
  color: var(--color-gold);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 120px;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(218, 160, 78, 0.12);
  border: 1px solid rgba(218, 160, 78, 0.3);
  color: var(--color-gold);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--color-text);
}

.hero-sub {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--color-muted);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
}

.btn-secondary {
  background: rgba(245, 239, 232, 0.06);
  color: var(--color-text);
  border: 1px solid var(--border);
}

/* ── Stats ── */
.stats {
  position: relative;
  z-index: 3;
  margin-top: -60px;
  padding-bottom: 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: transparent;
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: none;
}

.stat-item {
  background: var(--color-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 4px;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 4px;
}

/* ── Partners logo wall ── */
.partners {
  padding: 8px 0 72px;
  text-align: center;
}

.partners-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 28px;
}

.partners-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.partners-track {
  display: flex;
  width: max-content;
  animation: partners-scroll 30s linear infinite;
}

.partners-track:hover { animation-play-state: paused; }

.partners-set {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}

.partner-img {
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  /* 任意原色 logo 统一转为米白剪影，贴合暖色深底 */
  filter: brightness(0) invert(0.95) sepia(0.08);
  opacity: 0.72;
  transition: opacity 0.2s;
}

.partner-img:hover { opacity: 1; }

@keyframes partners-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .partners-set[aria-hidden="true"] { display: none; }
}

@media (max-width: 768px) {
  .partners-set { gap: 40px; padding-right: 40px; }
  .partner-img { height: 24px; max-width: 130px; }
}

/* ── Sections ── */
.section {
  padding: 100px 0;
  position: relative;
}

.section-alt { background: var(--color-surface-alt); }

/* 服务保障区底部加细分隔线，与联系区过渡更清晰 */
#service.section-alt {
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 48px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  color: var(--color-muted);
  font-size: 1.0625rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tag {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(218, 160, 78, 0.1);
  border: 1px solid rgba(218, 160, 78, 0.28);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gold);
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

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

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  pointer-events: none;
}

/* Advantages grid */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.adv-card {
  background: var(--color-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.adv-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 134, 74, 0.18), rgba(218, 160, 78, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.adv-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.adv-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Platform */
.platform-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.platform-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
}

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

.platform-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 8px;
  letter-spacing: 0.1em;
}

.platform-list { display: flex; flex-direction: column; gap: 24px; }

.platform-item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.platform-item p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* Capabilities */
.cap-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cap-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cap-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
}

.cap-item p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.65;
}

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

.funnel-col {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--color-gold);
  box-shadow: var(--shadow);
}

.funnel-col.awareness { border-top-color: var(--color-gold); }
.funnel-col.consideration { border-top-color: var(--color-orange); }
.funnel-col.conversion { border-top-color: var(--color-teal); }

.funnel-col h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.9;
}

.funnel-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.funnel-item:last-child { border-bottom: none; padding-bottom: 0; }

.funnel-item h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.funnel-item p {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* Creative + KOL split */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

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

.feature-list { display: flex; flex-direction: column; gap: 24px; }

.feature-item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.formula-box {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232, 134, 74, 0.1), rgba(218, 160, 78, 0.08));
  border: 1px solid rgba(218, 160, 78, 0.25);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-gold);
  line-height: 1.6;
}

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

.service-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.service-card .adv-icon { margin: 0 auto 20px; }

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-muted);
}

/* Contact — 与上方服务保障区拉开层次 */
.contact {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  border-top: 1px solid rgba(218, 160, 78, 0.22);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 134, 74, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(26, 171, 152, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.contact-inner { position: relative; z-index: 1; }

.contact h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-sub {
  font-size: 1.125rem;
  color: var(--color-gold);
  margin-bottom: 32px;
}

.contact-meta {
  color: var(--color-muted);
  margin-bottom: 36px;
  line-height: 2;
}

.contact-meta a {
  color: var(--color-orange);
  font-weight: 600;
}

.contact-meta a:hover { text-decoration: underline; }

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--color-surface);
}

.footer p {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.footer-brand {
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-list { grid-template-columns: repeat(2, 1fr); }
  .funnel { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(30, 22, 18, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .menu-btn { display: flex; }

  .about-grid,
  .platform-wrap,
  .split-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-section.reverse { direction: ltr; }

  .adv-grid,
  .cap-list,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-content { padding: 60px 0 80px; }

  .hero-africa { display: none; }
}
