/* ============================================================
   EasySoft Panel — Design System "Xanh cloud"  v1.0
   ============================================================ */

:root {
  --es-primary:  #1a6cf5;
  --es-deep:     #0b3fb8;
  --es-sky:      #eef5ff;
  --es-ink:      #15233f;
  --es-muted:    #5b6b85;
  --es-terminal: #0d1b33;
  --es-success:  #18a34b;
  --es-accent:   #19b8e6;
  --es-line:     #dde7f5;
  --es-shadow:   0 12px 32px rgba(13, 27, 51, 0.08);
  --es-radius:   12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--es-ink);
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--es-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.es-container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Buttons ---------- */
.es-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--es-primary);
  color: #fff;
  font-weight: 600;
  padding: 0.8em 1.7em;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 22px rgba(26, 108, 245, 0.28);
}
.es-btn:hover { background: var(--es-deep); transform: translateY(-2px); text-decoration: none; color: #fff; }
.es-btn-ghost { background: #fff; color: var(--es-primary); border: 1.5px solid var(--es-line); box-shadow: none; }
.es-btn-ghost:hover { background: var(--es-sky); color: var(--es-deep); }
.es-btn-sm { padding: 0.5em 1.1em; font-size: 0.9rem; box-shadow: none; }

/* ---------- Header ---------- */
.es-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--es-line);
}
.es-header-in { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.es-logo { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.15rem; color: var(--es-ink); }
.es-logo:hover { text-decoration: none; }
.es-logo em { font-style: normal; color: var(--es-primary); margin-left: 0.15rem; }
.es-nav { display: flex; align-items: center; gap: 1.4rem; }
.es-nav a { color: var(--es-ink); font-weight: 500; font-size: 0.95rem; }
.es-nav a:hover { color: var(--es-primary); text-decoration: none; }
.es-nav a.es-on { color: var(--es-primary); font-weight: 600; }
.es-burger { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.es-burger span { display: block; width: 22px; height: 2px; background: var(--es-ink); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ---------- Hero ---------- */
.es-hero { background: linear-gradient(180deg, var(--es-sky) 0%, #fff 100%); padding: 4.5rem 0 4rem; }
.es-hero-grid { display: flex; align-items: center; gap: 3rem; }
.es-hero-left { flex: 1 1 50%; min-width: 0; }
.es-hero-right { flex: 1 1 50%; min-width: 0; }
.es-eyebrow {
  display: inline-block;
  background: rgba(26, 108, 245, 0.1);
  color: var(--es-deep);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4em 1em;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.es-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; }
.es-hero h1 em { font-style: normal; color: var(--es-primary); }
.es-hero-sub { font-size: 1.08rem; color: var(--es-muted); max-width: 33rem; }
.es-hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.6rem 0 1.2rem; }
.es-hero-note { font-size: 0.875rem; color: var(--es-muted); }
.es-hero-note strong { color: var(--es-ink); }

/* ---------- Install command box ---------- */
.es-install {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--es-terminal);
  color: #d6e4ff;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-family: Consolas, "SF Mono", Menlo, monospace;
  font-size: 0.9rem;
  margin-top: 1.4rem;
  max-width: 33rem;
  overflow-x: auto;
  white-space: nowrap;
}
.es-install code { flex: 1 1 auto; min-width: 0; overflow-x: auto; }
.es-install .es-prompt { color: var(--es-accent); user-select: none; }
.es-copy {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35em 0.9em;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.es-copy:hover { background: rgba(255, 255, 255, 0.22); }
.es-copy.es-done { background: var(--es-success); border-color: var(--es-success); }

/* ---------- Terminal window ---------- */
.es-term {
  background: var(--es-terminal);
  border-radius: var(--es-radius);
  box-shadow: 0 24px 60px rgba(13, 27, 51, 0.35);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.es-term-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1rem; background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.es-term-dot { width: 10px; height: 10px; border-radius: 50%; }
.es-term-bar .es-term-title { margin-left: 0.6rem; color: #8fa6cc; font-size: 0.78rem; font-family: Consolas, monospace; }
.es-term-body {
  padding: 1.1rem 1.2rem 1.4rem;
  font-family: Consolas, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #d6e4ff;
  min-height: 21rem;
  white-space: pre;
  overflow-x: auto;
}
.es-term-body .t-brand { color: var(--es-accent); font-weight: 700; }
.es-term-body .t-title { color: #4f9dff; font-weight: 700; }
.es-term-body .t-dim { color: #6e83a8; }
.es-term-body .t-ok { color: #4ade80; }
.es-term-body .t-num { color: #f0a93b; }
.es-term-static { min-height: 0; white-space: normal; font-size: 0.78rem; }
.es-term-static .tline { white-space: pre-wrap; }
.es-term-static .tbar { border-bottom: 3px double #33507e; margin: 0.55rem 0; }
.es-term-static .tdash { border-bottom: 1px solid #2c466e; margin: 0.55rem 0; }
.es-term-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0.1rem 1.2rem; }
.es-term-cols { display: flex; gap: 1.3rem; }
.es-term-cols .tcol { flex: 1 1 50%; min-width: 0; }
.es-term-colhead { color: var(--es-accent); font-weight: 700; margin-bottom: 0.35rem; }
.es-term-static .titem { white-space: nowrap; color: #d6e4ff; }
@media (max-width: 560px) {
  .es-term-static { font-size: 0.72rem; }
  .es-term-info { grid-template-columns: 1fr; }
  .es-term-cols { flex-direction: column; gap: 0.6rem; }
}
.es-cursor { display: inline-block; width: 8px; height: 15px; background: #d6e4ff; vertical-align: -2px; animation: es-blink 1s steps(1) infinite; }
@keyframes es-blink { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
.es-sec { padding: 4.5rem 0; }
.es-sec-sky { background: var(--es-sky); }
.es-sec-head { text-align: center; max-width: 44rem; margin: 0 auto 2.75rem; }
.es-sec-head h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; }
.es-sec-head p { color: var(--es-muted); }

/* ---------- Feature cards ---------- */
.es-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.es-card {
  background: #fff;
  border: 1px solid var(--es-line);
  border-radius: var(--es-radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.es-card:hover { transform: translateY(-4px); box-shadow: var(--es-shadow); }
.es-card-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: rgba(26, 108, 245, 0.09);
  color: var(--es-primary);
  margin-bottom: 1rem;
}
.es-card h3 { font-size: 1.07rem; }
.es-card p { color: var(--es-muted); font-size: 0.94rem; margin: 0; }

/* ---------- Split section (2 che do / backup spotlight) ---------- */
.es-split { display: flex; align-items: center; gap: 3rem; }
.es-split > div { flex: 1 1 50%; min-width: 0; }
.es-split h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; }
.es-split .es-lead { color: var(--es-muted); }
.es-checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.es-checklist li { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.9rem; }
.es-checklist li strong { display: block; }
.es-checklist li span { color: var(--es-muted); font-size: 0.93rem; }
.es-check-ic {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--es-success);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}

/* ---------- Image placeholder frame ---------- */
.es-shot { border-radius: var(--es-radius); overflow: hidden; border: 1px solid var(--es-line); box-shadow: var(--es-shadow); background: #fff; }
.es-shot-bar { display: flex; gap: 0.4rem; align-items: center; padding: 0.6rem 0.9rem; background: #f2f6fd; border-bottom: 1px solid var(--es-line); }
.es-shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9d6ea; }
.es-shot-bar small { margin-left: 0.5rem; color: var(--es-muted); font-size: 0.75rem; }
.es-shot img { width: 100%; height: auto; display: block; }
.es-shot-cap { font-size: 0.82rem; color: var(--es-muted); padding: 0.5rem 0.9rem; border-top: 1px solid var(--es-line); background: #fafcff; }
.es-docs-body .es-shot { margin: 1.2rem 0 1.6rem; }
.es-shot-empty {
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background:
    linear-gradient(135deg, rgba(26, 108, 245, 0.05) 25%, transparent 25%, transparent 50%, rgba(26, 108, 245, 0.05) 50%, rgba(26, 108, 245, 0.05) 75%, transparent 75%) 0 0 / 24px 24px,
    var(--es-sky);
  color: var(--es-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* ---------- App ecosystem pills ---------- */
.es-apps { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.es-app {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--es-line);
  border-radius: 999px;
  padding: 0.55em 1.2em;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--es-ink);
  transition: border-color 0.2s, transform 0.2s;
}
.es-app:hover { border-color: var(--es-primary); transform: translateY(-2px); }
.es-app i { width: 8px; height: 8px; border-radius: 50%; background: var(--es-accent); }

/* ---------- Logo wall (he sinh thai) ---------- */
.es-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.es-logo-card {
  background: #fff;
  border: 1px solid var(--es-line);
  border-radius: 12px;
  height: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.es-logo-card:hover { transform: translateY(-3px); box-shadow: var(--es-shadow); border-color: var(--es-primary); }
.es-logo-card img { max-height: 2.1rem; max-width: 80%; width: auto; object-fit: contain; }
.es-logo-card span { font-size: 0.78rem; color: var(--es-muted); font-weight: 600; line-height: 1; }
.es-logo-wm { justify-content: center; }
.es-logo-wm strong { color: var(--wm, var(--es-primary)); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Version strip ---------- */
.es-version { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.es-version-tag {
  background: var(--es-terminal);
  color: #fff;
  font-family: Consolas, monospace;
  font-weight: 700;
  padding: 0.45em 1.1em;
  border-radius: 8px;
}
.es-version p { margin: 0; color: var(--es-muted); font-size: 0.94rem; }

/* ---------- FAQ ---------- */
.es-faq { max-width: 46rem; margin: 0 auto; }
.es-faq details { border: 1px solid var(--es-line); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; background: #fff; }
.es-faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.es-faq summary::after { content: "+"; font-size: 1.3rem; color: var(--es-primary); font-weight: 400; }
.es-faq details[open] summary::after { content: "–"; }
.es-faq details p { color: var(--es-muted); margin: 0.7rem 0 0; font-size: 0.95rem; }

/* ---------- CTA cuoi ---------- */
.es-cta-end { background: linear-gradient(135deg, var(--es-deep), var(--es-primary)); color: #fff; text-align: center; }
.es-cta-end h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.es-cta-end p { color: rgba(255, 255, 255, 0.85); }
.es-cta-end .es-install { margin: 1.5rem auto 0; }

/* ---------- Docs layout ---------- */
.es-docs { display: flex; gap: 3rem; padding-top: 2.5rem; padding-bottom: 4rem; align-items: flex-start; }
.es-docs-side { flex: 0 0 15.5rem; position: sticky; top: 5.25rem; }
.es-docs-side-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--es-muted); margin-bottom: 0.6rem; }
.es-docs-nav { display: flex; flex-direction: column; }
.es-docs-nav a { color: var(--es-ink); padding: 0.45rem 0.8rem; border-radius: 8px; font-size: 0.94rem; border-left: 2px solid transparent; }
.es-docs-nav a:hover { background: var(--es-sky); text-decoration: none; }
.es-docs-nav a.es-on { background: rgba(26, 108, 245, 0.09); color: var(--es-deep); font-weight: 600; border-left-color: var(--es-primary); }
.es-docs-side-help { margin-top: 1.5rem; padding: 1rem; background: var(--es-sky); border-radius: 10px; font-size: 0.88rem; }
.es-docs-side-help p { margin: 0 0 0.3rem; color: var(--es-muted); }
.es-docs-body { flex: 1 1 auto; min-width: 0; max-width: 46rem; }
.es-docs-body h1 { font-size: 1.8rem; font-weight: 700; }
.es-docs-body h2 { font-size: 1.35rem; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--es-line); }
.es-docs-body h3 { font-size: 1.08rem; margin-top: 1.6rem; }
.es-docs-body .es-lead { color: var(--es-muted); font-size: 1.04rem; }
.es-docs-body ul, .es-docs-body ol { padding-left: 1.3rem; color: var(--es-ink); }
.es-docs-body li { margin-bottom: 0.4rem; }
.es-docs-body table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 1rem 0 1.4rem; }
.es-docs-body th { text-align: left; background: var(--es-sky); padding: 0.6rem 0.8rem; border: 1px solid var(--es-line); font-weight: 600; }
.es-docs-body td { padding: 0.6rem 0.8rem; border: 1px solid var(--es-line); vertical-align: top; }
.es-docs-body code { background: rgba(26, 108, 245, 0.08); color: var(--es-deep); padding: 0.1em 0.4em; border-radius: 5px; font-family: Consolas, monospace; font-size: 0.88em; }
.es-code {
  background: var(--es-terminal);
  color: #d6e4ff;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-family: Consolas, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 0.8rem 0 1.4rem;
  white-space: pre;
}
.es-code .t-dim { color: #6e83a8; }
.es-note { border-left: 3px solid var(--es-primary); background: var(--es-sky); padding: 0.85rem 1.1rem; border-radius: 0 10px 10px 0; margin: 1rem 0 1.4rem; font-size: 0.93rem; }
.es-warn { border-left-color: #e0a008; background: #fdf6e4; }
.es-note p { margin: 0; }
.es-docs-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--es-line); }
.es-docs-pager a { border: 1px solid var(--es-line); border-radius: 10px; padding: 0.7rem 1.1rem; font-weight: 600; color: var(--es-ink); }
.es-docs-pager a small { display: block; color: var(--es-muted); font-weight: 400; font-size: 0.78rem; }
.es-docs-pager a:hover { border-color: var(--es-primary); text-decoration: none; }
.es-pager-next { text-align: right; margin-left: auto; }

/* ---------- Pricing ---------- */
.es-price-box { max-width: 36rem; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--es-line); border-radius: var(--es-radius); box-shadow: var(--es-shadow); padding: 3rem 2rem; }
.es-price-badge { display: inline-block; background: rgba(24, 163, 75, 0.12); color: var(--es-success); font-weight: 700; padding: 0.4em 1.1em; border-radius: 999px; font-size: 0.85rem; margin-bottom: 1rem; }
.es-price-loading { display: inline-flex; gap: 0.35rem; margin: 1.2rem 0; }
.es-price-loading i { width: 9px; height: 9px; border-radius: 50%; background: var(--es-primary); animation: es-pulse 1.2s ease-in-out infinite; }
.es-price-loading i:nth-child(2) { animation-delay: 0.2s; }
.es-price-loading i:nth-child(3) { animation-delay: 0.4s; }
@keyframes es-pulse { 0%, 100% { opacity: 0.25; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- Footer ---------- */
.es-footer { background: var(--es-terminal); color: #c4d3ee; margin-top: 0; }
.es-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 1.25rem 2rem; }
.es-footer .es-logo-light { color: #fff; margin-bottom: 0.8rem; }
.es-footer-desc { font-size: 0.9rem; color: #8fa6cc; }
.es-footer-int { font-size: 0.88rem; color: #8fa6cc; border-left: 3px solid var(--es-accent); padding-left: 0.8rem; }
.es-footer-int strong { color: #fff; }
.es-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; }
.es-footer a { display: block; color: #c4d3ee; font-size: 0.92rem; margin-bottom: 0.55rem; }
.es-footer a:hover { color: #fff; }
.es-footer-bot { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.2rem; padding-bottom: 1.4rem; font-size: 0.85rem; color: #6e83a8; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .es-nav {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.4rem;
    border-bottom: 1px solid var(--es-line);
    gap: 0.9rem;
    box-shadow: var(--es-shadow);
  }
  .es-nav.es-open { display: flex; }
  .es-burger { display: block; }
  .es-hero-grid, .es-split { flex-direction: column; gap: 2rem; align-items: stretch; }
  .es-hero-left, .es-hero-right, .es-split > div { width: 100%; max-width: 100%; }
  .es-grid-3 { grid-template-columns: 1fr; }
  .es-footer-grid { grid-template-columns: 1fr 1fr; }
  .es-docs { flex-direction: column; gap: 1.5rem; }
  .es-docs-side { position: static; flex: 1 1 auto; width: 100%; }
  .es-docs-nav { flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
  .es-docs-nav a { border: 1px solid var(--es-line); border-left-width: 1px; font-size: 0.86rem; }
  .es-docs-side-help { display: none; }
}

@media (max-width: 560px) {
  .es-sec { padding: 3rem 0; }
  .es-hero { padding: 3rem 0 2.5rem; }
  .es-footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .es-hero-cta .es-btn { width: 100%; }
  .es-term-body { min-height: 0; font-size: 0.7rem; }
}

@media (max-width: 849px) {
  .es-logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .es-logos { grid-template-columns: repeat(2, 1fr); }
}
