﻿/* ============================================================
   HavionHub Landing — Professional Blue + White
   Light Default / Dark Toggle / Fully Responsive
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  /* Blues */
  --blue-900: #0c1a3a;
  --blue-800: #112258;
  --blue-700: #1a3480;
  --blue-600: #1e40af;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  /* Light Mode (default) */
  --bg:           #ffffff;
  --bg-alt:       #f8fafc;
  --bg-card:      #ffffff;
  --bg-card-alt:  #f1f5f9;
  --text-primary:   #0f172a;
  --text-secondary: #334155;
  --text-muted:     #64748b;
  --text-hint:      #94a3b8;
  --border:         #e2e8f0;
  --border-strong:  #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.12);

  /* Brand */
  --brand:       var(--blue-500);
  --brand-dark:  var(--blue-700);
  --brand-light: var(--blue-100);

  /* Radii */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;

  /* Fonts */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Transitions */
  --t: 0.2s ease;
  --t-slow: 0.4s ease;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg:           #080e1e;
  --bg-alt:       #0f172a;
  --bg-card:      #111827;
  --bg-card-alt:  #1e293b;
  --text-primary:   #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted:     #94a3b8;
  --text-hint:      #64748b;
  --border:         #1e293b;
  --border-strong:  #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.5);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.6);
  --brand-light: rgba(37,99,235,.15);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background var(--t-slow), color var(--t-slow);
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--brand-light);
  color: var(--blue-600);
  border: 1px solid var(--blue-200);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 14px;
}
[data-theme="dark"] .section-label {
  border-color: rgba(37,99,235,.3);
  color: var(--blue-300);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.section-title span { color: var(--blue-500); }
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 12px auto 0;
}
.section-head { text-align: center; margin-bottom: 56px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
[data-theme="dark"] .navbar {
  background: rgba(8,14,30,.92);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--blue-500);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.4);
}
.logo-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}
.logo-text strong { color: var(--blue-500); font-weight: 800; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t);
}
.nav-link:hover { color: var(--blue-500); background: var(--brand-light); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Theme toggle */
.btn-theme {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 16px;
  transition: all var(--t);
  flex-shrink: 0;
}
.btn-theme:hover { color: var(--blue-500); border-color: var(--blue-300); }

.btn-nav-login {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t);
}
.btn-nav-login:hover {
  border-color: var(--blue-400);
  color: var(--blue-500);
  background: var(--brand-light);
}
.btn-nav-cta {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  background: var(--blue-500);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
  transition: all var(--t);
}
.btn-nav-cta:hover {
  background: var(--blue-600);
  box-shadow: 0 4px 14px rgba(37,99,235,.5);
  transform: translateY(-1px);
}
/* Dashboard button (after login) */
.btn-nav-dashboard {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--blue-500);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
  transition: all var(--t);
}
.btn-nav-dashboard.visible { display: flex; }
.btn-nav-dashboard:hover { background: var(--blue-600); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 36px; height: 36px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.nav-hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all .3s;
}

/* ===== HERO ===== */
.hero {
  padding: 100px 0 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
/* Decorative shapes */
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.08) 0%, transparent 70%);
  top: -200px; right: -100px;
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,.05) 0%, transparent 70%);
  bottom: 0; left: -80px;
  border-radius: 50%;
  pointer-events: none;
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 70%);
}
[data-theme="dark"] .hero::after {
  background: radial-gradient(circle, rgba(37,99,235,.1) 0%, transparent 70%);
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-700);
  margin-bottom: 24px;
}
[data-theme="dark"] .hero-badge {
  background: rgba(37,99,235,.12);
  border-color: rgba(37,99,235,.3);
  color: var(--blue-300);
}
.badge-pulse {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .7; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero-title .blue { color: var(--blue-500); }
.hero-title .block { display: block; }

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-sub strong { color: var(--text-secondary); font-weight: 600; }

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--blue-500);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 18px rgba(37,99,235,.4);
  transition: all var(--t);
}
.btn-primary:hover {
  background: var(--blue-600);
  box-shadow: 0 6px 24px rgba(37,99,235,.55);
  transform: translateY(-2px);
}
.btn-badge {
  padding: 2px 10px;
  background: rgba(255,255,255,.25);
  border-radius: 9999px;
  font-size: 11px; font-weight: 600;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 600;
  transition: all var(--t);
}
.btn-secondary:hover {
  border-color: var(--blue-400);
  color: var(--blue-500);
  transform: translateY(-2px);
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
}
.stat { padding: 0 24px; text-align: center; }
.stat-val {
  font-size: 26px; font-weight: 900;
  color: var(--blue-500);
  line-height: 1;
}
.stat-lbl { font-size: 12px; color: var(--text-hint); margin-top: 3px; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

/* Hero mock dashboard */
.hero-mock {
  max-width: 860px;
  margin: 60px auto 0;
  padding: 0 20px;
}
.mock-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
[data-theme="dark"] .mock-window {
  background: #111827;
  border-color: #1e293b;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c840; }
.mock-url {
  flex: 1;
  padding: 4px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-hint);
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}
/* Dashboard UI inside mock */
.mock-app {
  display: flex;
  height: 320px;
  font-size: 12px;
}
.mock-sidebar {
  width: 52px;
  background: var(--blue-800);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 10px;
  flex-shrink: 0;
}
[data-theme="dark"] .mock-sidebar { background: #0c1a3a; }
.mock-logo { width: 32px; height: 32px; background: var(--blue-400); border-radius: 8px; margin-bottom: 6px; display:flex;align-items:center;justify-content:center;font-weight:900;color:#fff;font-size:14px; }
.mock-icon { width: 32px; height: 32px; border-radius: 8px; display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.5);font-size:14px;transition:all .2s; }
.mock-icon.active { background: rgba(255,255,255,.15); color:#fff; }
.mock-convlist {
  width: 200px;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.mock-search {
  height: 30px;
  margin: 8px;
  background: var(--border);
  border-radius: 6px;
  opacity: .6;
}
.mock-conv {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background .15s;
}
.mock-conv.active { background: var(--brand-light); }
[data-theme="dark"] .mock-conv.active { background: rgba(37,99,235,.15); }
.mock-conv-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff;
}
.mock-conv-info { overflow: hidden; }
.mock-conv-name { font-weight: 600; font-size: 11px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-conv-msg { font-size: 10px; color: var(--text-hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-badge {
  margin-left: auto;
  background: var(--blue-500);
  color: #fff;
  border-radius: 9999px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
.mock-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.mock-chat-header {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mock-chat-msgs {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.mock-msg {
  max-width: 60%;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.4;
}
.mock-msg.in {
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  border-bottom-left-radius: 2px;
  align-self: flex-start;
}
.mock-msg.out {
  background: var(--blue-500);
  color: #fff;
  border-bottom-right-radius: 2px;
  align-self: flex-end;
}
.mock-chat-input {
  height: 36px;
  margin: 8px;
  background: var(--bg-card-alt);
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.mock-info-col {
  width: 140px;
  border-left: 1px solid var(--border);
  padding: 10px;
  background: var(--bg-card);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-info-row { height: 10px; background: var(--border); border-radius: 4px; opacity: .7; }
.mock-info-row.short { width: 60%; }
.mock-info-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--brand-light);
  color: var(--blue-600);
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 700;
}
[data-theme="dark"] .mock-info-tag { color: var(--blue-300); }

/* ===== LOGOS STRIP ===== */
.logos-section {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  text-align: center;
}
.logos-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-hint);
  margin-bottom: 20px;
}
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.logo-brand {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-hint);
  letter-spacing: .5px;
  opacity: .65;
  transition: opacity var(--t);
}
.logo-brand:hover { opacity: 1; }

/* ===== FEATURES ===== */
.features-section {
  padding: 96px 0;
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.feat-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
[data-theme="dark"] .feat-card:hover {
  border-color: rgba(37,99,235,.5);
}
.feat-card.highlight {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  border: none;
  color: #fff;
}
.feat-card.highlight .feat-title { color: #fff; }
.feat-card.highlight .feat-desc { color: rgba(255,255,255,.8); }
.feat-card.highlight .feat-icon-box { background: rgba(255,255,255,.15); }
.feat-icon-box {
  width: 48px; height: 48px;
  background: var(--brand-light);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
[data-theme="dark"] .feat-icon-box { background: rgba(37,99,235,.2); }
.feat-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.feat-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.feat-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  background: rgba(255,255,255,.2);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}

/* ===== HOW IT WORKS ===== */
.hiw-section {
  padding: 96px 0;
  background: var(--bg-alt);
}
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}
.hiw-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: all var(--t);
}
.hiw-step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.step-num {
  width: 52px; height: 52px;
  background: var(--blue-500);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
}
.step-title {
  font-size: 16px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== COMPARISON ===== */
.compare-section {
  padding: 96px 0;
  background: var(--bg);
}
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table thead th {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 13px;
}
.compare-table thead th.us {
  background: var(--blue-500);
  color: #fff;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: var(--bg-alt); }
.compare-table td.us { background: rgba(37,99,235,.06); }
[data-theme="dark"] .compare-table td.us { background: rgba(37,99,235,.1); }
.ic-yes { color: #22c55e; font-size: 18px; font-weight: 900; }
.ic-no  { color: #ef4444; font-size: 18px; }
.ic-part { color: #f59e0b; font-size: 13px; font-weight: 600; }

/* ===== PRICING ===== */
.pricing-section {
  padding: 96px 0;
  background: var(--bg-alt);
}
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.billing-toggle span.active { color: var(--text-primary); }
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border-strong);
  border-radius: 9999px;
  cursor: pointer;
  transition: background .2s;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
input:checked + .toggle-slider { background: var(--blue-500); }
input:checked + .toggle-slider:before { transform: translateX(20px); }
.save-pill {
  padding: 2px 10px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 9999px;
  font-size: 11px; font-weight: 700;
}
[data-theme="dark"] .save-pill { background: rgba(22,163,74,.2); color: #4ade80; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  position: relative;
  transition: all var(--t);
}
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.price-card.popular {
  border: 2px solid var(--blue-500);
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--blue-500);
  color: #fff;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.plan-icon { font-size: 28px; margin-bottom: 12px; }
.plan-name { font-size: 20px; font-weight: 800; color: var(--text-primary); }
.plan-tagline { font-size: 13px; color: var(--text-hint); margin-top: 4px; margin-bottom: 18px; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 20px;
}
.price-cur { font-size: 18px; font-weight: 700; color: var(--text-secondary); }
.price-num { font-size: 40px; font-weight: 900; color: var(--text-primary); line-height: 1; }
.price-period { font-size: 14px; color: var(--text-hint); margin-left: 4px; }
.plan-feats { margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.plan-feat {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-secondary);
}
.plan-feat .ck { color: var(--blue-500); font-weight: 700; font-size: 15px; flex-shrink: 0; }
.plan-feat .nx { color: var(--text-hint); }
.btn-plan {
  width: 100%;
  padding: 12px;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 700;
  border: 2px solid var(--blue-500);
  color: var(--blue-500);
  background: transparent;
  transition: all var(--t);
}
.btn-plan:hover { background: var(--blue-500); color: #fff; }
.btn-plan.solid { background: var(--blue-500); color: #fff; }
.btn-plan.solid:hover { background: var(--blue-600); box-shadow: 0 4px 14px rgba(37,99,235,.4); }
.pricing-note {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-hint);
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  padding: 96px 0;
  background: var(--bg);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all var(--t);
}
.testi-card:hover { box-shadow: var(--shadow-md); }
.testi-stars { color: #f59e0b; font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
.testi-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-av {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff;
  flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.testi-role { font-size: 12px; color: var(--text-hint); }

/* ===== CTA ===== */
.cta-section {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  top: -150px; left: -100px;
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
  bottom: -100px; right: -80px;
  border-radius: 50%;
}
.cta-inner { position: relative; }
.cta-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
}
.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-cta-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  background: #fff;
  color: var(--blue-700);
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transition: all var(--t);
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn-cta-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  background: transparent;
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 600;
  transition: all var(--t);
}
.btn-cta-outline:hover { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); }
.cta-note { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 20px; }

/* ===== FOOTER ===== */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 12px 0 18px;
  max-width: 280px;
}
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--t);
}
.social-btn:hover { color: var(--blue-500); border-color: var(--blue-300); }
.footer-col-title {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--t);
}
.footer-link:hover { color: var(--blue-500); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-hint);
}

/* ===== MODALS ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--t);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-box.wide { max-width: 540px; }
.modal-backdrop.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  font-size: 16px;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.modal-close:hover { color: var(--text-primary); }
.modal-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.logo-icon.sm { width: 28px; height: 28px; font-size: 14px; border-radius: 7px; }
.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-label .req { color: #ef4444; }
.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form-input:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-input option { background: var(--bg-card); }
.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none;
  font-size: 16px;
  color: var(--text-hint);
  padding: 4px;
  border-radius: 4px;
  transition: color var(--t);
}
.pw-toggle:hover { color: var(--text-primary); }
.form-alert {
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
  display: none;
}
.form-alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.form-alert.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
[data-theme="dark"] .form-alert.error { background: rgba(185,28,28,.15); border-color: rgba(185,28,28,.3); color: #fca5a5; }
[data-theme="dark"] .form-alert.success { background: rgba(21,128,61,.15); border-color: rgba(21,128,61,.3); color: #86efac; }
.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--blue-500);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
  transition: all var(--t);
  margin-top: 4px;
}
.btn-submit:hover { background: var(--blue-600); box-shadow: 0 6px 18px rgba(37,99,235,.45); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.modal-foot {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}
.modal-foot a { color: var(--blue-500); font-weight: 600; }
.modal-foot a:hover { text-decoration: underline; }
.demo-accounts {
  margin-top: 16px;
  padding: 14px;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  border: 1px dashed var(--border-strong);
}
.demo-title { font-size: 12px; font-weight: 700; color: var(--text-hint); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.demo-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-btn {
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--t);
}
.demo-btn:hover { border-color: var(--blue-400); color: var(--blue-500); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mock-info-col { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 12px 20px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { display: block; padding: 10px 14px; }
  .navbar { position: sticky; }
  .nav-actions { gap: 6px; }
  .btn-nav-login { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 60px 0 50px; }
  .hero-mock { margin-top: 40px; }
  .mock-app { height: 220px; }
  .mock-convlist { width: 150px; }
  .hiw-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .mock-convlist { display: none; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .modal-box { padding: 24px 18px; }
  .cta-actions { flex-direction: column; }
  .btn-cta-white, .btn-cta-outline { width: 100%; justify-content: center; }
}

/* ============================================================
   RESPONSIVE POLISH — Landing page (Mobile / Tablet)
   ============================================================ */

html {
  scroll-padding-top: 76px;
}

body {
  overflow-x: hidden;
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero {
    padding: 72px 0 60px;
  }

  .hero-mock {
    margin-top: 44px;
  }

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

@media (max-width: 768px) {
  .nav-container {
    height: 60px;
    padding: 0 14px;
    gap: 10px;
  }

  .nav-links {
    top: 60px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    padding: 10px 14px 14px;
  }

  .nav-links.open {
    animation: navDrop .18s ease;
  }

  .nav-links .nav-link {
    border-radius: var(--r-md);
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero {
    padding: 48px 0 46px;
  }

  .hero-badge {
    font-size: 11.5px;
    padding: 5px 14px;
    line-height: 1.4;
    text-align: center;
  }

  .hero-sub {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .hero-actions {
    gap: 10px;
    margin-bottom: 34px;
  }

  .hero-mock {
    margin-top: 34px;
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .features-section,
  .hiw-section,
  .compare-section,
  .pricing-section,
  .testimonials-section,
  .cta-section {
    padding: 64px 0;
  }

  .hero-stats {
    width: 100%;
    padding: 16px;
    gap: 10px;
  }

  .stat {
    padding: 0 12px;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
    font-size: 12.5px;
  }

  .footer {
    padding: 48px 0 24px;
  }

  .modal-backdrop {
    padding: 14px;
  }
}

@media (max-width: 600px) {
  .compare-table {
    min-width: 540px;
  }

  .compare-table-wrap {
    -webkit-overflow-scrolling: touch;
  }

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

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

  .feat-card,
  .testi-card {
    padding: 22px;
  }

  .price-card {
    padding: 26px 20px;
  }

  .logos-row {
    gap: 12px 22px;
  }

  .logo-brand {
    font-size: 12.5px;
  }

  .hero-mock {
    margin-top: 26px;
  }

  .mock-url {
    font-size: 10px;
    padding: 4px 8px;
  }

  .hero-stats {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 18px;
  }

  .stat-div {
    width: 100%;
    height: 1px;
  }

  .footer-grid {
    gap: 24px;
  }

  /* Modal dạng bottom sheet */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-box {
    border-radius: 18px 18px 0 0;
    max-height: 92dvh;
    padding: 26px 18px calc(20px + env(safe-area-inset-bottom));
  }

  .modal-box.wide {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .nav-container {
    padding: 0 10px;
    gap: 8px;
  }

  .logo-text {
    font-size: 15px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 8px;
  }

  .nav-actions {
    gap: 4px;
  }

  .btn-nav-cta {
    padding: 8px 10px;
  }

  .btn-nav-cta .cta-label {
    display: none;
  }

  .btn-theme {
    width: 34px;
    height: 34px;
  }

  .nav-hamburger {
    width: 34px;
    height: 34px;
  }

  .hero-title {
    font-size: clamp(28px, 8.6vw, 44px);
    letter-spacing: -.02em;
  }

  .hero-badge {
    font-size: 10.5px;
  }

  .mock-sidebar {
    width: 44px;
  }

  .mock-icon {
    width: 28px;
    height: 28px;
  }

  .mock-chat-header {
    padding: 6px 8px;
  }

  .mock-chat-msgs {
    padding: 8px;
  }

  .pricing-note {
    font-size: 12px;
  }
}

/* Responsive safety */
html, body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

