/* ============================================================
   Theme: Split  —  light, airy, two-column layout
   Hero on the left, contact form on the right, wide band below.
   ============================================================ */

:root {
  --bg:       #fbfbfd;
  --panel:    #ffffff;
  --tint:     #eef4ff;
  --line:     #e3e6ee;
  --text:     #1a1d24;
  --muted:    #6b7280;
  --accent:   #2f6df6;
  --accent-2: #274b8f;
  --radius:   16px;
  --max:      1180px;
  --sans:     "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 26px 64px;
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 0;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}
.brand:hover { color: var(--text); text-decoration: none; }

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
}

.legal-nav { display: flex; gap: 22px; flex-wrap: wrap; }

.legal-nav a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.legal-nav a:hover { color: var(--text); text-decoration: none; }
.legal-nav a.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- hero ---------- */

.hero {
  padding: 8px 0 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tint);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blip 1.8s ease-in-out infinite;
}

@keyframes blip {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.75); }
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text);
}

.tagline {
  margin: 0 0 16px;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--accent);
}

.intro { margin: 0; max-width: 52ch; color: var(--muted); }

/* ---------- cards ---------- */

.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(20, 30, 60, .04), 0 12px 32px rgba(20, 30, 60, .05);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.muted { margin: 0 0 22px; color: var(--muted); font-size: .95rem; }

/* ---------- form ---------- */

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 6px);
  outline: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}

.field textarea { resize: vertical; min-height: 122px; }

.field input:focus,
.field textarea:focus {
  background: var(--panel);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--tint);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.btn:hover { transform: translateY(-1px); }

.btn.primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -8px var(--accent);
}
.btn.primary:hover { background: var(--accent-2); }
.btn.primary:disabled { opacity: .55; cursor: progress; transform: none; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.status { min-height: 20px; margin: 14px 0 0; font-size: .92rem; color: var(--muted); }
.status.ok  { color: #157a4a; }
.status.err { color: #b42318; }

/* ---------- developer ---------- */

.dev-card { margin-top: 26px; }

.dev {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}

.dev > div {
  padding: 16px 18px;
  border-radius: calc(var(--radius) - 6px);
  background: var(--tint);
}

.dev dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-2);
  opacity: .8;
}
.dev dd { margin: 6px 0 0; font-weight: 600; word-break: break-word; }

/* ---------- legal pages ---------- */

.legal { padding: 4px 0 0; max-width: 820px; }

.crumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 16px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
}
.crumbs span { opacity: .45; }

.legal h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
}

.updated {
  margin: 0 0 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
  color: var(--muted);
}

.legal article {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(20, 30, 60, .04), 0 12px 32px rgba(20, 30, 60, .05);
}

.legal article .sec { border-top: 1px solid var(--line); }
.legal article .sec:first-child { border-top: 0; }

.legal article .sec > h2,
.legal article .sec > summary {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 30px 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  list-style: none;
}
.legal article .sec:first-child > :is(h2, summary) { margin-top: 0; }

.legal article summary { cursor: pointer; user-select: none; -webkit-user-select: none; transition: color .16s; }
.legal article summary::-webkit-details-marker { display: none; }
.legal article summary::marker { content: ""; }
.legal article summary:hover { color: var(--accent); }
.legal article summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.legal article summary::after {
  content: "+";
  margin-left: auto;
  padding-left: 16px;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}
.legal article details[open] > summary::after { content: "\2212"; }

.legal article .sec > h2 .num,
.legal article .sec > summary .num {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
}

.legal article .sec-body { padding-bottom: 2px; }

.legal article p { margin: 0 0 15px; color: #3c424e; }

.legal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* ---------- footer ---------- */

.footer {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .86rem;
  color: var(--muted);
}
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* ---------- two-column layout ---------- */

@media (min-width: 900px) {
  .shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    column-gap: 52px;
    align-items: start;
  }

  .topbar     { grid-column: 1 / -1; }
  .hero       { grid-column: 1; grid-row: 2; padding-bottom: 0; }
  .form-card  { grid-column: 2; grid-row: 2; }
  .dev-card   { grid-column: 1 / -1; }
  .legal      { grid-column: 1 / -1; max-width: none; }
  .footer     { grid-column: 1 / -1; }
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .shell { padding: 0 18px 48px; }
  .topbar { margin-bottom: 32px; }
  .card, .legal article { padding: 22px 18px; }
  .hero { padding-bottom: 28px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* ---------- generated palette for hoangthihong.info ---------- */

:root {
  --accent:   #2241ce;
  --accent-2: #883630;
  --tint:     #eef1fb;
  --radius:   12px;
}
