/*
 * Coming-soon page for Hợp Nhất Holdings. Standalone: no build step, no framework.
 * Brand tokens are copied from apps/web/src/app/(frontend)/globals.css (@theme); keep them in sync.
 */
:root {
  /* From apps/web @theme */
  --color-navy-950: #0f172a;
  --color-navy-900: #0d1c2f;
  --color-accent: #ea580c;
  --color-accent-dark: #c2410c;
  --color-accent-light: #f97316;
  --color-amber: #f59e0b;
  --shadow-raised: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  /* Values only this page uses (from the Figma design) */
  --color-page: #0b192c;
  --color-text-soft: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-orange-300: #fb923c;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --fill: rgba(255, 255, 255, 0.05);
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --gutter: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--color-page);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip;
  background: var(--color-page);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Background: grid, amber glow, structural rules ---------- */

.ambient {
  position: absolute;
  inset: 0 0 auto;
  height: min(790px, 100%);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 66% 60% at 50% 30%, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0) 70%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}

/* ---------- Header ---------- */

.header {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 25, 44, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  min-height: 72px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.brand__logo {
  width: auto;
  height: 44px;
}

.brand__divider {
  width: 1px;
  height: 24px;
  background: var(--line-strong);
}

.brand__tag {
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--fill);
  color: var(--color-amber);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-badge__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-amber);
}

.status-badge__dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-amber);
  opacity: 0.75;
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.lang {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--fill);
}

.lang__btn {
  min-width: 36px;
  min-height: 36px;
  padding: 2px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.lang__btn:hover {
  color: #fff;
}

.lang__btn[aria-pressed='true'] {
  background: var(--color-accent-dark);
  color: #fff;
}

/* ---------- Hero ---------- */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 944px;
  margin-inline: auto;
  padding: 40px var(--gutter) 48px;
  text-align: center;
}

.launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 7px 17px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  background: var(--fill);
  color: var(--color-amber);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.headline {
  display: flex;
  flex-direction: column;
  max-width: 896px;
  margin-bottom: 24px;
  font-size: clamp(34px, 10vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.headline__accent {
  background: linear-gradient(90deg, var(--color-amber), var(--color-orange-300) 50%, var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 672px;
  margin-bottom: 40px;
  color: var(--color-text-soft);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.lead strong {
  color: #fff;
  font-weight: 600;
}

.lead em {
  color: var(--color-amber);
  font-style: normal;
  font-weight: 600;
}

/* ---------- Countdown ---------- */

.countdown {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-bottom: 48px;
  padding: 24px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.countdown::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--color-amber), var(--color-accent) 50%, var(--color-amber));
}

.countdown__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.countdown__title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown__heading {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.025em;
}

.target-chip {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--fill);
  color: var(--color-amber);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.clock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.clock__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 25, 44, 0.9);
  text-align: center;
}

.clock__value {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.clock__value--accent {
  color: var(--color-amber);
}

.clock__label {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.clock__tag {
  position: absolute;
  right: 8px;
  bottom: 4px;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 13.5px;
}

/* ---------- Signup + hotline ---------- */

.contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 672px;
}

.signup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signup__label {
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.signup__row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup__field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.signup__icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
}

.signup__input {
  width: 100%;
  height: 52px;
  padding: 0 17px 0 41px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px 1px rgba(0, 0, 0, 0.05);
  color: #fff;
  font-size: 14px;
  transition: border-color 160ms ease;
}

.signup__input::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

.signup__input:focus-visible {
  outline-offset: 0;
  border-color: var(--color-amber);
}

.signup__input[aria-invalid='true'] {
  border-color: #f87171;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.signup__status {
  min-height: 16px;
  color: var(--color-amber);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
}

.signup__status[data-tone='error'] {
  color: #fca5a5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  transition: filter 160ms ease, transform 160ms ease;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.btn--primary {
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 8px;
  /* accent-dark, not accent: white on #ea580c is only 3.6:1. */
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-raised);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.05em;
}

.btn--ghost {
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--line);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.05em;
}

.hotline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--fill);
  text-align: left;
}

.hotline__info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hotline__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(234, 88, 12, 0.2);
}

.hotline__text {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.hotline__number {
  display: inline-block;
  color: var(--color-amber);
  white-space: nowrap;
  text-underline-offset: 3px;
}

.hotline__number:hover {
  text-decoration: underline;
}

/* ---------- Business pillars ---------- */

.pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding-top: 48px;
  text-align: left;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--fill);
}

.pillar > img {
  margin-top: 1px;
}

.pillar__title {
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
}

.pillar__text {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 16px;
}

/* ---------- Footer ---------- */

.footer {
  padding: 25px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--color-page);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--color-text-soft);
  font-size: 12px;
  line-height: 16px;
}

.footer__company {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.05em;
}

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

.footer__link {
  color: var(--color-amber);
  font-weight: 600;
}

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

/* ---------- ≥ 640px ---------- */

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }

  .launch-pill {
    border-radius: 9999px;
  }

  .headline {
    font-size: clamp(42px, 7vw, 60px);
    line-height: 1;
    letter-spacing: -1.5px;
  }

  .lead {
    font-size: 18px;
    line-height: 28px;
  }

  .countdown {
    padding: 33px;
  }

  .countdown__head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .clock {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .clock__box {
    padding: 21px 8px;
  }

  .clock__value {
    font-size: clamp(44px, 7vw, 60px);
  }

  .signup__row {
    flex-direction: row;
  }

  .hotline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .pillars {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pillar {
    flex: 1 1 260px;
  }
}

/* ---------- ≥ 1024px: the desktop frame ---------- */

@media (min-width: 1024px) {
  :root {
    --gutter: 48px;
  }

  /* The two vertical rules 48px in from the edges. */
  body::before,
  body::after {
    content: '';
    position: absolute;
    top: 0;
    z-index: -1;
    width: 1px;
    height: min(790px, 100%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 70%, transparent);
    pointer-events: none;
  }

  body::before {
    left: 48px;
  }

  body::after {
    right: 48px;
  }

  .header__inner {
    min-height: 80px;
  }

  .header__actions {
    gap: 16px;
  }

  .main {
    padding-block: 64px;
  }

  .clock {
    gap: 24px;
  }

  .pillars {
    flex-wrap: nowrap;
  }

  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__group:last-child {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-badge__dot::before {
    animation: none;
  }

  .btn,
  .lang__btn,
  .signup__input {
    transition: none;
  }
}
