:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #5e6b7c;
  --line: #dce5ed;
  --surface: #ffffff;
  --surface-soft: #f5f8fa;
  --brand: #006b8f;
  --brand-dark: #07455d;
  --accent: #ef8b32;
  --green: #28a36a;
  --shadow: 0 24px 70px rgba(16, 32, 51, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 229, 237, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: #31465c;
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--brand);
}

.main-nav .login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 107, 143, 0.18);
}

.main-nav .login-link:hover,
.main-nav .login-link:focus {
  color: #fff;
  background: var(--brand-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  padding: 118px clamp(18px, 5vw, 64px) 44px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 20, 34, 0.9) 0%, rgba(6, 20, 34, 0.68) 44%, rgba(6, 20, 34, 0.16) 100%),
    linear-gradient(0deg, rgba(6, 20, 34, 0.7), rgba(6, 20, 34, 0.02) 48%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-copy {
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 5.7vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(239, 139, 50, 0.26);
}

.button.account {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 12px 28px rgba(6, 20, 34, 0.18);
}

.button.account:hover,
.button.account:focus-visible {
  color: var(--brand);
  background: #f2fbff;
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  padding: 22px;
  color: #fff;
  background: rgba(7, 69, 93, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(40, 163, 106, 0.18);
}

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

.metric-grid div {
  min-height: 112px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid strong {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.metric-grid span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.section {
  padding: clamp(70px, 9vw, 118px) clamp(18px, 5vw, 64px);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.58fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  width: min(1180px, 100%);
  margin: 0 auto 44px;
}

.section-heading.compact {
  display: block;
  max-width: 780px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.06rem;
}

.fact-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.fact-list div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.fact-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.fact-list strong {
  line-height: 1.35;
}

.services,
.process {
  background: var(--surface-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.service-card {
  min-height: 312px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(16, 32, 51, 0.06);
}

.card-index {
  display: block;
  margin-bottom: 54px;
  color: var(--brand);
  font-weight: 900;
}

.service-card p,
.product-card p,
.capability-panel p,
.timeline p,
.contact-copy p {
  color: var(--muted);
}

.ecosystem {
  background:
    radial-gradient(circle at 88% 8%, rgba(40, 163, 106, 0.12), transparent 28%),
    linear-gradient(180deg, #fff, #f5f8fa);
}

.section-lead {
  max-width: 720px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 286px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(16, 32, 51, 0.06);
}

.product-card.featured {
  color: #fff;
  background: linear-gradient(145deg, var(--brand-dark), var(--brand));
  border-color: transparent;
}

.product-card.featured p {
  color: rgba(255, 255, 255, 0.76);
}

.product-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.product-heading h3,
.product-kind {
  margin: 0;
}

.product-heading h3 {
  font-size: 1.35rem;
}

.product-kind {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card.featured .product-kind {
  color: rgba(255, 255, 255, 0.68);
}

.product-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  color: var(--brand);
  background: #e9f6fb;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 900;
}

.product-card.featured .product-mark {
  color: var(--brand-dark);
  background: #fff;
}

.product-link,
.product-status {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.9rem;
  font-weight: 900;
}

.product-link {
  color: var(--brand);
}

.product-card.featured .product-link {
  color: #fff;
}

.product-link:hover,
.product-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-status {
  color: var(--muted);
}

.capability-band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.capability-stack {
  display: grid;
  gap: 22px;
}

.capability-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(16, 32, 51, 0.06);
  scroll-margin-top: 96px;
}

.capability-panel:nth-child(even) .capability-image {
  order: 2;
}

.capability-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(16, 32, 51, 0.12);
}

.capability-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #31465c;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, 100%);
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline article {
  min-height: 260px;
  padding: 26px;
  background: #fff;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 52px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-weight: 900;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.72fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
  background: var(--brand-dark);
  color: #fff;
}

.contact-copy {
  max-width: 660px;
  justify-self: end;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  color: #fff;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  width: min(520px, 100%);
  padding: 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #31465c;
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(0, 107, 143, 0.18);
  border-color: var(--brand);
}

.contact-form .button {
  width: 100%;
  border: 0;
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 64px);
  color: #fff;
  background: #071b2b;
}

.site-footer div {
  display: grid;
  gap: 3px;
}

.site-footer span,
.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-page {
  background: var(--surface-soft);
}

.legal-header {
  position: static;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #31465c;
  font-size: 0.95rem;
  font-weight: 800;
}

.legal-nav .login-link {
  padding: 9px 16px;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius);
}

.legal-main {
  padding: clamp(44px, 7vw, 88px) 18px;
}

.legal-document {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 64px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 56px rgba(16, 32, 51, 0.08);
}

.legal-document h1 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
}

.legal-document h2 {
  margin: 38px 0 12px;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.25;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
}

.legal-document a {
  color: var(--brand);
  font-weight: 800;
}

.legal-document li + li {
  margin-top: 8px;
}

.legal-updated {
  margin-bottom: 34px;
  font-size: 0.9rem;
  font-weight: 700;
}

.floating-contact {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.floating-contact-menu {
  display: grid;
  gap: 9px;
  width: 190px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  backdrop-filter: blur(16px);
}

.floating-contact.open .floating-contact-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-contact-name {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.floating-contact-link,
.floating-contact-toggle {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.floating-contact-link {
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.9rem;
}

.floating-contact-link.phone {
  background: #1f9d68;
}

.floating-contact-link.email {
  background: var(--brand);
}

.floating-contact-link.zalo {
  background: #0068ff;
}

.floating-contact-link.facebook {
  background: #1877f2;
}

.floating-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: currentColor;
}

.floating-icon svg,
.floating-contact-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-icon.text-icon {
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.floating-contact-toggle {
  justify-content: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 16px 38px rgba(239, 139, 50, 0.34);
}

.floating-contact-toggle:hover,
.floating-contact-toggle:focus-visible,
.floating-contact-link:hover,
.floating-contact-link:focus-visible {
  filter: brightness(1.04);
  outline: 3px solid rgba(239, 139, 50, 0.22);
  outline-offset: 2px;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav .login-link {
    width: 100%;
    margin-top: 8px;
    padding: 12px 16px;
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .intro-grid,
  .capability-band,
  .contact,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .capability-panel {
    grid-template-columns: 1fr;
  }

  .capability-panel:nth-child(even) .capability-image {
    order: 0;
  }

  .service-grid,
  .product-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .contact-copy {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .brand {
    width: 118px;
  }

  .hero {
    padding-top: 104px;
    padding-bottom: 30px;
  }

  .hero-inner {
    gap: 24px;
  }

  .hero-actions {
    display: grid;
  }

  .metric-grid,
  .service-grid,
  .product-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .metric-grid div,
  .service-card,
  .timeline article {
    min-height: auto;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-form {
    padding: 20px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .legal-header {
    gap: 14px;
  }

  .legal-nav {
    gap: 12px;
  }

  .floating-contact {
    right: 14px;
    bottom: 14px;
  }

  .floating-contact-menu {
    width: 176px;
  }

  .floating-contact-toggle {
    width: 54px;
    height: 54px;
  }
}
