/*
Theme Name: ZBS Theme
Theme URI: https://miniai.vn
Author: MI9
Author URI: https://miniai.vn
Description: Theme for ZBS - Giải Pháp Nhắn Tin Thông Minh Trên Zalo
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
Text Domain: zbs-theme
*/

:root {
    --zalo-blue: #0068FF;
    --zalo-light: #4D9FFF;
    --deep: #03122E;
    --accent: #00D4FF;
    --gold: #FFB800;
    --green: #00C853;
    --red: #FF3B3B;
    --surface: #0A1F4E;
    --card: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.1);
    --text: #E8F0FF;
    --muted: #8BA3CC;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background: var(--deep);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
  }

  /* ===== NOISE OVERLAY ===== */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
  }

  /* ===== HERO ===== */
  .hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,104,255,0.45) 0%, transparent 70%),
      radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0,212,255,0.15) 0%, transparent 60%),
      radial-gradient(ellipse 40% 40% at 80% 90%, rgba(0,104,255,0.1) 0%, transparent 60%);
    z-index: 0;
  }

  .hero-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(0,104,255,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,104,255,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
  }

  .hero-content { position: relative; z-index: 1; max-width: 860px; }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,104,255,0.2);
    border: 1px solid rgba(0,104,255,0.4);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    animation: fadeDown 0.6s ease both;
  }

  .badge-dot {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
  }

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

  .hero h1 {
    font-family: 'Lexend Deca', sans-serif;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeUp 0.7s 0.1s ease both;
  }

  .hero h1 span {
    background: linear-gradient(135deg, var(--zalo-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 40px;
    font-weight: 400;
    animation: fadeUp 0.7s 0.2s ease both;
  }

  .hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeUp 0.7s 0.3s ease both;
  }

  .hero-stat { text-align: center; }

  .hero-stat-num {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
  }

  .hero-stat-num span { color: var(--accent); }

  .hero-stat-label {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
  }

  .hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.7s 0.4s ease both;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--zalo-blue), var(--accent));
    color: white;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0,104,255,0.4);
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,104,255,0.5);
  }

  .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.2);
    color: var(--text);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,212,255,0.05);
  }

  /* ===== FLOATING CARDS ===== */
  .floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }

  .fc {
    position: absolute;
    background: rgba(10,31,78,0.8);
    border: 1px solid rgba(0,104,255,0.25);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px;
    backdrop-filter: blur(8px);
    white-space: nowrap;
  }

  .fc-1 { top: 15%; left: 5%; animation: float1 6s ease-in-out infinite; }
  .fc-2 { top: 30%; right: 4%; animation: float2 8s ease-in-out infinite; }
  .fc-3 { bottom: 25%; left: 7%; animation: float1 7s ease-in-out infinite 1s; }
  .fc-4 { bottom: 15%; right: 6%; animation: float2 6s ease-in-out infinite 2s; }

  .fc-icon { margin-right: 6px; }

  @keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
  }
  @keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
  }

  /* ===== SECTIONS ===== */
  section { padding: 80px 24px; position: relative; z-index: 1; }

  .container { max-width: 1100px; margin: 0 auto; }

  .section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
  }

  .section-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .section-sub {
    font-size: 17px;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.65;
  }

  /* ===== COMPARISON ===== */
  .compare-section { background: rgba(0,104,255,0.03); }

  .compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 48px;
    border-radius: 16px;
    overflow: hidden;
  }

  .compare-table th {
    padding: 18px 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
  }

  .compare-table th:first-child { text-align: left; }

  .th-sms { background: rgba(255,59,59,0.12); color: #ff8888; }
  .th-zbs { background: rgba(0,104,255,0.2); color: var(--accent); }
  .th-label { background: rgba(255,255,255,0.04); }

  .compare-table td {
    padding: 14px 24px;
    font-size: 14px;
    border-top: 1px solid var(--border);
  }

  .compare-table tr:hover td { background: rgba(255,255,255,0.03); }

  .compare-table td:first-child { color: var(--muted); font-weight: 500; }

  .compare-table td:not(:first-child) { text-align: center; }

  .bad { color: var(--red); font-weight: 600; }
  .good { color: var(--green); font-weight: 600; }
  .great { color: var(--accent); font-weight: 700; }

  .check { color: var(--green); font-size: 18px; }
  .cross { color: var(--red); font-size: 18px; }

  /* ===== USE CASES ===== */
  .tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
  }

  .tab {
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--muted);
  }

  .tab.active {
    background: linear-gradient(135deg, var(--zalo-blue), var(--accent));
    border-color: transparent;
    color: white;
  }

  .tab:hover:not(.active) {
    border-color: rgba(0,104,255,0.4);
    color: var(--text);
  }

  .tab-content { display: none; }
  .tab-content.active { display: block; animation: fadeUp 0.4s ease; }

  .journey {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .journey-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  .step-num {
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,104,255,0.3), rgba(0,212,255,0.2));
    border: 1px solid rgba(0,104,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: var(--accent);
  }

  .step-body { flex: 1; }

  .step-phase {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
  }

  .step-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
  }

  .step-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
  }

  .msg-bubble {
    display: inline-block;
    background: rgba(0,104,255,0.12);
    border: 1px solid rgba(0,104,255,0.25);
    border-radius: 0 12px 12px 12px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text);
    margin-top: 8px;
    max-width: 380px;
    line-height: 1.5;
    font-style: italic;
  }

  /* ===== SOLUTIONS GRID ===== */
  .solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 48px;
  }

  .sol-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .sol-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,104,255,0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .sol-card:hover {
    border-color: rgba(0,104,255,0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  }

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

  .sol-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
  }

  .sol-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
  }

  .sol-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
  }

  .sol-tag {
    display: inline-block;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0,212,255,0.1);
    border-radius: 6px;
    padding: 3px 10px;
  }

  /* ===== ECOSYSTEM ===== */
  .ecosystem-section {
    background: linear-gradient(180deg, transparent, rgba(0,104,255,0.05), transparent);
  }

  .ecosystem-diagram {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
  }

  .eco-center {
    background: linear-gradient(135deg, var(--zalo-blue), var(--accent));
    border-radius: 20px;
    padding: 28px 36px;
    text-align: center;
    margin: 0 auto 48px;
    max-width: 300px;
    box-shadow: 0 20px 60px rgba(0,104,255,0.4);
  }

  .eco-center-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
  }

  .eco-center-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
  }

  .eco-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .eco-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    transition: all 0.3s;
  }

  .eco-item:hover {
    border-color: rgba(0,104,255,0.4);
    background: rgba(0,104,255,0.08);
  }

  .eco-icon { font-size: 28px; margin-bottom: 12px; }

  .eco-name {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
  }

  .eco-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

  .arrow-connector {
    text-align: center;
    font-size: 24px;
    color: var(--accent);
    margin: 8px 0;
    animation: bounce 2s ease infinite;
  }

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

  /* ===== AUTOMATION FLOW ===== */
  .flow-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 48px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .flow-step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    text-align: center;
    min-width: 150px;
    flex: 1;
    max-width: 180px;
    transition: all 0.3s;
  }

  .flow-step:hover {
    border-color: var(--zalo-blue);
    background: rgba(0,104,255,0.1);
  }

  .flow-step-icon { font-size: 28px; margin-bottom: 8px; }

  .flow-step-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
  }

  .flow-arrow {
    font-size: 22px;
    color: var(--accent);
    padding: 0 8px;
    flex-shrink: 0;
  }

  /* ===== CTA SECTION ===== */
  .cta-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(0,104,255,0.15), rgba(0,212,255,0.08));
    border: 1px solid rgba(0,104,255,0.2);
    border-radius: 24px;
    padding: 72px 32px;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
  }

  .cta-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,104,255,0.3), transparent 70%);
    pointer-events: none;
  }

  .cta-section h2 {
    font-family: 'Lexend Deca', sans-serif;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
  }

  .cta-free {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), #FFE066);
    color: #1a0a00;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 0.9em;
    margin-left: 8px;
    vertical-align: middle;
  }

  .cta-section p {
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
  }

  .cta-benefits {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
  }

  .cta-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
  }

  .cta-benefit-icon { font-size: 18px; }

  .qr-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
  }

  .qr-box {
    background: white;
    border-radius: 16px;
    padding: 12px;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  }

  .qr-box img {
    width: 116px;
    height: 116px;
    object-fit: contain;
    border-radius: 8px;
  }

  .qr-desc { text-align: left; }

  .qr-desc p { font-size: 15px; color: var(--muted); margin-bottom: 8px; }

  .qr-desc strong { color: var(--accent); }

  /* ===== NAV ===== */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    background: rgba(3,18,46,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-logo {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--zalo-blue), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
  }

  .nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--accent); }

  .nav-cta {
    background: linear-gradient(135deg, var(--zalo-blue), var(--accent));
    color: white !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700 !important;
    font-size: 13px !important;
  }

  /* ===== FEATURE PILLS ===== */
  .feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
  }

  .pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,104,255,0.1);
    border: 1px solid rgba(0,104,255,0.2);
    border-radius: 100px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
  }

  .pill:hover {
    background: rgba(0,104,255,0.2);
    border-color: rgba(0,104,255,0.4);
  }

  .pill-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
  }

  /* ===== ANIMATIONS ===== */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

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

  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s ease;
  }

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

  /* ===== DIVIDER ===== */
  .divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0 24px;
  }

  /* ===== FOOTER ===== */
  footer {
    padding: 40px 24px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
  }

  footer a { color: var(--accent); text-decoration: none; }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .nav-links { display: none; }
    .fc-1, .fc-2, .fc-3, .fc-4 { display: none; }
    .eco-grid { grid-template-columns: 1fr; }
    .flow-steps { flex-direction: column; }
    .flow-arrow { transform: rotate(90deg); }
    .compare-table { font-size: 12px; }
    .compare-table th, .compare-table td { padding: 10px 12px; }
    .qr-wrapper { flex-direction: column; }
    .qr-desc { text-align: center; }
  }

  /* ===== HIGHLIGHT BOX ===== */
  .highlight-box {
    background: linear-gradient(135deg, rgba(0,200,83,0.1), rgba(0,212,255,0.05));
    border: 1px solid rgba(0,200,83,0.25);
    border-radius: 14px;
    padding: 20px 24px;
    margin-top: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }

  .highlight-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }

  .highlight-text { font-size: 14px; color: var(--text); line-height: 1.6; }

  .highlight-text strong { color: var(--green); }

  /* ===== OPEN RATE BAR ===== */
  .stat-bars { margin-top: 48px; display: flex; flex-direction: column; gap: 20px; }

  .stat-bar-item { display: flex; align-items: center; gap: 16px; }

  .stat-bar-label { min-width: 80px; font-size: 13px; font-weight: 600; }

  .stat-bar-track {
    flex: 1;
    height: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 100px;
    overflow: hidden;
  }

  .stat-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 1.5s ease;
  }

  .bar-sms .stat-bar-fill { background: var(--red); width: 0; }
  .bar-email .stat-bar-fill { background: var(--gold); width: 0; }
  .bar-zbs .stat-bar-fill { background: linear-gradient(90deg, var(--zalo-blue), var(--accent)); width: 0; }

  .stat-bar-val { min-width: 60px; font-size: 14px; font-weight: 700; text-align: right; }
  .bar-sms .stat-bar-val { color: var(--red); }
  .bar-email .stat-bar-val { color: var(--gold); }
  .bar-zbs .stat-bar-val { color: var(--accent); }

  .bar-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--deep); }
  ::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 3px; }

  /* ===== TWO COL ===== */
  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }

  @media (max-width: 768px) {
    .two-col { grid-template-columns: 1fr; }
    .solutions-grid { grid-template-columns: 1fr; }
  }
