/* ============================================
   GlobalEdge FX — Global Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2236;
  --bg-card-hover: #1f2a42;
  --gold: #d4a853;
  --gold-light: #e8c878;
  --gold-dark: #b8912e;
  --green: #10b981;
  --green-light: #34d399;
  --red: #ef4444;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(212, 168, 83, 0.12);
  --border-hover: rgba(212, 168, 83, 0.3);
  --gradient-gold: linear-gradient(135deg, #d4a853 0%, #e8c878 50%, #d4a853 100%);
  --gradient-dark: linear-gradient(180deg, #0a0e17 0%, #111827 100%);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(212, 168, 83, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --font-en: 'Inter', sans-serif;
  --font-cn: 'Noto Sans SC', sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

ul, ol {
  list-style: none;
}

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

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

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

.section-header .section-desc {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-cn);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gradient-gold);
  color: #0a0e17;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(212, 168, 83, 0.08);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.navbar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--bg-primary);
}

.navbar-logo .logo-accent {
  color: var(--gold);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.navbar-links a:hover {
  color: var(--text-primary);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-cta .btn {
  padding: 10px 24px;
  font-size: 14px;
}

.navbar-mobile-cta {
  display: none;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

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

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 23, 0.4) 0%,
    rgba(10, 14, 23, 0.7) 60%,
    var(--bg-primary) 100%
  );
}

/* Hero Dynamic Overlay */
.hero-dynamic-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* Floating currency symbols */
.hero-float-symbol {
  position: absolute;
  display: flex;
  align-items: baseline;
  gap: 4px;
  opacity: 0;
  animation: floatSymbol 15s ease-in-out infinite;
}

.float-symbol-text {
  font-size: 32px;
  font-weight: 700;
  color: rgba(212, 168, 83, 0.25);
  font-family: 'Inter', sans-serif;
  letter-spacing: -1px;
}

.float-symbol-code {
  font-size: 12px;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.3);
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
}

@keyframes floatSymbol {
  0%, 100% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  15%, 85% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.02);
  }
}

/* Data grid lines */
.hero-grid-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.15), transparent);
  animation: gridPulse 4s ease-in-out infinite;
}

.hero-grid-h {
  left: 0;
  right: 0;
  height: 1px;
}

.hero-grid-v {
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(212, 168, 83, 0.12), transparent);
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Data flow dots */
.hero-data-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: dataDot 4s ease-in-out infinite;
  box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(16, 185, 129, 0.3);
}

@keyframes dataDot {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.8);
  }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 100px;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.hero-pairs {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pair-card {
  background: rgba(26, 34, 54, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 220px;
  transition: var(--transition);
}

.pair-card:hover {
  border-color: var(--border-hover);
  transform: translateX(-4px);
}

.pair-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pair-card-name {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
}

.pair-card-change {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.pair-card-change.up {
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
}

.pair-card-change.down {
  color: var(--red);
  background: rgba(239, 68, 68, 0.1);
}

.pair-card-price {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--border);
}

.stat-item:last-child::after {
  display: none;
}

.stat-value {
  font-family: var(--font-en);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- Products Section --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.product-card:hover::before {
  opacity: 1;
}

.product-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: var(--transition);
}

.product-card:hover .product-icon {
  background: rgba(212, 168, 83, 0.14);
  border-color: rgba(212, 168, 83, 0.25);
  transform: scale(1.05);
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.product-pairs span {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-secondary);
}

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

.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
}

.advantage-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 20px;
  transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
  background: rgba(212, 168, 83, 0.16);
  border-color: rgba(212, 168, 83, 0.25);
}

.advantage-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* --- Platform Section --- */
.platform-section {
  background: var(--bg-secondary);
}

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

.platform-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.platform-image img {
  width: 100%;
  height: auto;
  display: block;
}

.platform-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.platform-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.platform-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  transition: var(--transition);
}

.platform-feature:hover .platform-feature-icon {
  background: rgba(16, 185, 129, 0.16);
}

.platform-feature-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.platform-feature-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Security Section --- */
.security-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.security-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.security-image img {
  width: 100%;
  height: auto;
  display: block;
}

.security-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.security-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.security-item:hover {
  border-color: var(--border-hover);
}

.security-item-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: var(--transition);
}

.security-item:hover .security-item-icon {
  background: rgba(212, 168, 83, 0.16);
}

.security-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.security-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- FAQ Section --- */
.faq-section {
  background: var(--bg-secondary);
}

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

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

.faq-item.active {
  border-color: var(--border-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}

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

.faq-arrow {
  font-size: 18px;
  transition: var(--transition);
  color: var(--text-muted);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--gold);
}

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

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .navbar-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: 10px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-icon:hover {
  background: rgba(212, 168, 83, 0.16);
  border-color: rgba(212, 168, 83, 0.3);
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-risk {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 800px;
  margin-top: 16px;
  padding: 16px;
  background: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.1);
  border-radius: 8px;
}

.footer-risk strong {
  color: var(--red);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
  .hero-pairs {
    display: none;
  }

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

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

  .platform-content,
  .security-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .security-content .security-image {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Safe area for notched devices */
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .navbar-inner {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  /* Sections */
  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .section-desc {
    font-size: 15px;
  }

  .section-label {
    font-size: 12px;
    letter-spacing: 2px;
  }

  /* Navbar — Mobile */
  .navbar-links {
    display: none;
  }

  .navbar-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
  }

  .mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    position: relative;
  }

  .mobile-toggle span:nth-child(1) {
    transform: translateY(-7px);
  }

  .mobile-toggle span:nth-child(3) {
    transform: translateY(7px);
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
  }

  /* Mobile Menu Overlay (independent of navbar) */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(72px + 32px) 24px 32px;
    gap: 0;
    z-index: 999;
    overflow-y: auto;
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu-link {
    font-size: 18px;
    font-weight: 600;
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    min-height: 52px;
    display: flex;
    align-items: center;
  }

  .mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }

  .mobile-menu-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
    min-height: 48px;
  }

  /* Hero — Mobile */
  .hero {
    min-height: 100svh;
    padding-top: 72px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 14px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 48px);
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.7;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
  }

  /* Stats — Mobile */
  .stats-bar {
    padding: 36px 0;
  }

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

  .stat-item::after {
    display: none;
  }

  .stat-value {
    font-size: clamp(28px, 7vw, 36px);
  }

  .stat-label {
    font-size: 12px;
  }

  /* Products — Mobile */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .product-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }

  .product-name {
    font-size: 17px;
  }

  /* Advantages — Mobile */
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  /* Platform — Mobile */
  .platform-content {
    gap: 32px;
  }

  .platform-features {
    gap: 16px;
    margin-top: 24px;
  }

  .platform-feature {
    gap: 12px;
  }

  /* Security — Mobile */
  .security-content {
    gap: 32px;
  }

  .security-list {
    gap: 12px;
    margin-top: 24px;
  }

  .security-item {
    padding: 16px;
    gap: 12px;
  }

  /* FAQ — Mobile */
  .faq-question {
    padding: 16px 20px;
    font-size: 14px;
    min-height: 52px;
  }

  .faq-answer-inner {
    padding: 0 20px 16px;
    font-size: 13px;
  }

  /* CTA — Mobile */
  .cta-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .cta-desc {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .cta-buttons .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
  }

  /* Footer — Mobile */
  .footer {
    padding: 48px 0 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-col {
    padding-bottom: 4px;
  }

  .footer-col a {
    padding: 6px 0;
    font-size: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-risk {
    font-size: 11px;
    padding: 14px;
  }

  /* Back to top — Mobile */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  /* Social icons — Mobile */
  .footer-social {
    margin-top: 16px;
  }

  .social-icon {
    width: 36px;
    height: 36px;
  }
}

/* Small Mobile */
@media (max-width: 380px) {
  .container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .stat-value {
    font-size: 26px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stats-grid {
    gap: 16px;
  }

  .product-card {
    padding: 20px 16px;
  }

  .advantage-card {
    padding: 20px 16px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 13px;
  }

  .faq-answer-inner {
    padding: 0 16px 14px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .product-card:hover,
  .advantage-card:hover,
  .security-item:hover,
  .faq-item:hover {
    transform: none;
  }

  .product-card:active,
  .advantage-card:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
  }

  .btn {
    min-height: 48px;
  }

  .faq-question {
    min-height: 52px;
  }

  .mobile-menu-link {
    min-height: 52px;
    display: flex;
    align-items: center;
  }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 0 48px;
  }

  .hero-title {
    font-size: 32px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .stat-item::after {
    display: block;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--gold);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 998;
  color: var(--gold);
}

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

.back-to-top:hover {
  background: rgba(212, 168, 83, 0.25);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* --- Language Switcher --- */
.lang-switcher {
  position: relative;
  margin-right: 16px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(212, 168, 83, 0.3);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 48px;
}

.lang-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: left;
}

.lang-option:hover {
  background: rgba(212, 168, 83, 0.1);
}

.lang-option.active {
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 768px) {
  .lang-switcher {
    display: none;
  }

  .mobile-lang-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-lang-option {
    flex: 1;
    min-width: calc(50% - 4px);
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.3);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .mobile-lang-option:hover {
    background: rgba(212, 168, 83, 0.2);
    border-color: var(--gold);
  }

  .mobile-lang-option.active {
    background: var(--gold);
    color: var(--bg-primary);
    border-color: var(--gold);
    font-weight: 600;
  }

  .lang-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    min-width: auto;
  }

  .lang-option {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .lang-option:last-child {
    border-bottom: none;
  }
}

/* --- Selection --- */
::selection {
  background: rgba(212, 168, 83, 0.2);
  color: var(--text-primary);
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.modal-icon svg {
  width: 32px;
  height: 32px;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-primary);
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.05);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-full {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 8px;
}

.btn-full:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.modal-success svg {
  width: 64px;
  height: 64px;
  color: var(--accent);
  margin-bottom: 16px;
}

.modal-success h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-success p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Modal mobile responsive */
@media (max-width: 768px) {
  .modal-content {
    padding: 24px;
    margin: 16px;
  }

  .modal-header h2 {
    font-size: 20px;
  }

  .modal-icon {
    width: 56px;
    height: 56px;
  }

  .modal-icon svg {
    width: 28px;
    height: 28px;
  }
}
