/* ==========================================================================
   Domain change notification — iviec.vn → ainavi.com.vn
   Brand colors taken from images/logo.svg gradient: #0164E3 → #01BEFE
   ========================================================================== */

:root {
  /* Brand */
  --brand-600: #0164e3;
  --brand-400: #01befe;
  --brand-gradient: linear-gradient(135deg, #0164e3 0%, #01befe 100%);

  /* Neutrals */
  --ink-900: #0a1628;
  --ink-700: #1e2e45;
  --ink-500: #556579;
  --ink-400: #7d8b9c;
  --line: #e3e9f2;
  --surface: #ffffff;
  --surface-alt: #f5f8fd;
  --page: #fbfcfe;

  /* Type */
  --font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, .06), 0 2px 8px rgba(10, 22, 40, .04);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, .06), 0 12px 32px rgba(10, 22, 40, .07);
  --shadow-brand: 0 8px 24px rgba(1, 100, 227, .28);

  /* Layout */
  --container: 1120px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background-color: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink-900);
  line-height: 1.25;
  letter-spacing: -.02em;
}

p { margin: 0; }

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover { color: var(--brand-400); }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img { max-width: 100%; height: auto; }

code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: .9em;
  padding: .15em .45em;
  border-radius: 6px;
  background-color: rgba(1, 100, 227, .08);
  color: var(--brand-600);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container--narrow { max-width: 780px; }

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-600); /* fallback */
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Background decoration
   -------------------------------------------------------------------------- */

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}

.blob--1 {
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(1, 190, 254, .45), transparent 70%);
}

.blob--2 {
  top: 240px;
  left: -180px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(1, 100, 227, .3), transparent 70%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(1, 100, 227, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 100, 227, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 45% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 45% at 50% 0%, #000 20%, transparent 75%);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease,
              border-color .2s ease, color .2s ease;
}

.btn--sm { padding: 10px 18px; font-size: 14px; }

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 12px 30px rgba(1, 100, 227, .38);
}

.btn--ghost {
  background-color: var(--surface);
  border-color: var(--line);
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: var(--brand-400);
  color: var(--brand-600);
}

.btn--light {
  background-color: #fff;
  color: var(--brand-600);
  box-shadow: 0 8px 24px rgba(4, 30, 66, .2);
}

.btn--light:hover { color: var(--brand-600); }

.btn--outline-light {
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.btn--outline-light:hover {
  background-color: rgba(255, 255, 255, .18);
  border-color: #fff;
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(251, 252, 254, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand { display: inline-flex; align-items: center; }

.brand img {
  width: 150px;
  height: auto;
  display: block;
}

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

.hero { padding: 72px 0 88px; }

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(1, 100, 227, .18);
  border-radius: 999px;
  background-color: rgba(1, 190, 254, .08);
  color: var(--brand-600);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

.hero__title {
  max-width: 20ch;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 700;
}

.hero__title .gradient-text { display: block; }

.hero__lead {
  max-width: 62ch;
  margin-top: 22px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--ink-500);
}

.hero__lead strong { color: var(--ink-900); font-weight: 600; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero__note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-400);
}

/* Domain switch card */
.switch-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 720px;
  margin-top: 44px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.switch-card__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px 18px;
  border-radius: var(--radius);
}

.switch-card__side--old {
  background-color: var(--surface-alt);
  color: var(--ink-400);
}

.switch-card__side--new {
  background: linear-gradient(160deg, rgba(1, 100, 227, .07), rgba(1, 190, 254, .1));
  border: 1px solid rgba(1, 100, 227, .14);
}

.switch-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.switch-card__domain {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  word-break: break-all;
}

.switch-card__side--old .switch-card__domain {
  color: var(--ink-400);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(125, 139, 156, .5);
}

.switch-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 6px;
  color: var(--brand-600);
}

.switch-card__arrow svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: nudge 1.8s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateX(-3px); }
  50%      { transform: translateX(3px); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge--muted {
  background-color: rgba(125, 139, 156, .12);
  color: var(--ink-500);
}

.badge--live {
  background-color: rgba(1, 100, 227, .1);
  color: var(--brand-600);
}

.badge__pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #16b364;
}

.badge__pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #16b364;
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(3); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 80px 0; }

.section--alt {
  background-color: var(--surface-alt);
  border-block: 1px solid var(--line);
}

.section__title {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  text-align: center;
}

.section__sub {
  max-width: 56ch;
  margin: 14px auto 0;
  color: var(--ink-500);
  text-align: center;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 100, 227, .25);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--brand-gradient);
  color: #fff;
}

.card__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card__text {
  font-size: 14.5px;
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  margin-top: 48px;
  padding-left: 34px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-600), var(--brand-400) 55%, var(--line));
}

.timeline__item { position: relative; padding-bottom: 34px; }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__marker {
  position: absolute;
  top: 6px;
  left: -34px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--surface-alt);
  border-radius: 50%;
  background-color: var(--ink-400);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline__item.is-done .timeline__marker,
.timeline__item.is-current .timeline__marker {
  background: var(--brand-gradient);
  box-shadow: 0 0 0 1px rgba(1, 100, 227, .3);
}

.timeline__item.is-current .timeline__marker {
  box-shadow: 0 0 0 5px rgba(1, 100, 227, .16);
}

.timeline__date {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.timeline__title {
  margin: 5px 0 6px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.timeline__text {
  font-size: 14.5px;
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   Checklist
   -------------------------------------------------------------------------- */

.checklist {
  display: grid;
  gap: 16px;
  margin-top: 44px;
}

.checklist__item {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.checklist__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.checklist__title {
  margin-bottom: 6px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.checklist__text {
  font-size: 14.5px;
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 12px;
  margin-top: 44px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .2s ease;
}

.faq__item[open] { border-color: rgba(1, 100, 227, .25); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand-600);
  border-bottom: 2px solid var(--brand-600);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}

.faq__item[open] .faq__q::after {
  transform: rotate(225deg) translateY(-2px);
}

.faq__a {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta {
  padding: 84px 0;
  background: var(--brand-gradient);
  color: #fff;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta__title {
  max-width: 28ch;
  color: #fff;
  font-size: clamp(1.55rem, 3.4vw, 2.25rem);
  font-weight: 700;
}

.cta__text {
  max-width: 58ch;
  margin-top: 14px;
  color: rgba(255, 255, 255, .88);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

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

.site-footer {
  padding-top: 56px;
  background-color: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}

.site-footer__brand img { width: 130px; }

.site-footer__note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-400);
}

.site-footer__heading {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-900);
}

.contact-list {
  display: grid;
  gap: 10px;
  font-size: 14.5px;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.contact-list li > span:first-child {
  min-width: 110px;
  color: var(--ink-400);
}

.site-footer__bottom {
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-400);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .hero { padding: 48px 0 64px; }
  .section { padding: 60px 0; }
  .cta { padding: 64px 0; }

  .brand img { width: 122px; }

  .switch-card {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .switch-card__arrow { padding-block: 4px; }

  .switch-card__arrow svg {
    transform: rotate(90deg);
    animation: nudge-v 1.8s ease-in-out infinite;
  }

  @keyframes nudge-v {
    0%, 100% { transform: rotate(90deg) translateX(-3px); }
    50%      { transform: rotate(90deg) translateX(3px); }
  }

  .hero__actions .btn,
  .cta__actions .btn { width: 100%; }

  .site-footer__inner { flex-direction: column; gap: 32px; }
}

/* --------------------------------------------------------------------------
   Motion & print
   -------------------------------------------------------------------------- */

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

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

  .btn:hover,
  .card:hover { transform: none; }
}

@media print {
  .bg-decor,
  .site-header,
  .hero__actions,
  .cta__actions { display: none; }

  body { background-color: #fff; }
  .faq__a { display: block !important; }
}
