/* ==========================================================================
   LANDING PAGE — KIỂM TRA NHÀ & THẨM ĐỊNH QUY HOẠCH TÂY HÀ NỘI
   Tech: Vanilla CSS · Mobile-First · High-Converting Premium Aesthetic
   ========================================================================== */

:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-dark: #064e3b;
  --primary-light: #d1fae5;
  --primary-glow: rgba(5, 150, 105, 0.25);
  
  --accent: #d97706;
  --accent-light: #fef3c7;
  --accent-danger: #dc2626;
  --accent-danger-light: #fee2e2;

  --bg-dark: #0f172a;
  --bg-card: #ffffff;
  --bg-soft: #f8fafc;
  --bg-subtle: #f1f5f9;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  --border: #e2e8f0;
  --border-focus: #059669;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-glow: 0 8px 24px var(--primary-glow);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-soft);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* offset for mobile sticky bar */
}

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-zalo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid #bbf7d0;
  transition: all 0.2s ease;
}

.btn-header-zalo:hover {
  background: #dcfce7;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 48px 0 32px;
  background: radial-gradient(circle at top right, rgba(5, 150, 105, 0.08) 0%, transparent 60%),
              radial-gradient(circle at bottom left, rgba(217, 119, 6, 0.05) 0%, transparent 50%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid #a7f3d0;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--bg-dark);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 800px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 32px;
}

/* Interactive Card / Tool Container */
.tool-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #10b981, var(--accent));
}

.tool-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.tab-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.tool-input-wrap {
  margin-bottom: 18px;
}

.tool-textarea {
  width: 100%;
  height: 140px;
  padding: 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-main);
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  resize: vertical;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.tool-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.structured-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--border-focus);
}

.tool-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .tool-actions {
    flex-direction: row;
    align-items: center;
  }
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.25s ease;
  min-height: 52px;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(5, 150, 105, 0.4);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.status-msg {
  font-size: 14px;
  color: var(--text-muted);
}

.status-msg.error {
  color: var(--accent-danger);
  font-weight: 600;
}

.tool-guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.tool-guarantees span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Feature Showcase Grid */
.section {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--bg-dark);
  line-height: 1.3;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon.emerald { background: var(--primary-light); color: var(--primary-dark); }
.feature-icon.amber { background: var(--accent-light); color: var(--accent); }
.feature-icon.rose { background: var(--accent-danger-light); color: var(--accent-danger); }
.feature-icon.blue { background: #e0f2fe; color: #0369a1; }

.feature-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--bg-dark);
}

.feature-box p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Comparison Table */
.comparison-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  text-align: left;
}

.comparison-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid var(--border);
}

.comparison-table th.col-buyeros {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.comparison-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--border);
}

.comparison-table td.col-buyeros {
  background: rgba(209, 250, 229, 0.2);
  font-weight: 600;
  color: var(--primary-dark);
}

/* Golden Cases (Proof) */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.case-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 20px;
  border-left: 4px solid var(--accent-danger);
}

.case-card.resolved {
  border-left-color: var(--primary);
}

.case-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-danger);
  margin-bottom: 6px;
}

.case-card.resolved .case-tag {
  color: var(--primary);
}

.case-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.case-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Bottom CTA / Help */
.bottom-cta {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  margin: 40px 0;
}

.bottom-cta h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
}

.bottom-cta p {
  color: var(--text-light);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto 24px;
}

.btn-zalo-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0068ff;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 104, 255, 0.4);
  transition: transform 0.2s;
}

.btn-zalo-big:hover {
  transform: scale(1.03);
}

/* Sticky Mobile Bar */
.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  z-index: 99;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

.sticky-mobile-bar a, .sticky-mobile-bar button {
  flex: 1;
  text-align: center;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-mobile-check {
  background: var(--primary);
  color: #fff;
}

.btn-mobile-zalo {
  background: #eff6ff;
  color: #0068ff;
  border: 1px solid #bfdbfe;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
  .sticky-mobile-bar {
    display: none;
  }
  .hero-title {
    font-size: 42px;
  }
}
