/* Landing — Meeting / Họp không giấy */
:root {
  --ink: #0f1c24;
  --muted: #5b6b75;
  --canvas: #eef3f6;
  --surface: #ffffff;
  --accent: #0d6efd;
  --accent-deep: #0a58ca;
  --warm: #ea580c;
  --warm-soft: #fff4ec;
  --ok: #0d9488;
  --line: #d7e0e6;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-title: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --max: 1140px;
  --shadow: 0 16px 40px rgba(15, 28, 36, 0.1);
  --shadow-lg: 0 28px 60px rgba(15, 28, 36, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 70ms);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-in .journey-card {
  animation: journey-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--d, 0) * 100ms);
}

@keyframes journey-pop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: blur(14px);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  transition: transform 0.35s ease;
}

.nav-brand:hover img {
  transform: rotate(-8deg) scale(1.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.35);
  animation: glow-pulse 2.8s ease-in-out infinite;
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: btn-shine 2.8s ease-in-out infinite;
}

@keyframes btn-shine {
  0%,
  40% {
    transform: translateX(-120%);
  }
  70%,
  100% {
    transform: translateX(120%);
  }
}

.btn-glow:hover {
  box-shadow: 0 12px 32px rgba(13, 110, 253, 0.45);
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.32);
  }
  50% {
    box-shadow: 0 10px 32px rgba(13, 110, 253, 0.48);
  }
}

.btn-ghost {
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent-deep);
}

.btn-lg {
  min-height: 50px;
  padding: 0 24px;
  font-size: 1rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  padding: clamp(36px, 7vh, 72px) 0 clamp(48px, 9vh, 88px);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 500px at 8% -10%, rgba(13, 110, 253, 0.32), transparent 55%),
    radial-gradient(800px 440px at 95% 5%, rgba(234, 88, 12, 0.2), transparent 50%),
    radial-gradient(640px 380px at 55% 100%, rgba(13, 148, 136, 0.14), transparent 55%),
    linear-gradient(165deg, #f5f9fb 0%, #e5eef3 50%, #d8e7ed 100%);
  animation: bg-shift 14s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(8deg);
  }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(15, 28, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 36, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 15%, transparent 72%);
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
  pointer-events: none;
  z-index: 0;
  animation: drift 9s ease-in-out infinite alternate;
}

.orb-a {
  width: 300px;
  height: 300px;
  left: -70px;
  top: 16%;
  background: rgba(13, 110, 253, 0.38);
}

.orb-b {
  width: 240px;
  height: 240px;
  right: 4%;
  bottom: 10%;
  background: rgba(234, 88, 12, 0.26);
  animation-delay: -3s;
}

.orb-c {
  width: 180px;
  height: 180px;
  left: 42%;
  top: 8%;
  background: rgba(13, 148, 136, 0.2);
  animation-delay: -5s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(22px, -18px) scale(1.06);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.brand-word {
  font-family: var(--font-title);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 12ch;
  margin-bottom: 14px;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-line {
  background: linear-gradient(
    115deg,
    var(--ink) 20%,
    var(--accent) 45%,
    var(--ink) 70%,
    var(--accent-deep) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-shine 5s linear infinite;
}

@keyframes brand-shine {
  to {
    background-position: 220% center;
  }
}

.hero h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.12em;
  animation: rise 0.75s ease 0.12s both;
}

.hline {
  display: block;
}

.hline-accent {
  color: var(--accent-deep);
  position: relative;
  width: fit-content;
}

.hline-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.08em;
  width: 100%;
  height: 0.28em;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  z-index: -1;
  transform-origin: left;
  animation: underline-draw 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

@keyframes underline-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-deep);
  animation: rise 0.75s ease 0.06s both;
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.hero-lead {
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 26px;
  animation: rise 0.75s ease 0.18s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  animation: rise 0.75s ease 0.24s both;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.trust-pop {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px 10px 0;
  border-right: 1px solid var(--line);
  animation: rise 0.7s ease both;
  animation-delay: calc(0.35s + var(--d, 0) * 0.1s);
}

.hero-trust li:last-child {
  border-right: none;
}

.hero-trust strong {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--accent-deep);
}

.hero-trust span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Sparks */
.hero-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 0;
  opacity: 0.55;
  animation: spark-float 6s ease-in-out infinite;
}

.spark-1 {
  top: 22%;
  left: 48%;
  animation-delay: 0s;
}

.spark-2 {
  top: 58%;
  left: 38%;
  background: var(--warm);
  animation-delay: -2s;
}

.spark-3 {
  top: 34%;
  right: 42%;
  background: var(--ok);
  width: 5px;
  height: 5px;
  animation-delay: -3.5s;
}

@keyframes spark-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate(12px, -28px) scale(1.4);
    opacity: 0.85;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero stage / floating cards */
.hero-stage {
  position: relative;
  min-height: 380px;
  animation: rise 0.9s ease 0.2s both;
}

.hero-mark-wrap {
  position: absolute;
  inset: 18% 22%;
  display: grid;
  place-items: center;
}

.hero-mark {
  width: min(150px, 36vw);
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(13, 110, 253, 0.28));
  animation: float-y 5s ease-in-out infinite;
  z-index: 2;
}

.hero-ring {
  position: absolute;
  inset: -8%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 50%;
  animation: pulse-ring 4s ease-in-out infinite;
}

.hero-ring-2 {
  inset: -22%;
  border-color: color-mix(in srgb, var(--warm) 22%, transparent);
  animation-delay: -1.5s;
  animation-duration: 5.5s;
}

.hero-ring-3 {
  inset: -36%;
  border-color: color-mix(in srgb, var(--ok) 18%, transparent);
  animation-delay: -2.8s;
  animation-duration: 7s;
}

.status-live {
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  color: var(--accent-deep);
  gap: 6px;
}

.live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.55);
  animation: live-ping 1.6s ease-out infinite;
}

@keyframes live-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(13, 110, 253, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.15;
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-card {
  position: absolute;
  z-index: 3;
  width: min(210px, 58%);
  padding: 14px 14px 16px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.float-a {
  top: 6%;
  left: 0;
  animation: float-card-a 6s ease-in-out infinite;
}

.float-b {
  top: 38%;
  right: 0;
  animation: float-card-b 7s ease-in-out infinite;
}

.float-c {
  bottom: 4%;
  left: 12%;
  animation: float-card-c 5.5s ease-in-out infinite;
}

@keyframes float-card-a {
  0%,
  100% {
    transform: translate(0, 0) rotate(-2deg);
  }
  50% {
    transform: translate(6px, -12px) rotate(0deg);
  }
}

@keyframes float-card-b {
  0%,
  100% {
    transform: translate(0, 0) rotate(2deg);
  }
  50% {
    transform: translate(-8px, 10px) rotate(-1deg);
  }
}

@keyframes float-card-c {
  0%,
  100% {
    transform: translate(0, 0) rotate(1deg);
  }
  50% {
    transform: translate(10px, -8px) rotate(-2deg);
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.status-vote {
  background: var(--warm-soft);
  color: var(--warm);
}

.status-ok {
  background: color-mix(in srgb, var(--ok) 14%, #fff);
  color: var(--ok);
}

.float-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.float-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.vote-bars {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.vote-bars span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, var(--canvas));
  overflow: hidden;
  position: relative;
}

.vote-bars span::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--warm) 60%, var(--accent)));
  animation: bar-grow 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bar-grow {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
  }
}

.avatar-row {
  display: flex;
  margin-top: 10px;
}

.avatar-row i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  background: linear-gradient(135deg, #93c5fd, #0d6efd);
  animation: avatar-pop 0.5s ease both;
}

.avatar-row i:first-child {
  margin-left: 0;
}

.avatar-row i:nth-child(2) {
  background: linear-gradient(135deg, #fdba74, #ea580c);
  animation-delay: 0.08s;
}

.avatar-row i:nth-child(3) {
  background: linear-gradient(135deg, #5eead4, #0d9488);
  animation-delay: 0.16s;
}

.avatar-row i:nth-child(4) {
  background: linear-gradient(135deg, #a5b4fc, #3b82f6);
  animation-delay: 0.24s;
}

.avatar-row i:nth-child(5) {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  animation-delay: 0.32s;
}

@keyframes avatar-pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* —— Sections —— */
.section {
  padding: clamp(64px, 10vh, 104px) 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 38rem;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.section-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Spotlights */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-bottom: clamp(48px, 8vh, 80px);
}

.spotlight:last-child {
  margin-bottom: 0;
}

.spotlight-flip {
  direction: rtl;
}

.spotlight-flip > * {
  direction: ltr;
}

.spot-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent-deep);
}

.spot-icon-warm {
  background: var(--warm-soft);
  color: var(--warm);
}

.spot-icon svg {
  width: 24px;
  height: 24px;
}

.spotlight-copy h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.spotlight-copy > p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 18%, #fff);
  box-shadow: inset 0 0 0 1.5px var(--ok);
}

.check-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 0.55em;
  width: 6px;
  height: 4px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

.spotlight-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: #fff;
  transform: perspective(900px) rotateY(-2deg);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.spotlight-flip .spotlight-media {
  transform: perspective(900px) rotateY(2deg);
}

.spotlight:hover .spotlight-media {
  transform: perspective(900px) rotateY(0) translateY(-4px);
  box-shadow: 0 32px 64px rgba(15, 28, 36, 0.16);
}

.spotlight-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

/* Devices */
.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.device-card {
  padding: 28px 22px 30px;
  border-radius: var(--radius-lg);
  background: var(--canvas);
  text-align: center;
  border: 1px solid transparent;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.device-card:hover {
  transform: translateY(-8px);
  background: #fff;
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
  box-shadow: var(--shadow);
}

.device-card h3 {
  font-size: 1.15rem;
  margin: 18px 0 8px;
}

.device-card p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.device-frame {
  margin: 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  animation: float-y 5s ease-in-out infinite;
}

.device-card:nth-child(2) .device-frame {
  animation-delay: -1.2s;
}

.device-card:nth-child(3) .device-frame {
  animation-delay: -2.4s;
}

.device-phone {
  width: 72px;
  height: 128px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  padding-top: 12px;
}

.device-notch {
  position: absolute;
  top: 6px;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.35;
}

.device-tablet {
  width: 110px;
  height: 148px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  padding: 16px 12px;
}

.device-laptop {
  width: 150px;
  gap: 0;
}

.device-lid {
  width: 100%;
  height: 88px;
  border-radius: 8px 8px 4px 4px;
  border: 2px solid var(--ink);
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 12px;
}

.device-base {
  width: 118%;
  margin-left: -9%;
  height: 8px;
  border-radius: 0 0 6px 6px;
  background: var(--ink);
  opacity: 0.85;
}

.device-screen-line {
  display: block;
  width: 70%;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 45%, var(--line));
  margin-inline: auto;
}

.device-screen-line.short {
  width: 45%;
  background: color-mix(in srgb, var(--warm) 40%, var(--line));
}

/* Feature tiles */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-tile {
  padding: 22px 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--canvas);
  border: 1px solid transparent;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.feature-tile:hover {
  transform: translateY(-6px);
  background: #fff;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: var(--shadow);
}

.tile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.tile-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  position: relative;
  animation: icon-bob 3.5s ease-in-out infinite;
  animation-delay: calc(var(--d, 0) * 0.15s);
}

.tile-icon::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.9;
}

.tile-icon-accent {
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
}

.tile-icon-warm {
  background: var(--warm-soft);
  color: var(--warm);
}

.tile-icon-ok {
  background: color-mix(in srgb, var(--ok) 14%, #fff);
  color: var(--ok);
}

.tile-icon-sky {
  background: color-mix(in srgb, #0284c7 14%, #fff);
  color: #0284c7;
}

@keyframes icon-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.feature-tile h3 {
  font-size: 1.08rem;
}

.feature-tile p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Journey / Quy trình */
.flow-section {
  background:
    radial-gradient(720px 300px at 50% 0%, rgba(13, 110, 253, 0.1), transparent 58%),
    radial-gradient(520px 240px at 90% 80%, rgba(13, 148, 136, 0.08), transparent 55%),
    var(--surface);
}

.journey {
  display: grid;
  gap: 36px;
  position: relative;
  padding-top: 20px;
}

.journey-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--line));
  overflow: hidden;
}

.journey-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--warm), var(--ok));
  background-size: 200% 100%;
}

.journey.is-running .journey-progress-bar,
.journey.is-in .journey-progress-bar {
  animation:
    progress-fill 2.2s cubic-bezier(0.22, 1, 0.36, 1) both,
    progress-shine 2s linear 2.2s infinite;
}

@keyframes progress-fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes progress-shine {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: 200% 0;
  }
}

.journey-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--canvas);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: 0 8px 24px rgba(15, 28, 36, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.journey-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 55%, transparent),
    transparent 45%,
    color-mix(in srgb, var(--ok) 40%, transparent)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

.journey-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.journey-card:hover::before {
  opacity: 1;
}

.journey-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent-deep);
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.journey-card:hover .journey-icon {
  transform: scale(1.12) rotate(-6deg);
}

.journey-phase-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.journey-phase-after .journey-phase-label {
  background: color-mix(in srgb, var(--ok) 14%, #fff);
  color: var(--ok);
}

.journey-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.journey-track-2 {
  grid-template-columns: 1fr auto 1fr;
}

.journey-card-wide {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 22px;
}

.journey-num {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(13, 110, 253, 0.28);
}

.journey-num-ok {
  background: var(--ok);
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.28);
}

.journey-icon-warm {
  background: var(--warm-soft);
  color: var(--warm);
}

.journey-icon-ok {
  background: color-mix(in srgb, var(--ok) 14%, #fff);
  color: var(--ok);
}

.journey-icon svg {
  width: 22px;
  height: 22px;
}

.journey-card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  padding-right: 28px;
}

.journey-card-wide h3 {
  margin-bottom: 6px;
  padding-right: 0;
}

.journey-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.journey-arrow {
  align-self: center;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
  position: relative;
  list-style: none;
}

.journey-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.85;
}

.journey-phase-after .journey-arrow {
  background: linear-gradient(90deg, var(--ok), color-mix(in srgb, var(--ok) 20%, transparent));
}

.journey-phase-after .journey-arrow::after {
  border-color: var(--ok);
}

/* Personas */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.persona-card {
  padding: 22px 18px 24px;
  border-radius: var(--radius-lg);
  background: var(--canvas);
  border-top: 3px solid var(--accent);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.persona-card:nth-child(2) {
  border-top-color: var(--warm);
}

.persona-card:nth-child(3) {
  border-top-color: var(--ok);
}

.persona-card:nth-child(4) {
  border-top-color: #0284c7;
}

.persona-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  background: #fff;
}

.persona-role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.persona-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.persona-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Mobile */
.mobile-section {
  padding-top: 40px;
}

.mobile-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    radial-gradient(500px 260px at 90% 20%, rgba(234, 88, 12, 0.18), transparent 55%),
    radial-gradient(480px 240px at 10% 80%, rgba(13, 110, 253, 0.2), transparent 55%),
    linear-gradient(145deg, #0f1c24 0%, #163247 100%);
  color: #e8eef2;
  overflow: hidden;
}

.mobile-panel .section-kicker {
  color: #7dd3fc;
}

.mobile-copy h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 12px;
  color: #fff;
}

.mobile-copy p {
  color: color-mix(in srgb, #fff 72%, transparent);
  margin-bottom: 22px;
  max-width: 42ch;
}

.mobile-visual {
  display: grid;
  place-items: center;
}

.phone {
  width: min(220px, 70%);
  border-radius: 28px;
  padding: 10px;
  background: #1a2a36;
  border: 2px solid color-mix(in srgb, #fff 18%, transparent);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  animation: float-y 4.5s ease-in-out infinite;
}

.phone-notch {
  width: 72px;
  height: 8px;
  margin: 4px auto 10px;
  border-radius: 999px;
  background: #0b1620;
}

.phone-screen {
  border-radius: 18px;
  padding: 14px 12px 16px;
  background: linear-gradient(180deg, #f3f7f9, #e7eef2);
  color: var(--ink);
  min-height: 260px;
}

.phone-brand {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.phone-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 28, 36, 0.06);
  animation: rise 0.6s ease both;
}

.phone-item:nth-child(2) {
  animation-delay: 0.15s;
}

.phone-item:nth-child(3) {
  animation-delay: 0.25s;
}

.phone-item:nth-child(4) {
  animation-delay: 0.35s;
}

.phone-item strong {
  font-size: 0.85rem;
}

.phone-item .status-pill {
  margin-bottom: 0;
  width: fit-content;
}

/* CTA band */
.cta-band {
  padding: clamp(56px, 9vh, 88px) 0;
  background:
    radial-gradient(600px 240px at 20% 50%, rgba(13, 110, 253, 0.12), transparent 60%),
    radial-gradient(500px 220px at 80% 40%, rgba(234, 88, 12, 0.1), transparent 55%),
    var(--surface);
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.cta-inner > p {
  color: var(--muted);
  margin-bottom: 24px;
}

.cta-inner .hero-cta {
  justify-content: center;
  margin-bottom: 0;
}

/* Footer */
.footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  background: #e4edf1;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-title);
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-deep);
}

.footer-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .spotlight,
  .mobile-panel {
    grid-template-columns: 1fr;
  }

  .spotlight-flip {
    direction: ltr;
  }

  .spotlight-media,
  .spotlight-flip .spotlight-media {
    transform: none;
  }

  .hero-stage {
    min-height: 320px;
    order: -1;
  }

  .feature-grid,
  .device-grid {
    grid-template-columns: 1fr 1fr;
  }

  .journey-track,
  .journey-track-2 {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .journey-arrow {
    display: none;
  }

  .journey-card-wide {
    flex-direction: column;
  }

  .flow {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px 12px;
  }

  .flow::before {
    display: none;
  }

  .persona-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .feature-grid,
  .device-grid,
  .persona-grid,
  .journey-track,
  .journey-track-2 {
    grid-template-columns: 1fr;
  }

  .hero-trust li {
    border-right: none;
    padding-right: 0;
  }

  .float-card {
    width: min(170px, 48%);
    padding: 10px 12px;
  }

  .float-b {
    display: none;
  }
}
