/* ===== PREMIUM DESIGN SYSTEM ===== */
:root {
  --primary: #C41220;
  --primary-dark: #9A0E18;
  --primary-deep: #E83A45;
  --primary-soft: rgba(196, 18, 32, 0.16);
  --primary-glow: rgba(196, 18, 32, 0.28);
  --text: #F2F4F6;
  --text-secondary: #A8B0B8;
  --text-muted: #6B737C;
  --bg: #0B0D0F;
  --bg-elevated: #111315;
  --bg-dark: #08090B;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 13, 15, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(15, 20, 25, 0.05);
}

/* Hide header (class controlled by JS, mainly mobile) */
.header.header-hidden {
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
  pointer-events: none;
}
.header.menu-open,
.header.menu-open.header-hidden {
  -webkit-transform: translateY(0) !important;
  transform: translateY(0) !important;
  pointer-events: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-img {
  height: 48px;
  width: auto;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-deep);
  background: var(--primary-soft);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid var(--border);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: 0.02em;
}

.lang-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(196, 18, 32, 0.3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  margin: 0 auto;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 110px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(196, 18, 32, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(196, 18, 32, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #0B0D0F 0%, #111315 100%);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-logo {
  height: 72px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--text);
}

.hero-slogan {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--primary-deep);
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.5;
  max-width: 480px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 460px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(196, 18, 32, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(196, 18, 32, 0.45);
}

.btn-outline {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  box-shadow: var(--shadow);
}

.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  top: 5%;
  left: 5%;
}

.hero-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

/* ===== SECTIONS ===== */
.section {
  padding: 110px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--text);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.section-line {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  margin: 0 auto;
  border-radius: 3px;
}

/* ===== ABOUT ===== */
.about { background: var(--bg); }

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

.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.75;
}

.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.meta-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.about-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

/* ===== DEVICES ===== */
.devices { background: var(--bg-elevated); }

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

.device-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.device-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.device-img-wrap {
  height: 220px;
  overflow: hidden;
  background: var(--bg);
}

.device-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.device-card:hover .device-img {
  transform: scale(1.06);
}

.device-name {
  font-size: 17px;
  font-weight: 600;
  padding: 22px 22px 6px;
  color: var(--text);
}

.device-desc {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 0 22px 24px;
  line-height: 1.65;
}

/* ===== PROCESS ===== */
.process { background: var(--bg); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.step {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.step:hover {
  border-color: var(--primary);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.step-num {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ===== PARTNER ===== */
.partner { background: var(--bg-elevated); }

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

.partner-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 1.5px solid var(--border);
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.partner-card.featured {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(196, 18, 32, 0.15);
  background: linear-gradient(180deg, #111315 0%, #0B0D0F 100%);
}

.partner-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(196, 18, 32, 0.35);
}

.partner-level {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.partner-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
  color: var(--text-muted);
}

.partner-metrics {
  display: flex;
  flex-direction: column;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.metric-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.metric-value.accent {
  color: var(--primary-deep);
  font-size: 16px;
  font-weight: 700;
}

/* ===== ADVANTAGES ===== */
.advantages { background: var(--bg); }

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

.adv-card {
  padding: 32px 26px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.adv-card:hover {
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  border-color: transparent;
  transform: translateY(-4px);
}

.adv-icon {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.5;
  margin-bottom: 18px;
}

.adv-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.adv-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== FAQ ===== */
.faq { background: var(--bg-elevated); }

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(196, 18, 32, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  gap: 16px;
}

.faq-question:hover {
  color: var(--primary-deep);
}

.faq-icon {
  font-size: 22px;
  color: var(--primary);
  font-weight: 300;
  transition: var(--transition);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border-radius: 50%;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.active .faq-answer {
  max-height: 240px;
}

.faq-answer p {
  padding: 0 22px 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--bg);
  padding-bottom: 120px;
}

.contact-box {
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  padding: 48px 32px;
  background: var(--bg-elevated);
  border-radius: 24px;
  border: 1px solid var(--border);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: white;
  padding: 16px 36px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
}

.contact-btn:hover {
  background: #1EBE57;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.4);
}

.contact-number {
  margin-top: 22px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 64px 0 36px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer-logo {
  height: 36px;
  margin: 0 auto 10px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 14px;
  border-radius: 8px;
}

.footer-links a:hover {
  color: var(--primary);
  background: rgba(196, 18, 32, 0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  width: 100%;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-slogan, .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns { justify-content: center; }
  .hero-image { order: -1; }
  .hero-img { max-width: 400px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-meta { grid-template-columns: 1fr 1fr; }
  .devices-grid, .partner-grid, .adv-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .header-inner { height: 60px; }
  .logo-img { height: 42px; }

  .nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px 18px 24px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(15, 20, 25, 0.1);
  }
  .nav.open { display: flex; }
  .nav-link {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
    width: 100%;
  }
  .menu-toggle { display: flex; }

  .hero {
    padding: 90px 0 56px;
    min-height: auto;
  }
  .hero-logo { height: 56px; margin-bottom: 20px; }
  .hero-title { font-size: 30px; margin-bottom: 14px; }
  .hero-slogan { font-size: 15px; margin-bottom: 14px; }
  .hero-desc { font-size: 15px; margin-bottom: 28px; }
  .hero-btns { flex-direction: column; gap: 12px; }
  .btn { width: 100%; padding: 16px 24px; font-size: 15px; }
  .hero-img { max-width: 100%; border-radius: 18px; }

  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 14px; }

  .about-meta { grid-template-columns: 1fr; gap: 12px; }

  .devices-grid, .partner-grid, .adv-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .device-img-wrap { height: 200px; }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .step {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    text-align: left;
    padding: 18px 16px;
    gap: 0 14px;
    align-items: start;
  }
  .step-num {
    grid-row: 1 / 3;
    font-size: 24px;
    margin-bottom: 0;
    align-self: center;
  }
  .step-title { margin-bottom: 4px; }

  .partner-card { padding: 28px 22px; }
  .partner-level { font-size: 28px; }
  .metric-row { padding: 13px 0; }

  .adv-card { padding: 24px 20px; }

  .faq-question { padding: 18px; font-size: 14px; }
  .faq-answer p { padding: 0 18px 18px; }

  .contact-box { padding: 36px 22px; border-radius: 20px; }
  .contact-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }

  .footer { padding: 48px 0 28px; }
  .footer-links { gap: 4px; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 26px; }
  .lang-btn { padding: 6px 9px; font-size: 11px; }
}

/* ===== INTRO OVERLAY ===== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0B0F14;
  overflow: hidden;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.9s;
}

.intro.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.intro-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.intro-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: glowFloat 12s ease-in-out infinite;
}

.intro-glow-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #C41220 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.intro-glow-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #7A0B14 0%, transparent 70%);
  bottom: -15%;
  right: -8%;
  animation-delay: -4s;
  opacity: 0.25;
}

.intro-glow-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #9A0E18 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -7s;
  opacity: 0.2;
}

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.97); }
}

.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px 24px;
  max-width: 520px;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro.leaving .intro-content {
  opacity: 0;
  transform: translateY(-24px);
}

.intro-logo {
  height: 88px;
  width: auto;
  margin: 0 auto 36px;
  border-radius: 12px;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro.leaving .intro-logo {
  opacity: 0;
  transform: scale(0.92);
}

.intro-title {
  font-size: clamp(22px, 4.5vw, 32px);
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 40px;
  opacity: 0.95;
}

.intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-btn:hover {
  background: rgba(196, 18, 32, 0.2);
  border-color: rgba(196, 18, 32, 0.45);
  box-shadow: 0 8px 32px rgba(196, 18, 32, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.intro-btn:active {
  transform: translateY(0) scale(0.98);
}

.intro-btn-arrow {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-btn:hover .intro-btn-arrow {
  transform: translateX(4px);
}

/* Site wrapper under intro */
.site-wrapper {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

body.intro-done .site-wrapper {
  opacity: 1;
  pointer-events: auto;
}

body.intro-active {
  overflow: hidden;
}

body.intro-done {
  overflow: auto;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

/* Hero already visible after intro */
.hero.reveal,
body.intro-done .hero.reveal {
  opacity: 1;
  transform: none;
}

/* Language fade */
[data-i18n] {
  transition: opacity 0.25s ease;
}

[data-i18n].lang-fade {
  opacity: 0;
}

/* Enhanced header glass */
.header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 30px rgba(15, 20, 25, 0.06);
  border-bottom-color: rgba(15, 20, 25, 0.06);
}

/* Button arrow enhancement */
.btn-primary,
.btn-outline {
  position: relative;
}

.btn-primary:active,
.btn-outline:active {
  transform: scale(0.97);
}

/* Mobile intro */
@media (max-width: 768px) {
  .intro-logo {
    height: 72px;
    margin-bottom: 28px;
  }
  .intro-title {
    font-size: 22px;
    margin-bottom: 32px;
    padding: 0 8px;
  }
  .intro-btn {
    width: calc(100% - 16px);
    max-width: 320px;
    justify-content: center;
    padding: 16px 24px;
  }
  .intro-glow-1 { width: 280px; height: 280px; }
  .intro-glow-2 { width: 220px; height: 220px; }
  .intro-glow-3 { width: 180px; height: 180px; }
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #C41220, #7A0B14);
  z-index: 10001;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ===== INTRO EXTRA ===== */
.intro-brand {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.intro-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  margin: -24px 0 36px;
  line-height: 1.5;
}

.intro-logo {
  background: transparent;
  mix-blend-mode: normal;
}

/* Footer logo on dark - no invert needed for transparent logo with dark text */
.footer-logo {
  filter: none;
  height: 52px;
  opacity: 0.95;
}

/* Nav logo on light bg */
.logo-img {
  background: transparent;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(10, 12, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  cursor: default;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(15, 20, 25, 0.1);
  background: rgba(11, 13, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(15, 20, 25, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 900;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: #C41220;
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(196, 18, 32, 0.35);
}

/* Device image cursor */
.lightbox-trigger {
  cursor: zoom-in;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .intro-glow { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== TEAM ENTRY ===== */
.team-entry { background: var(--bg); }
.team-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.team-entry-card {
  text-align: left;
  padding: 36px 28px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  color: inherit;
}
.team-entry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.team-entry-card.featured {
  background: linear-gradient(160deg, #15181B 0%, #111315 100%);
  border-color: rgba(196, 18, 32, 0.35);
}
.team-entry-icon { font-size: 32px; margin-bottom: 16px; }
.team-entry-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.team-entry-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.team-entry-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-deep);
}

/* ===== TEAM PANEL ===== */
.team-panel {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(10, 12, 16, 0.55);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.team-panel.open {
  opacity: 1;
  visibility: visible;
}
.team-panel-inner {
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  background: var(--bg-elevated);
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(40px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.team-panel.open .team-panel-inner {
  transform: translateY(0);
}
.team-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.team-panel-header h2 {
  font-size: 20px;
  font-weight: 700;
}
.team-panel-close {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-elevated);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}
.team-panel-body {
  overflow-y: auto;
  padding: 16px 20px 40px;
  -webkit-overflow-scrolling: touch;
}

/* Person card */
.person-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.person-card.open {
  border-color: var(--primary);
  background: var(--bg-elevated);
}
.person-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
  color: inherit;
}
.person-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.person-meta { flex: 1; min-width: 0; }
.person-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.person-role {
  font-size: 12px;
  color: var(--text-muted);
}
.person-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  font-size: 14px;
}
.person-card.open .person-arrow {
  transform: rotate(180deg);
  background: var(--primary);
  color: #fff;
}
.person-bio {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.person-card.open .person-bio {
  max-height: none;
  overflow: visible;
}
.person-bio-inner {
  padding: 0 16px 18px 86px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .team-entry-grid { grid-template-columns: 1fr; }
  .person-bio-inner { padding-left: 16px; }
  .team-panel-inner { max-height: 92vh; border-radius: 20px 20px 0 0; }
}

/* Hero team buttons - prominent */
.hero-team-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.btn-team {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 12px;
  border: 1.5px solid rgba(196, 18, 32, 0.35);
  background: var(--bg-elevated);
  color: var(--primary-deep);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(196, 18, 32, 0.08);
}
.btn-team:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(196, 18, 32, 0.18);
}
.btn-team-accent {
  background: linear-gradient(135deg, #C41220, #9A0E18);
  color: #fff;
  border-color: transparent;
}
.btn-team-accent:hover {
  box-shadow: 0 6px 24px rgba(196, 18, 32, 0.35);
}

/* Team entry more prominent */
.team-entry-card {
  padding: 40px 32px;
  border-width: 2px;
}
.team-entry-card.featured {
  box-shadow: 0 8px 32px rgba(196, 18, 32, 0.12);
}
.person-bio.open,
.person-card.open .person-bio {
  max-height: none;
  overflow: visible;
}
.person-bio-inner {
  white-space: pre-line;
}

@media (max-width: 768px) {
  .hero-team-btns { flex-direction: column; }
  .btn-team { width: 100%; text-align: center; }
}

/* Business plan CTA bar */
.plan-cta-section .container {
  max-width: 1280px;
}
.plan-cta-bar {
  max-width: 100%;
  margin: 0 auto 48px;
  padding: 36px 48px;
  background: linear-gradient(135deg, #141018 0%, #1a1214 50%, #120e10 100%);
  border-radius: 24px;
  border: 1px solid rgba(196, 18, 32, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  color: #fff;
}
.plan-cta-bar h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.plan-cta-bar p {
  font-size: 15px;
  color: rgba(255,255,255,0.68);
  line-height: 1.55;
  max-width: 36em;
}
.plan-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.plan-cta-bar .btn-primary {
  background: linear-gradient(135deg, #C41220, #9A0E18);
  color: #fff;
  border: none;
}
.plan-cta-bar .btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.plan-cta-bar .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.hero-team-btns a.btn-team {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  /* 手机端官方文件卡片尽量铺满屏幕宽度 */
  .plan-cta-section .container {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
  }
  .plan-cta-bar {
    width: 100%;
    max-width: none;
    padding: 26px 18px;
    margin: 0 0 36px;
    border-radius: 18px;
    gap: 18px;
  }
  .plan-cta-bar h3 { font-size: 18px; }
  .plan-cta-bar p { font-size: 14px; max-width: none; }
  .plan-cta-actions { width: 100%; }
  .plan-cta-actions .btn { flex: 1; justify-content: center; text-align: center; }
}


/* Contact email button */
.contact-btn.email {
  background: linear-gradient(135deg, #C41220, #9A0E18);
  color: #fff;
}
.contact-btn.email:hover {
  box-shadow: 0 8px 28px rgba(196, 18, 32, 0.35);
  transform: translateY(-2px);
}
.contact-email-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.contact-email-link:hover {
  color: var(--primary, #C41220);
}
.footer-contact {
  margin: 16px 0 8px;
  text-align: center;
}
.footer-contact a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.footer-contact a:hover {
  color: #C41220;
}

.footer-art-logo {
  display: block;
  height: 48px;
  width: auto;
  margin: 12px auto 4px;
  opacity: 0.95;
}

.footer-beian {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  text-decoration: none;
  line-height: 1.4;
}

.beian-link:hover {
  color: rgba(255, 255, 255, 0.55);
}

.beian-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-address {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}


/* ===== Mobile smart nav (core 4 + spacing) ===== */
@media (min-width: 769px) {
  /* Desktop: never auto-hide header */
  .header.header-hidden {
    -webkit-transform: none !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}
@media (max-width: 768px) {
  .nav-link.nav-secondary {
    display: none !important;
  }
  .header-inner {
    height: 56px;
  }
  .logo-img {
    height: 36px;
  }
  .nav {
    top: 56px;
    padding: 10px 16px 18px;
    gap: 6px;
  }
  .nav-link.nav-core {
    padding: 15px 16px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 12px;
    width: 100%;
  }
  .section {
    padding: 56px 0;
  }
  .section-header {
    margin-bottom: 32px;
  }
  .hero {
    padding: 84px 0 48px;
  }
}

/* ===== VIDEOS ===== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.video-card {
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 20, 25, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15, 20, 25, 0.08);
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0f14;
  overflow: hidden;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.video-title {
  font-size: 17px;
  font-weight: 600;
  padding: 16px 18px 6px;
  color: var(--text, #0F1419);
}

.video-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary, #6B7280);
  padding: 0 18px 18px;
  margin: 0;
}

@media (max-width: 768px) {
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .video-title {
    font-size: 16px;
    padding: 14px 14px 4px;
  }
  .video-desc {
    font-size: 13px;
    padding: 0 14px 14px;
  }
}

/* ===== SF-specific overrides ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.logo-text { letter-spacing: -0.02em; }
.logo-img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
}
.hero-logo {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  margin-bottom: 16px;
}
.footer-logo {
  height: 36px;
  width: 36px;
  border-radius: 50%;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}
.stats-row .stat-item {
  text-align: center;
}
.stats-row .stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 6px;
}
@media (min-width: 768px) {
  .stats-row .stat-num { font-size: 2.4rem; }
}
.stats-row .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.adv-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

/* 4-column devices on large screens */
@media (min-width: 1100px) {
  .devices-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.video-card h3 {
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.video-card p {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.video-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== SF premium refinements ===== */
.logo-img,
.hero-logo,
.footer-logo {
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
}

.partner-note {
  margin-top: 28px;
  padding: 18px 20px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.footer-copy {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  line-height: 1.6;
  word-break: break-word;
}

/* Hero image: full bleed feel, premium crop */
.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .partner-note {
    font-size: 0.82rem;
    padding: 14px 16px;
  }
  .footer-copy {
    font-size: 0.7rem !important;
  }
}

/* Soft dark accent for premium feel on partner featured */
.partner-card.featured {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(196, 18, 32, 0.12);
}

.partner-level {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.metric-value.accent {
  color: var(--primary);
  font-weight: 600;
}

/* Nav core highlight */
.nav-link.nav-core {
  color: var(--primary-deep);
  font-weight: 600;
}

/* Contact button polish */
.contact-btn.email {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: #fff;
}
.contact-btn.email:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

/* ===== Dark theme hard overrides ===== */
.header {
  background: rgba(11, 13, 15, 0.88) !important;
  border-bottom-color: var(--border);
}
.header.scrolled {
  background: rgba(11, 13, 15, 0.94) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.menu-toggle span {
  background: var(--text) !important;
}
.btn-outline {
  color: var(--text);
  border-color: var(--border-strong);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  background: var(--primary-soft);
}
.btn-team {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-team-accent {
  background: var(--primary-soft);
  border-color: rgba(196, 18, 32, 0.35);
  color: #ffb4b8;
}
.partner-card,
.adv-card,
.device-card,
.faq-item,
.team-entry-card {
  background: var(--bg-elevated) !important;
  border-color: var(--border) !important;
  color: var(--text);
}
.partner-card.featured {
  background: linear-gradient(165deg, #1a1214 0%, #15181B 100%) !important;
}
.section-line {
  background: linear-gradient(90deg, var(--primary), transparent) !important;
}
.footer {
  background: var(--bg-dark) !important;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}
.contact-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.team-panel-inner {
  background: var(--bg-elevated) !important;
  color: var(--text);
}
.person-card {
  background: var(--bg) !important;
  border-color: var(--border) !important;
}
.lightbox {
  background: rgba(0,0,0,0.88);
}
.back-top {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.lang-switch {
  background: var(--bg) !important;
  border-color: var(--border) !important;
}
.lang-btn {
  color: var(--text-secondary);
}
.lang-btn.active {
  background: var(--primary) !important;
  color: #fff !important;
}
@media (max-width: 959px) {
  .nav.open {
    background: var(--bg) !important;
    border-top: 1px solid var(--border);
  }
  .nav.open .nav-link {
    color: var(--text) !important;
  }
}

/* Portrait brand logo */
.logo-img {
  height: 44px !important;
  width: auto !important;
  border-radius: 0 !important;
  object-fit: contain;
}
.hero-logo {
  height: 72px !important;
  width: auto !important;
  border-radius: 0 !important;
  object-fit: contain;
  margin-bottom: 18px;
}
.footer-logo {
  height: 36px !important;
  width: auto !important;
  border-radius: 0 !important;
  object-fit: contain;
}
@media (max-width: 767px) {
  .logo-img { height: 38px !important; }
  .hero-logo { height: 56px !important; }
}

/* Square logo (108x108 source) */
.logo-img {
  height: 40px !important;
  width: 40px !important;
  border-radius: 8px !important;
  object-fit: contain;
}
.hero-logo {
  height: 64px !important;
  width: 64px !important;
  border-radius: 12px !important;
  object-fit: contain;
}
.footer-logo {
  height: 32px !important;
  width: 32px !important;
  border-radius: 6px !important;
  object-fit: contain;
}
@media (max-width: 767px) {
  .logo-img { height: 36px !important; width: 36px !important; }
  .hero-logo { height: 52px !important; width: 52px !important; }
}


/* ===== Unified plan-cta + contact (red dark) ===== */
.plan-cta-section {
  background: var(--bg) !important;
}
.plan-cta-bar {
  background: linear-gradient(135deg, #161216 0%, #1c1416 45%, #141018 100%) !important;
  border: 1px solid rgba(196, 18, 32, 0.22) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(196, 18, 32, 0.06) inset !important;
}
.plan-cta-bar h3 {
  color: var(--text) !important;
}
.plan-cta-bar p {
  color: var(--text-secondary) !important;
}
.plan-cta-bar .btn-primary {
  background: linear-gradient(135deg, #C41220 0%, #9A0E18 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(196, 18, 32, 0.35) !important;
}
.plan-cta-bar .btn-primary:hover {
  background: linear-gradient(135deg, #d41828 0%, #C41220 100%) !important;
  box-shadow: 0 8px 28px rgba(196, 18, 32, 0.45) !important;
}
.plan-cta-bar .btn-outline {
  background: transparent !important;
  color: #f0d0d2 !important;
  border: 1.5px solid rgba(196, 18, 32, 0.45) !important;
}
.plan-cta-bar .btn-outline:hover {
  background: rgba(196, 18, 32, 0.12) !important;
  border-color: #C41220 !important;
  color: #fff !important;
}

.contact {
  background: var(--bg) !important;
}
.contact-box {
  background: linear-gradient(160deg, #161216 0%, #121416 100%) !important;
  border: 1px solid rgba(196, 18, 32, 0.18) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35) !important;
}
.contact-btn,
.contact-btn.email {
  background: linear-gradient(135deg, #C41220 0%, #9A0E18 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(196, 18, 32, 0.35) !important;
}
.contact-btn:hover,
.contact-btn.email:hover {
  background: linear-gradient(135deg, #d41828 0%, #C41220 100%) !important;
  box-shadow: 0 10px 32px rgba(196, 18, 32, 0.45) !important;
  filter: none !important;
}
.contact-email-link,
.contact-number a {
  color: var(--text-secondary) !important;
}
.contact-email-link:hover {
  color: #E83A45 !important;
}

/* ===== Team panel dark scrollbar ===== */
.team-panel-inner {
  background: #111315 !important;
  color: var(--text);
}
.team-panel-header {
  background: #111315 !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text) !important;
}
.team-panel-header h2 {
  color: var(--text) !important;
}
.team-panel-close {
  color: var(--text-secondary) !important;
}
.team-panel-body {
  background: #0B0D0F !important;
  scrollbar-width: thin;
  scrollbar-color: #3a3f45 #0B0D0F;
}
.team-panel-body::-webkit-scrollbar {
  width: 8px;
}
.team-panel-body::-webkit-scrollbar-track {
  background: #0B0D0F;
  border-radius: 4px;
}
.team-panel-body::-webkit-scrollbar-thumb {
  background: #3a3f45;
  border-radius: 4px;
  border: 2px solid #0B0D0F;
}
.team-panel-body::-webkit-scrollbar-thumb:hover {
  background: #C41220;
}
.person-card {
  background: #111315 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}
.person-name {
  color: var(--text) !important;
}
.person-role {
  color: var(--text-secondary) !important;
}
.person-bio,
.person-bio-inner {
  color: var(--text-secondary) !important;
}
.person-bio-inner p {
  color: var(--text-secondary);
  margin-bottom: 0.6em;
}
.person-arrow {
  color: var(--text-muted) !important;
}
.team-panel {
  background: rgba(0, 0, 0, 0.72) !important;
}

/* Full bio visible when expanded */
.person-card.open .person-bio {
  max-height: none !important;
  overflow: visible !important;
}
.person-bio-inner {
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
}
.person-bio-inner p {
  margin: 0 0 0.75em;
  line-height: 1.65;
  word-break: break-word;
}

/* Service cards: consistent crop */
.devices-grid .device-img-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0B0D0F;
}
.devices-grid .device-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
}

/* Contact: email + Telegram */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}
.contact-btn.telegram {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(42, 171, 238, 0.3) !important;
}
.contact-btn.telegram:hover {
  background: linear-gradient(135deg, #3bb5f5 0%, #2AABEE 100%) !important;
  box-shadow: 0 10px 32px rgba(42, 171, 238, 0.4) !important;
}
.contact-tg-link {
  margin-top: 8px;
  text-align: center;
}
.contact-tg-link a {
  color: #6ec8f0;
  font-size: 14px;
  text-decoration: none;
}
.contact-tg-link a:hover {
  color: #2AABEE;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

/* Avatar: force square crop display */
.person-avatar,
.person-card img.person-avatar,
.person-card .person-avatar img {
  width: 56px !important;
  height: 56px !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}
@media (min-width: 768px) {
  .person-avatar,
  .person-card img.person-avatar {
    width: 64px !important;
    height: 64px !important;
  }
}

/* ===== Avatar system: any photo ratio displays as circle ===== */
.person-avatar {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  flex-shrink: 0 !important;
  display: block !important;
  background: #1a1c1e;
  overflow: hidden;
}
@media (min-width: 768px) {
  .person-avatar {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
  }
}
.person-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.person-info {
  min-width: 0;
  flex: 1;
}

/* Avatar clickable -> lightbox */
img.person-avatar,
.person-avatar.lightbox-trigger {
  cursor: zoom-in !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
img.person-avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 2px rgba(196, 18, 32, 0.45);
}
.lightbox-img {
  max-width: min(92vw, 720px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
}


/* Lightbox must sit above team side panels */
.lightbox {
  z-index: 30000 !important;
}
.lightbox.open {
  z-index: 30000 !important;
}
.lightbox-close {
  z-index: 30001 !important;
}
.lightbox-img {
  z-index: 30001 !important;
  position: relative;
}


/* ===== Premium team entry cards (official) ===== */
.team-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.team-entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0;
  padding: 32px 28px 28px;
  background: linear-gradient(165deg, #141618 0%, #0E1012 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
}
.team-entry-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #C41220 0%, rgba(196, 18, 32, 0.15) 100%);
  opacity: 0.85;
}
.team-entry-card:hover {
  border-color: rgba(196, 18, 32, 0.35) !important;
  transform: translateY(-3px);
  background: linear-gradient(165deg, #1a1214 0%, #121416 100%) !important;
}
.team-entry-card.featured {
  background: linear-gradient(165deg, #141618 0%, #0E1012 100%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.team-entry-icon { display: none !important; }
.team-entry-index {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(196, 18, 32, 0.9);
  margin-bottom: 18px;
}
.team-entry-body {
  flex: 1;
  margin-bottom: 28px;
}
.team-entry-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #F2F4F6 !important;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.team-entry-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #8B939C !important;
  margin: 0;
  max-width: 28em;
}
.team-entry-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #C8CDD2 !important;
  border-bottom: 1px solid rgba(196, 18, 32, 0.5);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.team-entry-cta::after {
  content: "→";
  transition: transform 0.25s ease;
}
.team-entry-card:hover .team-entry-cta {
  color: #fff !important;
  border-bottom-color: #C41220;
}
.team-entry-card:hover .team-entry-cta::after {
  transform: translateX(4px);
}
@media (max-width: 767px) {
  .team-entry-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .team-entry-card {
    padding: 24px 22px 22px;
  }
  .team-entry-card h3 {
    font-size: 18px;
  }
  .team-entry-body {
    margin-bottom: 20px;
  }
}


/* ===== SF Premium Intro Gate ===== */
body.intro-active {
  overflow: hidden !important;
  height: 100%;
}
body.intro-done {
  overflow: auto;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070809;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.7s;
}
.intro.leaving {
  opacity: 0;
  pointer-events: none;
}
.intro.hidden {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.intro-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.intro-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.intro-glow-1 {
  width: 55vw;
  height: 55vw;
  max-width: 520px;
  max-height: 520px;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(196, 18, 32, 0.55) 0%, transparent 70%);
}
.intro-glow-2 {
  width: 40vw;
  height: 40vw;
  max-width: 380px;
  max-height: 380px;
  bottom: -8%;
  right: -5%;
  background: radial-gradient(circle, rgba(196, 18, 32, 0.22) 0%, transparent 70%);
}
.intro-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  opacity: 0.5;
}
.intro-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(196, 18, 32, 0.35), transparent);
  opacity: 0.6;
}
.intro-line-h {
  left: 10%;
  right: 10%;
  top: 18%;
  height: 1px;
}
.intro-line-v {
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(196, 18, 32, 0.25), transparent);
  transform: translateX(-50%);
}

.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px 24px;
  max-width: 520px;
  animation: introIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes introIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.intro.leaving .intro-content {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.intro-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 12px 40px rgba(196, 18, 32, 0.25);
}
.intro-brand {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 22px;
  text-transform: uppercase;
}
.intro-title {
  font-size: clamp(22px, 5.2vw, 32px);
  font-weight: 600;
  line-height: 1.35;
  color: #F4F6F8;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}
.intro-sub {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.48);
  margin: 0 0 36px;
  letter-spacing: 0.04em;
}
.intro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #C41220 0%, #9A0E18 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(196, 18, 32, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.intro-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(196, 18, 32, 0.45);
  filter: brightness(1.05);
}
.intro-btn:active {
  transform: translateY(0);
}
.intro-btn-arrow {
  transition: transform 0.25s ease;
}
.intro-btn:hover .intro-btn-arrow {
  transform: translateX(4px);
}

@media (max-width: 480px) {
  .intro-logo { width: 64px; height: 64px; border-radius: 14px; }
  .intro-sub { margin-bottom: 28px; font-size: 13px; }
  .intro-btn { min-width: 160px; padding: 13px 24px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-content { animation: none; }
  .intro, .intro-btn, .site-wrapper { transition: none; }
}

.stat-note {
  margin: 18px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted, #6B737C);
  opacity: 0.9;
}


/* ===== Premium stats (number / unit / label) ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 36px;
  padding: 28px 12px 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stats-row .stat-item {
  text-align: center;
  min-width: 0;
  padding: 8px 4px;
}
.stats-row .stat-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}
.stats-row .stat-approx {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(232, 58, 69, 0.75);
  line-height: 1;
}
.stats-row .stat-approx[hidden] {
  display: none !important;
}
.stats-row .stat-num {
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #E83A45;
  line-height: 1.1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stats-row .stat-unit {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.42);
  line-height: 1.3;
  min-height: 1.3em;
}
.stats-row .stat-label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  line-height: 1.35;
}
.stat-note {
  margin: 16px auto 0;
  max-width: 520px;
  text-align: center;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255,255,255,0.32);
  padding: 0 16px;
}
@media (max-width: 767px) {
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
    padding: 24px 4px 4px;
    margin-top: 28px;
  }
  .stats-row .stat-num {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
  }
  .stats-row .stat-unit {
    font-size: 11px;
    letter-spacing: 0.04em;
  }
  .stats-row .stat-label {
    font-size: 11px;
  }
  .stat-note {
    font-size: 10px;
    margin-top: 14px;
  }
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.contact-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}


/* Team panel must always be able to open above page chrome */
.team-panel {
  position: fixed !important;
  inset: 0 !important;
  z-index: 25000 !important;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  background: rgba(0,0,0,0.55);
}
.team-panel.open {
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.team-panel-inner {
  pointer-events: auto;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #111315;
  border-radius: 20px 20px 0 0;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.team-panel.open .team-panel-inner {
  transform: translateY(0);
}
.team-entry-card {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}
