/* ============================================================
   APPORION — INDEX (TRANG CHỦ) STYLESHEET
   Import SAU global.css:
   <link rel="stylesheet" href="/css/global.css">
   <link rel="stylesheet" href="/css/index.css">

   Lưu ý: Accent utilities (.acc-cyan/.acc-teal/.acc-purple/
   .acc-coral) và section primitives (.section-inner, .section-
   title...) đã nằm trong global.css — dùng trực tiếp.
   ============================================================ */

/* ───────── HERO ───────── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 5% 80px;
  position: relative; overflow: hidden; text-align: center;
  background: var(--ink);
}
#hero-canvas { position: absolute; inset: 0; pointer-events: none; }
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: var(--cyan-glow); border: 1px solid var(--cyan-border);
  font-size: 12px; font-weight: 500; color: var(--cyan);
  margin-bottom: 28px; letter-spacing: 0.5px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(42px, 6vw, 80px); font-weight: 800;
  line-height: 1.05; letter-spacing: -2px; color: #fff;
  max-width: 900px; margin-bottom: 8px;
}
.hero-title .accent { color: var(--cyan); }
.hero-tagline {
  font-size: clamp(14px, 1.8vw, 18px); color: var(--ice3);
  font-weight: 300; letter-spacing: 0.5px; margin-bottom: 40px;
}
.hero-desc {
  font-size: clamp(14px, 1.6vw, 17px); color: var(--ice3);
  max-width: 560px; margin: 0 auto 36px;
  font-weight: 300; line-height: 1.7;
}
.hero-cta-group {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 64px;
}
.btn-primary {
  padding: 14px 32px; border: none; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: #0A1A20; background: var(--cyan);
  cursor: pointer; font-family: 'Be Vietnam Pro', sans-serif; transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn-primary:hover {
  background: var(--cyan2); transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(103,232,249,0.35);
}
.btn-primary.btn-lg { font-size: 16px; padding: 16px 36px; }
.btn-primary.btn-sm { font-size: 13px; padding: 10px 22px; }
.btn-secondary {
  padding: 14px 32px; border: 1px solid var(--glass-border); border-radius: 8px;
  font-size: 15px; font-weight: 400; color: var(--ice); background: var(--glass);
  cursor: pointer; font-family: 'Be Vietnam Pro', sans-serif; transition: all 0.25s;
  backdrop-filter: blur(8px); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.07); }
.btn-secondary.btn-lg { font-size: 16px; padding: 16px 36px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number { font-size: 28px; font-weight: 700; color: #fff; letter-spacing: -1px; }
.stat-number span { color: var(--cyan); }
.stat-label { font-size: 12px; color: var(--ice3); letter-spacing: 0.5px; margin-top: 2px; }
.stat-divider {
  padding: 0 48px;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0.4;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--ice3));
  animation: scroll-anim 1.8s infinite;
}
@keyframes scroll-anim {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ───────── LOGO BAR ───────── */
.logo-bar {
  padding: 32px 5%;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: var(--ink2);
}
.logo-bar-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.logo-bar-label {
  font-size: 11px; color: var(--ice3);
  letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
}
.logo-pill {
  padding: 6px 16px; border-radius: 100px;
  background: var(--glass); border: 1px solid var(--glass-border);
  font-size: 12px; font-weight: 500; color: var(--ice2); letter-spacing: 0.3px;
}

/* ───────── PRODUCTS ───────── */
.product-section { background: var(--ink2); }
.product-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 48px;
}
.product-card {
  padding: 28px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: all 0.3s; position: relative; overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103,232,249,0.4), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.product-card:hover { border-color: rgba(103,232,249,0.20); background: rgba(255,255,255,0.06); }
.product-card:hover::before { opacity: 1; }
.product-card.featured { border-color: var(--cyan-border); background: rgba(103,232,249,0.06); }
.product-card.featured::before { opacity: 1; }
.product-card.wide { grid-column: 1 / -1; }
.product-card-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: center;
}
.card-tag {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.5px; margin-bottom: 16px;
}
.tag-cyan { background: var(--cyan-glow); color: var(--cyan); border: 1px solid var(--cyan-border); }
.tag-teal { background: var(--teal-glow); color: var(--teal); border: 1px solid var(--teal-border); }
.tag-ice  { background: rgba(184,196,224,0.1); color: var(--ice2); border: 1px solid rgba(184,196,224,0.15); }
.card-icon { font-size: 28px; margin-bottom: 14px; display: block; }
.card-title {
  font-size: 18px; font-weight: 700; color: #fff;
  margin-bottom: 8px; letter-spacing: -0.3px;
}
.card-title-lg { font-size: 22px; margin-top: 8px; }
.card-desc { font-size: 14px; color: var(--ice3); line-height: 1.65; font-weight: 300; }
.card-desc-spaced { margin-top: 10px; }
.card-cta-spaced { margin-top: 20px; }
.card-metrics {
  display: flex; gap: 20px; margin-top: 20px;
  padding-top: 16px; border-top: 1px solid var(--glass-border);
}
.metric { font-size: 12px; color: var(--ice3); }
.metric strong {
  display: block; font-size: 18px; font-weight: 700;
  color: var(--cyan); letter-spacing: -0.5px;
}
.enterprise-mock {
  background: var(--glass); border-radius: 8px;
  padding: 20px; border: 1px solid var(--glass-border);
}
.mock-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: 6px; margin-bottom: 8px;
}
.mock-row.highlight { background: rgba(103,232,249,0.08); border: 1px solid rgba(103,232,249,0.12); }
.mock-row.normal    { background: var(--glass); border: 1px solid var(--glass-border); }
.mock-label { font-size: 13px; color: var(--ice2); }
.mock-badge {
  font-size: 11px; color: var(--teal); background: var(--teal-glow);
  padding: 2px 8px; border-radius: 100px;
}
.mock-footer { text-align: center; padding: 6px; font-size: 11px; color: var(--ice3); }

/* ───────── HOW IT WORKS ───────── */
.how-section { background: var(--ink); }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 56px; position: relative;
}
.steps-grid::after {
  content: ''; position: absolute; top: 32px; left: 16.6%; right: 16.6%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103,232,249,0.30), rgba(103,232,249,0.30), transparent);
}
.step { padding: 0 24px; text-align: center; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--cyan-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 18px; font-weight: 700;
  color: var(--cyan); background: var(--cyan-glow);
  position: relative; z-index: 1;
}
.step-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--ice3); line-height: 1.6; font-weight: 300; }

/* ───────── SOLUTIONS TABS ───────── */
.solutions-section { background: var(--ink3); }
.tab-nav {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin: 40px 0 28px;
}
.tab-btn {
  padding: 16px 12px; border-radius: 10px; border: 1px solid var(--glass-border);
  background: var(--glass); cursor: pointer; transition: all 0.25s;
  text-align: left; position: relative; overflow: hidden;
  font-family: 'Be Vietnam Pro', sans-serif;
}
.tab-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.tab-btn.active { border-color: var(--acc-border); background: var(--acc-soft); }
.tab-icon { font-size: 22px; margin-bottom: 8px; display: block; }
.tab-label {
  font-size: 12px; font-weight: 700; color: #fff;
  display: block; line-height: 1.3; margin-bottom: 3px;
}
.tab-sublabel { font-size: 11px; color: var(--ice3); font-weight: 300; }
.tab-indicator {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  opacity: 0; transition: opacity 0.25s;
  background: var(--acc);
}
.tab-btn.active .tab-indicator { opacity: 1; }

.panel { display: none; animation: fadeSlide 0.3s ease; }
.panel.active { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.panel-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel-hero {
  padding: 28px; border-radius: 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--acc-border);
  background: var(--acc-soft);
}
.panel-badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.5px; margin-bottom: 14px;
  color: var(--acc); border: 1px solid var(--acc-border);
  background: rgba(0,0,0,0.15);
}
.panel-name {
  font-size: 22px; font-weight: 800; color: #fff;
  letter-spacing: -0.5px; margin-bottom: 10px; line-height: 1.2;
}
.panel-desc {
  font-size: 13px; color: var(--ice3); line-height: 1.7;
  font-weight: 300; margin-bottom: 20px; flex: 1;
}
.panel-metrics {
  display: flex; gap: 20px; margin-bottom: 22px;
  padding: 14px; background: rgba(0,0,0,0.2); border-radius: 8px;
}
.pm { text-align: center; flex: 1; }
.pm-val { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; color: var(--acc); }
.pm-lbl { font-size: 10px; color: var(--ice3); margin-top: 2px; letter-spacing: 0.3px; }
.panel-cta-main {
  width: 100%; padding: 12px; border-radius: 8px; border: none;
  font-family: 'Be Vietnam Pro', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  background: var(--acc); color: var(--acc-ink);
}
.panel-cta-main:hover { filter: brightness(1.1); transform: translateY(-1px); }

.services-col { display: flex; flex-direction: column; gap: 10px; }
.svc-card {
  padding: 16px 18px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: all 0.2s;
}
.svc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.svc-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--acc);
}
.svc-name { font-size: 13px; font-weight: 700; color: #fff; }
.svc-desc { font-size: 12px; color: var(--ice3); line-height: 1.55; font-weight: 300; }
.svc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.svc-tag {
  padding: 2px 8px; border-radius: 100px; font-size: 10px; font-weight: 500;
  color: var(--acc); background: var(--acc-soft);
  border: 1px solid var(--acc-border);
}

.panel-footer {
  margin-top: 16px; padding: 14px 18px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-footer-text { font-size: 12px; color: var(--ice3); font-weight: 300; }
.panel-footer-text strong { color: var(--ice2); font-weight: 500; }
.btn-outline-sm {
  padding: 8px 16px; border-radius: 6px;
  background: none; font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: 'Be Vietnam Pro', sans-serif; transition: all 0.2s;
  color: var(--acc); border: 1px solid var(--acc-border);
}
.btn-outline-sm:hover { background: var(--acc-soft); }

/* ───────── PRICING ───────── */
.pricing-section { background: var(--ink2); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 48px; align-items: start;
}
.pricing-card {
  padding: 28px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
  position: relative;
}
.pricing-card.featured {
  background: var(--cyan-glow); border-color: var(--cyan-border);
  transform: scale(1.03);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; border-radius: 100px;
  background: var(--cyan); color: #0A1A20;
  font-size: 11px; font-weight: 600; white-space: nowrap; letter-spacing: 0.5px;
}
.pricing-tier {
  font-size: 13px; font-weight: 600; color: var(--ice3);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px;
}
.pricing-card.featured .pricing-tier { color: var(--cyan); }
.pricing-amount {
  font-size: 40px; font-weight: 800; color: #fff;
  letter-spacing: -2px; line-height: 1;
}
.pricing-amount sup { font-size: 18px; font-weight: 500; vertical-align: top; margin-top: 8px; display: inline-block; }
.pricing-amount sub { font-size: 14px; font-weight: 400; color: var(--ice3); letter-spacing: 0; vertical-align: bottom; }
.pricing-amount .unit { font-size: 24px; font-weight: 700; }
.pricing-amount.pricing-contact { font-size: 28px; letter-spacing: -1px; padding-top: 6px; }
.pricing-desc { font-size: 13px; color: var(--ice3); margin: 12px 0 20px; line-height: 1.5; }
.pricing-divider { height: 1px; background: var(--glass-border); margin: 20px 0; }
.pricing-features {
  list-style: none; display: flex; flex-direction: column;
  gap: 10px; margin-bottom: 24px;
}
.pricing-features li {
  font-size: 13px; color: var(--ice2);
  display: flex; align-items: center; gap: 8px; font-weight: 300;
}
.pricing-features li .muted { color: var(--ice3); }
.feat-check {
  width: 16px; height: 16px; border-radius: 50%; background: var(--teal-glow);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--teal); flex-shrink: 0; font-size: 10px;
}
.feat-x {
  width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,0.05);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ice3); flex-shrink: 0; font-size: 10px;
}
.btn-pricing {
  width: 100%; padding: 12px; border-radius: 7px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: 'Be Vietnam Pro', sans-serif; transition: all 0.2s; border: none;
}
.btn-pricing-outline { background: none; border: 1px solid var(--glass-border); color: var(--ice); }
.btn-pricing-outline:hover { border-color: rgba(255,255,255,0.25); background: var(--glass); }
.btn-pricing-main { background: var(--cyan); color: #0A1A20; }
.btn-pricing-main:hover { background: var(--cyan2); }

/* ───────── TESTIMONIALS ───────── */
.testimonials-section { background: var(--ink); }
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 48px;
}
.testimonial-card {
  padding: 24px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
}
.testimonial-stars { color: var(--cyan); font-size: 13px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text {
  font-size: 14px; color: var(--ice2); line-height: 1.7;
  font-style: italic; font-weight: 300; margin-bottom: 18px;
}
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cyan-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--cyan); flex-shrink: 0;
}
.author-name { font-size: 13px; font-weight: 500; color: #fff; }
.author-title { font-size: 11px; color: var(--ice3); }

/* ───────── CTA FINAL ───────── */
.cta-section {
  padding: 96px 5%; background: var(--ink2);
  text-align: center; position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(103,232,249,0.10), transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 2; }
.cta-eyebrow {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px; font-weight: 500;
}
.cta-title {
  font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -1.5px;
  color: #fff; max-width: 700px; margin: 0 auto 16px; line-height: 1.1;
}
.cta-title .accent { color: var(--cyan); }
.cta-sub { font-size: 16px; color: var(--ice3); margin-bottom: 36px; font-weight: 300; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-trust { font-size: 12px; color: var(--ice3); margin-top: 16px; letter-spacing: 0.3px; }

/* ───────── ANIMATIONS (trang chủ dùng fade-in + stagger) ───────── */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ───────── RESPONSIVE (page) ───────── */
@media (max-width: 768px) {
  .hero-stats { gap: 24px; }
  .stat-divider { padding: 0 24px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card.wide { grid-column: auto; }
  .product-card-split { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::after { display: none; }
  .tab-nav { grid-template-columns: repeat(2, 1fr); }
  .panel-inner { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: scale(1); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
}
