/* CipherERP.vn: one stylesheet for every page. Tokens first; no framework. */
:root {
  --navy: #0b1b3f;
  --accent: #2b59e6;
  --accent-dark: #1d43b8;
  --accent-soft: #9fc0ff;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #475569;
  --muted-2: #5b6478;
  --on-navy: #c3cee6;
  --on-navy-2: #d6e0f5;
  --ground: #f6f8fc;
  --surface: #ffffff;
  --line: #e3e8f2;
  --field-line: #94a3b8;
  --ok-ink: #17663f;
  --ok-bg: #ecf8f1;
  --warn-ink: #8a5300;
  --warn-bg: #fff6e8;
  --bad-ink: #9b2c2c;
  --bad-bg: #fdf1f1;
  --info-bg: #eef3ff;
  --radius: 16px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-dark);
}
:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus {
  left: 8px;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
}
.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}
.btn-ghost:hover {
  color: #ffffff;
  border-color: #ffffff;
}
.btn-light {
  background: #ffffff;
  color: var(--accent-dark);
}
.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 10px;
}

/* --- Header --- */
.site-header {
  background: var(--navy);
  color: #ffffff;
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand:hover {
  color: #ffffff;
}
.brand b {
  color: var(--accent-soft);
  font-weight: 800;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 15px;
}
.nav a {
  color: var(--on-navy-2);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: #ffffff;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-actions .signin {
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 12px;
}
.lang {
  color: var(--on-navy-2);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 8px;
}

/* --- Hero --- */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 88px;
}
.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
}
.eyebrow-pill {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(159, 192, 255, 0.14);
  color: #c9d8ff;
  font-size: 14px;
  font-weight: 500;
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-lead {
  margin: 22px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-navy);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-visual {
  flex: 1 1 480px;
  min-width: 0;
}

/* The product mock (pure markup, no screenshot) */
.mock {
  background: var(--surface);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(3, 10, 30, 0.45);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafd;
  font-size: 13px;
  color: var(--muted-2);
}
.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.mock-bar span {
  margin-left: 12px;
}
.mock-body {
  padding: 20px;
}
.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted-2);
}
.mock-head strong {
  font-size: 18px;
  color: var(--ink);
}
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.mock-stat {
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  font-weight: 600;
}
.mock-stat b {
  display: block;
  font-size: 26px;
  font-weight: 800;
}
.tone-bad {
  background: var(--bad-bg);
  color: var(--bad-ink);
}
.tone-warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
}
.tone-info {
  background: var(--info-bg);
  color: var(--accent-dark);
}
.tone-ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
}
.mock-rows {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}
.mock-rows small {
  display: block;
  color: var(--muted-2);
  font-size: 14px;
}
.chip {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* --- Assurances strip --- */
.assure {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.assure ul {
  list-style: none;
  margin: 0 auto;
  padding: 22px 24px;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
}
.assure li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --- Sections --- */
.section {
  padding-top: 88px;
  padding-bottom: 72px;
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 760px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 {
  margin: 14px 0 0;
  font-size: 19px;
}
.card p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.split > div {
  flex: 1 1 420px;
  min-width: 0;
}
.split h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.split p {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fact {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 20px;
}
.fact span {
  display: block;
  font-size: 14px;
  color: var(--accent-soft);
}
.fact strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}
.cta-band {
  padding: 88px 24px 96px;
}
.cta-box {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--accent);
  color: #ffffff;
  border-radius: 24px;
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.cta-box h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 800;
}
.cta-box p {
  margin: 10px 0 0;
  font-size: 17px;
  color: #dbe5ff;
}

/* --- Contact page --- */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  padding-top: 56px;
  padding-bottom: 96px;
}
.contact-intro {
  flex: 1 1 360px;
  min-width: 0;
}
.contact-intro h1 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.contact-intro > p {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.ticks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  color: var(--ink-2);
}
.ticks li {
  display: flex;
  gap: 10px;
}
.ticks svg {
  flex: none;
}
.direct {
  margin-top: 32px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  font-style: normal;
}
.form-card {
  flex: 1 1 520px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}
.form-card h2 {
  margin: 0;
  font-size: 22px;
}
.form-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.field.full {
  grid-column: 1 / -1;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--field-line);
  border-radius: 10px;
}
.field input,
.field select {
  height: 46px;
  padding: 0 14px;
}
.field textarea {
  padding: 12px 14px;
  resize: vertical;
}
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
}
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-weight: 400;
}
.choice-row label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
.form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  color: var(--muted-2);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy);
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding-top: 48px;
  padding-bottom: 32px;
}
.footer-main p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  font-size: 14px;
}
.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links strong {
  color: #ffffff;
}
.footer-links a {
  color: var(--on-navy);
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}
.footer-base a {
  color: var(--on-navy);
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta-box {
    padding: 32px 24px;
  }
  .hero {
    padding-top: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Contact forms: a field people never see; bots that fill it are answered but not stored. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
