/* Sale Themes WP hub — inspired by uupm.cc (aurora / glass / motion) */
:root {
  --bg: #070b14;
  --bg-elev: #0d1424;
  --surface: #121a2b;
  --surface-2: #182236;
  --ink: #e8eef9;
  --muted: #8b9bb4;
  --brand: #22d3ee;
  --brand-2: #38bdf8;
  --accent: #f59e0b;
  --accent-2: #34d399;
  --line: rgba(148, 163, 184, 0.16);
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --glow: 0 0 80px rgba(34, 211, 238, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.theme-light {
  --bg: #f4f7fb;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --ink: #0f172a;
  --muted: #64748b;
  --brand: #0891b2;
  --brand-2: #0284c7;
  --accent: #d97706;
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --glow: 0 0 60px rgba(8, 145, 178, 0.12);
}

a {
  color: var(--brand-2);
}

a:hover {
  text-decoration: none;
  color: var(--brand);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 9999;
  background: var(--brand);
  color: #041018;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-nav .nav-link.is-active,
.site-nav .dropdown-item.is-active {
  color: var(--accent) !important;
}

.site-nav .nav-item-cta .btn-nav.is-active {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45);
}

/* content-visibility removed — caused scroll jumps when section size was wrong */

@media (max-width: 991.98px) {
  .aurora {
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .aurora span,
  .reveal,
  .reveal-lift,
  .hero-stack li,
  .device-bezel--desktop,
  .device-bezel--tablet,
  .device-bezel--phone,
  .hero-visual-wrap::before {
    animation: none !important;
    transition: none !important;
  }
  .reveal,
  .reveal-lift {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Aurora mesh */
.aurora {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  animation: floatBlob 18s ease-in-out infinite;
  will-change: transform;
}

.aurora span:nth-child(1) {
  width: 42vw;
  height: 42vw;
  top: -12%;
  left: -8%;
  background: #164e63;
  animation-delay: 0s;
}

.aurora span:nth-child(2) {
  width: 36vw;
  height: 36vw;
  top: 20%;
  right: -10%;
  background: #1e3a5f;
  animation-delay: -4s;
}

.aurora span:nth-child(3) {
  width: 28vw;
  height: 28vw;
  bottom: 5%;
  left: 35%;
  background: #134e4a;
  animation-delay: -7s;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(3%, -4%) scale(1.08);
  }
}

.site-shell {
  position: relative;
  z-index: 1;
}

.site-top {
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  backdrop-filter: blur(6px);
}

.theme-light .site-top {
  background: rgba(255, 255, 255, 0.7);
}

.site-top a {
  color: var(--ink);
}

.site-nav {
  background: rgba(13, 20, 36, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.theme-light .site-nav {
  background: rgba(255, 255, 255, 0.85);
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink) !important;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.navbar-brand span {
  color: var(--brand);
}

.brand-logo {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav .nav-link {
  color: var(--muted) !important;
  font-weight: 600;
  padding: 0.55rem 0.95rem !important;
  transition: color 0.2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: var(--ink) !important;
}

.site-nav .nav-item {
  margin: 0 0.1rem;
}

.site-nav .dropdown-menu {
  margin-top: 0;
  padding: 0.45rem 0;
  min-width: 12.5rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 20, 36, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.theme-light .site-nav .dropdown-menu {
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.site-nav .dropdown-item {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
}

.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
  color: var(--ink);
  background: rgba(34, 211, 238, 0.1);
}

.site-nav .dropdown-toggle::after {
  margin-left: 0.35rem;
  vertical-align: 0.15em;
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    overflow: visible;
  }
  .site-nav .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin: 0.2rem 0 0.55rem;
    transform: none !important;
    box-shadow: none;
    background: rgba(2, 6, 23, 0.35);
  }
  .theme-light .site-nav .dropdown-menu {
    background: rgba(241, 245, 249, 0.95);
  }
}

@media (min-width: 992px) {
  .site-nav .nav-item.dropdown {
    position: relative;
  }
  .site-nav .nav-item.dropdown:hover > .dropdown-menu,
  .site-nav .nav-item.dropdown:focus-within > .dropdown-menu {
    display: block;
  }
  /* Bridge gap so hover does not drop when moving to submenu */
  .site-nav .dropdown-menu {
    top: 100%;
    padding-top: 0.65rem;
  }
  .site-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -0.55rem;
    height: 0.65rem;
  }
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  background: linear-gradient(135deg, var(--accent), #fbbf24) !important;
  color: #111 !important;
  border-radius: 999px;
  margin-left: 0.5rem;
  padding: 0.55rem 1.25rem !important;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-nav:hover,
.btn-nav:focus {
  color: #111 !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.45);
}

.theme-light .btn-nav {
  color: #111 !important;
}

/* Avoid Bootstrap .nav-link stretching the CTA */
.navbar-nav .nav-item-cta {
  display: flex;
  align-items: center;
}

.navbar-nav .nav-item-cta .btn-nav {
  margin-top: 0.15rem;
  margin-bottom: 0.15rem;
}

.navbar-toggler {
  border: 0;
  color: var(--ink);
  font-size: 1.25rem;
}

.lang-switch,
.theme-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.lang-btn,
.theme-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.is-active,
.theme-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand), var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 540px;
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.hero-trust-line {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-trust-line a {
  color: var(--ink);
  font-weight: 600;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-proof li {
  position: relative;
  padding-left: 1.15rem;
}

.hero-proof li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.funnel-cta {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.funnel-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: linear-gradient(120deg, rgba(8, 47, 73, 0.55), rgba(18, 26, 43, 0.85));
  box-shadow: var(--shadow);
}

.theme-light .funnel-cta-inner {
  background: linear-gradient(120deg, #f0f9ff, #fff);
  border-color: rgba(14, 165, 233, 0.28);
}

.funnel-cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.funnel-cta-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.funnel-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.metric-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn-cta {
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  color: #111 !important;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.55rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.btn-cta:hover {
  transform: translateY(-2px);
  color: #111 !important;
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.4);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink) !important;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand);
  color: var(--ink) !important;
  transform: translateY(-2px);
}

/* Terminal panel (uupm-style) */
.terminal {
  background: rgba(8, 12, 22, 0.88);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow), var(--glow);
  overflow: hidden;
}

.theme-light .terminal {
  background: #0b1220;
  color: #e2e8f0;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.terminal-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-bar i:nth-child(1) {
  background: #f87171;
}
.terminal-bar i:nth-child(2) {
  background: #fbbf24;
}
.terminal-bar i:nth-child(3) {
  background: #34d399;
}

.terminal-bar span {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.terminal-body {
  padding: 1.25rem 1.35rem 1.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #cbd5e1;
  min-height: 220px;
}

.terminal-body .cmd {
  color: #22d3ee;
}

.terminal-body .out {
  color: #94a3b8;
}

.terminal-body .ok {
  color: #34d399;
}

.terminal-body .cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: #22d3ee;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.metric-grid {
  --metric-cycle: 12s;
  list-style: none;
  padding: 1.15rem 0 0.35rem;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  background: transparent;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.theme-light .metric-grid {
  border-top-color: rgba(15, 23, 42, 0.1);
}

.metric-grid li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0.85rem 1.1rem 1rem;
  min-height: 0;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  isolation: auto;
}

.metric-grid li + li {
  border-left: 1px solid rgba(148, 163, 184, 0.16);
}

.theme-light .metric-grid li + li {
  border-left-color: rgba(15, 23, 42, 0.1);
}

.metric-grid li::after {
  content: '';
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #fbbf24);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.metric-grid li::before {
  content: none;
}

.metric-grid li:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.metric-grid li:hover strong {
  color: #fbbf24;
}

.metric-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.1vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: none;
  transition: color 0.2s ease;
}

.metric-grid li > span {
  display: block;
  max-width: 11rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--muted);
}

.theme-light .metric-grid li > span {
  color: rgba(71, 85, 105, 0.9);
}

.metric-grid.is-counting strong {
  opacity: 1;
}

.hero-visual-wrap {
  position: relative;
  min-height: 520px;
  padding: 2.25rem 2.5rem 1.25rem;
  overflow: visible;
}

.hero-devices {
  position: relative;
  min-height: 400px;
  isolation: isolate;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  left: 16%;
  top: 10%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(34, 211, 238, 0.2), transparent 72%),
    radial-gradient(closest-side, rgba(245, 158, 11, 0.1), transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.theme-light .hero-glow {
  background:
    radial-gradient(closest-side, rgba(14, 165, 233, 0.16), transparent 72%),
    radial-gradient(closest-side, rgba(245, 158, 11, 0.08), transparent 70%);
}

.device {
  position: absolute;
  z-index: 2;
}

.device-tag {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.32);
  pointer-events: none;
}

.device-bezel--desktop .device-tag {
  top: 44px;
  left: 12px;
}

.device-bezel--phone .device-tag {
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.theme-light .device-tag {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(100, 116, 139, 0.28);
}

.device-desktop .device-tag {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.4);
}

.device-tablet .device-tag {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.4);
}

.device-phone .device-tag {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
}

.device-bezel {
  position: relative;
  background: linear-gradient(160deg, #1e293b 0%, #0b1220 55%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  overflow: hidden;
}

.device-bezel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.device-chrome {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  position: relative;
  z-index: 1;
}

.device-dots {
  display: inline-flex;
  gap: 0.28rem;
  flex-shrink: 0;
}

.device-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.25);
}

.device-dots i:nth-child(1) { background: #ff5f57; }
.device-dots i:nth-child(2) { background: #febc2e; }
.device-dots i:nth-child(3) { background: #28c840; }

.device-url {
  flex: 1;
  min-width: 0;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-screen {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #020617;
  isolation: isolate;
}

.device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
}

.device:hover .device-screen img {
  transform: scale(1.02);
}

.device-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.1), transparent 35%),
    linear-gradient(215deg, transparent 40%, rgba(8, 47, 73, 0.28) 100%);
}

.device-desktop {
  right: 6%;
  top: 28px;
  width: min(82%, 480px);
  z-index: 2;
}

.device-bezel--desktop {
  width: 100%;
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(34, 211, 238, 0.08),
    0 40px 100px rgba(34, 211, 238, 0.08);
  animation: deviceFloat 7s ease-in-out infinite;
}

.device-bezel--desktop .device-screen {
  aspect-ratio: 16 / 10;
}

.device-tablet {
  left: 2%;
  bottom: 56px;
  width: min(30%, 150px);
  z-index: 3;
}

.device-bezel--tablet {
  border-radius: 18px;
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1),
    0 22px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(148, 163, 184, 0.18);
  animation: deviceFloat 8s ease-in-out infinite reverse;
}

.device-bezel--tablet .device-screen {
  border-radius: 10px;
  aspect-ratio: 3 / 4;
}

.device-phone {
  right: 0;
  top: 42%;
  bottom: auto;
  width: min(20%, 104px);
  z-index: 4;
}

.device-bezel--phone {
  border-radius: 22px;
  padding: 7px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(34, 211, 238, 0.12);
  animation: deviceFloat 6.5s ease-in-out infinite;
}

.device-bezel--phone .device-screen {
  border-radius: 16px;
  aspect-ratio: 9 / 19.5;
}

.device-island {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 3;
  width: 38%;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #020617;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.theme-light .device-bezel {
  background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 45%, #cbd5e1 100%);
  border-color: rgba(100, 116, 139, 0.28);
}

.theme-light .device-chrome {
  background: linear-gradient(180deg, #fff, #f1f5f9);
  border-bottom-color: rgba(148, 163, 184, 0.35);
}

.theme-light .device-url {
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
  border-color: rgba(148, 163, 184, 0.35);
}

.theme-light .device-bezel--desktop,
.theme-light .device-bezel--tablet,
.theme-light .device-bezel--phone {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 24px 50px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(14, 165, 233, 0.1);
}

.theme-light .device-screen {
  background: #fff;
}

.hero-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hero-stack li {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.2rem;
  color: #67e8f9;
  border: 1px solid rgba(103, 232, 249, 0.35);
  background: rgba(8, 16, 32, 0.78);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.32),
    0 0 16px rgba(34, 211, 238, 0.14);
  top: 50%;
  left: 50%;
  opacity: 0;
  animation: stackOrb 6.8s ease-in-out infinite;
}

.hero-stack.is-ready li {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.hero-stack li i {
  line-height: 1;
}

.hero-stack .is-html { color: #e34f26; border-color: rgba(227, 79, 38, 0.45); }
.hero-stack .is-seo { color: #22d3ee; border-color: rgba(34, 211, 238, 0.45); }
.hero-stack .is-react { color: #61dafb; border-color: rgba(97, 218, 251, 0.45); }
.hero-stack .is-css { color: #1572b6; border-color: rgba(21, 114, 182, 0.45); }
.hero-stack .is-android { color: #3ddc84; border-color: rgba(61, 220, 132, 0.45); }
.hero-stack .is-ios { color: #e2e8f0; border-color: rgba(226, 232, 240, 0.35); }
.hero-stack .is-php { color: #9b8cff; border-color: rgba(155, 140, 255, 0.45); }
.hero-stack .is-python { color: #ffd54f; border-color: rgba(255, 213, 79, 0.4); }
.hero-stack .is-js { color: #f7df1e; border-color: rgba(247, 223, 30, 0.4); }
.hero-stack .is-wp { color: #4fc3f7; border-color: rgba(79, 195, 247, 0.4); }

.theme-light .hero-stack li {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

@keyframes stackOrb {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-6px) rotate(var(--r, 0deg));
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(18, 26, 43, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.theme-light .news-card {
  background: #fff;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 16px 36px rgba(7, 11, 20, 0.28);
}

.theme-light .news-card:hover {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.news-card--featured {
  flex-direction: column;
}

@media (min-width: 768px) {
  .news-card--featured {
    flex-direction: row;
    align-items: stretch;
    min-height: 260px;
  }

  .news-card--featured .news-thumb {
    flex: 0 0 46%;
    max-width: 46%;
    height: auto;
    min-height: 260px;
  }

  .news-card--featured .news-body {
    justify-content: center;
    padding: 1.5rem 1.75rem;
  }

  .news-card--featured .news-title {
    font-size: 1.35rem;
  }
}

.news-thumb {
  position: relative;
  display: block;
  height: 168px;
  overflow: hidden;
  background: var(--surface-2);
  isolation: isolate;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.04);
}

.news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.05rem 1.15rem 1.2rem;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.news-tag {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.news-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.news-title:hover {
  color: var(--brand);
  text-decoration: none;
}

.news-body p {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.news-more {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand);
}

.news-more:hover {
  color: var(--accent);
  text-decoration: none;
}

@keyframes deviceFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.project-highlight {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.project-highlight-item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 26, 43, 0.55);
}

.theme-light .project-highlight-item {
  background: #fff;
}

.project-highlight-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--brand);
  margin-bottom: 0.2rem;
}

.project-highlight-item span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.project-lead {
  max-width: 820px;
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.theme-card--compact .theme-sum {
  padding: 0.85rem;
  gap: 0.75rem;
}

.theme-card--compact .theme-thumb {
  width: 72px;
  height: 54px;
}

.theme-card--compact .badge-count {
  padding: 0 0.85rem 0.85rem;
  font-size: 0.8rem;
}

.theme-card--compact .theme-sum-text strong {
  font-size: 0.92rem;
  line-height: 1.3;
}

.sec {
  padding: 88px 0;
}

.sec-alt {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(34, 211, 238, 0.06), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(245, 158, 11, 0.05), transparent 50%),
    transparent;
}

.sec-head {
  max-width: 680px;
  margin-bottom: 2.75rem;
}

.sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.45rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.sec-head p {
  color: var(--muted);
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.svc-card {
  height: 100%;
  background: rgba(18, 26, 43, 0.72);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.theme-light .svc-card {
  background: #fff;
}

.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.1);
}

.svc-card i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #041018;
  background: linear-gradient(135deg, var(--brand), var(--accent-2));
  font-size: 1rem;
  margin-bottom: 1rem;
}

.svc-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.svc-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.showcase-card {
  display: block;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.showcase-card:hover {
  transform: translateY(-8px) scale(1.01);
  color: var(--ink);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 22px 50px rgba(34, 211, 238, 0.15);
}

.showcase-img {
  position: relative;
  display: block;
  height: 200px;
  overflow: hidden;
  background: var(--surface-2);
  isolation: isolate;
}

.showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.showcase-card:hover .showcase-img img {
  transform: scale(1.04);
}

.showcase-body {
  display: block;
  padding: 1rem 1.15rem 1.25rem;
}

.showcase-body i {
  color: var(--brand);
  margin-right: 0.35rem;
}

.showcase-body em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

.packs-intro {
  margin: -0.5rem 0 1.75rem;
}

.packs-lead {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.packs-lead strong {
  color: var(--ink);
}

.packs-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 992px) {
  .packs-trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.packs-trust li {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 26, 43, 0.45);
}

.theme-light .packs-trust li {
  background: #fff;
}

.packs-trust strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brand);
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.packs-trust span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 26, 43, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.theme-light .pack-card {
  background: #fff;
}

.pack-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.12);
}

.pack-card.is-featured {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.12);
}

.pack-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: #041018;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
}

.pack-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pack-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  padding-right: 5rem;
}

.pack-qty {
  margin: 0 0 0.55rem;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--brand);
}

.pack-for {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.pack-for em {
  font-style: normal;
  color: var(--ink);
  font-weight: 600;
}

.pack-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.pack-meta {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}

.pack-meta li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.pack-meta i {
  color: var(--brand);
  margin-top: 0.15rem;
  width: 1rem;
  text-align: center;
}

.pack-note {
  margin: 0.85rem 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.pack-feats-title {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

.pack-feats {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  flex: 1;
}

.pack-feats li {
  position: relative;
  padding: 0.32rem 0 0.32rem 1.2rem;
  font-size: 0.84rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  line-height: 1.4;
}

.pack-feats li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.32rem;
  color: var(--brand);
  font-weight: 700;
}

.pack-out {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.pack-out strong {
  color: var(--ink);
}

.pack-actions .btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.pack-call {
  display: block;
  text-align: center;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.pack-call:hover {
  color: var(--brand);
  text-decoration: none;
}

.packs-asterisk {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.25rem 0 2rem;
}

.packs-compare {
  margin: 0.5rem 0 2rem;
}

.packs-compare h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.packs-compare > p {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 720px;
}

.packs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 26, 43, 0.45);
}

.theme-light .packs-table-wrap {
  background: #fff;
}

.packs-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.packs-table th,
.packs-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  text-align: left;
  vertical-align: top;
}

.packs-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.55);
}

.theme-light .packs-table thead th {
  background: #f8fafc;
}

.packs-table tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 22%;
}

.packs-table .is-hi {
  background: rgba(245, 158, 11, 0.08);
  font-weight: 600;
}

.packs-panel {
  height: 100%;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 26, 43, 0.55);
}

.theme-light .packs-panel {
  background: #fff;
}

.packs-panel h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.packs-shared {
  list-style: none;
  margin: 0;
  padding: 0;
}

.packs-shared li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.92rem;
  color: var(--ink);
}

.packs-shared li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-size: 0.55rem;
  top: 0.75rem;
}

.pack-steps {
  display: grid;
  gap: 0.75rem;
}

.pack-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.pack-step-n {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  min-width: 1.75rem;
}

.pack-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.45;
}

.packs-panel-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.packs-cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.6rem;
  margin: 0.5rem 0 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: linear-gradient(120deg, rgba(8, 47, 73, 0.55), rgba(18, 26, 43, 0.8));
}

.theme-light .packs-cta-band {
  background: linear-gradient(120deg, #ecfeff, #fff7ed);
}

.packs-cta-band h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.packs-cta-band p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.packs-cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.packs-footnote {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

@media (max-width: 991.98px) {
  .packs-cta-band {
    padding: 1.15rem;
  }
}

@media (max-width: 575.98px) {
  .packs-cta-band {
    padding: 1.15rem;
  }
}

.project-card {
  display: block;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(18, 26, 43, 0.72);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.theme-light .project-card {
  background: #fff;
}

.project-card:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.12);
}

.project-thumb {
  position: relative;
  display: block;
  height: 180px;
  overflow: hidden;
  background-color: #0b1220;
  isolation: isolate;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.04);
}

.project-body {
  display: block;
  padding: 1rem 1.15rem 1.25rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 0.45rem;
}

.project-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.project-body em {
  display: block;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.testimonial-card {
  height: 100%;
  margin: 0;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(18, 26, 43, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.theme-light .testimonial-card {
  background: #fff;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
}

.testimonial-card .stars {
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.testimonial-card p {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.testimonial-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
  font-size: 0.85rem;
  color: var(--muted);
}

.testimonial-card footer strong {
  color: var(--ink);
}

.band-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 110px 0;
  border-block: 1px solid var(--line);
  isolation: isolate;
  overflow: hidden;
}

.band-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(7, 11, 20, 0.94) 0%, rgba(8, 47, 73, 0.72) 48%, rgba(15, 23, 42, 0.55) 100%),
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(34, 211, 238, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(245, 158, 11, 0.16), transparent 50%);
}

.band-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 40%, rgba(7, 11, 20, 0.45) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      rgba(148, 163, 184, 0.03) 11px,
      rgba(148, 163, 184, 0.03) 12px
    );
}

.band-photo-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.band-photo h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.process-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(18, 26, 43, 0.72);
  border: 1px solid var(--line);
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
  isolation: isolate;
}

.theme-light .process-card {
  background: #fff;
}

.process-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.35);
}

.process-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.process-card:hover img {
  transform: scale(1.03);
}

.process-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 150px;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 35%, rgba(7, 11, 20, 0.55) 100%),
    linear-gradient(125deg, rgba(34, 211, 238, 0.22), transparent 55%);
}

.process-body {
  position: relative;
  z-index: 2;
  padding: 1rem 1.15rem 1.25rem;
}

.process-body .step {
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 700;
}

.step-rail {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 576px) {
  .step-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .step-rail {
    grid-template-columns: repeat(6, 1fr);
  }
}

.step-card {
  background: rgba(18, 26, 43, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.theme-light .step-card {
  background: #fff;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.4);
}

.step-card .n {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.03em;
}

.step-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.4rem 0 0.35rem;
}

.step-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.theme-card {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none !important;
  background: rgba(18, 26, 43, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  color: var(--ink) !important;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.theme-card:hover,
.theme-card:focus {
  color: var(--ink) !important;
  text-decoration: none !important;
}

.theme-light .theme-card {
  background: #fff;
}

.theme-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.12);
}

.theme-sum {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.theme-thumb {
  position: relative;
  width: 88px;
  height: 64px;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface-2);
  isolation: isolate;
}

.theme-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.theme-card:hover .theme-thumb img {
  transform: scale(1.04);
}

.theme-sum-text i {
  color: var(--brand);
  margin-right: 0.35rem;
}

.badge-count {
  display: block;
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.cat-nav,
.cat-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow: visible;
  padding-bottom: 0.25rem;
}

.cat-nav a,
.cat-scroll a {
  flex: 0 0 auto;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.cat-nav a:hover,
.cat-scroll a:hover {
  color: var(--ink);
  border-color: var(--brand);
  background: rgba(34, 211, 238, 0.08);
}

.brand-img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  display: block;
}

.brand-overlay-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .brand-overlay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.brand-overlay-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.brand-overlay-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.brand-overlay-card:hover img {
  transform: scale(1.03);
}

.brand-overlay-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.22), transparent 42%),
    linear-gradient(320deg, rgba(245, 158, 11, 0.14), transparent 40%);
  opacity: 0.75;
}

.brand-overlay-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.35rem 1.4rem;
  background:
    linear-gradient(
      180deg,
      rgba(2, 6, 23, 0.08) 0%,
      rgba(2, 6, 23, 0.42) 38%,
      rgba(2, 6, 23, 0.82) 72%,
      rgba(2, 6, 23, 0.94) 100%
    ),
    linear-gradient(90deg, rgba(8, 47, 73, 0.35), transparent 55%);
  color: #f8fafc;
}

.brand-overlay-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  color: #fff;
}

.brand-overlay-copy > p {
  margin: 0 0 0.85rem;
  color: rgba(226, 232, 240, 0.92);
  max-width: 36rem;
  line-height: 1.55;
}

.brand-overlay-copy .check-list {
  margin: 0;
  color: #e2e8f0;
}

.brand-overlay-copy .check-list li {
  color: #e2e8f0;
}

.brand-overlay-copy .check-list li::before {
  color: #67e8f9;
}

@media (min-width: 768px) {
  .brand-overlay-card {
    min-height: 380px;
  }
  .brand-overlay-card img {
    min-height: 380px;
  }
  .brand-overlay-copy {
    padding: 2rem 2.1rem;
  }
}

.detail-page {
  padding: 2.5rem 0 4rem;
}

.detail-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.detail-crumb a {
  color: var(--brand-2);
}

.detail-hero {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.detail-hero img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-tag {
  display: inline-flex;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-body {
  max-width: 720px;
}

.detail-body h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.detail-body p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

/* ===== Article detail (tin tức) ===== */
.detail-page--article .detail-body {
  max-width: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.25rem 2.5rem;
  }

  .article-aside {
    position: sticky;
    top: 5.5rem;
  }
}

.article-header {
  margin-bottom: 1.25rem;
}

.article-deck {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1.15rem;
  max-width: 42rem;
}

.article-read {
  font-size: 0.85rem;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.article-byline strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.article-byline em {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
}

.author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.35), rgba(245, 158, 11, 0.35));
  color: var(--ink);
  font-weight: 800;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.author-avatar--lg {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.25rem;
}

.article-hero {
  margin-bottom: 1.75rem;
}

.article-content p {
  font-size: 1.02rem;
  line-height: 1.75;
}

.author-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 2rem 0 2.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 26, 43, 0.55);
}

.theme-light .author-card {
  background: #fff;
}

.author-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.15rem 0 0.2rem;
  color: var(--ink);
}

.author-card .author-role {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  color: var(--brand);
  font-weight: 600;
}

.author-card p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.related-block {
  margin: 0 0 0.5rem;
}

.related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.related-head h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
  color: var(--ink);
}

.related-head a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 576px) {
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(18, 26, 43, 0.55);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-light .related-card {
  background: #fff;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(148, 163, 184, 0.45);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 28px rgba(7, 11, 20, 0.22);
}

.related-thumb {
  display: block;
  height: 110px;
  overflow: hidden;
  background: var(--surface-2);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.related-card:hover .related-thumb img {
  transform: scale(1.04);
}

.related-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.95rem 1rem;
  flex: 1;
}

.related-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.related-body strong {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 700;
}

.related-date {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--muted);
}

.article-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aside-card {
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 26, 43, 0.62);
}

.theme-light .aside-card {
  background: #fff;
}

.aside-contact {
  border-color: rgba(34, 211, 238, 0.28);
  background: linear-gradient(160deg, rgba(8, 47, 73, 0.55), rgba(18, 26, 43, 0.9));
}

.theme-light .aside-contact {
  background: linear-gradient(160deg, #f0f9ff, #fff);
}

.aside-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.aside-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.aside-text {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.aside-contact-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.aside-contact-list li {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.aside-contact-list a,
.aside-contact-list span {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--ink);
}

.aside-contact-list i {
  margin-top: 0.2rem;
  color: var(--brand);
  width: 1rem;
  text-align: center;
}

.aside-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.aside-actions .btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.aside-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.aside-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aside-links li + li {
  margin-top: 0.55rem;
}

.aside-links a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.aside-links a:hover {
  color: var(--brand);
  text-decoration: none;
}

.aside-links i {
  color: var(--brand);
  width: 1.1rem;
  text-align: center;
}

.aside-news {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aside-news li + li {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.aside-news a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.aside-news a:hover strong {
  color: var(--brand);
}

.aside-news-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.2rem;
}

.aside-news strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.aside-news time {
  font-size: 0.78rem;
  color: var(--muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent-2));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}

.cta-sec {
  position: relative;
}

.cta-sec::before {
  content: '';
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.12), transparent 70%);
  pointer-events: none;
}

.contact-box {
  position: relative;
  background: rgba(18, 26, 43, 0.8);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow), var(--glow);
}

.theme-light .contact-box {
  background: #fff;
}

.contact-box i {
  display: block;
  color: var(--brand);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-box a,
.contact-box span {
  color: var(--ink);
  font-weight: 600;
}

.contact-basics small {
  font-weight: 400;
  font-size: 0.78rem;
}

.contact-channels-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .channel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-light .channel-card {
  background: #f8fafc;
}

.channel-card:hover {
  transform: translateY(-3px);
  color: var(--ink) !important;
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.12);
}

.channel-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.channel-card.is-zalo .channel-ico {
  background: #0068ff;
}
.channel-card.is-viber .channel-ico {
  background: #7360f2;
}
.channel-card.is-facebook .channel-ico,
.channel-card.is-messenger .channel-ico {
  background: #1877f2;
}

.channel-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.channel-txt strong {
  font-size: 0.92rem;
}

.channel-txt em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-actions .btn-ghost {
  border-color: rgba(34, 211, 238, 0.45);
}

.top-social,
.footer-social {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink) !important;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.social-chip:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  color: var(--ink) !important;
}

.social-chip.is-zalo i {
  color: #4da3ff;
}
.social-chip.is-viber i {
  color: #a89bff;
}
.social-chip.is-facebook i,
.social-chip.is-messenger i {
  color: #5b9dff;
}

.float-contact {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.float-btn:hover {
  transform: translateX(-3px);
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.float-btn.is-zalo {
  background: #0068ff;
}
.float-btn.is-viber {
  background: #7360f2;
}
.float-btn.is-facebook {
  background: #1877f2;
}
.float-btn.is-call {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111 !important;
}

.float-btn.is-call:hover {
  color: #111 !important;
}

@media (max-width: 575.98px) {
  .float-btn span {
    display: none;
  }
  .float-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .site-top .top-social .social-chip span {
    display: none;
  }
}

.site-footer {
  background: rgba(7, 11, 20, 0.9);
  color: var(--muted);
  padding: 56px 0 24px;
  border-top: 1px solid var(--line);
}

.theme-light .site-footer {
  background: #0f172a;
  color: #94a3b8;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer h3,
.site-footer h4 {
  color: #f8fafc;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: 0.85rem;
}

/* Modal */
.theme-modal {
  z-index: 1055;
}

.modal-backdrop {
  z-index: 1050;
}

body.modal-open .float-contact {
  visibility: hidden;
  pointer-events: none;
}

.theme-modal .modal-content {
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.theme-modal .modal-header,
.theme-modal .modal-footer {
  border-color: var(--line);
}

.theme-modal .close {
  color: var(--ink);
  text-shadow: none;
  opacity: 0.7;
}

.demo-tile {
  display: block;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.demo-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--ink);
}

.demo-tile-img {
  display: block;
  height: 120px;
  overflow: hidden;
  background: var(--surface-2);
}

.demo-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-tile-body {
  display: block;
  padding: 0.85rem;
}

.demo-tile-body small {
  display: block;
  color: var(--muted);
  margin: 0.25rem 0 0.5rem;
}

.demo-tile-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
}

.modal-kicker {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Reveal: cards stay visible; only .reveal-lift animates (fewer layout thrash) */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal-lift {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-lift.reveal-delay-1 {
  transition-delay: 0.06s;
}

.reveal-lift.reveal-delay-2 {
  transition-delay: 0.14s;
}

.reveal-lift.reveal-delay-3 {
  transition-delay: 0.22s;
}

.reveal-lift.is-in,
.hero .reveal-skip,
.hero-visual .reveal-skip {
  opacity: 1;
  transform: none;
}

@media (max-width: 1199.98px) {
  .project-highlight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0.35rem;
    padding-top: 1rem;
  }
  .metric-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-grid li {
    min-height: 0;
    padding: 0.75rem 0.85rem 0.9rem;
  }
  .metric-grid li:nth-child(3n + 1) {
    border-left: 0;
  }
  .metric-grid--compact li:nth-child(odd) {
    border-left: 0;
  }
  .metric-grid li:nth-child(n + 4) {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
  }
  .metric-grid--compact li:nth-child(n + 3) {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
  }
  .theme-light .metric-grid li:nth-child(n + 4),
  .theme-light .metric-grid--compact li:nth-child(n + 3) {
    border-top-color: rgba(15, 23, 42, 0.1);
  }
  .metric-grid li::after {
    left: 0.85rem;
    right: 0.85rem;
  }
  .hero-visual-wrap {
    min-height: auto;
    margin-top: 1rem;
    padding: 0.5rem 0 0;
  }
  .hero-devices {
    min-height: 360px;
  }
  .device-desktop {
    width: min(86%, 440px);
    right: 4%;
  }
  .device-phone {
    top: 38%;
    width: min(22%, 96px);
  }
  .hero-stack {
    position: relative;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0.55rem;
    margin-top: 1rem;
    padding: 0.15rem 0;
  }
  .hero-stack li {
    position: static;
    top: auto;
    left: auto;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    opacity: 1;
    --r: 0deg;
    animation: none;
    transform: none !important;
  }
}

@media (max-width: 575.98px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-grid li + li,
  .metric-grid li:nth-child(3n + 1) {
    border-left: 1px solid rgba(148, 163, 184, 0.16);
  }
  .metric-grid li:nth-child(odd) {
    border-left: 0;
  }
  .metric-grid li:nth-child(n + 3) {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
  }
  .metric-grid li:nth-child(n + 4) {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
  }
  .theme-light .metric-grid li + li,
  .theme-light .metric-grid li:nth-child(3n + 1) {
    border-left-color: rgba(15, 23, 42, 0.1);
  }
  .theme-light .metric-grid li:nth-child(odd) {
    border-left: 0;
  }
  .theme-light .metric-grid li:nth-child(n + 3) {
    border-top-color: rgba(15, 23, 42, 0.1);
  }
  .project-highlight {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .hero-visual-wrap {
    min-height: auto;
    padding: 0.35rem 0 0;
  }
  .hero-devices {
    min-height: 300px;
  }
  .device-desktop {
    width: 84%;
    top: 18px;
    right: 8%;
  }
  .device-tablet {
    width: 28%;
    bottom: 48px;
  }
  .device-phone {
    width: 20%;
    right: 0;
    top: 36%;
    bottom: auto;
  }
  .device-url {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora span,
  .device-bezel--desktop,
  .device-bezel--tablet,
  .device-bezel--phone,
  .hero-stack li,
  .terminal-body .cursor {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .device {
    transition: none !important;
  }
}

/* Pack price guide */
.pack-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin: 0.35rem 0 0.5rem;
}
.pack-price strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #5eead4, #38bdf8 55%, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pack-price span {
  font-size: 0.82rem;
  opacity: 0.72;
}
.packs-price-note {
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 0.25rem 0 0.75rem;
  max-width: 52rem;
}

/* Theme search / filter */
.themes-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.themes-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 200px;
  margin: 0;
}
.themes-search i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
  pointer-events: none;
}
.themes-search input {
  width: 100%;
  padding: 0.65rem 0.9rem 0.65rem 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  color: inherit;
  outline: none;
}
.theme-light .themes-search input {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
}
.themes-search input:focus {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.themes-sort {
  margin: 0;
}
.themes-sort select {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  color: inherit;
}
.theme-light .themes-sort select {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
}
.themes-count {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-left: auto;
}
.themes-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  opacity: 0.8;
}
.cat-nav .cat-chip {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.4);
  color: inherit;
}
.theme-light .cat-nav .cat-chip {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
}
.cat-nav .cat-chip.is-active {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}
.theme-light .cat-nav .cat-chip.is-active {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.12);
}
.theme-item[hidden] {
  display: none !important;
}

/* About / team */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 991.98px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
.about-visual {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  isolation: isolate;
}
.about-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.about-visual:hover img {
  transform: scale(1.03);
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(160deg, rgba(34, 211, 238, 0.28), transparent 50%),
    linear-gradient(340deg, rgba(8, 47, 73, 0.4), transparent 45%);
  opacity: 0.75;
}
.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 11, 20, 0.72) 100%);
}
.about-avatars {
  position: absolute;
  z-index: 2;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-avatars li {
  width: 2.4rem;
  height: 2.4rem;
  margin-left: -0.45rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0f172a;
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  border: 2px solid rgba(7, 11, 20, 0.85);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.about-avatars li:first-child {
  margin-left: 0;
}
.about-copy .eyebrow {
  margin-bottom: 0.5rem;
}
.about-copy h2 {
  margin-bottom: 0.85rem;
}
.about-bullets {
  list-style: none;
  margin: 1.1rem 0 1.35rem;
  padding: 0;
}
.about-bullets li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.45rem;
  opacity: 0.9;
}
.about-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #5eead4, #38bdf8);
}

/* FAQ */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.45);
  margin-bottom: 0.65rem;
  padding: 0 1rem;
  overflow: hidden;
}
.theme-light .faq-item {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 0.95rem 1.6rem 0.95rem 0;
  position: relative;
  outline: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  opacity: 0.65;
  font-weight: 400;
}
.faq-item[open] summary::after {
  content: '–';
}
.faq-item p {
  margin: 0 0 1rem;
  opacity: 0.85;
  line-height: 1.55;
}

/* ===== Media wash: đè màu / đè gradient trên ảnh ===== */
.showcase-img::before,
.showcase-img::after,
.project-thumb::before,
.project-thumb::after,
.news-thumb::before,
.news-thumb::after,
.theme-thumb::before,
.theme-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
}

/* Color grade — no mix-blend (cheaper paint); softer wash */
.showcase-img::before,
.project-thumb::before,
.theme-thumb::before {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.32), rgba(56, 189, 248, 0.06) 45%, transparent 62%),
    linear-gradient(315deg, rgba(245, 158, 11, 0.22), transparent 48%);
  opacity: 0.85;
}

.news-thumb::before {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), transparent 55%),
    linear-gradient(315deg, rgba(245, 158, 11, 0.1), transparent 50%);
  opacity: 0.55;
}

/* Depth / vignette */
.showcase-img::after,
.project-thumb::after,
.news-thumb::after,
.theme-thumb::after {
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.1) 0%, transparent 28%, rgba(7, 11, 20, 0.62) 100%),
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(56, 189, 248, 0.14), transparent 60%);
  opacity: 1;
}

.theme-light .showcase-img::after,
.theme-light .project-thumb::after,
.theme-light .news-thumb::after,
.theme-light .theme-thumb::after {
  background:
    linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, 0.32) 100%),
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(14, 165, 233, 0.1), transparent 60%);
  opacity: 0.75;
}

.theme-light .showcase-img::before,
.theme-light .project-thumb::before,
.theme-light .news-thumb::before,
.theme-light .theme-thumb::before {
  opacity: 0.45;
}

.showcase-card:hover .showcase-img::before,
.project-card:hover .project-thumb::before,
.news-card:hover .news-thumb::before,
.theme-card:hover .theme-thumb::before {
  opacity: 1;
}

.showcase-card:hover .showcase-img::after,
.project-card:hover .project-thumb::after,
.news-card:hover .news-thumb::after,
.theme-card:hover .theme-thumb::after {
  opacity: 0.85;
}

/* Accent edge shine on media frames */
.showcase-img,
.project-thumb,
.news-thumb {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.showcase-card:hover .showcase-img,
.project-card:hover .project-thumb {
  box-shadow:
    inset 0 0 0 1px rgba(34, 211, 238, 0.35),
    0 0 28px rgba(34, 211, 238, 0.12);
}

.news-card:hover .news-thumb {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
}

/* Hero stack: soft color rim */
.hero-visual-wrap::before {
  content: '';
  position: absolute;
  inset: 8% 4% 12% 8%;
  z-index: 0;
  pointer-events: none;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  background:
    radial-gradient(closest-side, rgba(34, 211, 238, 0.12), transparent 72%),
    conic-gradient(from 210deg, rgba(34, 211, 238, 0.08), transparent 35%, rgba(245, 158, 11, 0.06), transparent 70%);
  filter: blur(14px);
  opacity: 0.75;
}

.theme-light .hero-visual-wrap::before {
  opacity: 0.55;
}

.theme-light .about-visual::before {
  opacity: 0.55;
}

.theme-light .brand-overlay-card::before {
  opacity: 0.55;
}

.theme-light .band-photo::after {
  opacity: 0.5;
}

.theme-light .device-screen::after {
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-wrap::before {
    animation: none !important;
  }
  .showcase-img img,
  .project-thumb img,
  .news-thumb img,
  .theme-thumb img,
  .brand-overlay-card img,
  .about-visual img,
  .process-card img,
  .device-screen img {
    transition: none !important;
  }
  .device:hover .device-screen img,
  .showcase-card:hover .showcase-img img,
  .project-card:hover .project-thumb img,
  .brand-overlay-card:hover img,
  .about-visual:hover img {
    transform: none !important;
  }
}

/* Theme v2 — contact form */
.contact-hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.contact-form .form-control{background:rgba(255,255,255,.04);border:1px solid var(--line,#334155);color:inherit}
.contact-captcha__q{font-weight:700;margin-left:.25rem}
.contact-captcha__input{max-width:8rem}
.contact-form-status{margin:.75rem 0;font-weight:600}
.contact-form-status.is-success,.contact-form-msg.is-success{color:#34d399}
.contact-form-status.is-error{color:#f87171}
.price-card.is-popular{outline:1px solid var(--accent,#f59e0b)}
.nav-lang{list-style:none;padding:0;display:flex;gap:.5rem;align-items:center}
.nav-lang li{display:inline}
.nav-lang a{text-transform:uppercase;font-size:.8rem;font-weight:700}

/* Demo preview modal + footer menu */
body.st-modal-open{overflow:hidden}
.st-demo-modal{position:fixed;inset:0;z-index:1080;display:flex;align-items:center;justify-content:center;padding:1rem}
.st-demo-modal[hidden]{display:none!important}
.st-demo-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.65)}
.st-demo-modal__panel{position:relative;z-index:1;width:min(640px,100%);background:#0f172a;border:1px solid rgba(148,163,184,.28);border-radius:16px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.45)}
.st-demo-modal__close{position:absolute;top:.5rem;right:.75rem;z-index:2;background:transparent;border:0;color:#fff;font-size:1.75rem;line-height:1;cursor:pointer}
.st-demo-modal__media img,.st-demo-modal__placeholder{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:#1e293b}
.st-demo-modal__body{padding:1.25rem 1.5rem 1.5rem}
.st-demo-modal__title{margin:0 0 .35rem;font-size:1.25rem}
.st-demo-modal__meta{color:#94a3b8;margin:0 0 1rem}
.footer-menu .nav-item{list-style:none}
.footer-menu .nav-link,.footer-menu a{display:inline-block;padding:.2rem 0;color:inherit}
.footer-menu .btn-nav{margin:0;padding:.35rem .9rem}
.navbar-nav .nav-item-cta{list-style:none}
.hero-devices .device-screen:empty{min-height:8rem;background:linear-gradient(135deg,#1e293b,#0f172a)}
