/* =================================================
   LANDING.CSS – WEBSITE 3 NGÀY (FINAL)
   AGENCY / SALES / TECH / PORTFOLIO
================================================= */

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f172a;
  transition: background .25s ease, box-shadow .25s ease;
}

.header.scrolled {
  background: #020617;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
}

.logo img { height: 34px; }

/* ================= NAV DESKTOP ================= */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-top { display: none; }

.nav-desc {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
}

.nav-main {
  display: flex;
  gap: 26px;
}

.nav-bottom { margin-left: 8px; }

.nav-link {
  color: #e5e7eb;
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  padding: 8px 18px;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,99,235,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37,99,235,.45);
}

.nav-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #fff;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  padding: 96px 0 120px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
}

.highlight {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-cta .btn-primary {
  box-shadow: 0 14px 36px rgba(37,99,235,.35);
}

.hero-trust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--text-muted);
}

.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(15,23,42,.25);
  animation: floatSoft 6s ease-in-out infinite;
}

/* blur */
.hero-blur {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: .35;
  pointer-events: none;
}

.blur-1 {
  background: var(--accent);
  top: -140px;
  left: -140px;
}

.blur-2 {
  background: #6366f1;
  bottom: -160px;
  right: -160px;
}

/* ================= WAVE ================= */
.wave-divider {
  height: 80px;
  margin-top: -40px;
  background: linear-gradient(
    to bottom,
    rgba(248,250,252,0),
    var(--bg-soft)
  );
}

/* ================= SECTION ================= */
.section {
  padding: 88px 0;
}

.section-soft { background: var(--bg-soft); }
.section-light { background: #fff; }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

/* ================= FIT ================= */
.fit-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(15,23,42,.08);
}

.fit-box ul {
  list-style: none;
}

.fit-box li {
  margin-bottom: 12px;
  font-weight: 500;
}

/* ================= VALUE ================= */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}

.value-item {
  background: #fff;
  padding: 32px;
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(15,23,42,.08);
  transition: transform .35s ease, box-shadow .35s ease;
}

.value-item img {
  height: 56px;
  margin-bottom: 18px;
}

.value-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 90px rgba(15,23,42,.15);
}

/* ================= SPLIT ================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.split-content h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(15,23,42,.18);
  animation: floatSoft 6s ease-in-out infinite;
}

/* ================= PROCESS ================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}

.process-grid .card {
  padding: 28px;
  text-align: center;
  font-weight: 600;
  transition: transform .3s ease, box-shadow .3s ease;
}

.process-grid .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15,23,42,.15);
}

/* ================= CTA ================= */
.cta {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 96px 20px;
  text-align: center;
}

.cta-logo {
  height: 52px;
  margin: 0 auto 24px;
  display: block;
  opacity: .95;
}

.cta h2 {
  color: #fff;
}

.cta p {
  max-width: 520px;
  margin: 12px auto 28px;
  color: rgba(255,255,255,.85);
}

.cta-note {
  display: block;
  margin-top: 14px;
  font-size: .85rem;
  opacity: .85;
}

.cta .btn-outline {
  background: #fff;
  color: var(--primary);
  border: none;
}

/* ================= ANIMATION ================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
  animation: fadeUp .8s ease forwards;
}

.hero-content > *:nth-child(1){animation-delay:.1s}
.hero-content > *:nth-child(2){animation-delay:.2s}
.hero-content > *:nth-child(3){animation-delay:.3s}
.hero-content > *:nth-child(4){animation-delay:.4s}
.hero-content > *:nth-child(5){animation-delay:.5s}

@keyframes floatSoft {
  0%{transform:translateY(0)}
  50%{transform:translateY(-10px)}
  100%{transform:translateY(0)}
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: #020617;
    display: flex;
    flex-direction: column;
    padding: 96px 20px 32px;
    gap: 18px;
    z-index: 999;

    transform: translateY(-100%);
    transition: transform .3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-top { display: block; }

  .nav-main {
    flex-direction: column;
    gap: 16px;
  }

  .nav-link {
    font-size: 1.05rem;
    color: #fff;
  }

  .nav-cta {
    margin-top: 12px;
    text-align: center;
  }

  .hero-grid,
  .split,
  .value-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img,
  .split-media img {
    animation: none;
  }
}
