/* =========================================================
   Build Better. Grow Further. — Website design services
   ========================================================= */

:root {
  --navy: #031522;
  --navy-2: #061e2f;
  --navy-3: #0a2a40;
  --ink: #071b2d;
  --muted: #687789;
  --blue: #087df5;
  --cyan: #23d7f1;
  --paper: #f7f8f6;
  --line: #e1e8ed;
  --grad: linear-gradient(110deg, var(--blue), var(--cyan));
  --sans: 'Geist', system-ui, sans-serif;           /* nội dung */
  --display: 'Be Vietnam Pro', system-ui, sans-serif; /* tiêu đề, heading, menu */
  --script: 'Dancing Script', cursive;
  --pad-x: clamp(20px, 6vw, 120px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.dark { background: var(--navy); color: #fff; }

/* ---------- Shared ---------- */
.kicker {
  display: block;
  font-size: 11.5px;
  letter-spacing: .26em;
  font-weight: 800;
  text-transform: uppercase;
  color: #6bdfff;
  margin-bottom: 16px;
}
.kicker.blue { color: #1687ef; }

.hero h1, .section h2, .showcase h2, .process h2, .testimonials h2, .cta h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.035em;
}
h1, h2, h3, h4, .nav, .kicker, .brand-text { font-family: var(--display); }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  background: none;
  transition: transform .3s, box-shadow .3s, background .3s, border-color .3s;
}
.pill.sm { min-height: 42px; padding: 0 20px; font-size: 13px; }
.pill.full { width: 100%; }
.pill svg { font-size: 16px; }
.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(0,155,255,.22); }
.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,190,255,.38); }
.ghost, .outline { border-color: rgba(255,255,255,.45); color: #fff; }
.ghost:hover, .outline:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.outline-dark { border-color: #cfdbe4; color: var(--ink); }
.outline-dark:hover { border-color: var(--blue); color: var(--blue); }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--blue); }
.link:hover svg { transform: translateX(4px); }
.link svg { transition: transform .25s; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cyan); font-weight: 700; text-decoration: underline; }

.arrows { display: flex; gap: 10px; }
.arrow {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid #cfe0ec; background: #fff; color: var(--blue);
  transition: .25s;
}
.arrow:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.arrow.light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.arrow.light:hover { background: #fff; color: var(--ink); }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.04); color: #fff;
  font-size: 18px; transition: .25s;
}
.icon-btn:hover { background: rgba(255,255,255,.14); }

.checks { list-style: none; padding: 0; margin: 24px 0 30px; }
.checks li { display: flex; align-items: center; gap: 12px; margin: 10px 0; font-weight: 500; }
.checks li svg {
  width: 20px; height: 20px; padding: 4px; border-radius: 50%;
  background: var(--blue); color: #fff;
}
.checks.sm li { font-size: 14px; margin: 8px 0; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: 76px; padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(2,16,27,.75), rgba(2,16,27,.15));
  backdrop-filter: blur(10px);
  transition: height .35s, background .35s;
}
.header.scrolled { height: 66px; background: rgba(3,21,34,.92); backdrop-filter: blur(20px); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-text { font-size: 13px; font-weight: 700; line-height: 1.1; }
.brand-text b { display: block; font-size: 13px; font-weight: 600; color: var(--cyan); }
.logo-bars { height: 30px; width: 34px; display: flex; gap: 3px; align-items: flex-end; }
.logo-bars i { width: 9px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.logo-bars i:nth-child(1) { height: 11px; }
.logo-bars i:nth-child(2) { height: 20px; }
.logo-bars i:nth-child(3) { height: 30px; }

.nav { display: flex; gap: clamp(18px, 2.2vw, 34px); font-size: 13.5px; font-weight: 600; }
.nav a { opacity: .78; position: relative; padding: 6px 0; transition: opacity .2s; }
.nav a:hover, .nav a.active { opacity: 1; }
.nav a.active { color: var(--cyan); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--cyan); transition: right .3s;
}
.nav a:hover::after, .nav a.active::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 820px;
  padding: 150px var(--pad-x) 56px;
  display: grid; grid-template-columns: .85fr 1.15fr; grid-template-rows: 1fr auto;
  column-gap: 30px; row-gap: 40px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(19,138,203,.28), transparent 30%),
    linear-gradient(90deg, rgba(3,21,34,.98) 0 40%, rgba(3,21,34,.7)),
    url('https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=2200&q=80') center/cover;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 200px; pointer-events: none;
  background: linear-gradient(0deg, rgba(3,21,34,.85), transparent);
}
.hero-copy, .hero-devices, .hero-bottom { position: relative; z-index: 2; }
.hero-copy { align-self: center; }
.hero h1 { font-size: clamp(64px, 6.4vw, 118px); line-height: .9; margin: 0 0 28px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #fff 0 18%, #2edcf2 60%, #16a2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy > p { max-width: 560px; font-size: 17px; color: #d0dde6; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.play-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid rgba(255,255,255,.55); font-size: 11px;
}

/* Device mockups */
.hero-devices { min-height: 480px; perspective: 1400px; }
.dev { position: absolute; box-shadow: 0 40px 90px rgba(0,0,0,.55); }
.dev .screen { width: 100%; height: 100%; background: #fff center/cover no-repeat; overflow: hidden; position: relative; }
.laptop {
  left: 16%; top: 30px; width: 62%;
  transform: rotateY(-9deg) rotateX(3deg);
  box-shadow: none; z-index: 3;
}
.laptop .screen {
  height: 0; padding-bottom: 62%;
  border: 10px solid #111a22; border-bottom-width: 14px; border-radius: 14px 14px 4px 4px;
  box-shadow: 0 40px 90px rgba(0,0,0,.55);
}
.laptop-base {
  height: 16px; margin: 0 -7%;
  background: linear-gradient(180deg, #d9e1e6, #8c979f);
  border-radius: 2px 2px 14px 14px;
  box-shadow: 0 30px 50px rgba(0,0,0,.55);
}
.mini-nav { position: absolute; top: 5%; left: 6%; right: 6%; display: flex; gap: 6%; z-index: 2; }
.mini-nav i { height: 3px; flex: 1; background: rgba(120,140,155,.35); border-radius: 2px; }
.mini-nav i:first-child { flex: .5; background: #0b2233; }
.laptop-split { position: absolute; inset: 0; display: grid; grid-template-columns: .9fr 1.1fr; }
.laptop-copy {
  padding: 22% 8% 0 12%;
  font-family: var(--display); color: #102232;
  font-size: clamp(16px, 1.9vw, 34px); line-height: .98;
}
.laptop-copy em { font-style: italic; }
.laptop-copy span { display: block; width: 44%; height: 9%; min-height: 12px; margin-top: 12%; border-radius: 3px; background: #0b2233; }
.laptop-img { background: center/cover; }

.tablet {
  right: 0; top: 60px; width: 25%; height: 330px;
  border: 8px solid #1a232b; border-radius: 16px;
  transform: rotateY(-14deg) translateZ(-40px); z-index: 2;
}
.tablet .screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.45)); }
.screen-title {
  position: absolute; left: 10%; top: 12%; z-index: 1;
  font-family: var(--display); color: #fff; font-size: clamp(12px, 1.2vw, 20px); line-height: 1.05;
}
.phone {
  left: 4%; top: 150px; width: 13%; min-width: 72px; height: 250px;
  border: 6px solid #10171d; border-radius: 22px;
  transform: rotateY(12deg); z-index: 4;
}
.phone2 {
  left: 12%; top: 250px; width: 10%; min-width: 60px; height: 190px;
  border: 5px solid #10171d; border-radius: 18px;
  transform: rotateY(12deg); z-index: 5;
}
.phone .screen, .phone2 .screen { border-radius: 14px; }
.rock {
  position: absolute; left: 20%; right: 8%; bottom: -30px; height: 90px; z-index: 1;
  background: radial-gradient(ellipse at 50% 0%, rgba(90,120,140,.35), transparent 70%);
  filter: blur(6px);
}

.hero-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); }
.stats div { padding: 0 38px; border-left: 1px solid rgba(255,255,255,.18); }
.stats div:first-child { padding-left: 0; border-left: 0; }
.stats strong { display: block; font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; margin-bottom: 8px; }
.stats span { font-size: 13px; line-height: 1.45; color: #cad8e2; display: block; }

.hero-video { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 26px; }
.hero-video small { grid-column: 2; text-align: center; font-size: 12px; color: #cad8e2; margin-top: 8px; }
.vwords { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid rgba(255,255,255,.3); grid-row: span 2; }
.vwords li { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.7); line-height: 1.9; }
.round-play {
  width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.04); color: #fff;
  font-size: 20px; position: relative; transition: .3s;
}
.round-play::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(35,215,241,.4); animation: pulse 2.4s infinite;
}
.round-play:hover { background: #fff; color: var(--ink); }
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: 90px var(--pad-x); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; margin-bottom: 40px; }
.section-heading h2 { font-size: clamp(42px, 4.3vw, 70px); line-height: 1; margin: 0; }
.aside { max-width: 400px; }
.aside p { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.aside .arrows { margin-top: 18px; }
.categories .aside { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; }
.categories .aside p { grid-column: 1; }
.categories .aside .link { grid-column: 1; }
.categories .aside .arrows { grid-column: 2; grid-row: 1; margin: 0; align-self: start; }

/* Categories */
.categories { background: linear-gradient(180deg, #fff, var(--paper)); }
.category-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px 4px 20px; margin: -10px -4px 0;
}
.category-row::-webkit-scrollbar { display: none; }
.cat {
  scroll-snap-align: start;
  padding: 0 0 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; overflow: hidden; color: var(--ink);
  box-shadow: 0 8px 25px rgba(12,37,58,.06);
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.cat img, .cat-all { width: 100%; height: 96px; object-fit: cover; transition: transform .5s; }
.cat span { display: block; font-size: 12px; font-weight: 700; padding: 11px 6px 0; line-height: 1.35; }
.cat small { display: block; font-weight: 500; color: #7b8791; }
.cat:hover { transform: translateY(-6px); border-color: #8fdcf8; box-shadow: 0 18px 45px rgba(5,79,128,.15); }
.cat:hover img { transform: scale(1.07); }
.cat.active { background: #05233a; color: #fff; border-color: #05233a; }
.cat.active small { color: #9fb6c6; }
.cat-all { display: grid; place-items: center; font-size: 32px; background: linear-gradient(145deg, #0a3353, #031522); color: #fff; }
.cat.active .cat-all { background: none; }

/* Templates */
.templates {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 92% 85%, rgba(23,63,72,.9), transparent 26%),
    radial-gradient(circle at 5% 10%, rgba(8,125,245,.12), transparent 30%),
    linear-gradient(145deg, #031522, #071a29 65%, #020b12);
}
.section-heading.light h2 { color: #fff; }
.filters-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.filters { display: flex; gap: 4px; flex-wrap: wrap; }
.filters button {
  border: 0; background: transparent; color: #c8d2da;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; transition: .25s;
}
.filters button:hover { color: #fff; }
.filters button.active { background: #fff; color: var(--ink); }
.template-grid {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 44px) / 3); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px 4px 24px; margin: -10px -4px 0;
  perspective: 1200px;
}
.template-grid::-webkit-scrollbar { display: none; }
.template-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden; color: var(--ink);
  box-shadow: 0 18px 55px rgba(0,0,0,.3);
  transform-style: preserve-3d; transition: transform .25s;
  animation: cardIn .5s both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.thumb { height: 240px; position: relative; overflow: hidden; background: #dde6ec; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s; }
.thumb .num { position: absolute; left: 14px; top: 12px; font-size: 11px; font-weight: 800; color: #fff; letter-spacing: .1em; background: rgba(3,21,34,.55); padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(4px); }
.template-card:hover .thumb img { transform: scale(1.05); }
.card-content { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-content .tag { align-self: flex-start; font-size: 11px; font-weight: 600; background: #eef6fb; color: #0a5aa8; padding: 4px 10px; border-radius: 999px; }
.card-content h3 { font-size: 19px; margin: 12px 0 6px; line-height: 1.3; }
.card-content p { font-size: 14px; color: var(--muted); margin: 0 0 18px; flex: 1; }
.card-actions { display: flex; gap: 10px; }
.card-actions button { flex: 1; min-height: 44px; padding: 0 12px; font-size: 12.5px; }
.empty-note { color: #c8d2da; text-align: center; margin: 10px 0 0; }

/* Showcase */
.showcase { display: grid; grid-template-columns: 1fr 1.15fr; background: #fff; min-height: 640px; }
.show-copy { padding: 90px 5vw 80px var(--pad-x); align-self: center; }
.show-copy h2 { font-size: clamp(44px, 4.4vw, 74px); line-height: 1; margin: 0 0 24px; }
.show-copy > p { max-width: 560px; color: #5d6c7a; margin: 0; }
.show-cta { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.script {
  font-family: var(--script); color: #1687ef; font-size: 34px; line-height: .9;
  transform: rotate(-8deg); display: inline-block;
}
.script small { font-size: 21px; display: block; margin-left: 18px; }
.show-visual { position: relative; overflow: hidden; min-height: 640px; }
.show-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #fff 0, rgba(255,255,255,0) 22%),
    linear-gradient(0deg, rgba(3,21,34,.35), rgba(3,21,34,.1)),
    url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1600&q=80') center/cover;
}
.monitor {
  position: absolute; left: 16%; right: 14%; top: 18%; aspect-ratio: 16/10;
  border: 12px solid #0b1118; border-radius: 18px;
  box-shadow: 0 45px 90px rgba(0,0,0,.55);
  transform: perspective(1100px) rotateY(-10deg) rotateZ(-2deg);
  overflow: hidden;
}
.monitor-screen {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(4,17,28,.1), rgba(4,17,28,.55)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1200&q=85') center/cover;
}
.monitor-screen .mini-nav i { background: rgba(255,255,255,.35); }
.monitor-screen .mini-nav i:first-child { background: #fff; }
.monitor-screen span { position: absolute; left: 8%; bottom: 14%; font-family: var(--display); font-size: clamp(22px, 2.6vw, 42px); line-height: .95; color: #fff; }
.show-phone {
  position: absolute; left: 8%; bottom: 14%; width: 16%; aspect-ratio: 9/19;
  border: 7px solid #0b1118; border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.5); transform: rotate(-4deg);
}
.show-phone .screen { width: 100%; height: 100%; background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=500&q=80') center/cover; }
.dark-words { position: absolute; right: 5%; top: 8%; border-color: rgba(255,255,255,.5); }
.show-play { position: absolute; right: 7%; top: 52%; }
.show-play small { position: absolute; top: 80px; width: 100px; left: 50%; transform: translateX(-50%); font-size: 12px; text-align: center; }

/* Process */
.process {
  position: relative; overflow: hidden;
  padding: 100px var(--pad-x) 110px;
  background:
    radial-gradient(circle at 50% 110%, rgba(12,125,180,.25), transparent 40%),
    radial-gradient(circle at 0% 0%, rgba(8,125,245,.1), transparent 30%),
    var(--navy);
}
.process-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.process h2 { font-size: clamp(48px, 5vw, 84px); line-height: .95; margin: 0; }
.process-aside p { color: #b7c8d4; margin: 0 0 20px; font-size: 14.5px; }
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.journey-line { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: #17435d; overflow: hidden; }
.journey-line i {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, #0d8cff, #28e4f1); box-shadow: 0 0 18px #20dff3;
  transition: width 2s cubic-bezier(.2,.8,.2,1);
}
.journey.active .journey-line i { width: 100%; }
.step-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.step-no { background: var(--navy); padding-right: 14px; font-family: var(--display); font-size: 58px; color: #27dff3; line-height: 1; text-shadow: 0 0 24px rgba(39,223,243,.4); }
.step-arrow {
  width: 30px; height: 30px; border-radius: 50%; margin-right: -14px;
  display: grid; place-items: center; font-size: 13px;
  background: var(--navy); border: 1px solid #27a6d8; color: #6be7f7;
}
.step h3 { font-size: 18px; margin: 16px 0 14px; }
.step-visual {
  aspect-ratio: 16/10; border: 1px solid #275068; border-radius: 12px; overflow: hidden;
  background: #0b2638; box-shadow: 0 15px 40px rgba(0,0,0,.25);
}
.step-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.8); transition: .5s; }
.step:hover .step-visual img { transform: scale(1.06); filter: none; }
.step p { font-size: 14px; color: #b8c8d2; }

/* Testimonials */
.testimonials {
  padding: 100px var(--pad-x);
  display: grid; grid-template-columns: .8fr 1.5fr; gap: 50px;
  background: #f9faf8; position: relative; overflow: hidden;
}
.quote-title { position: relative; }
.quote-title h2 { font-size: clamp(40px, 3.6vw, 62px); line-height: 1; margin: 0 0 30px; }
.quote-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 20px;
}
.quote-row::-webkit-scrollbar { display: none; }
.quote {
  scroll-snap-align: start; margin: 0;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: 0 12px 35px rgba(9,36,57,.06);
}
.quote > svg { font-size: 34px; color: #1ca8f3; }
.quote p { font-size: 14px; color: #53636f; flex: 1; margin: 14px 0; }
.stars { display: flex; gap: 2px; color: #f5b301; font-size: 15px; margin-bottom: 18px; }
.quote footer { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
}
.quote strong { font-size: 14px; }
.quote small { display: block; font-weight: 500; color: #82909b; font-size: 12px; }

/* CTA */
.cta {
  position: relative; display: grid; grid-template-columns: 1fr 4fr;
  background: var(--navy); color: #fff; min-height: 300px;
}
.cta-side { background: linear-gradient(90deg, rgba(3,21,34,.2), rgba(3,21,34,.9)), url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=900&q=80') center/cover; }
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 60px var(--pad-x) 60px 60px;
  background: linear-gradient(90deg, rgba(3,21,34,.97), rgba(3,21,34,.55)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=2000&q=80') center/cover;
}
.cta h2 { font-size: clamp(38px, 3.6vw, 60px); line-height: 1; margin: 0 0 16px; }
.cta p { max-width: 640px; color: #d1dce4; margin: 0; font-size: 15px; }
.cta-right { display: flex; flex-direction: column; align-items: flex-end; gap: 28px; }
.trust { display: flex; align-items: center; gap: 14px; }
.trust p { font-size: 12px; margin: 0; color: #c3d2dc; line-height: 1.3; }
.trust strong { display: block; color: #fff; font-size: 14px; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; margin-left: -10px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--grad); border: 2px solid var(--navy);
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: linear-gradient(135deg, #f58a4b, #f5c44b); }
.avatars span:nth-child(3) { background: linear-gradient(135deg, #b44bf5, #f54b9a); }
.avatars span:last-child { background: #fff; color: var(--ink); }

/* Footer */
.footer { background: #02121e; color: #b8c7d2; padding: 80px var(--pad-x) 24px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 48px; }
.footer-about p { max-width: 340px; font-size: 13px; margin: 20px 0; }
.footer h4 { color: #fff; margin: 0 0 18px; font-size: 14px; }
.footer-grid a, .footer-grid p { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 9px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--cyan); }
.footer-contact svg { font-size: 16px; color: var(--cyan); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 34px; height: 34px; margin: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px;
  background: rgba(255,255,255,.08); color: #fff;
}
.socials a:hover { background: var(--grad); color: #fff; }
.footer-bottom {
  border-top: 1px solid #183244; margin-top: 56px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px;
}
.legal { display: flex; gap: 28px; }
.legal a:hover { color: var(--cyan); }

/* Floating contact */
.float-contact { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.fc {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font-size: 24px; color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,.25); transition: transform .25s, opacity .3s;
}
.fc:hover { transform: scale(1.08); }
.fc.zalo { background: #0068ff; font-size: 34px; }
.fc.call { background: #12b76a; animation: ring 2.4s infinite; }
.fc.top { background: var(--navy-3); border: 1px solid #1d4964; font-size: 16px; gap: 0; align-content: center; opacity: 0; pointer-events: none; }
.fc.top small { font-size: 9px; font-weight: 800; letter-spacing: .08em; line-height: 1; }
.fc.top.show { opacity: 1; pointer-events: auto; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(14deg); } 85% { transform: rotate(-10deg); } 90% { transform: rotate(8deg); } }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,12,20,.72); backdrop-filter: blur(6px); animation: fade .25s; }
.modal-card {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: #fff; border-radius: 20px; padding: 38px 34px 32px;
  box-shadow: 0 40px 100px rgba(0,0,0,.4); animation: pop .3s cubic-bezier(.2,.8,.2,1);
}
.modal-card.wide { width: min(1000px, 100%); padding: 20px; }
.modal-card.video { width: min(960px, 100%); padding: 0; background: #000; overflow: hidden; }
.modal-card.search { width: min(640px, 100%); padding: 28px; align-self: start; margin-top: 10vh; }
.modal-card h3 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 0 0 22px; }
.modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: #eef3f6; color: var(--ink); font-size: 18px;
}
.modal-card.video .modal-x { background: rgba(255,255,255,.15); color: #fff; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }

.consult-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full, .form-msg, .consult-form .pill { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 700; color: #3a4b5a; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 14px; color: var(--ink);
  border: 1px solid #d5e0e7; border-radius: 10px; padding: 11px 14px; background: #fbfcfd;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,125,245,.15); background: #fff; }
.field.invalid input { border-color: #e5484d; }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-size: 13px; min-height: 0; }
.form-msg.error { color: #d13438; }

.browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef3f6; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f26b5b; }
.browser-bar i:nth-child(2) { background: #f5c04b; }
.browser-bar i:nth-child(3) { background: #3fc55f; }
.browser-bar span { margin-left: 12px; flex: 1; font-size: 12px; color: var(--muted); background: #fff; border-radius: 6px; padding: 3px 12px; }
.browser img { width: 100%; max-height: 62vh; object-fit: cover; object-position: top; }
.preview-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 8px 6px; }
.preview-foot h3 { font-family: var(--sans); font-weight: 700; font-size: 20px; margin: 0 0 4px; }
.preview-foot p { margin: 0; color: var(--muted); font-size: 14px; }

.video-frame { aspect-ratio: 16/9; display: grid; place-items: center; color: #cfd9e0; text-align: center; padding: 30px; background: radial-gradient(circle, #0a2a40, #000); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.search-box { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--line); padding: 4px 44px 12px 0; font-size: 20px; color: var(--muted); }
.search-box input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 18px; color: var(--ink); background: none; }
.search-results { list-style: none; padding: 0; margin: 14px 0 0; max-height: 50vh; overflow: auto; }
.search-results li button {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: none; border: 0; padding: 10px; border-radius: 10px;
}
.search-results li button:hover { background: #f1f6f9; }
.search-results img { width: 70px; height: 46px; object-fit: cover; border-radius: 6px; }
.search-results strong { display: block; font-size: 14px; }
.search-results small { color: var(--muted); }
.search-results .none { color: var(--muted); padding: 10px; font-size: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 12px; font-size: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3); transition: .35s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Effects */
.cursor-light {
  position: fixed; width: 380px; height: 380px; border-radius: 50%; left: -500px; top: -500px;
  background: radial-gradient(circle, rgba(32,201,255,.08), transparent 65%);
  pointer-events: none; z-index: 50; transform: translate(-50%, -50%);
}
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.template-card.reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
    flex-direction: column; gap: 4px; padding: 90px 28px 30px;
    background: rgba(3,21,34,.98); backdrop-filter: blur(20px);
    font-size: 16px; transform: translateX(100%); transition: transform .35s;
    box-shadow: none;
  }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a::after { display: none; }
  .nav.open { transform: none; box-shadow: -20px 0 60px rgba(0,0,0,.4); }
  .menu-btn { display: grid; position: relative; z-index: 2; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-devices { min-height: 420px; }
  .template-grid { grid-auto-columns: calc((100% - 22px) / 2); }
  .quote-row { grid-auto-columns: calc((100% - 16px) / 2); }
  .testimonials { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .journey-line, .step-arrow { display: none; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .cta { grid-template-columns: 1fr; }
  .cta-side { display: none; }
  .cta-box { padding: 60px var(--pad-x); }
}

@media (max-width: 860px) {
  .section-heading, .process-head { display: block; }
  .aside, .process-aside, .filters-wrap { margin-top: 24px; }
  .filters-wrap { justify-content: flex-start; }
  .showcase { grid-template-columns: 1fr; }
  .show-copy { padding: 70px var(--pad-x) 50px; }
  .show-visual { min-height: 460px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .cta-right { align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .header { height: 64px; }
  .header-actions .pill { display: none; }
  .brand-text { font-size: 12px; }
  .hero { padding: 100px var(--pad-x) 40px; min-height: auto; row-gap: 20px; }
  .hero h1 { font-size: 58px; }
  .hero-copy > p { font-size: 15.5px; }
  .hero-actions .pill { flex: 1 1 100%; }
  .hero-devices { min-height: 260px; }
  .laptop { left: 10%; width: 78%; top: 10px; }
  .tablet { width: 30%; height: 180px; top: 40px; }
  .phone { top: 90px; height: 150px; left: 0; }
  .phone2 { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px 0; width: 100%; }
  .stats div { padding: 0 18px; }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats strong { font-size: 40px; }
  .hero-video { display: none; }
  .section, .process, .testimonials { padding-top: 70px; padding-bottom: 70px; }
  .section-heading h2, .show-copy h2, .process h2 { font-size: 42px; }
  .quote-title h2 { font-size: 38px; }
  .categories .aside { display: block; }
  .categories .aside .arrows { display: none; }
  .template-grid, .quote-row { grid-auto-columns: 86%; }
  .show-visual { min-height: 340px; }
  .monitor { left: 10%; right: 6%; top: 12%; }
  .dark-words, .show-play { display: none; }
  .journey { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-about { grid-column: 1 / -1; }
  .consult-form { grid-template-columns: 1fr; }
  .modal-card { padding: 34px 22px 24px; }
  .modal-card h3 { font-size: 25px; padding-right: 30px; }
  .preview-foot { flex-direction: column; align-items: stretch; }
  .cursor-light { display: none; }
  .fc { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Heading/filters layout on wide screens */
.section-heading > div:first-child { flex-shrink: 0; }
.filters-wrap { flex: 1; min-width: 0; }
/* Heading scale for Be Vietnam Pro */
.hero h1 { font-size: clamp(46px, 4.8vw, 86px); line-height: 1.02; letter-spacing: -.045em; }
.section-heading h2, .show-copy h2, .process h2 { font-size: clamp(32px, 3.3vw, 54px); line-height: 1.12; }
.quote-title h2 { font-size: clamp(30px, 2.9vw, 46px); line-height: 1.15; }
.cta h2 { font-size: clamp(30px, 2.9vw, 46px); line-height: 1.15; }
.stats strong { font-weight: 600; font-size: 40px; letter-spacing: -.04em; }
.step-no { font-weight: 600; font-size: 46px; letter-spacing: -.04em; }
.laptop-copy, .screen-title, .monitor-screen span { font-weight: 600; letter-spacing: -.03em; }
.modal-card h3 { font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
@media (max-width: 640px) {
  .hero h1 { font-size: 42px; }
  .section-heading h2, .show-copy h2, .process h2 { font-size: 30px; }
  .quote-title h2, .cta h2 { font-size: 28px; }
  .stats strong { font-size: 34px; }
}
/* backdrop-filter on the header would trap the fixed mobile drawer inside it */
@media (max-width: 1180px) {
  .header, .header.scrolled { backdrop-filter: none; background: rgba(3,21,34,.94); }
  .nav { backdrop-filter: none; }
}
.show-copy h2 { font-size: clamp(30px, 2.9vw, 48px); }
@media (max-width: 640px) { .show-copy h2 { font-size: 30px; } }

/* =========================================================
   3D effects
   ========================================================= */

/* Hero: 3D wave of light particles */
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  width: 100%; z-index: 1; pointer-events: none;
  mask-image: linear-gradient(0deg, #000 55%, transparent);
}

/* Hero: device stage rotates in 3D with pointer + scroll (JS sets --rx/--ry/--s) */
.hero-devices { perspective: 1600px; perspective-origin: 50% 40%; }
.stage3d {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  will-change: transform;
}
.stage3d .dev { transform-style: preserve-3d; animation: float 7s ease-in-out infinite; }
.stage3d .laptop { transform: rotateY(-9deg) rotateX(3deg) translateZ(0); }
.stage3d .tablet { transform: rotateY(-16deg) translateZ(-90px); animation-delay: -2s; }
.stage3d .phone  { transform: rotateY(14deg) translateZ(90px); animation-delay: -4s; }
.stage3d .phone2 { transform: rotateY(14deg) translateZ(170px); animation-delay: -1s; animation-duration: 6s; }
.stage3d .rock { transform: rotateX(80deg) translateZ(-40px); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* Screen reflection sweeping across device glass */
.stage3d .screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 48%, transparent 60%);
  background-size: 250% 100%;
  background-position: var(--shine, 100%) 0;
}

/* Template cards: 3D tilt + moving glare */
.template-grid { perspective: 1400px; }
.template-card { transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; }
.template-card.is-tilting { transition: transform .08s linear, box-shadow .3s; box-shadow: 0 35px 80px rgba(0,0,0,.45); }
.template-card .glare {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.35), transparent 45%);
  opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light;
}
.template-card { position: relative; }
.template-card.is-tilting .glare { opacity: 1; }

/* Category cards: lift toward the viewer */
.category-row { perspective: 900px; }
.cat:hover { transform: translateY(-8px) rotateX(10deg); }

/* Sections enter with a 3D fold */
.reveal.fold { transform: perspective(1200px) rotateX(24deg) translateY(60px); transform-origin: 50% 0; }
.reveal.fold.in { transform: none; }

/* Process steps flip up one after another */
.step.reveal { transform: perspective(900px) rotateX(55deg) translateY(50px); transform-origin: 50% 100%; transition-duration: 1s; }
.step.reveal.in { transform: none; }
.step:nth-of-type(2) { transition-delay: .12s; }
.step:nth-of-type(3) { transition-delay: .24s; }
.step:nth-of-type(4) { transition-delay: .36s; }
.step-visual { transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; }
.step:hover .step-visual { transform: perspective(700px) rotateX(8deg) translateY(-6px); box-shadow: 0 30px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(39,223,243,.35); }

/* Showcase: monitor straightens as it scrolls into view (JS sets --p from 0 to 1) */
.show-visual { perspective: 1400px; }
.monitor {
  transform: rotateY(calc(-32deg + 24deg * var(--p, 1))) rotateX(calc(14deg - 14deg * var(--p, 1))) rotateZ(-2deg) translateZ(calc(-120px + 120px * var(--p, 1)));
}
.show-phone { transform: rotate(-4deg) translateZ(80px) translateY(calc(80px - 80px * var(--p, 1))); }

/* Testimonials: slight 3D lift on hover */
.quote-row { perspective: 1000px; }
.quote { transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.quote:hover { transform: translateY(-6px) rotateX(6deg); box-shadow: 0 26px 50px rgba(9,36,57,.14); }

@media (max-width: 640px) {
  .hero-wave { height: 45%; }
  .stage3d .phone2 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stage3d { transform: none; }
  .reveal.fold, .step.reveal { transform: none; }
  .monitor { transform: perspective(1100px) rotateY(-8deg) rotateZ(-2deg); }
}
/* 3D-rotated elements must not widen the page */
main > section, .footer { overflow-x: clip; }

/* =========================================================
   Process: light effects (glow edges, lit timeline, neon cards)
   ========================================================= */
.process {
  background:
    radial-gradient(ellipse 60% 40% at 50% 38%, rgba(20,150,230,.20), transparent 70%),
    radial-gradient(ellipse 40% 60% at 50% 110%, rgba(35,215,241,.22), transparent 70%),
    linear-gradient(90deg, rgba(3,21,34,.92) 0%, rgba(3,21,34,.72) 20%, rgba(3,21,34,.78) 80%, rgba(3,21,34,.94) 100%),
    linear-gradient(rgba(4,34,66,.6), rgba(4,34,66,.6)),
    url('https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?auto=format&fit=crop&w=2000&q=70') center/cover,
    var(--navy);
}
/* Glowing light strips on the top and bottom edges */
.process::before, .process::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(35,215,241,.25) 20%, #6ff0ff 50%, rgba(35,215,241,.25) 80%, transparent);
  box-shadow: 0 0 18px 2px rgba(35,215,241,.55), 0 0 60px 8px rgba(8,125,245,.25);
}
.process::before { top: 0; }
.process::after { bottom: 0; }
.process > * { position: relative; z-index: 2; }

/* Timeline: brighter line, soft halo, travelling light pulse */
.journey-line { height: 2px; top: 29px; background: rgba(39,166,216,.18); overflow: visible; }
.journey-line i { position: relative; box-shadow: 0 0 10px #28e4f1, 0 0 26px rgba(40,228,241,.6); }
.journey-line::before {
  content: ""; position: absolute; inset: -14px 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(40,228,241,.18), transparent 70%);
}
.journey.active .journey-line::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 180px; height: 8px; border-radius: 50%;
  background: radial-gradient(ellipse at center, #fff 0%, #6ff0ff 25%, rgba(35,215,241,0) 70%);
  filter: blur(1px);
  animation: pulse-travel 4.5s cubic-bezier(.45,0,.55,1) 2s infinite;
}
@keyframes pulse-travel {
  0% { transform: translateX(-180px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(calc(100vw - 2 * var(--pad-x))); opacity: 0; }
}

/* Step numbers glow like neon */
.step-no {
  background: transparent; padding-right: 16px;
  color: #3fe6f7;
  text-shadow: 0 0 8px rgba(63,230,247,.8), 0 0 28px rgba(35,215,241,.55), 0 0 60px rgba(8,125,245,.45);
}
.step-top::before {  /* dark plate behind the number so the line doesn't cross it */
  content: ""; position: absolute; left: -10px; top: 50%; width: 92px; height: 44px; transform: translateY(-50%);
  background: radial-gradient(ellipse at center, rgba(3,21,34,.95) 45%, transparent 75%);
  z-index: -1;
}
.step-arrow {
  width: 34px; height: 34px; font-size: 14px; margin-right: -17px;
  background: rgba(3,21,34,.9); border: 1.5px solid #5fe8f7; color: #fff;
  box-shadow: 0 0 10px rgba(63,230,247,.8), 0 0 26px rgba(35,215,241,.45), inset 0 0 10px rgba(63,230,247,.35);
  animation: arrow-glow 3s ease-in-out infinite;
}
@keyframes arrow-glow { 50% { box-shadow: 0 0 16px rgba(63,230,247,1), 0 0 40px rgba(35,215,241,.6), inset 0 0 12px rgba(63,230,247,.5); } }

/* Thin vertical dividers between steps */
.step { position: relative; }
.step + .step::before {
  content: ""; position: absolute; left: -14px; top: 64px; bottom: 10px; width: 1px;
  background: linear-gradient(180deg, rgba(95,232,247,.45), rgba(95,232,247,.08) 70%, transparent);
}

/* Screens framed with a neon edge + light reflection */
.step-visual {
  position: relative;
  border: 1px solid rgba(95,232,247,.55);
  box-shadow: 0 0 0 1px rgba(95,232,247,.12), 0 0 22px rgba(35,215,241,.28), 0 18px 45px rgba(0,0,0,.45);
}
.step-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.18) 0%, transparent 35%);
}
.step-visual img { filter: saturate(.95) brightness(.9); }
.step:hover .step-visual {
  box-shadow: 0 0 0 1px rgba(95,232,247,.5), 0 0 40px rgba(35,215,241,.55), 0 30px 60px rgba(0,0,0,.5);
}

@media (prefers-reduced-motion: reduce) {
  .journey.active .journey-line::after, .step-arrow { animation: none; }
}
@media (max-width: 1180px) {
  .step-top::before, .step + .step::before { display: none; }
}

/* =========================================================
   Per-section 3D effects (classes added by main.js; skipped for reduced motion)
   ========================================================= */

/* 1. Categories — word-by-word flip + domino cards + accordion hover */
.split .w { display: inline-block; perspective: 600px; }
.split .w > span {
  display: inline-block; transform-origin: 50% 100%;
  transform: rotateX(-100deg); opacity: 0;
  transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .5s;
  transition-delay: calc(var(--i) * 70ms + .1s);
}
.in .split .w > span { transform: none; opacity: 1; }

.category-row.fx-domino.reveal { opacity: 1; transform: none; }
.category-row.fx-domino { perspective: 1100px; }
.category-row.fx-domino .cat {
  transform-origin: 0 50%;
  transform: rotateY(-100deg); opacity: 0;
  transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .5s, box-shadow .35s, border-color .35s;
  transition-delay: calc(var(--i) * 80ms);
}
.category-row.fx-domino.dealt .cat { transform: none; opacity: 1; }
.category-row.fx-domino.done .cat { transition-delay: 0s; transition-duration: .45s; transform-origin: 50% 50%; }
.category-row.fx-domino.done .cat:hover { transform: translateY(-8px) translateZ(50px); z-index: 2; }
.category-row.fx-domino.done .cat:has(+ .cat:hover) { transform: rotateY(28deg) scale(.96); }
.category-row.fx-domino.done .cat:hover + .cat { transform: rotateY(-28deg) scale(.96); }

/* 2. Templates — heading emerges from depth + coverflow arc */
.reveal.fx-depth {
  transform: perspective(1000px) translateZ(-500px) translateY(30px); filter: blur(10px);
  transition: opacity 1.1s, transform 1.3s cubic-bezier(.2,.8,.2,1), filter 1.1s;
}
.reveal.fx-depth.in { transform: none; filter: none; }
.template-card { transform: var(--cf, none); }
.template-card:not(.is-tilting) { transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .5s; }

/* 3. Showcase — door swing + rotating checklist rows */
.show-copy.reveal.fx-door { transform: perspective(1400px) rotateY(55deg); transform-origin: 0 50%; transition-duration: 1.2s; }
.show-copy.reveal.fx-door.in { transform: none; }
.fx-door .checks { perspective: 700px; }
.fx-door .checks li {
  transform-origin: 0 50%; transform: rotateY(-85deg); opacity: 0;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .5s;
  transition-delay: calc(.45s + var(--i) * .12s);
}
.fx-door.in .checks li { transform: none; opacity: 1; }

/* 5. Testimonials — heading comes from in front of the screen; cards fan out of a deck */
.reveal.fx-front {
  transform: perspective(1000px) translateZ(280px); filter: blur(12px);
  transition: opacity 1s, transform 1.2s cubic-bezier(.2,.8,.2,1), filter 1s;
}
.reveal.fx-front.in { transform: none; filter: none; }
.quote-row.deck .quote {
  position: relative; z-index: calc(10 - var(--i));
  transform: translateX(calc(var(--i) * (-100% - 16px))) rotateZ(calc(var(--i) * -4deg)) translateY(calc(var(--i) * 4px));
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1), box-shadow .45s;
  transition-delay: calc(var(--i) * 120ms + .2s);
}
.quote-row.deck.dealt .quote { transform: none; }
.quote-row.deck.done .quote { transition-delay: 0s; transition-duration: .45s; }
.quote-row.deck.done .quote:hover { transform: translateY(-6px) rotateX(6deg); }

/* 6. CTA — flips up from the bottom edge, then tilts like glass with a moving sheen */
.cta-box.reveal.fx-flip { transform: perspective(1400px) rotateX(-70deg); transform-origin: 50% 100%; transition-duration: 1.2s; }
.cta-box.reveal.fx-flip.in { transform: none; }
.cta-box { position: relative; transform-style: preserve-3d; }
.cta-box.is-tilting { transition: transform .12s linear; }
.cta-box::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(111,240,255,.16), transparent 40%);
  opacity: 0; transition: opacity .4s;
}
.cta-box.is-tilting::after { opacity: 1; }
.cta-box .trust { transform: translateZ(40px); }

/* Brand logo (vector mark + one-line wordmark, per brand logo files in /logo) */
.logo-mark { width: 40px; height: auto; display: block; }
.brand { gap: 12px; }
.brand-text { font-family: var(--display); font-size: 16px; font-weight: 400; letter-spacing: -.01em; line-height: 1; white-space: nowrap; color: #fff; }
.brand-text b {
  display: inline; font-size: inherit; font-weight: 700;
  background: linear-gradient(90deg, #0a6cff, #1ee6f2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 640px) {
  .logo-mark { width: 32px; }
  .brand-text { font-size: 13px; }
}

/* Language switch (VI | EN) — injected into .header-actions by i18n.js */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 99px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.lang-switch button { min-width: 34px; height: 30px; padding: 0 8px; border: 0; border-radius: 99px; background: none; color: inherit; font: 700 12px var(--display); letter-spacing: .04em; opacity: .7; transition: background .2s, color .2s, opacity .2s; }
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { background: #fff; color: #0b1f4d; opacity: 1; }
.page-light .lang-switch { border-color: #d5e0ea; background: #fff; }
.page-light .lang-switch button[aria-pressed="true"] { background: linear-gradient(90deg, #1a6dff, #2b86ff); color: #fff; }
@media (max-width: 640px) { .lang-switch button { min-width: 30px; height: 28px; padding: 0 6px; font-size: 11px; } }
@media (max-width: 640px) {
  /* make room for the language switch on phones: search lives in the page itself */
  .header-actions { gap: 8px; }
  .header-actions .icon-btn:not(.menu-btn) { display: none; }
  .brand-text { font-size: 12px; }
}
@media (max-width: 380px) { .brand-text { display: none; } }
