/* ==========================================================================
   DTBOX SOLUTIONS — Design System (pure CSS)
   Style: Creative Technology Company — modern, minimal, tech-forward,
   with the warmth of the gifting craft.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette */
  --navy: #111827;
  --navy-800: #1a2333;
  --navy-700: #232e42;
  --charcoal: #202124;
  --blue: #3764ff;
  --blue-600: #2b51d6;
  --violet: #7c5cff;
  --coral: #ff6b5e;
  --coral-600: #e85a4e;
  --lavender: #e9e7ff;
  --lavender-soft: #f2f0ff;
  --paper: #f7f7f5;
  --white: #ffffff;

  /* Text */
  --text: #202124;
  --text-soft: #4b5563;
  --text-faint: #6b7280;
  --text-on-dark: #eef0f6;
  --text-on-dark-soft: #aab2c5;

  /* Lines & surfaces */
  --line: #e5e5e0;
  --line-dark: rgba(255, 255, 255, 0.12);
  --card: #ffffff;

  /* Type */
  --font-display: "Space Grotesk", "Be Vietnam Pro", sans-serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", sans-serif;

  /* Rhythm */
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --section-y: clamp(4rem, 9vw, 7rem);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05), 0 2px 8px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 6px 24px rgba(17, 24, 39, 0.09);
  --shadow-lg: 0 18px 48px rgba(17, 24, 39, 0.16);
  --grad-tech: linear-gradient(120deg, var(--blue) 0%, var(--violet) 100%);
  --ring: 0 0 0 3px rgba(55, 100, 255, 0.35);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

::selection {
  background: var(--lavender);
  color: var(--navy);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-soft);
  max-width: 46em;
}

.muted {
  color: var(--text-faint);
}

/* Signature: engraved tag chip — the personalization motif */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.42em 1em;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.12), inset 0 -1px 0 rgba(255, 255, 255, 0.7);
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 1px 1px rgba(17, 24, 39, 0.35);
}

.tag--dark {
  background: rgba(233, 231, 255, 0.14);
  color: var(--lavender);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.tag--coral::before {
  background: var(--coral);
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--white {
  background: var(--white);
}

.section--lavender {
  background: var(--lavender-soft);
}

.section--navy {
  background: var(--navy);
  color: var(--text-on-dark);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section--navy p {
  color: var(--text-on-dark-soft);
}

.section-head {
  max-width: 620px;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}

.section-head .tag {
  margin-bottom: 1.1rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(55, 100, 255, 0.35);
}

.btn--primary:hover {
  background: var(--blue-600);
  box-shadow: 0 10px 24px rgba(55, 100, 255, 0.4);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--navy);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--navy);
}

.section--navy .btn--ghost,
.cta-band .btn--ghost,
.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.section--navy .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.hero .btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn--coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(255, 107, 94, 0.35);
}

.btn--coral:hover {
  background: var(--coral-600);
}

.btn--sm {
  padding: 0.55em 1.2em;
  font-size: 0.85rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.arrow-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.arrow-link::after {
  content: "→";
  transition: transform 0.18s ease;
}

.arrow-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 247, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

.logo .logo-box {
  color: var(--blue);
}

.logo .logo-suffix {
  font-weight: 500;
  font-size: 0.62em;
  letter-spacing: 0.22em;
  color: var(--text-faint);
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.4em 0;
}

.main-nav a:hover {
  color: var(--navy);
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  color: var(--blue);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.lang-switch a {
  padding: 0.34em 0.8em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.lang-switch a:hover {
  text-decoration: none;
  color: var(--navy);
}

.lang-switch a[aria-current="true"] {
  background: var(--navy);
  color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1080px) {
  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 1.2rem 1.5rem 1.6rem;
    display: none;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav li + li {
    border-top: 1px solid var(--line);
  }

  .main-nav a {
    display: block;
    padding: 0.85em 0.2em;
    font-size: 1rem;
  }

  .header-inner {
    gap: 0.75rem;
  }

  /* Pin the language switch + menu button together at the right, snug to the edge */
  .header-actions {
    margin-left: auto;
    gap: 0.55rem;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .main-nav .nav-cta-mobile {
    display: block;
    margin-top: 1.1rem;
  }

  .main-nav .nav-cta-mobile .btn {
    width: 100%;
  }
}

@media (min-width: 1081px) {
  .main-nav .nav-cta-mobile {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero::before {
  /* blueprint grid — the technology layer */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(233, 231, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 231, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 65% 20%, black 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 65% 20%, black 35%, transparent 78%);
}

.hero::after {
  /* warm/tech gradient glow — the emotional layer */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(38% 48% at 82% 28%, rgba(124, 92, 255, 0.32), transparent 70%),
    radial-gradient(30% 40% at 62% 78%, rgba(55, 100, 255, 0.3), transparent 70%),
    radial-gradient(20% 28% at 90% 82%, rgba(255, 107, 94, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.5em;
}

.hero h1 .accent {
  background: linear-gradient(100deg, #8fa8ff, var(--violet) 55%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  color: var(--text-on-dark-soft);
  margin-bottom: 2rem;
}

.hero .tag--dark {
  margin-bottom: 1.4rem;
}

/* Hero capability stack — floating glass cards showcasing DTBOX's tech-to-gift flow */
.hero-stack {
  position: relative;
  min-height: 560px;
}

.hero-card {
  position: absolute;
  width: min(246px, 58%);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(233, 231, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 0.85rem 0.85rem 1.1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.42);
}

.hero-card__media {
  background: #fff;
  border-radius: calc(var(--radius-lg) - 8px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card__badge {
  display: inline-block;
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--lavender);
  background: rgba(233, 231, 255, 0.1);
  border: 1px solid rgba(233, 231, 255, 0.2);
  border-radius: 6px;
  padding: 0.34em 0.7em;
}

.hero-card__title {
  margin: 0.6rem 0 0.65rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(100deg, #8fa8ff, #b98cff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.hero-card__list li {
  position: relative;
  padding-left: 1.15em;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-on-dark-soft);
}

.hero-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--blue), var(--violet));
}

.hero-card--1 {
  top: 0;
  left: -6%;
  transform: rotate(-5deg);
  animation: float 7s ease-in-out infinite;
  z-index: 1;
}

.hero-card--2 {
  top: 34%;
  left: 26%;
  transform: rotate(1deg);
  animation: float 8s ease-in-out 0.9s infinite;
  z-index: 3;
}

.hero-card--3 {
  top: 8%;
  right: -8%;
  transform: rotate(5deg);
  animation: float 9s ease-in-out 1.8s infinite;
  z-index: 2;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: 3.5rem 4rem;
  }

  .hero-stack {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 420px;
  }

  .hero-card {
    position: static;
    width: auto;
    transform: none;
    animation: none;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 0.9rem 1rem;
    align-items: center;
  }

  .hero-card__media {
    grid-row: span 3;
    aspect-ratio: 1 / 1;
    align-self: start;
  }

  .hero-card__badge {
    margin-top: 0;
    justify-self: start;
  }

  .hero-card__title {
    margin: 0;
  }

  .hero-card__list {
    grid-column: 2;
  }
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(233, 231, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 231, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 100% at 80% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 80% 0%, black 30%, transparent 75%);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(34% 60% at 85% 20%, rgba(124, 92, 255, 0.28), transparent 70%),
    radial-gradient(24% 44% at 10% 90%, rgba(55, 100, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.2rem, 6.5vw, 5rem);
  max-width: none;
}

.page-hero h1 {
  color: var(--white);
  max-width: 16em;
}

.page-hero .lead {
  color: var(--text-on-dark-soft);
  margin-bottom: 0;
}

.page-hero .tag--dark {
  margin-bottom: 1.2rem;
}

/* ---------- Cards ---------- */
.sol-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sol-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(55, 100, 255, 0.35);
}

.sol-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--lavender-soft);
  color: var(--blue);
  transition: background 0.22s ease, color 0.22s ease;
}

.sol-card:hover .icon {
  background: var(--grad-tech);
  color: var(--white);
}

.sol-card h3 {
  margin-bottom: 0;
}

.sol-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  flex: 1;
}

/* Product cards */
.prod-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.prod-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.prod-card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--lavender-soft);
  overflow: hidden;
}

.prod-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.prod-card:hover .thumb img {
  transform: scale(1.04);
}

.prod-card .body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.prod-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28em 0.75em;
  border-radius: 999px;
  background: var(--lavender-soft);
  color: var(--blue-600);
  border: 1px solid rgba(55, 100, 255, 0.18);
}

.pill--coral {
  background: rgba(255, 107, 94, 0.1);
  color: var(--coral-600);
  border-color: rgba(255, 107, 94, 0.25);
}

.prod-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.prod-card h3 a {
  color: inherit;
}

.prod-card h3 a:hover {
  color: var(--blue);
  text-decoration: none;
}

.prod-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  flex: 1;
}

.prod-card .personalize {
  font-size: 0.82rem;
  color: var(--text-faint);
  border-top: 1px dashed var(--line);
  padding-top: 0.7rem;
}

.prod-card .personalize strong {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.2rem;
}

.filter-btn {
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 0.45em 1.15em;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--font-display);
  transition: all 0.18s ease;
}

.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.filter-btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ---------- Process timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  position: relative;
  counter-increment: step;
  padding-top: 3.4rem;
}

.timeline li::before {
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--grad-tech);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(55, 100, 255, 0.35);
  z-index: 1;
}

.timeline li::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 52px;
  right: -1.2rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(55, 100, 255, 0.4), rgba(124, 92, 255, 0.15));
}

.timeline li:last-child::after {
  display: none;
}

.timeline h3 {
  font-size: 1.02rem;
  margin-bottom: 0.3em;
}

.timeline p {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0;
}

@media (max-width: 900px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline li {
    padding: 0 0 2rem 4.2rem;
  }

  .timeline li::after {
    top: 48px;
    left: 21px;
    right: auto;
    bottom: 4px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(55, 100, 255, 0.4), rgba(124, 92, 255, 0.15));
  }
}

/* ---------- Feature list (why DTBOX) ---------- */
.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature .dot {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(233, 231, 255, 0.12);
  color: var(--lavender);
  border: 1px solid rgba(233, 231, 255, 0.18);
}

.section:not(.section--navy) .feature .dot {
  background: var(--lavender-soft);
  color: var(--blue);
  border-color: var(--line);
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 0.25em;
}

.feature p {
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Brand spotlight (Quà Nhỏ) ---------- */
.brand-spot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 6px);
  padding: clamp(1.6rem, 4vw, 3.2rem);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.brand-spot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--coral), var(--violet));
}

.brand-spot .visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.brand-spot .slogan {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--coral-600);
  margin: 0.8rem 0 1.4rem;
}

@media (max-width: 820px) {
  .brand-spot {
    grid-template-columns: 1fr;
  }
}

/* Brand / project cards */
.brand-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.brand-card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--lavender-soft);
}

.brand-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-card .body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.brand-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-soft);
  flex: 1;
}

.brand-card--soon {
  border-style: dashed;
  background: repeating-linear-gradient(-45deg, var(--white) 0 14px, #fbfbf9 14px 28px);
}

.brand-card--soon:hover {
  transform: none;
  box-shadow: none;
}

.brand-card--soon .thumb {
  display: grid;
  place-items: center;
  color: var(--text-faint);
}

/* ---------- Values / About ---------- */
.value-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
}

.value-card h3 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.4em;
}

.value-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad-tech);
  transform: rotate(45deg);
  flex: none;
}

.value-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Vision / mission blocks */
.vm-block {
  background: var(--navy);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  position: relative;
  overflow: hidden;
}

.vm-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 90% 10%, rgba(124, 92, 255, 0.3), transparent 70%);
  pointer-events: none;
}

.vm-block h3 {
  color: var(--lavender);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9em;
}

.vm-block p {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--white);
  margin: 0;
}

.vm-block--light {
  background: var(--lavender-soft);
  color: var(--text);
}

.vm-block--light::after {
  background: radial-gradient(60% 80% at 90% 10%, rgba(255, 107, 94, 0.12), transparent 70%);
}

.vm-block--light h3 {
  color: var(--blue-600);
}

.vm-block--light p {
  color: var(--navy);
}

/* Milestones */
.milestones {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--lavender);
}

.milestones li {
  position: relative;
  padding: 0 0 1.8rem 1.8rem;
}

.milestones li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--lavender-soft);
}

.milestones .when {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.milestones h3 {
  font-size: 1.02rem;
  margin: 0.15em 0 0.25em;
}

.milestones p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* Team */
.person {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  max-width: 420px;
}

.person .avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  background: var(--grad-tech);
}

.person h3 {
  margin: 0;
  font-size: 1.05rem;
}

.person p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-faint);
}

/* Legal info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 0.8em 1em;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.info-table th {
  white-space: nowrap;
  font-weight: 600;
  color: var(--navy);
  width: 34%;
}

/* ---------- Solution detail ---------- */
.sol-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.sol-detail:first-of-type {
  border-top: 0;
}

.sol-detail .head .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--grad-tech);
  color: var(--white);
  margin-bottom: 1.1rem;
}

.sol-detail .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2rem;
}

.sol-detail h4 {
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.6em;
}

.sol-detail ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.sol-detail ul li {
  padding: 0.3em 0 0.3em 1.3em;
  position: relative;
}

.sol-detail ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--lavender);
  border: 1px solid rgba(55, 100, 255, 0.4);
  transform: rotate(45deg);
}

@media (max-width: 860px) {
  .sol-detail {
    grid-template-columns: 1fr;
  }

  .sol-detail .cols {
    grid-template-columns: 1fr;
  }
}

/* Anchor sub-nav */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
}

.subnav a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.4em 1em;
}

.subnav a:hover {
  text-decoration: none;
  border-color: var(--blue);
  color: var(--blue);
}

/* ---------- Product detail ---------- */
.prod-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.prod-detail .gallery .main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--lavender-soft);
}

.prod-detail .gallery .thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.prod-detail .gallery .thumbs img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--lavender-soft);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.spec-block + .spec-block {
  margin-top: 1.6rem;
}

.spec-block h3 {
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.6em;
}

.spec-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
  color: var(--text-soft);
}

.spec-block ul li {
  padding: 0.28em 0 0.28em 1.3em;
  position: relative;
}

.spec-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--lavender);
  border: 1px solid rgba(55, 100, 255, 0.4);
  transform: rotate(45deg);
}

@media (max-width: 820px) {
  .prod-detail {
    grid-template-columns: 1fr;
  }
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-on-dark-soft);
}

.breadcrumb a {
  color: var(--lavender);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--navy);
  color: var(--text-on-dark);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 70% at 15% 20%, rgba(55, 100, 255, 0.35), transparent 70%),
    radial-gradient(36% 60% at 85% 80%, rgba(124, 92, 255, 0.3), transparent 70%),
    radial-gradient(20% 36% at 70% 10%, rgba(255, 107, 94, 0.16), transparent 70%);
}

.cta-band .container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.cta-band h2 {
  color: var(--white);
  max-width: 18em;
  margin-inline: auto;
}

.cta-band p {
  color: var(--text-on-dark-soft);
  max-width: 40em;
  margin: 0 auto 2rem;
}

.cta-band .btn-row {
  justify-content: center;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4em;
}

.field label .opt {
  font-weight: 400;
  color: var(--text-faint);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.7em 0.9em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(55, 100, 255, 0.16);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--coral-600);
}

.field .error-msg {
  display: none;
  font-size: 0.8rem;
  color: var(--coral-600);
  margin-top: 0.35em;
}

.field.has-error .error-msg {
  display: block;
}

.field input[type="file"] {
  padding: 0.55em 0.7em;
  background: var(--lavender-soft);
  border-style: dashed;
  cursor: pointer;
}

.check-field {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.check-field input {
  margin-top: 0.3em;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  flex: none;
}

.form-note {
  font-size: 0.83rem;
  color: var(--text-faint);
}

.form-success {
  display: none;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem) 2rem;
}

.form-success.is-visible {
  display: block;
}

.form-success .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-tech);
  color: var(--white);
}

.form-error-banner {
  display: none;
  background: rgba(255, 107, 94, 0.09);
  border: 1px solid rgba(255, 107, 94, 0.35);
  color: var(--coral-600);
  border-radius: 10px;
  padding: 0.8em 1em;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.form-error-banner.is-visible {
  display: block;
}

/* Honeypot — hidden from humans, visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list .ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--lavender-soft);
  color: var(--blue);
}

.contact-list .label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 7;
  background: var(--lavender-soft);
  display: grid;
  place-items: center;
  color: var(--text-faint);
  text-align: center;
  padding: 1rem;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.social-row {
  display: flex;
  gap: 0.7rem;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--text-soft);
  transition: all 0.18s ease;
}

.social-row a:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--text-on-dark-soft);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.site-footer .logo {
  color: var(--white);
  margin-bottom: 0.9rem;
}

.site-footer .logo .logo-suffix {
  color: var(--text-on-dark-soft);
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1em;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer ul li {
  padding: 0.28em 0;
}

.site-footer a {
  color: var(--text-on-dark-soft);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 1.4rem;
}

/* ---------- 404 ---------- */
.page-404 {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 5rem;
}

.page-404 .code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.2em;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.reveal-d1 {
  transition-delay: 0.08s;
}

.reveal-d2 {
  transition-delay: 0.16s;
}

.reveal-d3 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Utilities ---------- */
.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.6em 1.2em;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}
