/* ===== CXTravel Brand System ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  /* Primary palette */
  --cx-deep: #020617;
  --cx-deep-2: #0b1221;
  --cx-blue: #2563ff;
  --cx-blue-light: #5b8aff;
  --cx-blue-dark: #1e4ecc;
  --cx-teal: #00c9a7;
  --cx-teal-light: #5eead4;
  --cx-accent: #d4af37;
  --cx-rose: #f43f5e;

  /* Surfaces */
  --cx-surface: #f8fafc;
  --cx-card: #ffffff;
  --cx-muted: #94a3b8;

  /* Gradients */
  --cx-hero-grad: linear-gradient(135deg, #020617 0%, #0b1a3b 50%, #071126 100%);
  --cx-grad-1: linear-gradient(135deg, #2563ff 0%, #00c9a7 100%);
  --cx-grad-2: linear-gradient(135deg, #d4af37 0%, #f43f5e 100%);
}

/* Typography override */
html,
body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-display {
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', sans-serif;
  letter-spacing: -0.02em;
}

/* Logo lockup */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.brand-logo-text {
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cx-deep);
  transition: color 0.2s;
}

.dark .brand-logo-text {
  color: #f8fafc;
}

.brand-logo-link:hover .brand-logo-text {
  color: var(--cx-blue);
}

/* Header refinements */
#site-header {
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.dark #site-header {
  border-bottom-color: rgba(51, 65, 85, 0.6);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

/* Navigation links */
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.875rem;
  color: #475569;
  transition: color 0.2s ease;
}

.dark .nav-link {
  color: #cbd5e1;
}

.nav-link:hover,
.nav-link.text-brand-blue,
.nav-link.active {
  color: var(--cx-blue) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--cx-grad-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.text-brand-blue::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Language toggle */
.lang-btn {
  font-weight: 600;
  font-size: 0.75rem;
  color: #64748b;
  background: transparent;
}

.dark .lang-btn {
  color: #94a3b8;
}

.lang-btn.active {
  background: var(--cx-deep) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(2, 6, 23, 0.15);
}

/* Buttons */
.btn-primary,
.glow-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  background: var(--cx-grad-1);
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(37, 99, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before,
.glow-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: -1;
}

.btn-primary:hover,
.glow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 255, 0.35);
}

.btn-primary:hover::before,
.glow-btn:hover::before {
  transform: translateX(100%);
}

.btn-primary::after {
  content: '';
  width: 0.9em;
  height: 0.9em;
  display: inline-block;
  margin-left: 0.25em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

.btn-primary:hover::after {
  transform: translateX(3px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Hero overlay treatment */
.brand-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(37, 99, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(0, 201, 167, 0.14) 0%, transparent 55%);
  animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

/* Product / feature cards */
.product-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(2, 6, 23, 0.04);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
}

.dark .product-card {
  background: linear-gradient(145deg, #0f172a 0%, #0b1221 100%);
  border-color: rgba(51, 65, 85, 0.6);
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.1);
}

/* Section label badge */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cx-blue);
  background: rgba(37, 99, 255, 0.08);
  border: 1px solid rgba(37, 99, 255, 0.12);
}

.dark .section-label {
  background: rgba(37, 99, 255, 0.12);
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cx-teal);
  box-shadow: 0 0 8px rgba(0, 201, 167, 0.6);
}

/* Gradient text */
.gradient-text {
  background: var(--cx-grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Filter chips */
.filter-chip {
  background: rgba(241, 245, 249, 0.8);
  color: #475569;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.filter-chip:hover {
  background: #e2e8f0;
}

.filter-chip.active {
  background: var(--cx-grad-1) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(37, 99, 255, 0.25);
}

.dark .filter-chip {
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  border-color: rgba(51, 65, 85, 0.8);
}

.dark .filter-chip:hover {
  background: #334155;
}

/* Alpha chips */
.alpha-chip {
  background: rgba(241, 245, 249, 0.8);
  color: #64748b;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.alpha-chip:hover {
  color: var(--cx-blue);
  background: #e2e8f0;
}

.alpha-chip.active {
  background: var(--cx-grad-1) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.dark .alpha-chip {
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
  border-color: rgba(51, 65, 85, 0.6);
}

.dark .alpha-chip:hover {
  color: var(--cx-blue);
  background: #334155;
}

/* Footer */
#site-footer {
  background: var(--cx-deep);
  color: #94a3b8;
}

#site-footer a:hover {
  color: #fff;
}

/* Reveal animation polish */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js-ready .reveal.active {
  opacity: 1;
  transform: translateY(0);
}
