/* ==========================================================================
   BEABIAI — static site styles
   Plain CSS · system fonts · no external dependencies · light + dark
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-card: #ffffff;
  --text: #0f1b2d;
  --text-soft: #46566b;
  --text-muted: #6a7a90;
  --border: #e4eaf2;
  --border-strong: #cbd6e4;
  --brand: #4f46e5; /* indigo */
  --brand-2: #2563eb; /* blue */
  --brand-dark: #3730a3;
  --brand-soft: #eef0ff;
  --accent: #0ea5a4; /* teal */
  --ring: rgba(79, 70, 229, 0.35);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06), 0 1px 1px rgba(15, 27, 45, 0.04);
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 27, 45, 0.14);
  --maxw: 1120px;
  --header-bg: rgba(255, 255, 255, 0.82);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-soft: #0f1828;
    --bg-card: #131e30;
    --text: #eaf0f8;
    --text-soft: #b3c1d4;
    --text-muted: #8595aa;
    --border: #233246;
    --border-strong: #324358;
    --brand: #7c83ff;
    --brand-2: #5b8dff;
    --brand-dark: #6366f1;
    --brand-soft: #1a2238;
    --accent: #2dd4bf;
    --ring: rgba(124, 131, 255, 0.45);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.6);
    --header-bg: rgba(11, 18, 32, 0.78);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  line-height: 1.18;
  color: var(--text);
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  font-weight: 750;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 2px 6px;
  border-radius: 6px;
  word-break: break-word;
}

@media (prefers-color-scheme: dark) {
  code {
    color: var(--text);
  }
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.brand:hover {
  text-decoration: none;
}

.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 55%, var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-soft);
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 550;
}

.nav-links a:hover {
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  background: var(--brand);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-cta:hover {
  background: var(--brand-dark) !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 8px 11px;
  cursor: pointer;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 22px 20px;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 12px;
  }

  .nav-links .nav-cta {
    margin-top: 6px;
    text-align: center;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 11px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--text-muted);
}

.btn-block {
  width: 100%;
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head p {
  color: var(--text-soft);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 15px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 92px 0 84px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(820px 420px at 78% -8%, var(--brand-soft), transparent 70%),
    radial-gradient(
      640px 380px at -5% 4%,
      rgba(14, 165, 164, 0.13),
      transparent 62%
    );
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(79, 70, 229, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(79, 70, 229, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(
    700px 360px at 60% 0%,
    #000 30%,
    transparent 75%
  );
  mask-image: radial-gradient(700px 360px at 60% 0%, #000 30%, transparent 75%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero h1 {
  max-width: 16ch;
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--text-soft);
  max-width: 56ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 52ch;
}

.hero-note svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--accent);
}

/* Hero illustrative flow card (pure CSS, not a screenshot) */
.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

.hv-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.hv-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
  display: inline-block;
}

.hv-bar span {
  margin-left: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hv-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--bg);
}

.hv-row:last-child {
  margin-bottom: 0;
}

.hv-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: 0 0 auto;
}

.hv-ic svg {
  width: 20px;
  height: 20px;
}

.hv-ic.yt {
  background: #ff0000;
}

.hv-ic.tt {
  background: #111827;
}

.hv-ic.ig {
  background: linear-gradient(135deg, #feda75, #d62976 55%, #4f5bd5);
}

.hv-ic.fb {
  background: #1877f2;
}

.hv-ic.th {
  background: #000000;
}

.hv-ic.sp {
  background: #ee4d2d;
}

.hv-ic.ts {
  background: #fe2c55;
}

.hv-ic.ok {
  background: var(--accent);
}

.hv-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.hv-meta b {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.hv-meta small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.hv-status {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.hv-status.green {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
}

.hv-status.blue {
  color: var(--brand-2);
  background: rgba(37, 99, 235, 0.13);
}

.hv-status.amber {
  color: #b45309;
  background: rgba(245, 158, 11, 0.16);
}

@media (prefers-color-scheme: dark) {
  .hv-status.amber {
    color: #fbbf24;
  }
}

@media (prefers-color-scheme: dark) {
  .hv-status.green {
    color: #34d399;
  }
}

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 22px 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  align-items: center;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
}

.trust-item svg {
  color: var(--accent);
  flex: 0 0 auto;
}

/* ---------- Grid / cards ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 920px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card.hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--text-soft);
  margin-bottom: 0;
  font-size: 0.98rem;
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon svg {
  width: 24px;
  height: 24px;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  margin-bottom: 15px;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.3);
}

/* Two-column feature split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 13px;
  color: var(--text-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(14, 165, 164, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230ea5a4' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Platform badges */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 26px;
  font-weight: 650;
  box-shadow: var(--shadow-sm);
}

.platform .pic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.platform .pic svg {
  width: 20px;
  height: 20px;
}

.pic.yt {
  background: #ff0000;
}

.pic.tt {
  background: #111827;
}

.pic.ig {
  background: linear-gradient(135deg, #feda75, #d62976 55%, #4f5bd5);
}

.pic.fb {
  background: #1877f2;
}

.pic.th {
  background: #000000;
}

.pic.sp {
  background: #ee4d2d;
}

.pic.ts {
  background: #fe2c55;
}

.platform small {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- FAQ accordion ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 19px 22px;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}

.faq-trigger:hover {
  background: var(--bg-soft);
}

.faq-trigger .chev {
  flex: 0 0 auto;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.faq-trigger .chev svg {
  width: 20px;
  height: 20px;
  display: block;
}

.faq-trigger[aria-expanded="true"] .chev {
  transform: rotate(180deg);
  color: var(--brand);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-panel-inner {
  padding: 0 22px 19px;
}

.faq-panel p {
  color: var(--text-soft);
  margin: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 52px 44px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px 200px at 80% 0%,
    rgba(255, 255, 255, 0.18),
    transparent 70%
  );
  pointer-events: none;
}

.cta-band h2 {
  color: #fff;
  position: relative;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 60ch;
  margin: 0 auto 26px;
  position: relative;
}

.cta-band .cta-actions {
  position: relative;
}

.cta-band .btn-secondary {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
}

.cta-band .btn-secondary:hover {
  background: #eef2ff;
}

.cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Legal / content pages ---------- */
.page-hero {
  position: relative;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 62px 0 46px;
}

.page-hero p {
  color: var(--text-soft);
  max-width: 72ch;
  margin-bottom: 0;
  font-size: 1.06rem;
}

.meta-dates {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 52px 0 72px;
}

.prose h2 {
  margin-top: 2.1em;
  font-size: 1.45rem;
  scroll-margin-top: 90px;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.7em;
}

.prose p,
.prose li {
  color: var(--text-soft);
}

.prose ul,
.prose ol {
  padding-left: 24px;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 9px;
}

.callout {
  background: var(--brand-soft);
  border: 1px solid rgba(79, 70, 229, 0.28);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 26px 0;
}

.callout p {
  margin: 0;
  color: var(--text);
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.toc ul {
  margin: 0;
  padding-left: 18px;
  columns: 2;
  column-gap: 28px;
}

@media (max-width: 600px) {
  .toc ul {
    columns: 1;
  }
}

.toc li {
  margin-bottom: 7px;
}

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  text-align: center;
}

.contact-card .icon {
  margin-left: auto;
  margin-right: auto;
}

.contact-card .role {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-card a.email {
  font-weight: 650;
  font-size: 1.02rem;
  word-break: break-word;
}

.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 30px;
  box-shadow: var(--shadow-sm);
}

.info-box dl {
  margin: 0;
}

.info-box dt {
  font-weight: 700;
  color: var(--text);
  margin-top: 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-box dt:first-child {
  margin-top: 0;
}

.info-box dd {
  margin: 4px 0 0;
  color: var(--text-soft);
}

.steps-ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps-ol > li {
  position: relative;
  padding: 0 0 26px 56px;
  border-left: 2px solid var(--border);
  margin-left: 18px;
}

.steps-ol > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.steps-ol > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -18px;
  top: -2px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  box-shadow: 0 5px 12px rgba(79, 70, 229, 0.3);
}

.steps-ol > li h3 {
  margin: 2px 0 6px;
}

.steps-ol > li p {
  color: var(--text-soft);
  margin: 0;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 56px 0 34px;
  margin-top: 8px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.93rem;
  max-width: 44ch;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 13px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 84ch;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.lead {
  font-size: 1.12rem;
  color: var(--text-soft);
}

/* ==========================================================================
   AI Media — page redesign (Showreel → Dịch vụ → Portfolio → Quy trình →
   Lợi ích → Liên hệ). Scoped classes are prefixed .aim- so nothing here
   leaks onto other pages; shared classes (.hero, .hero-grid, .btn,
   .hhv-play, .hhv-placeholder, the reveal-* engine) are reused as-is.
   ========================================================================== */

/* --- Floating contact cluster: step aside near the footer/final CTA --- */
.floating-cta {
  transition: opacity .25s ease, transform .25s ease;
}
.floating-cta.is-hidden {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Shared easing + base state -------------------------------------------- */
[class*="reveal"] {
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
}

/* Blur-up entrance (hero text, section heads) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(7px);
  transition: opacity .75s var(--ease-out-expo),
              transform .75s var(--ease-out-expo),
              filter .75s var(--ease-out-expo);
}
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

/* Scale in (hero showreel card) */
.reveal-scale {
  opacity: 0;
  transform: scale(.93) translateY(18px);
  transition: opacity .95s var(--ease-out-expo), transform .95s var(--ease-out-expo);
}
.reveal-scale.is-visible { opacity: 1; transform: scale(1) translateY(0); }

/* Quick pop (service/process cards) */
.reveal-pop {
  opacity: 0;
  transform: scale(.7);
  transition: opacity .45s var(--ease-out-expo), transform .45s cubic-bezier(.34, 1.4, .64, 1);
}
.reveal-pop.is-visible { opacity: 1; transform: scale(1); }

/* Cards lift from below (shared with Trang chủ) */
.reveal-lift {
  opacity: 0;
  transform: translateY(46px) scale(.97);
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}
.reveal-lift.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* Portfolio — alternating slide (JS adds .from-left / .from-right) */
.reveal-side {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}
.reveal-side.from-left { transform: translateX(-50px); }
.reveal-side.is-visible { opacity: 1; transform: translateX(0); }

/* Grow into place (benefits panel, final CTA) */
.reveal-grow {
  opacity: 0;
  transform: scale(.88);
  transition: opacity .75s var(--ease-out-expo), transform .75s var(--ease-out-expo);
}
.reveal-grow.is-visible { opacity: 1; transform: scale(1); }

/* Plain fade (shared with Trang chủ) */
.reveal-soft {
  opacity: 0;
  transition: opacity .9s ease;
}
.reveal-soft.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  [class*="reveal"],
  [class*="reveal"].is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 640px) {
  /* Faster reveals: with many cards on a small screen, 0.7-0.95s per
     section reads as sluggish — cap every AI Media entrance at ~0.5s. */
  .ai-media-page [class*="reveal"] {
    transition-duration: .5s !important;
  }
}

/* ---- 01. Hero / Showreel ---- */
.ai-media-page .hero-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }

.aim-hero-title { display: flex; flex-direction: column; }
.aim-hero-title span { display: block; }
.aim-hero-title-accent {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aim-hero-note {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  max-width: 260px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--text-muted);
}

.aim-showreel {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0b1020;
  box-shadow: var(--shadow-lg);
}
.aim-showreel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aim-showreel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, transparent 28%, transparent 60%, rgba(0, 0, 0, .55) 100%);
  pointer-events: none;
}
.aim-showreel-badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.hhv-play.lg { width: 76px; height: 76px; }
.hhv-play.lg svg { width: 28px; height: 28px; margin-left: 3px; }
.aim-showreel:hover .hhv-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: #fff;
}
.aim-showreel-timer {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .88);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 920px) {
  .ai-media-page .hero-grid { grid-template-columns: 1fr; }
  .aim-showreel { aspect-ratio: 16 / 10; }
}

/* ---- 02. Nhóm dịch vụ ---- */
.aim-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.aim-service-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  color: #fff;
  text-decoration: none;
}
.aim-service-card img,
.aim-service-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease-out-expo);
}
.aim-service-card:hover img,
.aim-service-card:hover video { transform: scale(1.03); }
.aim-service-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .75) 100%);
  transition: opacity .3s ease;
}
.aim-service-card:hover .aim-service-scrim { opacity: .92; }
.aim-service-label {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: .98rem;
}
.aim-service-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  transition: transform .25s ease, background .25s ease;
}
.aim-service-card:hover .aim-service-arrow {
  transform: translateX(3px);
  background: rgba(255, 255, 255, .28);
}

@media (max-width: 760px) {
  .aim-services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- 03. Dự án nổi bật ---- */
.aim-portfolio-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.aim-portfolio-head h2 { margin: 0; }
.aim-see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--brand);
  white-space: nowrap;
}
.aim-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.aim-portfolio-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
}
.aim-portfolio-card img,
.aim-portfolio-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aim-portfolio-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .68) 100%);
}
.aim-portfolio-label {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .aim-portfolio-grid { grid-template-columns: 1fr; }
}

/* ---- 04. Quy trình đơn giản ---- */
.aim-process-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.aim-process-head h2 { margin: 0; }
.aim-process-note {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.aim-process-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.aim-process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aim-process-num {
  font-size: .78rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: .06em;
}
.aim-process-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
}
.aim-process-icon svg { width: 22px; height: 22px; }
.aim-process-step h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.aim-process-step p { margin: 0; color: var(--text-soft); font-size: .92rem; }
.aim-process-arrow {
  flex-shrink: 0;
  margin-top: 34px;
  color: var(--border-strong);
}

@media (max-width: 760px) {
  .aim-process-row { flex-direction: column; align-items: stretch; }
  .aim-process-arrow { transform: rotate(90deg); margin: 0 0 0 21px; }
}

/* ---- 05. Lợi ích ---- */
.aim-benefits-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--brand-soft);
  border-radius: var(--radius-xl);
  padding: 44px 10px;
}
.aim-benefit {
  padding: 0 34px;
  border-left: 1px solid var(--border-strong);
}
.aim-benefit:first-child { border-left: none; }
.aim-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--bg-card);
  color: var(--brand);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.aim-benefit-icon svg { width: 21px; height: 21px; }
.aim-benefit h3 { margin: 0 0 6px; font-size: 1.05rem; }
.aim-benefit p { margin: 0; color: var(--text-soft); font-size: .9rem; }

@media (max-width: 760px) {
  .aim-benefits-panel { grid-template-columns: 1fr; gap: 26px; padding: 30px 24px; }
  .aim-benefit { padding: 0; border-left: none; }
}

/* ---- 06. CTA liên hệ ---- */
.aim-cta {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  background: linear-gradient(160deg, #0b1130, #131c3d 60%, #0b1130);
  border-radius: var(--radius-xl);
  padding: 56px;
  overflow: hidden;
  color: #fff;
}
.aim-cta-content .eyebrow {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.aim-cta-content h2 { color: #fff; margin: 10px 0 12px; }
.aim-cta-content p { color: rgba(255, 255, 255, .78); margin-bottom: 26px; max-width: 44ch; }
.aim-cta-art {
  position: relative;
  height: 260px;
}
.aim-cta-art::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(45% 55% at 62% 45%, rgba(124, 131, 255, .35), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.aim-cta-art::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(115deg, transparent 45%, rgba(124, 131, 255, .16) 60%, transparent 78%);
  clip-path: polygon(0% 100%, 22% 38%, 46% 72%, 68% 22%, 100% 60%, 100% 100%);
}
.aim-cta-portal {
  position: absolute;
  z-index: 1;
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
  width: 118px;
  height: 176px;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 6px;
  box-shadow: 0 0 40px 10px rgba(124, 131, 255, .5), 0 0 90px 30px rgba(124, 131, 255, .22);
}
.aim-cta-portal::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 100%;
  height: 70px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), transparent);
  opacity: .5;
}
.aim-cta-caption {
  position: absolute;
  z-index: 1;
  right: 6%;
  bottom: 8%;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  text-align: right;
  line-height: 1.8;
}

@media (max-width: 920px) {
  .aim-cta { grid-template-columns: 1fr; padding: 40px 28px; }
  .aim-cta-art { height: 180px; }
}

/* ==========================================================================
   Trang chủ — redesign (hero mockup, giải pháp, dự án nổi bật, hệ sinh
   thái, bảo mật, CTA). Scoped under .home-page so nothing here leaks onto
   /social/, /ecom/ etc. which reuse some of the same base classes
   (.hero, .card, .cta-band, .platforms).
   ========================================================================== */

/* .hhv-play / .hhv-placeholder are shared with the "Dự án nổi bật" media
   cards further down this file — the hero used to have its own instances of
   these (dark video card + calendar + product card) but that compound
   mockup was replaced by a single full-bleed background (see "Trang chủ —
   hero" below). Keep the shared rules, drop everything hero-card-specific. */
.hhv-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.hhv-play.is-playing {
  opacity: 0;
  pointer-events: none;
}

.home-featured-big:hover .hhv-play.is-playing,
.home-featured-small:hover .hhv-play.is-playing {
  opacity: 1;
  pointer-events: auto;
}

.hhv-play svg { width: 20px; height: 20px; margin-left: 2px; }
.hhv-play.sm { width: 34px; height: 34px; }
.hhv-play.sm svg { width: 14px; height: 14px; }

.home-featured-big:hover .hhv-play,
.home-featured-small:hover .hhv-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}

.hhv-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  height: 100%;
}

.hhv-placeholder.sm { font-size: 0.7rem; padding: 6px; }
.hhv-placeholder.full { font-size: 0.95rem; border-radius: 0; border-width: 2px; }
/* .desktop-only/.mobile-only (below) set display:block at higher specificity
   than the bare .hhv-placeholder rule above — restore inline-flex here so
   the placeholder text/background still center correctly. */
.home-hero-media .hhv-placeholder.full { display: inline-flex !important; }

/* ---- Trang chủ — Hero: full-bleed background photo/video ---- */
.home-hero-full {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  color: var(--text);
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-soft);
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-media .desktop-only { display: block; }
.home-hero-media .mobile-only { display: none; }

.home-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Body text (not just the bold headline) has to stay legible over a busy
     photo across its whole width, including where the description's second
     line runs — near-opaque at the left, still solidly readable out past
     the halfway mark, only fading in the outer third. */
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.62) 30%,
    rgba(255, 255, 255, 0.36) 50%,
    rgba(255, 255, 255, 0.1) 68%,
    transparent 84%
  );
}

@media (prefers-color-scheme: dark) {
  .home-hero-scrim {
    background: linear-gradient(
      100deg,
      rgba(11, 18, 32, 0.78) 0%,
      rgba(11, 18, 32, 0.62) 30%,
      rgba(11, 18, 32, 0.36) 50%,
      rgba(11, 18, 32, 0.1) 68%,
      transparent 84%
    );
  }
}

.home-hero-media-toggle {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(15, 27, 45, 0.35);
  backdrop-filter: blur(4px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-hero-media-toggle:hover { background: rgba(15, 27, 45, 0.55); }
.home-hero-media-toggle svg { width: 18px; height: 18px; }
.home-hero-media-toggle .icon-pause { display: none; }
.home-hero-media-toggle.is-playing .icon-pause { display: block; }
.home-hero-media-toggle.is-playing .icon-play { display: none; }

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  width: 100%;
  box-sizing: border-box;
  /* Deliberately NOT .container (which centers at max-width:1120px) — the
     reference hugs the true left edge of the viewport at any width, so
     this scales off the viewport instead of sitting in a centered column. */
  padding-left: clamp(24px, 6vw, 100px);
  padding-right: 24px;
  padding-top: 70px;
  padding-bottom: 70px;
  /* This box sits at z-index:2, above .home-hero-media's video/toggle
     button (z-index:0/2 — but scoped to that sibling's own stacking
     context, so it loses to this one regardless). On mobile especially,
     the box stretches to the full hero height/width for the bottom-pin
     layout below, so its "empty" areas would otherwise swallow clicks
     meant for the play/pause button sitting underneath. Turn off hit-
     testing here and re-enable it only on the actual controls. */
  pointer-events: none;
}
.home-hero-content .hero-actions { pointer-events: auto; }

.home-hero-title {
  display: flex;
  flex-direction: column;
  margin: 14px 0 18px;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.home-hero-title span { display: block; }

.home-hero-lead-cta { display: block; }
.home-hero-actions { margin-top: 22px; }

.home-hero-actions .btn {
  transition: background 0.18s ease, transform 0.05s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.home-hero-actions .btn svg { transition: transform 0.18s ease; }
.home-hero-actions .btn:hover svg { transform: translateX(3px); }
.home-hero-actions .btn-secondary:hover { background: var(--brand-soft); }

@media (max-width: 760px) {
  .home-hero-actions .btn { transition-duration: 0.12s; }
  .home-hero-actions .btn:active { transform: scale(0.98); }
}

/* ---- Bottom-left group: handwritten slogan, then the uppercase note ---- */
.home-hero-bottom { margin-top: 46px; }

.home-hero-side {
  display: block;
  margin-top: 14px;
  max-width: 220px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text);
}

.home-hero-side::after {
  content: "";
  display: block;
  margin: 10px 0 0;
  width: 0;
  height: 2px;
  background: var(--text);
  transition: width 0.35s var(--ease-out-expo);
}

.home-hero-side.is-visible::after { width: 46px; }

/* ---- "Good ideas move further." — script font, written-in wipe reveal ----
   font-family is set inline per-element from hero_slogan_font (admin can
   pick between a few script faces) — not fixed here. */
.home-hero-slogan {
  margin: 0;
  max-width: 230px;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--text);
  transform: rotate(-14deg);
  transform-origin: 0 100%;
}

/* 6. Hero text — fade + slight lift, quick (matches "Tiêu đề chính": 10px, 500ms) */
.reveal-hero-text {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.reveal-hero-text.is-visible { opacity: 1; transform: none; }

/* Fade only, no lift — used by the side note ("Hiện dần trong 450ms") */
.reveal-hero-side {
  opacity: 0;
  transition: opacity 0.45s var(--ease-out-expo);
}
.reveal-hero-side.is-visible { opacity: 1; }

/* Left-to-right wipe, as if the words were being written ("nét chữ được
   viết ra trong 900-1200ms"). A true pen-stroke trace needs the text as
   hand-drawn vector art; this is the closest practical approximation with
   real, editable text — the slogan stays a plain CharField in the admin. */
.reveal-slogan {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease-out-expo);
}
.reveal-slogan.is-visible { clip-path: inset(0 0 0 0); }

@media (max-width: 760px) {
  .home-hero-full {
    /* Not 0 — object-fit:cover's effective zoom depends on the container's
       own height, so letting a shorter, more compact text stack shrink
       this too meant less of the photo needed to be cropped away, which
       let previously-hidden content (the stray edge text) back into
       frame even with object-position pinned hard right. A floor here
       keeps the crop's zoom level consistent regardless of content
       height; any extra space just shows more of the photo — deliberately
       taller than the content needs, so .home-hero-bottom's margin-top:
       auto below has real room to push the slogan/note down and leave a
       clear stretch of photo between it and the CTA row. */
    min-height: 720px;
    padding: 0;
    /* stretch (not center) so .home-hero-content can fill the full height
       below — needed for .home-hero-bottom's margin-top:auto to pin the
       slogan/note to the bottom instead of it trailing right after the
       CTA row. */
    align-items: stretch;
  }
  /* Cluster the main block tightly in the top-left corner instead of
     letting it run the full height of the photo — shrink type and
     tighten spacing so it reads as a compact group with real photo
     showing below it, not a wall of text. Scoped to elements inside
     .home-hero-content/.home-hero-side rather than the bare
     .eyebrow/.hero-lead classes so other pages' mobile heroes (which use
     the same shared classes) are untouched. */
  .home-hero-content {
    display: flex;
    flex-direction: column;
    padding-top: 40px;
    padding-bottom: 24px;
  }
  .home-hero-content .eyebrow {
    font-size: 0.54rem;
    padding: 2px 7px;
    margin-bottom: 6px;
  }
  .home-hero-title {
    font-size: 1.15rem;
    line-height: 1.24;
    margin: 3px 0 6px;
  }
  .home-hero-content .hero-lead {
    font-size: 0.72rem;
    line-height: 1.45;
    margin-bottom: 10px;
    /* Keep it inside the top-left spotlight's reach — past ~190px the
       corner overlay has already faded, so a wider line would run under
       the photo's own baked-in text with nothing behind it for contrast. */
    max-width: 190px;
  }
  .home-hero-actions { margin-top: 0; gap: 6px; }
  .home-hero-actions .btn { padding: 7px 11px; font-size: 0.74rem; }
  /* Pinned to the bottom of the hero via margin-top:auto — leaves the
     photo clear in the middle instead of the slogan trailing right after
     the CTA row, and keeps it at the same corner it's always been in. */
  .home-hero-bottom { margin-top: auto; padding-top: 20px; }
  .home-hero-slogan { font-size: 1.35rem; max-width: 190px; }
  .home-hero-side { font-size: 0.68rem; max-width: none; }
  /* Two corner spotlights instead of a flat wash — a wash covering the
     whole photo dulled it everywhere, even the clear middle stretch where
     no text sits. Text only lives in two corners (the headline block top-
     left, the slogan/note group bottom-left), so each gets its own opaque
     patch that fades out fast; the rest of the photo stays untouched. */
  .home-hero-scrim {
    background:
      radial-gradient(ellipse 120% 62% at 0% 0%,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(255, 255, 255, 0.58) 38%,
        rgba(255, 255, 255, 0.2) 62%,
        transparent 78%),
      radial-gradient(ellipse 120% 50% at 0% 100%,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.45) 34%,
        transparent 66%);
  }
  /* Bias the crop right, away from the left edge — when no dedicated
     portrait crop is uploaded, this reuses the wide desktop photo and a
     centered object-position can let whatever sits at its left edge
     (baked-in text, background clutter) peek into frame. */
  .home-hero-bg.mobile-only { object-position: 100% center; }

  /* "Hiện cả khối cùng lúc" + "dịch lên tối đa 6px" — faster, shorter lift,
     no per-line stagger, no wait for the title to settle first. */
  .reveal-hero-text {
    transform: translateY(6px);
    transition-duration: 0.35s;
    transition-delay: 0ms !important;
  }
  /* "Giữ tĩnh hoặc hiện dần" — plain fade, skip the write-on wipe. */
  .reveal-slogan {
    clip-path: none;
    opacity: 0;
    transition: opacity 0.3s ease !important;
  }
  .reveal-slogan.is-visible { opacity: 1; }

  .home-hero-media .desktop-only { display: none; }
  .home-hero-media .mobile-only { display: block; }
}

@media (max-width: 760px) and (prefers-color-scheme: dark) {
  .home-hero-scrim {
    background:
      radial-gradient(ellipse 120% 62% at 0% 0%,
        rgba(11, 18, 32, 0.88) 0%,
        rgba(11, 18, 32, 0.58) 38%,
        rgba(11, 18, 32, 0.2) 62%,
        transparent 78%),
      radial-gradient(ellipse 120% 50% at 0% 100%,
        rgba(11, 18, 32, 0.8) 0%,
        rgba(11, 18, 32, 0.45) 34%,
        transparent 66%);
  }
}

/* ---- Ba giải pháp ---- */
.home-solution-card {
  display: flex;
  flex-direction: column;
}

.home-solution-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.home-solution-tag.ai { background: #f3e8ff; color: #7c3aed; }
.home-solution-tag.social { background: var(--brand-soft); color: var(--brand); }
.home-solution-tag.ecom { background: rgba(14, 165, 164, 0.14); color: var(--accent); }

@media (prefers-color-scheme: dark) {
  .home-solution-tag.ai { background: rgba(124, 58, 237, 0.22); color: #c4b5fd; }
}

.home-solution-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.home-solution-card h3 svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex: 0 0 auto;
  transition: transform 0.2s ease, color 0.2s ease;
}

.home-solution-card:hover h3 svg {
  transform: translateX(3px);
  color: var(--brand);
}

.home-solution-card p { color: var(--text-soft); margin-bottom: 20px; }

.home-solution-mock {
  margin-top: auto;
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 14px;
}

.mock-media { display: flex; flex-direction: column; gap: 10px; }
.mock-media-photo {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: linear-gradient(150deg, #4c1d95, #7c3aed 45%, #0ea5a4 130%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mock-media-photo .hhv-placeholder { border-color: rgba(255,255,255,.4); }
.mock-media-photo img,
.mock-media-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mock-media-list { display: flex; gap: 6px; }
.mock-media-list span {
  height: 6px;
  border-radius: 4px;
  background: var(--border-strong);
  flex: 1;
}
.mock-media-list span:nth-child(2) { flex: 1.6; background: var(--brand); }

.mock-cal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.mock-cal-head svg { width: 16px; height: 16px; color: var(--brand); }
.mock-cal-bars { display: flex; gap: 6px; align-items: flex-end; height: 34px; }
.mock-cal-bars i {
  flex: 1;
  border-radius: 4px;
  background: var(--border-strong);
  height: 40%;
}
.mock-cal-bars i.on { background: var(--brand); height: 100%; }

.mock-product-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mock-product-thumb .hhv-placeholder { color: var(--text-muted); border-color: var(--border-strong); }
.mock-product-thumb img,
.mock-product-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Overlaid on the photo (bottom-left) instead of sitting beside a small
   thumbnail — keeps this card's photo the same size as the other two
   solution cards instead of shrinking it to make room for the caption. */
.mock-product-info {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(15, 27, 45, 0.62);
  backdrop-filter: blur(3px);
  line-height: 1.25;
}
.mock-product-info b { display: block; font-size: 0.76rem; color: #fff; }
.mock-product-info small { color: rgba(255, 255, 255, 0.78); font-size: 0.68rem; }

/* ---- Dự án nổi bật ---- */
.home-featured-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.home-featured-head p { color: var(--text-soft); margin: 14px 0 22px; }

.home-featured-media { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }

.home-featured-big {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(150deg, #4c1d95, #7c3aed 45%, #0ea5a4 130%);
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.home-featured-big img,
.home-featured-small img,
.home-featured-big video,
.home-featured-small video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home-featured-big .hhv-placeholder,
.home-featured-small .hhv-placeholder {
  position: absolute;
  inset: 12px;
}

.home-featured-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 999px;
}

.home-featured-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #fff;
}
.home-featured-caption b { display: block; }
.home-featured-caption small { color: rgba(255, 255, 255, 0.8); }

.home-featured-small-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.home-featured-small {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1.66;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.home-featured-small-label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.home-featured-big:hover img,
.home-featured-small:hover img,
.home-featured-big:hover video,
.home-featured-small:hover video {
  transform: scale(1.05);
}

@media (max-width: 920px) {
  .home-featured-grid { grid-template-columns: 1fr; }
  .home-featured-media { grid-template-columns: 1fr; }
}

/* ---- Quy trình hệ sinh thái ---- */
.home-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.home-step {
  flex: 1 1 220px;
  max-width: 260px;
  text-align: center;
  padding: 8px 12px;
}

.home-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 14px;
}

.home-step-icon svg { width: 26px; height: 26px; }
.home-step h3 { margin-bottom: 6px; }
.home-step p { color: var(--text-soft); margin: 0; font-size: 0.92rem; }

.home-step-arrow {
  align-self: center;
  color: var(--border-strong);
  flex: 0 0 auto;
  margin-top: -60px;
}
.home-step-arrow svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .home-step-arrow { display: none; }

  /* One compact row of 3 instead of 3 stacked full-width rows — the page
     was getting very long with every section on its own row on mobile. */
  .home-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .home-step { max-width: none; padding: 0 4px; }
  .home-step-icon { width: 40px; height: 40px; margin-bottom: 8px; }
  .home-step-icon svg { width: 18px; height: 18px; }
  .home-step h3 { font-size: 0.85rem; margin-bottom: 4px; }
  .home-step p { font-size: 0.72rem; line-height: 1.3; }
}

/* ---- Bảo mật ---- */
.home-security-title {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 34px;
}

.home-security-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.home-security-item {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 280px;
}

.home-security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent);
  flex: 0 0 auto;
}
.home-security-icon svg { width: 20px; height: 20px; }
.home-security-item b { display: block; font-size: 0.92rem; }
.home-security-item p { margin: 2px 0 0; color: var(--text-muted); font-size: 0.84rem; }

@media (max-width: 760px) {
  /* Same one-row-of-3 treatment as .home-steps above, and for the same
     reason. Icon-beside-text doesn't fit a ~1/3-viewport column, so each
     item stacks icon-over-text here instead, like the ecosystem steps. */
  .home-security-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .home-security-item {
    max-width: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
  .home-security-icon { width: 40px; height: 40px; }
  .home-security-icon svg { width: 18px; height: 18px; }
  .home-security-item b { font-size: 0.8rem; }
  .home-security-item p { font-size: 0.7rem; }
}

/* ---- CTA tư vấn (variant of the shared dark .cta-band) ---- */
.home-cta {
  background: linear-gradient(135deg, var(--brand-soft), var(--bg-card) 65%);
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.home-cta::after { display: none; }
.home-cta h2 { color: var(--text); margin: 0 0 6px; }
.home-cta p { color: var(--text-soft); margin: 0; max-width: 44ch; text-align: left; }
.home-cta-deco { width: 30px; height: 30px; color: var(--brand); flex: 0 0 auto; }

@media (max-width: 700px) {
  .home-cta { text-align: center; justify-content: center; }
  .home-cta p { text-align: center; margin: 0 auto; }
}
