/* ==========================================================================
   OPUS RENTAL — TD TECH | Light corporate theme
   Đồng bộ với https://tdultrasound.vn (cyan #13B7E5 / blue #004E88 / Play)
   ========================================================================== */

:root {
  /* Palette — TD Tech light corporate */
  --brand: #004e88;          /* xanh đậm chủ đạo */
  --brand-deep: #022f4f;     /* navy — footer / dải tối */
  --brand-soft: #0b7a9a;     /* xanh mực — link phụ */

  --neon: #13b7e5;           /* cyan nhấn (giữ tên biến cũ) */
  --neon-2: #4fc3f7;         /* cyan sáng */
  --coral: #e25e2f;          /* cam — cảnh báo / lỗi */
  --amber: #f4b740;

  --bg-0: #ffffff;
  --bg-1: #f7fcff;
  --bg-2: #ecf7fd;
  --bg-3: #e2f5fa;

  --text-hi: #0b2c45;        /* chữ đậm / input */
  --text-mid: #525252;       /* body */
  --text-low: #7d8b95;       /* phụ */

  --glass: #ffffff;          /* nền thẻ */
  --glass-strong: #f7fcff;
  --line: #e6f2f9;
  --line-strong: #cfe0ec;

  --font-head: 'Play', 'Be Vietnam Pro', sans-serif;
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(0, 78, 136, 0.06);
  --shadow-md: 0 10px 28px rgba(0, 78, 136, 0.10);
  --shadow-lg: 0 20px 48px rgba(0, 78, 136, 0.14);

  --glow-neon: 0 8px 24px rgba(19, 183, 229, 0.30);
  --glow-coral: 0 8px 24px rgba(19, 183, 229, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1180px;
  --header-h: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-mid);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-soft); text-decoration: none; }
a:hover { color: var(--neon); }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--brand);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}
h1 { font-size: clamp(1.85rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.08rem; }

.text-neon {
  background: linear-gradient(92deg, var(--neon) 5%, var(--brand) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--neon); /* fallback */
}
.text-dim { color: var(--text-low); -webkit-text-fill-color: currentColor; font-weight: 400; }
.accent { color: var(--neon); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; width: 100%; }
.container-narrow { max-width: 820px; }
.section { padding: clamp(2.6rem, 5.5vw, 4.4rem) 0; position: relative; }

/* Dải nền luân phiên — nhịp trang giống tdultrasound.vn */
.section-tint {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-band {
  background: linear-gradient(160deg, var(--bg-2) 0%, #ffffff 55%, var(--bg-3) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(1.6rem, 3.4vw, 2.6rem); }
.section-head h2 { margin: 0.9rem 0 0.85rem; position: relative; padding-bottom: 0.85rem; }
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 62px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(92deg, var(--neon), var(--brand));
}
.section-head p { color: var(--text-mid); }

/* ===== Background layers ===== */
.bg-aurora,
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.bg-aurora {
  background:
    radial-gradient(60vw 50vh ellipse at 88% -8%, rgba(19, 183, 229, 0.10), transparent 62%),
    radial-gradient(52vw 45vh ellipse at -12% 30%, rgba(0, 78, 136, 0.06), transparent 62%),
    radial-gradient(55vw 50vh ellipse at 72% 106%, rgba(79, 195, 247, 0.08), transparent 62%),
    var(--bg-0);
}
.bg-grid {
  z-index: -1;
  background-image:
    linear-gradient(rgba(0, 78, 136, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 78, 136, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 0%, transparent 100%);
}

/* ===== Chips & buttons ===== */
.chip {
  display: inline-block;
  padding: 0.34rem 0.95rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--bg-2);
  border: 1px solid rgba(19, 183, 229, 0.28);
}
.chip-pulse { animation: chipPulse 2.6s ease-in-out infinite; }
@keyframes chipPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(19, 183, 229, 0.28); }
  50% { box-shadow: 0 0 0 6px rgba(19, 183, 229, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 40px; padding: 0.45rem 1.15rem; font-size: 0.85rem; }
.btn-lg { min-height: 54px; padding: 0.9rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* CTA chính — cyan đặc, chữ trắng (giống nút tdultrasound.vn) */
.btn-glow {
  background: var(--neon);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: var(--glow-neon);
}
.btn-glow:hover {
  background: #0ba2cd;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(19, 183, 229, 0.42);
}

/* CTA phụ — viền cyan, nền trắng */
.btn-ghost {
  background: #fff;
  color: var(--brand-soft);
  border: 2px solid var(--neon);
}
.btn-ghost:hover {
  background: var(--bg-2);
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled,
.site-header.menu-open {
  background: #fff;
  border-bottom-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }

/* Logo TD Tech */
.brand-logo {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
.site-header.scrolled .brand-logo { transform: scale(0.94); }

/* Dải phân cách giữa logo và tên dịch vụ */
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-height: 34px;
  line-height: 1.25;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line-strong);
}
.brand-text strong { color: var(--brand); font-family: var(--font-head); font-size: 1.02rem; }
.brand-text small { color: var(--text-low); font-size: 0.68rem; }

.main-nav {display: flex;align-items: center;gap: 1.2rem;}
.main-nav a:not(.btn) {
  color: var(--text-mid);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.main-nav a:not(.btn):hover { color: var(--brand); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.6rem)) 0 clamp(2rem, 4.5vw, 3rem);
  position: relative;
  background: linear-gradient(160deg, var(--bg-2) 0%, #ffffff 55%, var(--bg-3) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero h1 { margin: 1.1rem 0 1rem; }
.hero-lead { font-size: clamp(1rem, 2.4vw, 1.1rem); max-width: 54ch; color: var(--text-mid); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 1.5rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.45rem 1.6rem; }
.hero-points li {
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-mid);
}
.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #fff;
  background: var(--neon);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-size: 0.66rem;
  display: grid;
  place-items: center;
  top: 0.42em;
  font-weight: 800;
}

/* ===== Product gallery (slideshow) ===== */
.gallery { max-width: 880px; margin: 0 auto clamp(1.6rem, 3vw, 2.4rem); }
.gallery-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 85% at 50% 50%, rgba(19, 183, 229, 0.08), transparent 70%),
    #fff;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
}
.gallery-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
}
.slide-contain img { object-fit: contain; padding: 1.4rem 1.4rem 3.4rem; }
.slide-cover img { object-fit: cover; }
.gallery-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 1.2rem 0.95rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96) 55%);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand);
  text-align: center;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--brand);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding-bottom: 4px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.gallery-arrow:hover { border-color: var(--neon); color: var(--neon); background: #fff; box-shadow: var(--glow-neon); }
.gallery-arrow.prev { left: 0.8rem; }
.gallery-arrow.next { right: 0.8rem; }
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}
.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s var(--ease), width 0.3s var(--ease), border-color 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.gallery-dot.active {
  width: 26px;
  background: linear-gradient(92deg, var(--neon), var(--brand));
  border-color: transparent;
}

/* Thẻ hình hero */
.holo-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  box-shadow: var(--shadow-lg);
}
.holo-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(19, 183, 229, 0.55), transparent 42%, transparent 58%, rgba(0, 78, 136, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.holo-screen {
  position: relative;
  height: clamp(220px, 30vw, 300px);
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(19, 183, 229, 0.14), transparent 65%),
    var(--bg-1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.holo-screen img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 78, 136, 0.22));
}
.holo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 1.15rem;
  text-align: center;
}
.holo-stats .stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--neon);
}
.holo-stats .stat span { font-size: 0.7rem; color: var(--text-low); display: block; line-height: 1.35; }

/* Trust strip */
.trust-strip {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.4rem 0 0.4rem;
  border-top: 1px solid var(--line-strong);
  text-align: center;
}
.trust-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  color: var(--brand);
}
.trust-item span { font-size: 0.82rem; color: var(--text-low); }

/* ===== Specialty pills ===== */
.spec-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line-strong);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.spec-soon { border-style: dashed; color: var(--text-low); box-shadow: none; }
.spec-soon small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon);
  background: var(--bg-2);
  border: 1px solid rgba(19, 183, 229, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.5rem;
}

/* ===== Cards ===== */
.g-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
@media (hover: hover) {
  .g-card:hover {
    transform: translateY(-4px);
    border-color: rgba(19, 183, 229, 0.45);
    box-shadow: var(--shadow-md);
  }
}
.g-card h3 { margin-bottom: 0.45rem; }
.g-card p { font-size: 0.92rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.g-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 0.95rem;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--neon), var(--brand));
  box-shadow: 0 6px 16px rgba(19, 183, 229, 0.3);
}

.note {
  margin-top: 1.8rem;
  padding: 1rem 1.3rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--neon);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
}
.note strong { color: var(--brand); }

/* ===== Why grid ===== */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.g-card-row { display: flex; gap: 1.1rem; align-items: flex-start; }
.why-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--neon);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2.1rem 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
@media (hover: hover) {
  .price-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
}
.price-card h3 { font-size: 1.35rem; }
.price-duration {
  color: var(--neon);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  margin: 0.25rem 0 1.2rem;
}
.price-card ul { flex: 1; margin-bottom: 1.5rem; }
.price-card li {
  position: relative;
  padding: 0.38rem 0 0.38rem 1.6rem;
  font-size: 0.91rem;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--neon);
  font-weight: 800;
}
.price-card-featured {
  border: 2px solid var(--neon);
  background: linear-gradient(180deg, var(--bg-2), #ffffff 42%);
  box-shadow: var(--shadow-lg);
}
.ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3rem 1.05rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--glow-neon);
}

/* ===== Price amount on cards ===== */
.price-amount {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin: -0.6rem 0 1.1rem;
}
.price-amount strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--brand);
}
.price-amount span { font-size: 0.8rem; color: var(--text-low); }

/* ===== Quick quote calculator ===== */
.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.3rem;
  align-items: start;
}
.calc-controls { padding: clamp(1.4rem, 3vw, 1.9rem); }
.calc-field { margin-bottom: 1.5rem; }
.calc-field:last-child { margin-bottom: 0; }
.calc-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand);
  margin-bottom: 0.65rem;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.day-chip {
  min-height: 44px;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text-mid);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.day-chip { display: inline-flex; flex-direction: column; align-items: center; gap: 0.05rem; line-height: 1.2; }
.day-chip small {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--coral);
}
.day-chip.active small { color: #fff; }
.day-chip:hover { border-color: var(--neon); color: var(--brand); }
.day-chip.active {
  border-color: var(--neon);
  color: #fff;
  background: var(--neon);
  box-shadow: var(--glow-neon);
}
.calc-custom-days {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-low);
}
.calc-custom-days input {
  width: 96px;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-hi);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.calc-custom-days input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(19, 183, 229, 0.18); }

.stepper { display: inline-flex; align-items: stretch; gap: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.stepper-btn {
  width: 52px;
  min-height: 50px;
  border: none;
  background: var(--bg-2);
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.stepper-btn:hover { background: var(--neon); color: #fff; }
.stepper input {
  width: 86px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button,
.calc-custom-days input::-webkit-outer-spin-button,
.calc-custom-days input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }

.calc-address {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
}
.calc-address::placeholder { color: var(--text-low); opacity: 1; }
.calc-address:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(19, 183, 229, 0.18); }
.calc-hint {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-low);
  line-height: 1.5;
}

.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.6rem 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
  margin-top: 0.1rem;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--text-low);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.switch-row input:checked + .switch {
  background: var(--neon);
  border-color: var(--neon);
}
.switch-row input:checked + .switch::after {
  transform: translateX(19px);
  background: #fff;
}
.switch-text { font-size: 0.93rem; color: var(--text-hi); font-weight: 600; line-height: 1.45; }
.switch-text small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--text-low); }

.calc-result {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border: 2px solid var(--neon);
  background: linear-gradient(180deg, var(--bg-2), #ffffff 45%);
  box-shadow: var(--shadow-md);
}
.calc-result-tier { font-size: 0.88rem; color: var(--text-low); margin-bottom: 0.6rem; }
.calc-result-tier strong { color: var(--brand); font-family: var(--font-head); }
.calc-discount-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--neon);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.95rem;
  margin-bottom: 0.8rem;
  box-shadow: var(--glow-neon);
}
.calc-bracket {
  font-size: 0.84rem;
  color: var(--brand);
  background: var(--bg-2);
  border: 1px solid rgba(19, 183, 229, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.calc-rows { display: flex; flex-direction: column; gap: 0.55rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line-strong); }
.calc-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.93rem; }
.calc-row span { flex-shrink: 0; }
.calc-row strong { color: var(--text-hi); font-weight: 600; text-align: right; }
.calc-row-sub span { color: var(--text-low); }
.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0 0.4rem;
}
.calc-total span { font-family: var(--font-head); font-weight: 700; color: var(--brand); }
.calc-total span small { display: block; font-size: 0.72rem; font-weight: 400; color: var(--text-low); }
.calc-extra { color: var(--text-mid) !important; font-weight: 500 !important; font-size: 0.88rem; }
.calc-paysub { font-size: 0.86rem; color: var(--text-mid); margin: 0.1rem 0 0.6rem; }
.calc-paysub strong { color: var(--brand); }
.calc-total strong {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: var(--neon);
  white-space: nowrap;
}
.calc-saving {
  font-size: 0.85rem;
  color: var(--brand-soft);
  margin-bottom: 0.4rem;
}
.calc-deposit { font-size: 0.82rem; color: var(--text-low); margin: 0.4rem 0 1.1rem; }
.calc-deposit strong { color: var(--text-mid); }
.calc-note { font-size: 0.78rem; color: var(--text-low); text-align: center; margin-top: 0.8rem; }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--brand));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 0.85rem;
  box-shadow: 0 6px 16px rgba(19, 183, 229, 0.28);
}
.step h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.87rem; }

/* ===== Audience ===== */
.audience-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}
.audience-card {
  padding: 0.75rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
@media (hover: hover) {
  .audience-card:hover { border-color: var(--neon); background: var(--bg-2); box-shadow: var(--glow-neon); }
}

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq-item[open] { border-color: var(--neon); box-shadow: var(--shadow-md); }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--brand);
  padding: 1.1rem 2.1rem 1.1rem 0;
  list-style: none;
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.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.45rem;
  font-weight: 300;
  color: var(--neon);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 0 1.2rem; font-size: 0.93rem; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}
.contact-info h2 { margin: 0.9rem 0 0.7rem; }
.contact-list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.85rem; }
.contact-list li { font-size: 0.93rem; display: flex; flex-wrap: wrap; gap: 0.2rem 0.7rem; }
.contact-list li > span {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
  min-width: 86px;
  padding-top: 0.18rem;
}
.contact-list a { font-weight: 700; color: var(--brand); }
.contact-list a:hover { color: var(--neon); }

.contact-form { padding: clamp(1.4rem, 4vw, 2rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.05rem; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px; /* prevents iOS zoom-on-focus */
  color: var(--text-hi);
  background: #fff;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2313b7e5' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.4rem;
}
.form-group ::placeholder { color: var(--text-low); opacity: 1; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(19, 183, 229, 0.18);
}
.form-status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid rgba(19, 183, 229, 0.35);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}
.form-status--error {
  background: rgba(226, 94, 47, 0.08);
  border-color: rgba(226, 94, 47, 0.4);
  color: var(--coral);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.72);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 2.2rem;
  padding-top: 3.2rem;
  padding-bottom: 2.4rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand .brand-logo { height: 52px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand .brand-text { border-left-color: rgba(255, 255, 255, 0.22); }
.footer-brand .brand-text strong { color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.footer-brand .brand-text small { color: rgba(255, 255, 255, 0.6); font-size: 0.68rem; }
.site-footer h4 { margin-bottom: 0.9rem; font-size: 0.92rem; color: #fff; }
.site-footer p, .site-footer li { font-size: 0.87rem; color: rgba(255, 255, 255, 0.66); }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255, 255, 255, 0.82); }
.site-footer a:hover { color: var(--neon-2); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 1.2rem 1.25rem calc(1.2rem + env(safe-area-inset-bottom));
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }

/* ===== Nav backdrop (mobile menu) ===== */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(2, 47, 79, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.nav-backdrop.visible { opacity: 1; visibility: visible; }
body.nav-locked { overflow: hidden; }

/* ===== Mobile sticky CTA ===== */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -6px 24px rgba(0, 78, 136, 0.10);
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0.7rem;
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.mobile-cta.visible { transform: translateY(0); }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ===== Reduced motion ===== */
@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; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .price-card-featured { order: -1; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.1rem 1.25rem 1.4rem;
    gap: 0.2rem;
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-115%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s;
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav a:not(.btn) {
    padding: 0.85rem 0.25rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .btn { margin-top: 0.9rem; min-height: 48px; }
}

@media (max-width: 720px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 0.8rem; }
  .feature-grid, .why-grid, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .g-card-row { gap: 0.9rem; }

  .mobile-cta { display: grid; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 72px; } /* room for sticky CTA */

  .brand-logo { height: 44px; }
  .gallery-frame { aspect-ratio: 4 / 3.4; }
  .slide-contain img { padding: 0.9rem 0.9rem 3rem; }
  .gallery-arrow { width: 40px; height: 40px; font-size: 1.4rem; }
  .gallery-arrow.prev { left: 0.5rem; }
  .gallery-arrow.next { right: 0.5rem; }
  .gallery-slide figcaption { font-size: 0.82rem; }
}

@media (max-width: 420px) {
  .brand-text { padding-left: 0.6rem; min-height: 28px; }
  .brand-text strong { font-size: 0.9rem; }
  .site-header .brand-text small { display: none; } /* chỉ ẩn ở header — footer vẫn giữ tagline */
  .brand-logo { height: 38px; }
}

@media (max-width: 360px) {
  .holo-stats .stat strong { font-size: 1.05rem; }
}
