@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Unbounded:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #07122f;
  --muted: #4d5b73;
  --line: #dfe6f1;
  --paper: #ffffff;
  --surface: #f4f9ff;
  --brand: #0274b9;
  --brand-dark: #01092e;
  --accent: #f4b719;
  --accent-blue: #0274b9;
  --accent-red: #eb3825;
  --shadow: 0 18px 45px rgba(5, 18, 76, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(180deg, #087fc1 0%, #0274b9 100%);
  color: #fff;
}

.img-box {
  width: 104px;
  height: 104px;
  overflow: hidden; /* 🔥 cắt phần thừa */
}

.img-box img {
  width: 150%;
  height: 150%;

  object-fit: cover;       /* 🔥 zoom + fill khung */
  object-position: center; /* 🔥 focus trung tâm */
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  font-family: "Unbounded", "Inter", sans-serif;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  font-size: 15px;
  font-family: "Unbounded", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.signin,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.signin {
  padding: 0 20px;
  background: rgba(1, 9, 46, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.app-nav {
  background: rgba(2, 116, 185, 0.84);
  box-shadow: 0 12px 36px rgba(1, 9, 46, 0.18);
  backdrop-filter: blur(14px);
}

.nav-inner {
  min-height: 62px;
  display: flex;
  align-items: stretch;
}

.nav-link {
  width: 90px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  font-family: "Unbounded", "Inter", sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}

.nav-link.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.nav-icon {
  font-size: 19px;
  line-height: 1;
}

.search-button {
  margin-left: auto;
  width: 54px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0274b9;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(37, 180, 255, 0.24) 0 18%, transparent 44%),
    linear-gradient(180deg, rgba(2, 116, 185, 0.16) 0%, rgba(0, 118, 191, 0.52) 44%, rgba(2, 116, 185, 0.86) 100%),
    linear-gradient(90deg, rgba(1, 9, 46, 0.36) 0%, rgba(2, 116, 185, 0.18) 46%, rgba(1, 9, 46, 0.28) 100%);
}

.hero-backdrop::before,
.hero-backdrop::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-backdrop::before {
  inset: 0;
  background:
    url("https://v41.vn/wp-content/uploads/2025/12/shape-1.png") 8% 3% / 260px auto no-repeat,
    url("https://v41.vn/wp-content/uploads/2025/12/banner-three-aichat.png") 86% 72% / 260px auto no-repeat;
  opacity: 0.48;
  filter: drop-shadow(0 18px 30px rgba(1, 9, 46, 0.3));
}

.hero-backdrop::after {
  left: 50%;
  bottom: 44px;
  width: 470px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  opacity: 0.8;
}

.hero-content {
  position: relative;
  padding: 80px 0 88px;
  color: #fff;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: "Unbounded", "Inter", sans-serif;
}

.hero .eyebrow {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: "Unbounded", "Inter", sans-serif;
  font-weight: 700;
  overflow-wrap: anywhere;
}

p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 1040px;
  margin: 0 auto;
  font-size: clamp(42px, 5.1vw, 72px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.24;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 24px auto 0;
  color: #e6f2f5;
  font-size: 20px;
  font-weight: 500;
  font-family: "Unbounded", "Inter", sans-serif;
  line-height: 1.75;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  justify-content: center;
  margin-top: 38px;
}

.button {
  padding: 0 18px;
  border-radius: 8px;
}

.button-primary {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 183, 25, 0.9);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #f4b719 20%, #eb3825 54%, #0274b9 100%) border-box;
  color: #26303d;
}

.button-primary:hover,
.button-primary:focus-visible {
  color: #01092e;
  filter: brightness(0.96);
}

.button-secondary {
  background: #fff;
  color: #01092e;
}

.section {
  padding: 70px 0;
}

.product-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 249, 255, 0.88) 46%, rgba(255, 255, 255, 0.96) 100%),
    repeating-linear-gradient(90deg, rgba(2, 116, 185, 0.08) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(2, 116, 185, 0.06) 0 1px, transparent 1px 76px),
    linear-gradient(135deg, #e7f7ff 0%, #fff9e9 48%, #eff0ff 100%);
}

.product-section::before,
.product-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.product-section::before {
  background:
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(244, 183, 25, 0.12) 18px 20px, transparent 20px 62px),
    repeating-radial-gradient(circle at 18% 28%, rgba(2, 116, 185, 0.14) 0 1px, transparent 1px 12px);
  opacity: 0.48;
  animation: textureDrift 16s linear infinite;
}

.product-section::after {
  background:
    linear-gradient(100deg, transparent 0%, rgba(2, 116, 185, 0.1) 38%, rgba(244, 183, 25, 0.18) 50%, rgba(235, 56, 37, 0.08) 62%, transparent 100%);
  transform: translateX(-42%);
  animation: scanSweep 11s ease-in-out infinite alternate;
}

.section-heading {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow),
.ecosystem-layout > div > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.product-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  display: flex;
  min-height: 590px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(2, 116, 185, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(2, 116, 185, 0.36), rgba(244, 183, 25, 0.24), rgba(235, 56, 37, 0.2)) border-box;
  box-shadow: 0 18px 44px rgba(5, 18, 76, 0.12);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--product-ink), rgba(244, 183, 25, 0.72), transparent);
  opacity: 0.55;
}

.product-visual {
  min-height: 190px;
  padding: 22px;
  color: #fff;
  background: var(--product-bg);
}

.logo-stage {
  position: relative;
  height: 100%;
  min-height: 146px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(5px);
}

.logo-stage::before,
.logo-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.logo-stage::before {
  width: 170px;
  height: 170px;
  top: -74px;
  right: -48px;
}

.logo-stage::after {
  width: 120px;
  height: 120px;
  bottom: -50px;
  left: -34px;
}

.logo-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(24px);
}

.app-logo {
  position: relative;
  z-index: 1;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  flex: 0 0 auto;
}

.app-logo-luyen {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(10, 22, 28, 0.22);
}

.app-logo-parent {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  filter: drop-shadow(0 18px 26px rgba(50, 42, 140, 0.3));
}

.melody-logo {
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, #4b4630 0 18px, transparent 19px),
    linear-gradient(135deg, #fee779 0%, #caa53a 100%);
  box-shadow: 0 18px 42px rgba(71, 42, 18, 0.28);
}

.melody-logo::after {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(65, 62, 43, 0.32);
}

.parent-logo {
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.78) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.72) 0 2px, transparent 3px),
    linear-gradient(135deg, #2729c7 0%, #8a2bc6 45%, #d24a95 100%);
  box-shadow: 0 18px 42px rgba(61, 41, 128, 0.28);
}

.parent-logo-card {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background: #fff;
}

.parent-logo-mark {
  color: #3b3cea;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.parent-logo-arrow {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 25px;
  height: 25px;
  border-left: 6px solid #f47528;
  border-bottom: 6px solid #f47528;
  transform: rotate(225deg);
}

.parent-logo-arrow::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-top: 6px solid #f47528;
  border-right: 6px solid #f47528;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.status,
.metric {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.status {
  color: var(--product-ink);
  background: var(--product-soft);
}

.metric {
  color: #4c5965;
  background: #f0f4f6;
}

.tagline {
  margin: 12px 0 0;
  color: var(--product-ink);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.description {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 9px;
  color: #33414d;
  line-height: 1.55;
}

.feature-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--product-ink);
}

.card-actions {
  margin-top: auto;
}

.card-actions .button {
  flex: 1 1 170px;
}

.card-actions .button-primary {
  background: var(--product-ink);
  color: #fff;
  border-color: transparent;
}

.card-actions .button-primary:hover,
.card-actions .button-primary:focus-visible {
  filter: brightness(0.9);
}

.card-actions .button-secondary {
  border: 1px solid var(--line);
  background: #fff;
}

.ecosystem-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(1, 9, 46, 0.94) 0%, rgba(2, 116, 185, 0.92) 54%, rgba(0, 173, 216, 0.86) 100%);
  color: #fff;
}

.ecosystem-section::before,
.ecosystem-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ecosystem-section::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 82px),
    url("https://v41.vn/wp-content/uploads/2025/12/net-9.png") 8% 18% / 320px auto no-repeat,
    url("https://v41.vn/wp-content/uploads/2025/12/net-10.png") 92% 76% / 300px auto no-repeat;
  opacity: 0.36;
  animation: textureDrift 18s linear infinite reverse;
}

.ecosystem-section::after {
  background: linear-gradient(120deg, transparent 0 40%, rgba(244, 183, 25, 0.18) 47%, rgba(235, 56, 37, 0.14) 52%, transparent 60% 100%);
  transform: translateX(-36%);
  animation: scanSweep 12s ease-in-out infinite alternate;
}

.ecosystem-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1fr);
  gap: 48px;
  align-items: start;
}

.ecosystem-section h2 {
  color: #fff;
}

.ecosystem-section .ecosystem-layout > div > p {
  color: rgba(255, 255, 255, 0.84);
}

.ecosystem-section .eyebrow {
  color: var(--accent);
}

.value-list {
  display: grid;
  gap: 14px;
}

.value-item {
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(1, 9, 46, 0.18);
  backdrop-filter: blur(10px);
}

.value-item strong,
.value-item span {
  display: block;
}

.value-item strong {
  color: var(--ink);
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.value-item span {
  margin-top: 4px;
  color: var(--muted);
}

.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%),
    repeating-linear-gradient(90deg, rgba(2, 116, 185, 0.07) 0 1px, transparent 1px 80px);
  padding: 48px 0;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, transparent 0 10%, rgba(244, 183, 25, 0.16) 20%, transparent 34%),
    linear-gradient(290deg, transparent 0 18%, rgba(2, 116, 185, 0.12) 34%, transparent 50%);
  animation: textureDrift 20s linear infinite;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 42px;
}

.site-footer {
  background: #01092e;
  color: #fff;
}

.footer-inner {
  min-height: 185px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 30px 0 28px;
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
}

.footer-inner > strong {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.35;
}

.footer-inner span {
  max-width: 1080px;
}

.footer-device-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.footer-device-switch a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.device-icon {
  display: inline-block;
  width: 11px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.85;
}

.device-icon-tablet {
  width: 15px;
  height: 18px;
}

@keyframes textureDrift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  to {
    background-position: 120px 80px, -80px 120px, 32px -24px, -32px 24px;
  }
}

@keyframes scanSweep {
  from {
    transform: translateX(-48%);
  }

  to {
    transform: translateX(48%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-section::before,
  .product-section::after,
  .ecosystem-section::before,
  .ecosystem-section::after,
  .final-cta::before {
    animation: none;
  }
}

@media (max-width: 980px) {
  .product-grid,
  .ecosystem-layout {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 22px, 1220px);
  }

  .brand {
    font-size: 18px;
  }

  .signin {
    min-height: 40px;
    padding: 0 13px;
  }

  .nav-link {
    width: 84px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-backdrop {
    background:
      radial-gradient(circle at 50% 38%, rgba(37, 180, 255, 0.22) 0 18%, transparent 44%),
      linear-gradient(180deg, rgba(2, 116, 185, 0.22) 0%, rgba(1, 9, 46, 0.62) 54%, rgba(1, 9, 46, 0.88) 100%);
  }

  .hero-content {
    padding: 60px 0 48px;
    text-align: left;
  }

  h1 {
    font-size: 33px;
    margin: 0;
  }

  .hero-copy,
  .section-heading p:not(.eyebrow),
  .ecosystem-layout > div > p {
    font-size: 16px;
  }

  .hero-copy {
    margin-left: 0;
    margin-right: 0;
    line-height: 1.65;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .section {
    padding: 48px 0;
  }

  .product-body {
    padding: 20px;
  }

  .final-cta-inner {
    align-items: start;
    flex-direction: column;
  }

  .footer-inner {
    font-size: 12px;
  }

  .footer-inner > strong {
    font-size: 13px;
  }

  .footer-device-switch {
    align-items: flex-start;
    flex-direction: column;
  }
}
