/*
Theme Name: Trần Thế Tuấn Media
Theme URI: https://tranthetuanmedia.com
Author: Trần Thế Tuấn (Tracy)
Author URI: https://tranthetuanmedia.com
Description: Custom WordPress theme cho Trần Thế Tuấn Media — Digital Marketing Agency phục vụ thị trường Việt Nam và Úc. Palette tím hiện đại, design v3 với loader, hero animations, case studies, pricing, testimonials, FAQ.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: tranthetuanmedia
Tags: business, agency, marketing, custom, vietnamese
*/


/* ============================================
   PALETTE TÍM HIỆN ĐẠI · v3
   ============================================ */
:root {
  --primary: #6D28D9;
  --primary-dark: #4C1D95;
  --primary-light: #8B5CF6;
  --accent: #A78BFA;
  --accent-soft: #DDD6FE;
  --accent-bg: #F5F3FF;

  --bg-dark: #0F0A1F;
  --bg-darker: #050010;
  --bg-light: #FAFAFE;
  --surface: #FFFFFF;
  --surface-2: #F4F1FA;

  --text: #1A1325;
  --text-2: #4A4458;
  --text-mute: #6B6477;
  --text-light: #9B95A8;
  --border: #E9E5F2;
  --border-light: #F0EDF7;

  --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 50%, #4C1D95 100%);
  --gradient-soft: linear-gradient(135deg, #F5F3FF 0%, #FAFAFE 100%);
  --gradient-glow: radial-gradient(circle at 30% 30%, rgba(167, 139, 250, 0.4), transparent 60%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 8px 24px rgba(76, 29, 149, 0.1);
  --shadow-lg: 0 20px 48px rgba(76, 29, 149, 0.18);
  --shadow-glow: 0 12px 40px rgba(139, 92, 246, 0.35);

  --container: 1280px;
  --pad-x: clamp(20px, 4vw, 64px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--accent); color: var(--bg-dark); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-light);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}
h1 { font-size: clamp(38px, 5.5vw, 68px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.5vw, 30px); }
p { line-height: 1.65; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: var(--accent-bg);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(139, 92, 246, 0); }
}

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { margin-top: 8px; }
.section-title p { margin-top: 16px; font-size: 17px; color: var(--text-mute); max-width: 720px; margin-left: auto; margin-right: auto; line-height: 1.55; }

/* ============================================
   ANNOUNCE BAR
   ============================================ */
.announce {
  background: var(--bg-dark);
  color: var(--accent-soft);
  font-size: 13px;
  padding: 9px 0;
  text-align: center;
  letter-spacing: 0.01em;
  overflow: hidden;
}
.announce-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  width: max-content;
}
.announce-track strong { color: var(--accent); font-weight: 700; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}
.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow-glow);
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1.5px solid var(--accent);
  border-right-color: transparent;
  border-bottom-color: transparent;
  animation: spin 8s linear infinite;
  opacity: 0.6;
}
@keyframes spin { to { transform: rotate(360deg); } }
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav a { color: var(--text-2); padding: 8px 0; position: relative; }
.nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  background: var(--gradient-primary);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow);
  transition: all 0.3s var(--ease);
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(139, 92, 246, 0.5); color: white; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: var(--gradient-glow);
  filter: blur(20px);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-tagline {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-tagline::before {
  content: '#1';
  background: var(--gradient-primary);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
}
.hero h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero h1 .gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  margin-top: 24px;
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 560px;
}
.hero-bullets {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  max-width: 540px;
}
.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
}
.hero-bullets li::before {
  content: '';
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236D28D9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l3 3 7-7'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
  flex-shrink: 0;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(139, 92, 246, 0.55);
  color: white;
}
.btn-ghost {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--accent-bg);
  color: var(--primary);
}
.btn .arrow { transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero awards */
.hero-awards {
  margin-top: 48px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-awards-label {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 700;
}
.hero-awards-list { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-award {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}
.hero-award:hover { transform: scale(1.1) rotate(-5deg); }
.hero-award svg { width: 36px; height: 36px; color: var(--primary); }

/* Hero visual */
.hero-visual {
  position: relative;
  height: 540px;
}
.hero-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease);
}
.hero-card-1 {
  top: 0; right: 0;
  width: 320px; height: 380px;
  background: var(--gradient-primary);
  color: white;
  padding: 28px;
  z-index: 3;
}
.hero-card-1:hover { transform: translateY(-8px); }
.hero-card-1-stat {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-top: 24px;
}
.hero-card-1-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 8px;
  opacity: 0.85;
}
.hero-card-1-bottom {
  position: absolute;
  bottom: 28px; left: 28px; right: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.9;
}

.hero-card-2 {
  top: 80px; left: 0;
  width: 220px; height: 220px;
  z-index: 4;
  padding: 20px;
}
.hero-card-2:hover { transform: translateY(-8px) rotate(-2deg); }
.hero-card-2-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-bg);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.hero-card-2-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-card-2-label { font-size: 13px; color: var(--text-mute); margin-top: 4px; line-height: 1.3; }

.hero-card-3 {
  bottom: 0; right: 60px;
  width: 280px;
  z-index: 5;
  padding: 20px;
}
.hero-card-3:hover { transform: translateY(-8px) rotate(2deg); }
.hero-card-3-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.hero-card-3-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.hero-card-3-name { font-weight: 700; font-size: 14px; }
.hero-card-3-role { font-size: 12px; color: var(--text-mute); }
.hero-card-3-quote {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  font-style: italic;
}
.hero-card-3-stars { margin-top: 12px; color: var(--accent); font-size: 14px; letter-spacing: 2px; }

/* ============================================
   LOGO WALL — Marquee
   ============================================ */
.logos {
  padding: 48px 0;
  background: white;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}
.logos-title {
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 700;
  margin-bottom: 32px;
}
.logos-track {
  display: flex;
  gap: 56px;
  align-items: center;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.logo-item {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 20px;
  font-family: serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  color: var(--text-mute);
  white-space: nowrap;
  filter: grayscale(1);
  opacity: 0.6;
  transition: all 0.3s;
}
.logo-item:hover { filter: grayscale(0); opacity: 1; color: var(--primary); }

/* ============================================
   CASE STUDIES
   ============================================ */
.cases {
  background: var(--bg-light);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease);
  position: relative;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.case-thumb {
  aspect-ratio: 16/10;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}
.case-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 24px;
}
.case-thumb-placeholder small {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 8px;
}
.case-thumb-placeholder strong { font-size: 20px; font-weight: 700; }
.case-card:nth-child(2) .case-thumb { background: linear-gradient(135deg, #C084FC 0%, #6D28D9 100%); }
.case-card:nth-child(3) .case-thumb { background: linear-gradient(135deg, #818CF8 0%, #4338CA 100%); }
.case-card:nth-child(4) .case-thumb { background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%); }
.case-card:nth-child(5) .case-thumb { background: linear-gradient(135deg, #F0ABFC 0%, #C026D3 100%); }
.case-card:nth-child(6) .case-thumb { background: linear-gradient(135deg, #DDD6FE 0%, #6D28D9 100%); }

.case-body {
  padding: 24px;
}
.case-body h3 {
  font-size: 22px;
  margin-bottom: 20px;
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.case-stat {
  text-align: center;
  padding: 14px 8px;
  background: var(--accent-bg);
  border-radius: var(--radius-md);
}
.case-stat-icon {
  width: 32px; height: 32px;
  margin: 0 auto 8px;
  border-radius: 8px;
  background: white;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.case-stat-icon svg { width: 16px; height: 16px; }
.case-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1;
}
.case-stat-label {
  font-size: 10.5px;
  color: var(--text-mute);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.case-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================
   TOOL FEATURE BOX
   ============================================ */
.tool-section {
  background: var(--bg-dark);
  color: white;
  position: relative;
  overflow: hidden;
}
.tool-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 60%);
  filter: blur(60px);
}
.tool-content { position: relative; z-index: 1; }
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.tool-grid h2 { color: white; margin-bottom: 20px; }
.tool-grid h2 .gradient {
  background: linear-gradient(135deg, #C4B5FD 0%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tool-grid p { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.65; max-width: 480px; }
.tool-features {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.tool-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.9);
  line-height: 1.45;
}
.tool-feature::before {
  content: '';
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l3 3 7-7'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  margin-top: 1px;
}

.tool-mockup {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1E1635 0%, #2D1B5C 100%);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tool-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.tool-mockup-title { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: 0.08em; }
.tool-mockup-dots { display: flex; gap: 6px; }
.tool-mockup-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.tool-mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.tool-mockup-kw { color: rgba(255,255,255,0.85); }
.tool-mockup-rank {
  background: var(--gradient-primary);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}
.tool-mockup-rank.green { background: linear-gradient(135deg, #10B981, #059669); }
.tool-mockup-chart {
  margin-top: auto;
  height: 80px;
  position: relative;
}
.tool-mockup-chart svg { width: 100%; height: 100%; }

/* ============================================
   AGENCY STATS + OFFICES
   ============================================ */
.agency-stats {
  background: white;
}
.agency-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.agency-stat {
  text-align: center;
  padding: 36px 20px;
  background: var(--accent-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease);
}
.agency-stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.agency-stat-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}
.agency-stat-icon svg { width: 28px; height: 28px; }
.agency-stat-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.agency-stat-label {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  margin-top: 8px;
}

.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.office {
  padding: 32px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.4s var(--ease);
}
.office:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.office::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg) 0 0 0;
}
.office h4 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--primary);
}
.office p { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.office-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-mute);
}

/* ============================================
   PROCESS — 6 STEPS
   ============================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.process-step {
  background: white;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.4s var(--ease);
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.process-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--gradient-primary);
  color: white;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  box-shadow: var(--shadow-glow);
}
.process-step h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.process-step p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================
   WHY CHOOSE
   ============================================ */
.why-section { background: var(--accent-bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.why-card::before {
  content: attr(data-num);
  position: absolute;
  top: -20px; right: 16px;
  font-size: 110px;
  font-weight: 900;
  color: var(--accent-bg);
  line-height: 1;
  letter-spacing: -0.05em;
  z-index: 0;
  transition: color 0.3s;
}
.why-card:hover::before { color: var(--accent-soft); }
.why-card > * { position: relative; z-index: 1; }
.why-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-glow);
}
.why-card-icon svg { width: 26px; height: 26px; }
.why-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
}
.why-card p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================
   8 SERVICE PILLS
   ============================================ */
.work-overview { background: var(--bg-light); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.work-card {
  background: white;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: left;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}
.work-card:hover {
  transform: translateY(-4px);
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: white;
  box-shadow: var(--shadow-lg);
}
.work-card-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.work-card:hover .work-card-num { color: var(--accent); }
.work-card h4 {
  font-size: 17px;
  margin-bottom: 10px;
  color: inherit;
}
.work-card:hover h4 { color: white; }
.work-card p {
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.5;
}
.work-card:hover p { color: rgba(255,255,255,0.7); }

/* ============================================
   VALUE / IMPORTANCE — 4 cards with image
   ============================================ */
.value-section { background: white; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.value-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.value-card-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-card-img-placeholder {
  color: white;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  opacity: 0.7;
}
.value-card:nth-child(2) .value-card-img { background: linear-gradient(135deg, #C084FC, #6D28D9); }
.value-card:nth-child(3) .value-card-img { background: linear-gradient(135deg, #818CF8, #4338CA); }
.value-card:nth-child(4) .value-card-img { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.value-card-body h4 { font-size: 19px; margin-bottom: 12px; }
.value-card-body p { font-size: 14.5px; color: var(--text-2); line-height: 1.6; }

/* ============================================
   PRICING
   ============================================ */
.pricing-section { background: var(--accent-bg); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
  background: var(--bg-dark);
  color: white;
  border: none;
  transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-8px); }
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-glow);
}
.pricing-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.pricing-card.featured h3 { color: white; }
.pricing-tagline { font-size: 13px; color: var(--text-mute); margin-bottom: 28px; }
.pricing-card.featured .pricing-tagline { color: var(--accent); }
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.pricing-price-amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.pricing-card.featured .pricing-price-amount {
  background: linear-gradient(135deg, #C4B5FD 0%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pricing-price-unit { font-size: 14px; color: var(--text-mute); font-weight: 500; }
.pricing-card.featured .pricing-price-unit { color: rgba(255,255,255,0.6); }
.pricing-note { font-size: 13px; color: var(--text-mute); margin-bottom: 28px; }
.pricing-card.featured .pricing-note { color: rgba(255,255,255,0.6); }

.pricing-meta {
  padding: 16px;
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.pricing-card.featured .pricing-meta { background: rgba(255,255,255,0.06); }
.pricing-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 4px;
}
.pricing-meta-row:last-child { margin-bottom: 0; }
.pricing-meta-label { color: var(--text-mute); }
.pricing-card.featured .pricing-meta-label { color: rgba(255,255,255,0.6); }
.pricing-meta-value { font-weight: 600; color: var(--text); }
.pricing-card.featured .pricing-meta-value { color: white; }

.pricing-features {
  flex-grow: 1;
  margin-bottom: 28px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-light);
}
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.1); }
.pricing-features li::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236D28D9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l3 3 7-7'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-card.featured .pricing-features li::before {
  background-color: rgba(167, 139, 250, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A78BFA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l3 3 7-7'/%3E%3C/svg%3E");
}
.pricing-cta {
  width: 100%;
  justify-content: center;
}
.pricing-card .pricing-cta { background: var(--surface-2); color: var(--primary); border: 1.5px solid var(--border); }
.pricing-card .pricing-cta:hover { background: var(--gradient-primary); color: white; border-color: transparent; }
.pricing-card.featured .pricing-cta { background: var(--gradient-primary); color: white; border: none; }
.pricing-card.featured .pricing-cta:hover { background: white; color: var(--primary); }

.pricing-disclaimer {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
  font-style: italic;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   PRESS LOGOS
   ============================================ */
.press-section { background: white; }
.press-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 56px;
  align-items: center;
  margin-top: 40px;
}
.press-logo {
  height: 50px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-mute);
  filter: grayscale(1);
  opacity: 0.7;
  transition: all 0.3s;
}
.press-logo:hover { filter: grayscale(0); opacity: 1; color: var(--primary); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testi-section { background: var(--bg-light); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  position: relative;
  transition: all 0.4s var(--ease);
}
.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.testi-card::before {
  content: '"';
  position: absolute;
  top: 16px; right: 24px;
  font-family: serif;
  font-size: 100px;
  line-height: 1;
  color: var(--accent-soft);
  font-weight: 700;
}
.testi-stars {
  color: var(--primary);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testi-quote {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 24px;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.testi-name { font-weight: 700; font-size: 14.5px; }
.testi-role { font-size: 12.5px; color: var(--text-mute); margin-top: 2px; }

/* ============================================
   SERVICE TYPES — 6 cards
   ============================================ */
.types-section { background: white; }
.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.type-card {
  padding: 32px 28px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  cursor: pointer;
  position: relative;
}
.type-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.type-card-icon {
  width: 56px; height: 56px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-bg);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.type-card-icon svg { width: 28px; height: 28px; }
.type-card:hover .type-card-icon {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}
.type-card h4 { font-size: 18px; margin-bottom: 10px; }
.type-card p { font-size: 14px; color: var(--text-mute); line-height: 1.55; }

/* ============================================
   FORM + FAQ
   ============================================ */
.contact-section {
  background: var(--bg-dark);
  color: white;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 60%);
  filter: blur(60px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-grid h2 { color: white; }
.contact-grid h2 .gradient {
  background: linear-gradient(135deg, #C4B5FD 0%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-grid > div p { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.6; max-width: 520px; }

.form-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: var(--radius-md);
  color: white;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.3s;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-field textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit {
  width: 100%;
  padding: 16px 24px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-pill);
  margin-top: 8px;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s;
  cursor: pointer;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(139, 92, 246, 0.55); }

.faq-list { margin-top: 32px; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--accent); }
.faq-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.3s;
}
.faq-item.open .faq-toggle { background: var(--gradient-primary); color: white; transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), margin-top 0.4s var(--ease);
}
.faq-item.open .faq-answer { max-height: 400px; margin-top: 16px; }
.faq-answer p {
  font-size: 14.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-darker);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-about { line-height: 1.6; max-width: 320px; }
.footer-about .brand { color: white; margin-bottom: 16px; }
.footer-about .brand small { color: rgba(255,255,255,0.5); }
.footer-socials { margin-top: 20px; display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.footer-socials a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
}
.footer-socials svg { width: 16px; height: 16px; }
.footer-col h5 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: white;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-col li { padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom-links { display: flex; gap: 24px; }

/* ============================================
   FLOAT
   ============================================ */
.float-cta {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s var(--ease-spring);
}
.float-btn:hover { transform: scale(1.1); }
.float-btn svg { width: 24px; height: 24px; }

/* ============================================
   SCROLL REVEAL
   ============================================ */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }
[data-reveal-delay="6"] { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 480px; max-width: 600px; margin: 0 auto; }
  .agency-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid, .process-grid, .why-grid, .testi-grid, .types-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card.featured { transform: scale(1); }
  .tool-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav, .header-phone { display: none; }
  .cases-grid, .process-grid, .why-grid, .testi-grid, .types-grid, .work-grid, .offices-grid, .agency-stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-bullets, .form-row, .tool-features { grid-template-columns: 1fr; }
  .value-card { grid-template-columns: 1fr; }
  .value-card-img { max-width: 200px; }
  .hero-visual { height: 540px; }
  .hero-card-1 { width: 280px; height: 320px; }
  .hero-card-2 { width: 180px; height: 180px; }
  .hero-card-3 { width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================
   PAGE LOADER · Modern tech splash screen
   ============================================ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.page-loader::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 60%);
  filter: blur(60px);
  animation: loaderPulse 3s ease-in-out infinite;
}
.page-loader::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes loaderPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.loader-logo {
  position: relative;
  z-index: 2;
  width: 96px; height: 96px;
  border-radius: 24px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 36px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 0 80px rgba(139, 92, 246, 0.6);
  animation: loaderLogoFloat 2s ease-in-out infinite;
}
@keyframes loaderLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.loader-logo::before,
.loader-logo::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  border: 1.5px solid var(--accent);
  border-right-color: transparent;
  border-bottom-color: transparent;
  animation: spin 2s linear infinite;
  opacity: 0.6;
}
.loader-logo::after {
  inset: -16px;
  border-radius: 32px;
  animation: spin 3s linear infinite reverse;
  opacity: 0.3;
  border-color: var(--accent-soft);
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.loader-text {
  position: relative;
  z-index: 2;
  color: var(--accent);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  gap: 4px;
  align-items: center;
}
.loader-text-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: loaderDot 1.4s ease-in-out infinite;
}
.loader-text-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-text-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes loaderDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1.2); }
}

.loader-progress {
  position: relative;
  z-index: 2;
  width: 240px; height: 2px;
  background: rgba(167, 139, 250, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.loader-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0;
  border-radius: 2px;
  animation: loaderBar 1.8s var(--ease) forwards;
  box-shadow: 0 0 20px var(--accent);
}
@keyframes loaderBar {
  0% { width: 0; }
  100% { width: 100%; }
}

.loader-percent {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Manrope', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 999;
  box-shadow: 0 0 12px var(--accent);
  transition: transform 0.1s linear;
}

/* ============================================
   CUSTOM CURSOR (desktop only)
   ============================================ */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, textarea, select, [role="button"], .case-card, .why-card, .work-card, .type-card, .testi-card, .pricing-card, .service-card, .faq-question, .header-cta, .btn, .form-submit { cursor: none; }

  .cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    will-change: transform;
  }
  .cursor-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    box-shadow: 0 0 12px var(--accent);
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, opacity 0.3s;
    opacity: 0.6;
  }
  body.cursor-hover .cursor-dot { width: 0; height: 0; }
  body.cursor-hover .cursor-ring {
    width: 56px; height: 56px;
    background: rgba(139, 92, 246, 0.15);
    opacity: 1;
    border-color: var(--primary);
  }
}

/* ============================================
   NOISE GRAIN OVERLAY (very subtle)
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ============================================
   GRADIENT MESH ANIMATED BG (hero enhancement)
   ============================================ */
.hero {
  position: relative;
  isolation: isolate;
}
.gradient-mesh {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.5;
  overflow: hidden;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: meshFloat 20s ease-in-out infinite;
}
.mesh-blob-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #8B5CF6, transparent 70%);
  top: 0; left: 0;
}
.mesh-blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #C084FC, transparent 70%);
  top: 30%; right: 10%;
  animation-delay: -7s;
}
.mesh-blob-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #A78BFA, transparent 70%);
  bottom: 0; left: 30%;
  animation-delay: -14s;
}
@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ============================================
   GRID OVERLAY (subtle tech feel on dark sections)
   ============================================ */
.tool-section, .contact-section {
  position: relative;
}
.tool-section::after, .contact-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

/* ============================================
   MAGNETIC BUTTONS (transform on near hover)
   ============================================ */
.btn, .header-cta, .form-submit {
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s;
  will-change: transform;
}

/* ============================================
   GLASS CARDS (override existing for tech look)
   ============================================ */
.case-card, .why-card, .testi-card, .work-card, .type-card, .process-step {
  position: relative;
  overflow: hidden;
}
.case-card::after, .why-card::after, .testi-card::after, .work-card::after, .type-card::after, .process-step::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(167, 139, 250, 0.1) 50%, transparent 70%);
  transition: left 0.8s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.case-card:hover::after, .why-card:hover::after, .testi-card:hover::after, .work-card:hover::after, .type-card:hover::after, .process-step:hover::after {
  left: 100%;
}
.case-card > *, .why-card > *, .testi-card > *, .work-card > *, .type-card > *, .process-step > * {
  position: relative;
  z-index: 2;
}

/* ============================================
   GRADIENT BORDER ANIMATED (highlight cards)
   ============================================ */
.pricing-card.featured {
  position: relative;
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  background: conic-gradient(from var(--angle, 0deg), #6D28D9, #8B5CF6, #A78BFA, #C084FC, #6D28D9);
  z-index: -1;
  animation: rotateBorder 4s linear infinite;
}
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes rotateBorder {
  to { --angle: 360deg; }
}

/* ============================================
   COUNTER ANIMATION READY
   ============================================ */
.agency-stat-num, .case-stat-num, .hero-card-2-num {
  font-variant-numeric: tabular-nums;
}

/* ============================================
   TERMINAL-STYLE TOOL HEADER
   ============================================ */
.tool-mockup {
  position: relative;
}
.tool-mockup::before {
  content: '> connecting to dashboard...';
  position: absolute;
  bottom: 8px; left: 24px;
  font-family: 'Manrope', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.05em;
  opacity: 0.5;
  font-feature-settings: 'tnum';
}

/* ============================================
   SECTION DIVIDERS (geometric tech accents)
   ============================================ */
.section-title {
  position: relative;
}
.section-title::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gradient-primary);
  margin: 0 auto 16px;
  border-radius: 2px;
}

/* ============================================
   STAT NUMBER GLOW PULSE
   ============================================ */
.agency-stat:hover .agency-stat-num,
.case-stat:hover .case-stat-num {
  animation: numGlow 0.6s var(--ease);
}
@keyframes numGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 var(--accent)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 20px var(--accent)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 var(--accent)); }
}

/* ============================================
   FLOATING ELEMENTS PARALLAX READY
   ============================================ */
.hero-card { will-change: transform; }

/* ============================================
   MOBILE FALLBACK
   ============================================ */
@media (max-width: 768px) {
  body { cursor: auto; }
  body * { cursor: auto !important; }
  .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-mesh, .mesh-blob, .page-loader::before, .loader-logo {
    animation: none !important;
  }
}


/* ============================================
   LOADER · Rich text version
   ============================================ */
.page-loader {
  gap: 24px !important;
  padding: 32px;
}

.loader-brand {
  position: relative;
  z-index: 2;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: white;
  margin: 0;
  text-align: center;
}
.loader-brand-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #C4B5FD 50%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.loader-brand-cursor {
  display: inline-block;
  width: 3px;
  margin-left: 4px;
  color: var(--accent);
  animation: blink 1s steps(2) infinite;
  font-weight: 300;
  vertical-align: -0.05em;
}
@keyframes blink {
  to { opacity: 0; }
}

.loader-rotate {
  position: relative;
  z-index: 2;
  font-family: 'Manrope', monospace;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 22px;
}
.loader-rotate-prefix { color: var(--primary-light); opacity: 0.7; }
.loader-rotate-words {
  color: var(--accent-soft);
  font-weight: 500;
  display: inline-block;
  min-width: 200px;
  text-align: left;
}
.loader-rotate-cursor {
  color: var(--accent);
  font-weight: 700;
  animation: blink 1s steps(2) infinite;
}

.loader-terminal {
  position: relative;
  z-index: 2;
  font-family: 'Manrope', monospace;
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.4);
  text-align: left;
  width: 100%;
  max-width: 460px;
  padding: 16px 20px;
  background: rgba(167, 139, 250, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: 0;
}
.loader-line {
  opacity: 0;
  animation: lineIn 0.4s var(--ease) forwards;
}
.loader-line:nth-child(1) { animation-delay: 0.1s; }
.loader-line:nth-child(2) { animation-delay: 0.4s; }
.loader-line:nth-child(3) { animation-delay: 0.7s; }
.loader-line:nth-child(4) { animation-delay: 1.0s; }
.loader-line:nth-child(5) { animation-delay: 1.3s; }
@keyframes lineIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.loader-line .ok { color: #4ADE80; font-weight: 700; }
.loader-line .warn { color: var(--accent); font-weight: 700; display: inline-block; animation: spin 1s linear infinite; }
.dots-anim::after {
  content: '';
  animation: dotsAnim 1.5s steps(4) infinite;
}
@keyframes dotsAnim {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

.loader-percent {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Manrope', monospace;
  font-variant-numeric: tabular-nums;
}
#loaderPercent {
  color: white;
  font-size: 16px;
  font-weight: 600;
}
.loader-percent-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .loader-terminal { font-size: 11px; max-width: 320px; padding: 12px 14px; }
  .loader-rotate { font-size: 12px; }
  .loader-brand { font-size: 28px; }
}



/* ============================================
   LOGO WALL — Image support
   ============================================ */
.logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 16px;
  white-space: nowrap;
}
.logo-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.logo-item-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  transition: all 0.4s var(--ease);
}
/* Grayscale mode (hover thì có màu) */
body.logo-wall-grayscale .logo-item-img {
  filter: grayscale(100%) opacity(0.55);
}
body.logo-wall-grayscale .logo-item:hover .logo-item-img {
  filter: grayscale(0%) opacity(1);
}
/* Text fallback giữ nguyên cũ */
.logo-item-text {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-mute);
  white-space: nowrap;
  transition: color 0.3s;
}
.logo-item:hover .logo-item-text {
  color: var(--primary);
}

@media (max-width: 768px) {
  .logo-item-img { height: 32px; max-width: 130px; }
  .logo-item { height: 42px; padding: 0 10px; }
  .logo-item-text { font-size: 17px; }
}


/* ============================================
   BLOG CARDS (Latest Posts on homepage + listing)
   ============================================ */
.blog-card-feed {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}
.blog-card-feed:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.blog-card-feed-thumb {
  aspect-ratio: 16/10;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}
.blog-card-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.blog-card-feed:hover .blog-card-feed-thumb img {
  transform: scale(1.05);
}
.blog-card-feed-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-feed-meta {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.blog-card-feed h3 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  transition: color 0.3s;
}
.blog-card-feed:hover h3 { color: var(--primary); }
.blog-card-feed p {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.55;
  flex-grow: 1;
  margin: 0;
}

/* Latest posts grid auto - 4 cols on desktop, hợp 1-2-3-4 posts */
#latest-posts {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
}
@media (max-width: 1100px) {
  #latest-posts { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
  #latest-posts { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
}
@media (max-width: 480px) {
  #latest-posts { grid-template-columns: 1fr !important; }
}

/* Blog listing page (/blog/) - 3 cột default */
.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-listing {
  padding: 64px 0 96px;
}
.blog-listing-head {
  text-align: center;
  margin-bottom: 48px;
}
.blog-listing-head .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(109, 40, 217, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-listing-head h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.blog-listing-head p {
  font-size: 17px;
  color: var(--text-mute);
  max-width: 600px;
  margin: 0 auto;
}

/* Pagination */
.ttm-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.ttm-pagination .page-numbers {
  display: flex;
  list-style: none;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.ttm-pagination .page-numbers li {
  list-style: none;
}
.ttm-pagination .page-numbers a,
.ttm-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.ttm-pagination .page-numbers a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.ttm-pagination .page-numbers .current {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}


/* Case study với image upload (override cũ - hiển thị ảnh thật khi có) */
.case-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gradient-primary);
}
.case-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.case-thumb-img + .case-thumb-placeholder {
  display: none;
}

/* Value card với image */
.value-card-img {
  position: relative;
  overflow: hidden;
}
.value-card-img-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.value-card-img-real + .value-card-img-placeholder {
  display: none;
}

/* Tool mockup screenshot upload */
.tool-mockup-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  z-index: 1;
}

/* Hero card 1 background image */
.hero-card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
  mix-blend-mode: overlay;
}

/* Testi avatar image */
.testi-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}


/* ============================================
   MOBILE RESPONSIVE FIX v1.1
   Append vào cuối style.css để override
   ============================================ */

/* ===== TABLET (1024px) ===== */
@media (max-width: 1024px) {
  :root {
    --pad-x: clamp(16px, 4vw, 32px);
  }

  /* Header */
  .header-inner { gap: 16px; }
  .nav { gap: 20px; font-size: 14px; }
  .header-phone { font-size: 13px; }
  .header-cta { padding: 10px 18px; font-size: 13px; }

  /* Hero - chuyển 1 cột sớm hơn */
  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
  .hero-visual {
    position: relative !important;
    height: auto !important;
    min-height: 460px;
    max-width: 100% !important;
    margin: 0 auto;
  }

  /* Grids xuống 2 cột */
  .cases-grid,
  .process-grid,
  .why-grid,
  .testi-grid,
  .types-grid,
  .work-grid,
  .blog-listing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .agency-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .value-grid { grid-template-columns: 1fr; }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .pricing-card.featured { transform: none !important; }

  /* Tool + Contact 1 col */
  .tool-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  /* Custom cursor off cho touch */
  body { cursor: auto !important; }
  .cursor { display: none !important; }
  body * { cursor: auto !important; }
  a, button { cursor: pointer !important; }
}

/* ===== MOBILE LARGE (768px) ===== */
@media (max-width: 768px) {
  /* Hide nav menu, hide phone display */
  .nav { display: none !important; }
  .header-phone { display: none !important; }
  .header-inner { padding: 14px 16px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; font-size: 14px; }
  .brand small { font-size: 10px; }
  .header-cta { padding: 9px 16px; font-size: 12.5px; }

  /* Section padding giảm */
  .section { padding: 56px 0 !important; }
  .section-title { margin-bottom: 36px; }
  .section-title h2 { font-size: clamp(26px, 7vw, 36px) !important; }
  .section-title p { font-size: 15px; padding: 0 8px; }
  .eyebrow { font-size: 12px; padding: 6px 14px; }

  /* Typography mobile */
  h1 { font-size: clamp(32px, 8vw, 44px) !important; }
  h2 { font-size: clamp(26px, 7vw, 36px) !important; }
  h3 { font-size: clamp(20px, 5.5vw, 26px) !important; }
  body { font-size: 15px; }

  /* HERO mobile fix - QUAN TRỌNG */
  .hero { padding: 40px 0 56px !important; }
  .hero-inner { gap: 36px !important; }
  .hero-tagline { font-size: 12px; margin-bottom: 14px; }
  .hero-tagline::before { font-size: 11px; padding: 3px 8px; }
  .hero h1 {
    font-size: clamp(32px, 8.5vw, 44px) !important;
    line-height: 1.1 !important;
  }
  .hero-desc {
    font-size: 15px;
    margin-top: 18px;
  }
  .hero-bullets {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 22px;
  }
  .hero-bullets li { font-size: 14px; }
  .hero-cta {
    margin-top: 28px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-cta .btn {
    justify-content: center;
    padding: 14px 22px;
    font-size: 14.5px;
  }
  .hero-awards {
    margin-top: 32px;
    padding-top: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .hero-awards-list { gap: 12px; }
  .hero-award { width: 52px; height: 52px; }
  .hero-award svg { width: 28px; height: 28px; }

  /* HERO VISUAL CARDS - fix vỡ trên mobile */
  .hero-visual {
    height: auto !important;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .hero-card {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
  }
  .hero-card-1 {
    height: auto !important;
    min-height: 280px;
    padding: 24px;
  }
  .hero-card-1-stat {
    font-size: 48px !important;
    margin-top: 16px;
  }
  .hero-card-1-bottom {
    position: relative !important;
    inset: auto !important;
    margin-top: 24px;
    padding-top: 16px;
    font-size: 13px;
  }
  .hero-card-2 {
    width: 100% !important;
    height: auto !important;
    padding: 18px;
    transform: none !important;
  }
  .hero-card-2:hover { transform: none !important; }
  .hero-card-2-num { font-size: 32px; }
  .hero-card-2-label { font-size: 12.5px; }
  .hero-card-3 {
    width: 100% !important;
    padding: 18px;
    transform: none !important;
  }
  .hero-card-3:hover { transform: none !important; }
  .hero-card-3-quote { font-size: 13.5px; }

  /* Grid xuống 1 cột */
  .cases-grid,
  .process-grid,
  .why-grid,
  .testi-grid,
  .types-grid,
  .work-grid,
  .agency-stats-grid,
  .blog-listing-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Cards mobile */
  .case-card, .why-card, .work-card, .type-card, .testi-card, .process-step, .agency-stat {
    padding: 24px 22px !important;
  }
  .case-thumb { aspect-ratio: 16/9; }
  .case-stats { gap: 8px; }
  .case-stat { padding: 10px 6px; }
  .case-stat-num { font-size: 16px; }
  .case-stat-label { font-size: 9.5px; }
  .testi-card { padding: 24px 22px; }
  .testi-quote { font-size: 14px; }
  .pricing-card {
    padding: 32px 24px !important;
  }
  .pricing-price-amount { font-size: 40px; }

  /* Tool section */
  .tool-features {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .tool-feature { font-size: 14px; }
  .tool-mockup { padding: 18px; }
  .tool-mockup-row { padding: 10px 12px; font-size: 12px; }

  /* Offices */
  .offices-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .office { padding: 24px 22px; }
  .office-meta {
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
  }

  /* Value cards */
  .value-card {
    grid-template-columns: 1fr !important;
    padding: 18px;
  }
  .value-card-img {
    max-width: 100%;
    aspect-ratio: 2/1;
  }

  /* Form mobile */
  .form-card {
    padding: 24px 20px !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .form-field input,
  .form-field textarea {
    padding: 12px 14px;
    font-size: 14.5px;
  }

  /* Footer mobile */
  .footer { padding: 56px 0 24px; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding-bottom: 36px;
  }
  .footer-about p { font-size: 13.5px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 12.5px;
  }
  .footer-bottom-links { gap: 16px; }

  /* Float CTA */
  .float-cta {
    bottom: 16px;
    right: 16px;
  }
  .float-btn {
    width: 50px;
    height: 50px;
  }

  /* Logo wall mobile */
  .logos { padding: 32px 0; }
  .logos-track { gap: 32px; }
  .logo-item {
    height: 38px;
    font-size: 17px;
    padding: 0 12px;
  }

  /* Press logos */
  .press-logos { gap: 28px !important; }
  .press-logo { font-size: 15px; height: 36px; }

  /* Single post mobile */
  .post-hero {
    padding: 48px 0 28px !important;
  }
  .post-title {
    font-size: clamp(26px, 7vw, 36px) !important;
  }
  .post-content {
    padding: 32px 18px !important;
    font-size: 16px;
  }
  .post-content h2 { font-size: clamp(22px, 6vw, 28px) !important; }
  .post-content h3 { font-size: clamp(18px, 5vw, 22px) !important; }
  .author-box {
    padding: 20px;
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }
  .author-avatar { width: 48px; height: 48px; font-size: 18px; }
  .post-meta {
    gap: 12px;
    font-size: 12.5px;
    flex-direction: column;
  }
  .post-nav {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .post-nav > div:last-child {
    text-align: left !important;
  }

  /* Page hero */
  .static-page-hero { padding: 48px 0 28px !important; }
  .static-page-title {
    font-size: clamp(28px, 7vw, 40px) !important;
  }

  /* Blog listing card mobile */
  .blog-card-feed-body { padding: 18px; }
  .blog-card-feed h3 { font-size: 17px; }
  .blog-card-feed p { font-size: 13px; }

  /* Announce bar mobile */
  .announce { font-size: 11.5px; padding: 8px 0; }
  .announce-track { gap: 36px; }

  /* Loader mobile */
  .loader-logo { width: 72px; height: 72px; font-size: 28px; border-radius: 18px; }
  .loader-brand { font-size: 26px !important; }
  .loader-rotate { font-size: 12px; }
  .loader-rotate-words { min-width: 140px; }
  .loader-terminal {
    font-size: 10.5px;
    max-width: 280px;
    padding: 12px 14px;
  }
  .loader-progress { width: 200px; }
}

/* ===== MOBILE SMALL (480px) ===== */
@media (max-width: 480px) {
  .header-inner { padding: 12px 14px; }
  .brand small { display: none; }
  .header-cta {
    padding: 8px 14px;
    font-size: 12px;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  h1 { font-size: clamp(28px, 9vw, 38px) !important; }
  h2 { font-size: clamp(24px, 8vw, 32px) !important; }

  .hero { padding: 32px 0 48px !important; }
  .hero h1 {
    font-size: clamp(28px, 9vw, 38px) !important;
  }
  .hero-card-1 { padding: 20px; }
  .hero-card-1-stat { font-size: 40px !important; }

  .section { padding: 48px 0 !important; }

  .testi-card, .case-card, .why-card, .pricing-card {
    padding: 22px 18px !important;
  }

  .pricing-price-amount { font-size: 36px; }

  .form-card { padding: 22px 16px !important; }

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

  .loader-brand { font-size: 22px !important; }
  .loader-terminal {
    font-size: 10px;
    max-width: 240px;
  }
  .loader-progress { width: 160px; }
}

/* ===== TINY (360px) ===== */
@media (max-width: 360px) {
  .header-cta { display: none; }
  .brand-mark { width: 30px; height: 30px; font-size: 12px; }
  .brand { font-size: 15px; }
}

/* ===== TOUCH DEVICE FIXES ===== */
@media (hover: none) {
  /* Disable hover transforms that look weird on touch */
  .case-card:hover,
  .why-card:hover,
  .testi-card:hover,
  .process-step:hover,
  .work-card:hover,
  .type-card:hover,
  .agency-stat:hover,
  .pricing-card:hover,
  .hero-card:hover,
  .hero-award:hover,
  .blog-card-feed:hover,
  .header-cta:hover,
  .btn:hover,
  .form-submit:hover {
    transform: none !important;
  }

  /* Sweep effect off */
  .case-card::after,
  .why-card::after,
  .testi-card::after,
  .work-card::after,
  .type-card::after,
  .process-step::after {
    display: none !important;
  }
}

/* ===== SAFE AREA INSETS (iPhone notch) ===== */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .float-cta {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
  }
}

/* ===== PRINT FRIENDLY (bonus) ===== */
@media print {
  .page-loader,
  .scroll-progress,
  .cursor,
  .float-cta,
  .announce,
  .header-cta,
  .form-card { display: none !important; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}


/* ============================================
   PRESS LOGOS — Image upload support
   ============================================ */
.press-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 18px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}
.press-logo-img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: all 0.3s var(--ease);
}
.press-logo:hover .press-logo-img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}
.press-logo-text {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-mute);
  transition: color 0.3s;
}
.press-logo:hover .press-logo-text { color: var(--primary); }

@media (max-width: 768px) {
  .press-logo { height: 44px; padding: 0 12px; }
  .press-logo-img { height: 28px; max-width: 110px; }
  .press-logo-text { font-size: 15px; }
}


/* ============================================
   SOCIAL SHARE BUTTONS
   ============================================ */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.25s var(--ease);
  background: white;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.share-btn.share-fb:hover { background: #1877F2; color: white; border-color: #1877F2; }
.share-btn.share-li:hover { background: #0A66C2; color: white; border-color: #0A66C2; }
.share-btn.share-tw:hover { background: #000; color: white; border-color: #000; }
.share-btn.share-zalo:hover { background: #0068FF; color: white; border-color: #0068FF; }
.share-btn.share-email:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Related posts grid mobile */
@media (max-width: 1024px) {
  .related-posts-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .related-posts-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .post-share .share-btn span { display: none; }
  .post-share .share-btn { padding: 10px; }
}


/* ============================================
   HEADER SEARCH ICON + OVERLAY
   ============================================ */
.header-search-toggle {
  background: none;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.header-search-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(-5deg);
}

.ttm-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 31, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  padding-left: 20px;
  padding-right: 20px;
}
.ttm-search-overlay.open { display: flex; }

.ttm-search-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 560px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: searchIn 0.3s var(--ease);
}
@keyframes searchIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.ttm-search-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--text-mute);
  cursor: pointer;
  width: 32px;
  height: 32px;
}
.ttm-search-close:hover { color: var(--primary); }

.ttm-search-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.ttm-search-input:focus {
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .header-search-toggle { width: 36px; height: 36px; }
  .ttm-search-box { padding: 24px 20px; }
  .ttm-search-overlay { padding-top: 12vh; }
}


/* ============================================
   STICKY BOTTOM CTA (Mobile only)
   ============================================ */
.ttm-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
  padding: 12px 16px;
  z-index: 998;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  display: none;
}
.ttm-sticky-cta.show { transform: translateY(0); }
.ttm-sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}
.ttm-sticky-cta-text {
  flex: 1;
  min-width: 0;
}
.ttm-sticky-cta-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.ttm-sticky-cta-text small {
  display: block;
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 1px;
}
.ttm-sticky-cta-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  transition: transform 0.2s;
}
.ttm-sticky-cta-btn:hover { transform: scale(1.04); }
.ttm-sticky-cta-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-mute);
  cursor: pointer;
  padding: 4px;
}
.ttm-sticky-cta-close:hover { color: var(--text); }

/* Chỉ hiện trên mobile */
@media (max-width: 768px) {
  .ttm-sticky-cta { display: block; }
  body { padding-bottom: 70px; }
  .float-cta { bottom: 80px; }
}
