/* ============================================================
   MARKTECH ASIA — PREMIUM DESIGN SYSTEM
   Complete rewrite: dark theme, glassmorphism, premium SaaS
   ============================================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* ===== DESIGN TOKENS ===== */
:root {
  /* Dark surfaces */
  --hero-bg:     #060C18;
  --dark-bg:     #0A1628;
  --dark-surface:#0F1E35;
  --dark-card:   rgba(255,255,255,0.05);
  --dark-border: rgba(255,255,255,0.08);
  --dark-border-hover: rgba(255,255,255,0.18);

  /* Brand */
  --blue:        #2563EB;
  --blue-lt:     #3B82F6;
  --blue-dk:     #1D4ED8;
  --blue-glow:   rgba(37,99,235,0.35);
  --cyan:        #06B6D4;
  --cyan-lt:     #22D3EE;
  --cyan-glow:   rgba(6,182,212,0.25);
  --teal:        #00C2A8;
  --purple:      #7C3AED;

  /* Light mode surfaces */
  --white:       #FFFFFF;
  --off-white:   #F8FAFC;
  --gray-50:     #F8FAFC;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-300:    #CBD5E1;
  --gray-400:    #94A3B8;
  --gray-500:    #64748B;
  --gray-700:    #334155;
  --gray-900:    #0F172A;
  --navy:        #0F2140;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;

  /* Radii */
  --r-sm:  6px;
  --r:     10px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.10);
  --shadow:     0 4px 24px rgba(0,0,0,0.14);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.22);
  --shadow-xl:  0 24px 80px rgba(0,0,0,0.30);
  --glow-blue:  0 0 40px rgba(37,99,235,0.30), 0 0 80px rgba(37,99,235,0.12);
  --glow-cyan:  0 0 40px rgba(6,182,212,0.20);
}

/* ===== BASE ===== */
body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

a { color: var(--blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--blue-lt); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow--blue { color: var(--blue-lt); }
.eyebrow--muted { color: var(--gray-400); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}
.btn-primary:hover {
  background: var(--blue-dk);
  border-color: var(--blue-dk);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.45);
}

.btn-ghost {
  background: rgba(255,255,255,0.07);
  color: white;
  border-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: white;
}

.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 18px; font-size: 0.84rem; }

/* ===== SITE HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 64px;
  background: rgba(6,12,24,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(6,12,24,0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  color: white;
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
  flex-shrink: 0;
}

.logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}

.logo-accent { color: var(--cyan-lt); }

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.nav-link:hover { color: white; background: rgba(255,255,255,0.07); }
.nav-link.active { color: white; font-weight: 600; background: rgba(37,99,235,0.2); }

.nav-cta {
  margin-left: 12px;
  padding: 7px 18px;
  background: var(--blue);
  color: white;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}
.nav-cta:hover { background: var(--blue-dk); color: white; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-bg);
  overflow: hidden;
  padding-top: 64px;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 8s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
  top: -150px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
  top: 30%;
  right: -50px;
  animation-delay: -3s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  bottom: -100px;
  left: 40%;
  animation-delay: -5s;
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-content { max-width: 560px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 24px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--blue-lt) 0%, var(--cyan-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 36px;
}

/* AI search bar */
.ai-search-wrap {
  margin-bottom: 32px;
}

.ai-search-bar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  padding: 6px 6px 6px 16px;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(12px);
}

.ai-search-bar:focus-within {
  border-color: rgba(37,99,235,0.5);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15), var(--glow-blue);
}

.ai-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: white;
  flex-shrink: 0;
}

.ai-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: white;
  font-size: 0.9rem;
  font-family: var(--font);
  min-width: 0;
}

.ai-search-input::placeholder { color: rgba(255,255,255,0.35); }

.ai-search-btn {
  padding: 9px 18px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
  flex-shrink: 0;
}

.ai-search-btn:hover { background: var(--blue-dk); transform: translateY(-1px); }

.ai-search-hint {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.ai-hint-chip {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  padding: 3px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.ai-hint-chip:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero right panel */
.hero-panel {
  position: relative;
}

.hero-glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-xl);
  padding: 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.panel-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.panel-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--teal);
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 1.5s ease-in-out infinite;
}

/* Mini bars in panel */
.mini-bars { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.mini-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-bar-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  width: 90px;
  text-align: right;
  flex-shrink: 0;
}

.mini-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

.mini-bar-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  width: 30px;
  text-align: right;
}

.panel-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.panel-metric {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r);
  padding: 12px 14px;
}

.metric-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
}

.metric-change {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: 2px;
}

/* Floating badge */
.hero-float-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(15,30,53,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: 12px 16px;
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: badge-float 4s ease-in-out infinite;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.badge-icon { font-size: 1.2rem; }

.badge-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.badge-text strong { color: white; display: block; font-size: 0.85rem; }

/* Panel note */
.panel-note {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  text-align: center;
  margin-top: 16px;
}

/* ===== SECTION BASE ===== */
.section { padding: 88px 0; }
.section-sm { padding: 60px 0; }

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

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 10px;
  letter-spacing: -0.03em;
}

.section-title--white { color: white; }

.section-sub {
  font-size: 1rem;
  color: var(--gray-500);
  margin-top: 12px;
  line-height: 1.75;
  max-width: 560px;
}

.section-sub--white { color: rgba(255,255,255,0.6); }
.centered .section-sub { margin-left: auto; margin-right: auto; }

.alt-bg { background: var(--off-white); }
.dark-bg { background: var(--dark-bg); }

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

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

.card-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(6,182,212,0.08));
  border: 1px solid rgba(37,99,235,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--gray-500);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.card-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--gray-700);
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap 0.15s;
}

.card-link:hover { gap: 10px; }

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 14px);
  right: calc(12.5% + 14px);
  height: 1px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 100%);
  opacity: 0.3;
}

.step-item {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step-num-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-200);
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.step-item:hover .step-num-wrap {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: var(--glow-blue);
  transform: scale(1.1);
}

.step-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== FEATURES STRIP (dark) ===== */
.features-strip {
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.features-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--dark-border);
}

.strip-feature {
  padding: 40px 28px;
  border-right: 1px solid var(--dark-border);
  transition: background 0.2s;
}

.strip-feature:last-child { border-right: none; }
.strip-feature:hover { background: rgba(255,255,255,0.02); }

.strip-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.strip-feature h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.strip-feature p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ===== NEWS PREVIEW ===== */
.news-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-prev-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.news-prev-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gray-300);
}

.news-prev-img {
  height: 140px;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.news-prev-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }

.news-prev-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.news-prev-source {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(37,99,235,0.08);
  padding: 2px 8px;
  border-radius: 20px;
}

.news-prev-date { font-size: 0.72rem; color: var(--gray-400); }

.news-prev-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
}

.news-prev-desc {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.55;
}

.news-loading-msg {
  text-align: center;
  padding: 40px;
  color: var(--gray-400);
  grid-column: 1 / -1;
}

/* ===== CTA SECTION ===== */
.cta-dark {
  background: linear-gradient(135deg, var(--hero-bg) 0%, #0F1E35 100%);
  position: relative;
  overflow: hidden;
}

.cta-dark::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 10px 0 16px;
  letter-spacing: -0.03em;
}

.cta-inner p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  font-size: 1rem;
}

.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.site-footer {
  background: #040912;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 56px 0 32px;
}

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

.footer-brand-col .logo { margin-bottom: 14px; }

.footer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 16px;
}

.footer-address {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }

.footer-link {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover { color: rgba(255,255,255,0.8); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
}

.footer-bin {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.15);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--hero-bg) 0%, var(--dark-surface) 100%);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.4), transparent);
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  margin: 10px 0 14px;
}

.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
}

/* ===== AI WIDGET (floating chat) ===== */
.ai-widget-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37,99,235,0.5), var(--glow-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ai-widget-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.6), var(--glow-blue);
}

.ai-widget-btn .ai-btn-icon { font-size: 1.2rem; }
.ai-widget-btn .ai-btn-close { display: none; font-size: 1rem; color: white; }
.ai-widget-btn.open .ai-btn-icon { display: none; }
.ai-widget-btn.open .ai-btn-close { display: block; }

.ai-panel {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 999;
  width: 380px;
  max-height: 560px;
  background: var(--dark-surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl), var(--glow-blue);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  transform-origin: bottom right;
}

.ai-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.ai-panel-header {
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.15) 0%, rgba(6,182,212,0.08) 100%);
}

.ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.ai-panel-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

.ai-panel-status {
  font-size: 0.72rem;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.ai-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.55;
}

.ai-message--bot {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
  border-radius: 4px 12px 12px 12px;
  align-self: flex-start;
}

.ai-message--user {
  background: var(--blue);
  color: white;
  border-radius: 12px 4px 12px 12px;
  align-self: flex-end;
}

.ai-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
}

.ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: typing 1.2s ease-in-out infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.ai-input-row {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 8px;
  background: rgba(0,0,0,0.2);
}

.ai-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 9px 14px;
  color: white;
  font-size: 0.84rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}

.ai-input:focus { border-color: rgba(37,99,235,0.5); }
.ai-input::placeholder { color: rgba(255,255,255,0.3); }

.ai-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue);
  border: none;
  cursor: pointer;
  color: white;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.ai-send-btn:hover { background: var(--blue-dk); }
.ai-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ai-panel-disclaimer {
  padding: 6px 16px 10px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  text-align: center;
  background: rgba(0,0,0,0.2);
}

/* ===== UTILS ===== */
.section-divider {
  height: 1px;
  background: var(--gray-200);
}

.gradient-border {
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
}

/* Contacts page */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2, .contact-form-wrap h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 24px;
}

.info-list { display: flex; flex-direction: column; gap: 0; }
.info-list dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); margin-top: 18px; }
.info-list dt:first-child { margin-top: 0; }
.info-list dd { color: var(--gray-700); font-size: 0.93rem; margin: 4px 0 0 0; line-height: 1.5; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.84rem; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r);
  font-size: 0.93rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--font);
  width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group textarea { resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--gray-500); text-align: center; }
.form-success { background: #ECFDF5; border: 1px solid #6EE7B7; color: #065F46; padding: 14px 18px; border-radius: var(--r); font-size: 0.88rem; font-weight: 500; }

/* News page */
.news-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { padding: 8px 18px; border-radius: 20px; border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-700); font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: all 0.15s; font-family: var(--font); }
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: white; }

.news-loading { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 60px 0; color: var(--gray-400); }
.spinner { width: 36px; height: 36px; border: 3px solid var(--gray-200); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.news-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; padding: 20px 24px; border-radius: var(--r); font-size: 0.88rem; }

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

.news-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; color: inherit; text-decoration: none; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card-img { width: 100%; height: 160px; background-size: cover; background-position: center; background-color: var(--gray-100); flex-shrink: 0; }
.news-card-img--placeholder { background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%); }
.news-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-source-badge { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.news-date { font-size: 0.74rem; color: var(--gray-400); }
.news-card-title { font-size: 0.95rem; font-weight: 700; color: var(--navy); line-height: 1.4; flex: 1; }
.news-card-desc { font-size: 0.83rem; color: var(--gray-500); line-height: 1.55; }
.news-read-more { font-size: 0.8rem; font-weight: 600; color: var(--blue); margin-top: 4px; }
.no-news { color: var(--gray-400); padding: 40px 0; text-align: center; grid-column: 1 / -1; }

/* Media page */
.media-grid { display: flex; flex-direction: column; gap: 48px; margin-top: 40px; }
.media-cat-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-200); }
.media-links { display: flex; flex-direction: column; gap: 2px; }
.media-link { display: flex; align-items: baseline; gap: 16px; padding: 12px 16px; border-radius: var(--r); transition: background 0.15s; color: inherit; }
.media-link:hover { background: var(--gray-50); }
.media-link-name { font-weight: 700; color: var(--blue); font-size: 0.93rem; min-width: 140px; flex-shrink: 0; }
.media-link-desc { color: var(--gray-500); font-size: 0.88rem; }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 3px;
  margin-right: 8px;
}

.lang-btn {
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.15s;
  font-family: var(--font);
}

.lang-btn:hover { color: rgba(255,255,255,0.8); }

.lang-btn.active {
  background: var(--blue);
  color: white;
  box-shadow: 0 2px 6px rgba(37,99,235,0.4);
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(6,12,24,0.98);
    padding: 16px;
    border-bottom: 1px solid var(--dark-border);
    backdrop-filter: blur(20px);
  }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 2.2rem; }
  .hero-panel { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .features-strip-grid { grid-template-columns: 1fr 1fr; }
  .news-preview-grid { grid-template-columns: 1fr; }
  .contacts-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .news-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .page-hero { padding: 90px 0 48px; }
  .page-hero h1 { font-size: 1.8rem; }

  .ai-panel { width: calc(100vw - 32px); right: 16px; bottom: 88px; }
}

@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; }
  .features-strip-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
}
