/* ==========================================================================
   AstralX Vision — landing page
   Industrial-dark + modern marketing. Dark neutral, video-first, no fluff.
   ========================================================================== */

:root {
  --bg: #0b1020;
  --bg-2: #0f1530;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #e6ebff;
  --text-dim: #a6aecf;
  --text-mute: #7a82a3;
  --brand-1: #7c5cff;   /* violet */
  --brand-2: #22d3ee;   /* cyan  */
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --container: 1180px;
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
/* Đồng nhất theme tối: giảm saturation nhẹ, tăng contrast, giữ tone xanh-tím */
img {
  filter: saturate(0.9) contrast(1.05) brightness(0.95) hue-rotate(-5deg);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ==========================================================================
   SECTION STATS (tách từ hero)
   ========================================================================== */
.section-stats {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(124,92,255,0.04), rgba(34,211,238,0.03));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.stats-grid .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--easing), border-color 0.25s var(--easing);
}
.stats-grid .stat:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
}
.stats-grid .stat b {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats-grid .stat span {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.65);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
/* Gom nav-links + nav-cta về cùng phía bên phải */
.nav-links {
  margin-left: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-name { font-size: 18px; }
.brand-name-2 { color: var(--brand-2); margin-left: 2px; }
.brand-mark {
  display: inline-flex;
  filter: drop-shadow(0 4px 14px rgba(124, 92, 255, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  position: relative;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 2px;
  transition: color 0.2s var(--easing);
}
.nav-links a:hover { color: var(--text); }

/* Scroll spy — section đang xem sẽ có indicator dưới + text nổi bật */
.nav-links a.active {
  color: var(--text);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  border-radius: 2px;
  animation: navUnderline 0.3s var(--easing);
}
@keyframes navUnderline {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.nav-cta {
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transition: transform 0.2s var(--easing);
  border: 1px solid transparent !important;
}
.nav-cta:hover { transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--easing), opacity 0.25s var(--easing);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  gap: 14px;
  border-top: 1px solid var(--border);
}
.nav-mobile a { color: var(--text-dim); font-weight: 500; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.glow {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.glow-a { background: radial-gradient(circle, var(--brand-1), transparent 60%); top: -180px; left: -100px; }
.glow-b { background: radial-gradient(circle, var(--brand-2), transparent 60%); bottom: -200px; right: -120px; opacity: 0.35; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
  text-align: left;
}
.hero-text { max-width: 580px; }

/* Ảnh UI thật ở phía sau bên phải với góc nghiêng cố định + mask overlay */
.hero-visual {
  position: relative;
  perspective: 1400px;
  perspective-origin: 25% 50%;
}
.hero-shot-wrap {
  position: relative;
  transform: rotateY(-14deg) rotateX(5deg);
  transform-style: preserve-3d;
}
.hero-shot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--surface);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(124, 92, 255, 0.22);
  width: 125%;
  margin-left: -10%;
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}
/* Mask overlay phía sau ảnh — fade về phía nền tối */
.hero-shot-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, transparent 55%, rgba(11,16,32,0.7) 90%, rgba(11,16,32,0.95) 100%),
    linear-gradient(0deg, transparent 60%, rgba(11,16,32,0.5) 100%);
  pointer-events: none;
}
/* Glow phát sáng sau ảnh tạo cảm giác "phía sau" */
.hero-shot-glow {
  position: absolute;
  inset: -60px -80px;
  background:
    radial-gradient(ellipse at 60% 50%, rgba(124, 92, 255, 0.5), transparent 55%),
    radial-gradient(ellipse at 30% 80%, rgba(34, 211, 238, 0.4), transparent 60%);
  filter: blur(50px);
  z-index: -1;
  opacity: 0.9;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.hero-title {
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 18px 0 20px;
}
.grad {
  background: linear-gradient(120deg, var(--brand-2) 0%, var(--brand-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(22px, 3.2vw, 34px);
}
.hero-sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 24px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.hero-sub em { color: var(--text); font-style: normal; font-weight: 600; }
.hero-sub strong { color: var(--text); font-weight: 700; }
.hero-desc {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 24px;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--easing), box-shadow 0.2s var(--easing), background 0.2s var(--easing);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #0b1020;
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(124, 92, 255, 0.5); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; }

/* Hero visual: window mockup */
.hero-visual {
  position: relative;
}
.window.chrome {
  background: linear-gradient(180deg, #131a36 0%, #0c1228 100%);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
}
.window-bar > span:nth-child(-n+3) {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.window-title {
  margin-left: 10px;
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ok);
  letter-spacing: 0.04em;
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.grid-cams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #050818;
}
.cam {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0f24;
  border-radius: 6px;
  overflow: hidden;
}
.cam canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.cam-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.window-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.kv {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 12px;
  border-right: 1px solid var(--border);
}
.kv:last-child { border-right: 0; }
.kv span { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase; }
.kv b { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text); font-weight: 500; }
.kv b.ok { color: var(--ok); }

.floating-toast {
  position: absolute;
  right: -18px;
  bottom: -28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1a1f3d 0%, #0f1530 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  animation: floatIn 0.6s 0.4s both var(--easing);
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.toast-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.18);
  color: var(--warn);
  flex-shrink: 0;
}
.toast-title { font-size: 13px; font-weight: 600; color: var(--text); }
.toast-sub { font-size: 12px; color: var(--text-dim); }

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.strip-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.strip-label {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.strip-logos {
  display: flex;
  gap: 12px 18px;
  flex-wrap: wrap;
  align-items: center;
}
.strip-logos span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: 96px 0;
  position: relative;
}
.section-alt { background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.04) 50%, transparent); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 14px;
  padding: 4px 12px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.06);
}
.kicker-light { color: var(--text); border-color: var(--border-2); background: var(--surface); }

.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.section-title.light { color: var(--text); }
.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
}
.section-sub.light { color: rgba(230, 235, 255, 0.7); }

/* ==========================================================================
   FEATURES GRID
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--easing), border-color 0.25s var(--easing), background 0.25s var(--easing);
}
.feat:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  background: var(--surface-2);
}
.feat-lg {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08) 0%, rgba(34, 211, 238, 0.06) 100%);
  border-color: rgba(124, 92, 255, 0.25);
}
.feat-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(34, 211, 238, 0.15));
  color: var(--text);
  margin-bottom: 18px;
}
.feat h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.feat p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 14px;
}
.feat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}
.feat-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--text-dim);
  font-size: 14px;
}
.feat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  border-radius: 2px;
}

/* ==========================================================================
   FEATURE ROW (alternating text/image sections)
   ========================================================================== */
.feature-row {
  padding: 60px 0;
}
.feature-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature-row-reversed .feature-row-grid {
  direction: rtl;
}
.feature-row-reversed .feature-row-grid > * {
  direction: ltr;
}
.feature-kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.feature-row-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.feature-row-desc {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.feature-row-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-row-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}
.feature-row-list li svg {
  flex-shrink: 0;
  color: var(--brand-1);
  margin-top: 3px;
}
.feature-row-list li span {
  flex: 1;
}
.feature-row-visual {
  display: flex;
  justify-content: center;
}
.feature-row-img-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.feature-row-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s var(--easing);
}
.feature-row-img-wrap:hover img {
  transform: scale(1.03);
}

/* AI Stack - 3 overlapping images */
.feature-ai-stack {
  position: relative;
  width: 100%;
  height: 360px;
}
.ai-stack-img {
  position: absolute;
  width: 320px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.ai-stack-1 {
  top: 0;
  left: 0;
  z-index: 3;
}
.ai-stack-2 {
  top: 0;
  right: 0;
  z-index: 2;
}
.ai-stack-3 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* ==========================================================================
   STEPS (workflow)
   ========================================================================== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: stepc;
}
.step {
  position: relative;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-2);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

/* ==========================================================================
   ARCH CARDS (tech stack)
   ========================================================================== */
.arch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.arch-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.arch-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-1);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.25);
  align-self: flex-start;
  margin-bottom: 16px;
}
.arch-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.arch-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.arch-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  margin-top: auto;
}
.arch-card ul li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
  padding: 4px 0;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.faq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s var(--easing), border-color 0.25s var(--easing), background 0.25s var(--easing);
}
.faq-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  background: var(--surface-2);
}
.faq-card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(34, 211, 238, 0.15));
  color: var(--text);
  margin-bottom: 16px;
}
.faq-card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.faq-card-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.section-contact {
  background:
    radial-gradient(circle at 20% 30%, rgba(124, 92, 255, 0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.14), transparent 50%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.contact-info .section-title { text-align: left; margin-top: 6px; }
.contact-info .section-sub { text-align: left; margin-left: 0; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.contact-list strong { display: block; color: var(--text); font-weight: 600; font-size: 14px; }
.contact-list span { display: block; color: var(--text-dim); font-size: 14px; }
.ci-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(34, 211, 238, 0.15));
  color: var(--text);
  flex-shrink: 0;
}

.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label > span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s var(--easing), background 0.2s var(--easing);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-2);
  background: rgba(0, 0, 0, 0.35);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-mute); }
.contact-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.contact-form option { background: var(--bg-2); color: var(--text); }

.form-check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-1);
  flex-shrink: 0;
}
.form-check span {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.5;
}

.form-note {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.form-note.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--ok);
}
.form-note.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}
.footer-meta {
  color: var(--text-mute);
  font-size: 13px;
}

/* ==========================================================================
   HERO IMAGE (real UI screenshot)
   ========================================================================== */
.hero-shot {
  position: relative;
  background: #050818;
  padding: 4px;
}
.hero-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.hero-shot-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
  animation: pulse 1.4s infinite;
}

.kv b.cyan { color: var(--brand-2); }
.kv b.warn { color: var(--warn); }

/* Floating operator badge (gắn ảnh operator thật + màn hình) */
.floating-operator {
  position: absolute;
  right: -28px;
  bottom: -40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 200px;
  background: linear-gradient(180deg, #1a1f3d 0%, #0f1530 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(3deg);
  animation: floatIn 0.6s 0.6s both var(--easing);
}
.floating-operator img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  filter: brightness(0.95);
}
.op-caption {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.3);
}
.op-caption strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.op-caption span {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ==========================================================================
   SHOWCASE — ảnh UI thật của sản phẩm
   ========================================================================== */
.section-showcase {
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.04) 50%, transparent);
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.shot {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #050818;
  transition: transform 0.3s var(--easing), border-color 0.3s var(--easing);
}
.shot:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 10;
}
.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 60%);
  color: var(--text);
}
.shot figcaption strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.shot figcaption span {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}
.shot-lg {
  grid-column: span 4;
  grid-row: span 2;
}
.shot-lg img { aspect-ratio: 16 / 10.5; }
.shot-wide {
  grid-column: span 3;
}
.shot:not(.shot-lg):not(.shot-wide) {
  grid-column: span 2;
}

/* ==========================================================================
   FEATURE IMAGES (in-card)
   ========================================================================== */
.feat-shot {
  margin-top: 18px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #050818;
  position: relative;
}
.feat-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 16, 32, 0.4) 100%);
}
.feat-shot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--easing);
}
.feat:hover .feat-shot img { transform: scale(1.03); }

.feat-image {
  display: flex;
  flex-direction: column;
}
.feat-image .feat-shot {
  margin-top: auto;
  padding-top: 18px;
}

/* ==========================================================================
   WORKFLOW STEP IMAGE
   ========================================================================== */
.step-img {
  width: calc(100% + 48px);
  margin: -26px -24px 18px;
  height: 160px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #050818;
  position: relative;
}
.step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.85;
  transition: opacity 0.3s var(--easing), transform 0.5s var(--easing);
}
.step:hover .step-img img {
  opacity: 1;
  transform: scale(1.04);
}
.step {
  overflow: hidden;
  padding-top: 0;
}
.step .step-num { margin-top: 0; }

/* ==========================================================================
   ARCH CARD IMAGE
   ========================================================================== */
.arch-card {
  padding: 0;
  overflow: hidden;
}
.arch-card-img {
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: #050818;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.arch-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 16, 32, 0.5) 100%);
  pointer-events: none;
}
.arch-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
  transition: opacity 0.3s var(--easing), transform 0.5s var(--easing);
}
.arch-card:hover .arch-card-img img {
  opacity: 1;
  transform: scale(1.05);
}
.arch-card .arch-tag,
.arch-card h3,
.arch-card p,
.arch-card ul {
  padding-left: 24px;
  padding-right: 24px;
}
.arch-card .arch-tag { margin-top: 20px; }
.arch-card h3 { margin-top: 16px; }
.arch-card p { padding-bottom: 12px; }
.arch-card ul { padding-bottom: 24px; }

/* ==========================================================================
   CONTACT TEAM SHOT
   ========================================================================== */
.contact-team-shot {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-2);
  position: relative;
  background: #050818;
}
.contact-team-shot img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
}
.contact-team-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: 10px;
}
.contact-team-caption strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.contact-team-caption span {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.pricing-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--easing), border-color 0.25s var(--easing), background 0.25s var(--easing);
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  background: var(--surface-2);
}
.pricing-card-highlight {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08) 0%, rgba(34, 211, 238, 0.06) 100%);
  border-color: rgba(124, 92, 255, 0.25);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b1020;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border-radius: 999px;
}
.pricing-header {
  text-align: center;
  margin-bottom: 20px;
}
.pricing-header h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.pricing-price .price {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.pricing-price .period {
  font-size: 13px;
  color: var(--text-mute);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.pricing-features li {
  position: relative;
  padding: 8px 0 8px 24px;
  color: var(--text-dim);
  font-size: 14px;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #0b1020;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
}
.pricing-note {
  margin-top: 40px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dim);
}
.pricing-note strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.pricing-note ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.pricing-note li {
  position: relative;
  padding-left: 18px;
}
.pricing-note li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand-2);
  font-size: 18px;
  line-height: 1;
}

/* ==========================================================================
   SECTION INTRO — Giới thiệu AstralX Smart Vision
   ========================================================================== */
.section-intro {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.03) 50%, transparent);
}
.intro-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.intro-header .section-title {
  margin-bottom: 16px;
}
.intro-header .intro-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 40px;
  align-items: center;
}
.intro-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.intro-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text);
}
.intro-features svg {
  color: var(--brand-2);
  flex-shrink: 0;
}
.intro-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.intro-svg {
  width: 100%;
  max-width: 700px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(124, 92, 255, 0.2));
}

/* ==========================================================================
   MỤC 1.2: PILLARS GRID — ảnh tượng trưng cho đặc trưng
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.pillar {
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--easing), border-color 0.3s var(--easing), background 0.3s var(--easing);
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  background: var(--surface-2);
}
.pillar-img {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-2);
}
.pillar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.4s var(--easing), filter 0.4s var(--easing);
  filter: brightness(0.75) saturate(0.7);
}
.pillar:hover .pillar-img img {
  transform: scale(1.05);
  filter: brightness(0.9) saturate(1);
}
.pillar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 52, 0.5) 0%, rgba(11, 16, 32, 0.9) 100%);
  pointer-events: none;
}
.pillar-keyword {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   MỤC 1.3: PROBLEMS GRID — tháo gỡ khó khăn
   ========================================================================== */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.problem {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--easing), border-color 0.25s var(--easing);
}
.problem:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
}
.problem-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(34, 211, 238, 0.12));
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--brand-2);
  margin-bottom: 16px;
}
.problem-icon svg {
  width: 22px;
  height: 22px;
}
.problem h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.problem p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

/* ==========================================================================
   MỤC 4: CONTACT — Triển khai + Form
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 48px;
  margin-top: 32px;
}
.contact-deploy-title,
.contact-form-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: center;
}

.contact-deploy-title {
  text-align:left;

}
.contact-form-sub {
  font-size: 14px;
  color: var(--text-dim);
  margin: -10px 0 20px;
}

/* Deploy steps (timeline dọc) */
.deploy-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.deploy-steps::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-1) 0%, var(--brand-2) 100%);
  opacity: 0.3;
}
.deploy-step {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 16px 0;
}
.deploy-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #0b1020;
  font-weight: 800;
  font-size: 14px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg);
}
.deploy-body {
  flex: 1;
  padding-top: 6px;
}
.deploy-body strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.deploy-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 8px;
}
.deploy-time {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-2);
  padding: 3px 10px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
}

/* Contact form wrapper */
.contact-form-wrap {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, var(--radius));
  box-shadow: var(--shadow);
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Form note (success/error) */
.form-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
  min-height: 18px;
}
.form-note.success { color: #34d399; }
.form-note.error { color: var(--warn); }

/* ==========================================================================
   FOOTER INFOGRAPHIC
   ========================================================================== */
.footer {
  background: linear-gradient(180deg, var(--bg) 0%, #060814 100%);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  color: var(--text-dim);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {
  flex: 1;
  max-width: 400px;
}
.footer-brand .brand {
  margin-bottom: 4px;
}
.footer-brand .brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 12px 0 0;
  max-width: 400px;
  font-weight: 500;
}
.footer-nav {
  display: flex;
  gap: 60px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 8px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s var(--easing);
}
.footer-links a:hover {
  color: var(--brand-2);
}
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.footer-contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s var(--easing);
}
.footer-contact-value:hover {
  color: var(--brand-2);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-mute);
}
.footer-bottom p {
  margin: 0;
}

/* ==========================================================================
   DOWNLOAD STRIP — dưới hero
   ========================================================================== */
.download-strip {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(124,92,255,0.06), rgba(34,211,238,0.06));
}
.download-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.download-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.download-copy strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.download-copy span {
  font-size: 14px;
  color: var(--text-dim);
}
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  min-width: 140px;
  background: #ffffff;
  border: none;
  border-radius: 10px;
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.btn-download:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}
.btn-download svg {
  color: #1a1a2e;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}
.btn-download span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.btn-download small {
  font-size: 10px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.btn-download b {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.01em;
}
.btn-download.hidden {
  display: none;
}
.btn-download.is-active {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-visual { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-lg { grid-column: span 2; }
  .feature-row-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-row-reversed .feature-row-grid { direction: ltr; }
  .feature-row-title { font-size: 24px; }
  .feature-ai-stack { height: 280px; }
  .ai-stack-img { width: 240px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .arch { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(4, 1fr); }
  .shot-lg { grid-column: span 4; grid-row: span 2; }
  .shot-wide { grid-column: span 2; }
  .shot:not(.shot-lg):not(.shot-wide) { grid-column: span 2; }
  .floating-operator { left: -16px; width: 160px; }
  .floating-operator img { height: 110px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
  .pricing-card { padding: 24px 20px; }
  .pricing-features li { font-size: 13px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-brand { max-width: 100%; }
  .footer-nav { gap: 40px; }
  .download-inner { flex-direction: column; align-items: stretch; }
  .download-buttons { justify-content: stretch; }
  .btn-download { flex: 1; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile.open { display: flex; }

  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text { max-width: 100%; margin: 0 auto; padding: 0 8px; box-sizing: border-box; }
  .hero-title {
    font-size: clamp(20px, 5.5vw, 28px);
    line-height: 1.25;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
  }
  .hero-title br { display: none; }
  .hero-desc { font-size: 14px; padding: 0 8px; line-height: 1.55; }
  .hero-shot-wrap { transform: none; }
  .hero-shot { width: 100%; margin-left: 0; }
  .floating-toast { right: 12px; bottom: -36px; }
  .floating-operator { display: none; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  .features-grid { grid-template-columns: 1fr; }
  .feat-lg { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; }

  .showcase-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shot-lg { grid-column: span 2; grid-row: span 2; }
  .shot-wide { grid-column: span 2; }
  .shot:not(.shot-lg):not(.shot-wide) { grid-column: span 1; }
  .shot figcaption strong { font-size: 13px; }
  .shot figcaption span { font-size: 11px; }

  .step-img { width: calc(100% + 40px); margin: -20px -20px 16px; height: 140px; }

  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form .row { grid-template-columns: 1fr; }

  .strip-inner { gap: 14px; }

  /* New sections mobile */
  .pillars-grid { grid-template-columns: 1fr; gap: 16px; }
  .problems-grid { grid-template-columns: 1fr; gap: 16px; }
  .faq-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-nav { flex-direction: column; gap: 32px; }
  .contact-form-wrap { padding: 20px; }
  .deploy-num { width: 36px; height: 36px; font-size: 13px; }
  .deploy-steps::before { left: 17px; }
  .feature-row { padding: 40px 0; }
  .feature-row-title { font-size: 22px; }
  .feature-row-desc { font-size: 15px; }
  .feature-ai-stack { height: 220px; }
  .ai-stack-img { width: 160px; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .hero-cta .btn { flex: 1; }
  .window-foot { grid-template-columns: 1fr 1fr; }
  .kv:nth-child(2) { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
