/* ═══════════════════════════════════════════════
   FOUNDER'S NORTH — Design System Tokens
   Nguồn: foundersnorth.com.vn/daotaodoanhnghiep
   ═══════════════════════════════════════════════ */
:root {
  --emerald:       #284139;
  --emerald-light: #2f4d44;
  --wasabi:        #809076;
  --khaki:         #F8D794;
  --earth:         #BB6830;
  --noir:          #0D1510;
  --page-bg:       #111A16;
  --surface:       #172018;
  --cream:         #FDFAF3;
  --cream-mid:     #F5F0E4;
  --card-bg:       #F5EDD6;
  --text:          #1E2A26;
  --text-muted:    #5A6B64;
  --border:        #D6CEBC;
  --border-dark:   #243320;
  --radius:        14px;
  --shadow:        0 8px 40px rgba(0,0,0,.35);
  --glow:          0 0 60px rgba(40,65,57,.4);

  --font-serif: 'Cormorant Garamond', serif;
  --font-sans:  'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--page-bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: rgba(248,215,148,.3); color: var(--text); }

/* ── Ambient bg radials (như trang gốc) ─────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(40,65,57,.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(187,104,48,.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(17,26,25,.8) 0%, transparent 100%);
  pointer-events: none; z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ── Shimmer top bar (signature FN element) ─ */
.top-bar {
  background: linear-gradient(90deg,
    var(--emerald), var(--wasabi), var(--khaki),
    var(--earth), var(--emerald));
  background-size: 300% 100%;
  animation: shimmer 6s linear infinite;
  height: 3px;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ── Nav ─────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,21,16,.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
  padding: 15px 0;
}
.nav__i {
  max-width: 1080px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-serif); font-size: 19px; font-style: italic;
  color: #e8ede6; text-decoration: none;
  display: flex; align-items: center; gap: 10px; letter-spacing: .02em;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--khaki);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--khaki);
  font-family: var(--font-serif); font-style: italic;
}
.ncta {
  background: var(--earth); color: #fff;
  font-weight: 600; font-size: 13px; letter-spacing: .03em;
  padding: 10px 22px; border-radius: 6px;
  text-decoration: none; transition: all .2s;
}
.ncta:hover { background: #c97535; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(187,104,48,.4); }

/* ── Hero (chính xác như FN gốc) ─────────────── */
.hero {
  background: linear-gradient(160deg, #1a2e22 0%, #0f1d14 60%, #0D1510 100%);
  padding: 80px 28px 108px;
  text-align: center;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}
.hero::before {
  content: '';
  position: absolute; top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(128,144,118,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 64px; background: var(--page-bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.hero-label {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--wasabi); margin-bottom: 20px; opacity: .85;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.5vw, 62px);
  font-weight: 400; color: #e8ede6;
  line-height: 1.15; max-width: 800px;
  margin: 0 auto 22px;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.hero h1 em { font-style: italic; color: var(--khaki); }
.hero p {
  font-size: 15px; color: rgba(200,220,210,.65);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.75;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
  margin-top: 10px;
}
.hero-stat { text-align: center; }
.hero-stat-n {
  font-family: var(--font-serif); font-size: 40px; font-style: italic;
  color: var(--khaki); line-height: 1;
}
.hero-stat-l {
  font-size: 11px; color: var(--wasabi); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; margin-top: 4px;
}

/* ── Main container ──────────────────────────── */
.container {
  max-width: 900px; margin: 0 auto;
  padding: 48px 28px 100px;
}

/* ── Intro note (giống FN) ───────────────────── */
.intro-note {
  background: rgba(40,65,57,.25);
  border-left: 3px solid var(--khaki);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 24px;
  margin-bottom: 36px;
  font-size: 14px; color: rgba(200,220,210,.72);
  line-height: 1.75; backdrop-filter: blur(4px);
}
.intro-note strong { color: var(--khaki); font-weight: 600; }

/* ── Pillar cards (cream on dark — FN style) ── */
.pillars {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin-bottom: 48px;
}
.pcard {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.06);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.pcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(128,144,118,.15);
}
.pcard-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: var(--emerald); color: var(--khaki);
  font-family: var(--font-serif); font-size: 15px; font-weight: 600;
  border-radius: 50%; margin-bottom: 16px;
}
.pcard-title {
  font-family: var(--font-serif); font-size: 20px; font-weight: 500;
  color: var(--emerald); margin-bottom: 8px; line-height: 1.3;
}
.pcard-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ── Section label (above h2) ────────────────── */
.section-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--wasabi); margin-bottom: 10px; display: block;
}
.section-title-dark {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 400; color: #e8ede6;
  line-height: 1.2; margin-bottom: 10px;
}
.section-title-dark em { font-style: italic; color: var(--khaki); }
.section-desc-dark {
  font-size: 14px; color: rgba(200,220,210,.62);
  max-width: 800px; line-height: 1.8;
  margin-bottom: 36px;
}
.section-desc-dark strong { color: var(--khaki); }

/* ══════════════════════════════════════════════
   ACCORDION — cream cards like FN section-cards
   ══════════════════════════════════════════════ */
.accordion { display: flex; flex-direction: column; gap: 14px; }

.acc-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.acc-item:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(128,144,118,.12);
}
.acc-item.open {
  transform: none;
  box-shadow: 0 12px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(40,65,57,.3);
}



.acc-trigger {
  width: 100%; display: flex; align-items: center;
  padding: 28px 32px; gap: 20px;
  background: none; border: none; cursor: pointer;
  text-align: left; transition: background .18s;
}
.acc-trigger:hover { background: rgba(40,65,57,.05); }
.acc-item.open .acc-trigger { background: rgba(40,65,57,.06); }

.acc-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--emerald); color: var(--khaki);
  font-family: var(--font-serif); font-size: 18px; font-weight: 600;
  border-radius: 50%;
}

.acc-meta { flex: 1; min-width: 0; }
.acc-group-label {
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--wasabi); margin-bottom: 5px;
}
.acc-title {
  font-family: var(--font-serif); font-size: 22px; font-weight: 500;
  color: var(--emerald); line-height: 1.25; margin-bottom: 4px;
}
.acc-subtitle { font-size: 13px; color: var(--text-muted); }

.acc-trigger-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.acc-count {
  background: var(--emerald); color: var(--khaki);
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 14px; border-radius: 99px; white-space: nowrap;
}
.acc-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); flex-shrink: 0;
  transition: transform .35s cubic-bezier(.4,0,.2,1), border-color .25s, background .25s;
}
.acc-item.open .acc-arrow {
  transform: rotate(180deg);
  border-color: var(--earth); background: var(--earth); color: #fff;
}
.acc-arrow svg { width: 14px; height: 14px; }

/* accordion body */
.acc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.4,0,.2,1);
}
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-inner {
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: border-color .35s;
}
.acc-item.open .acc-inner { border-top-color: var(--border); }

/* table header inside accordion */
.acc-thead {
  display: grid; grid-template-columns: 44px 190px 1fr 1fr;
  padding: 10px 16px 10px 32px;
  background: rgba(40,65,57,.08);
  border-bottom: 1px solid var(--border);
}
.acc-thead span {
  padding: 0 12px; font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
}

.acc-rows { display: flex; flex-direction: column; }
.arow {
  display: grid; grid-template-columns: 44px 190px 1fr 1fr;
  border-bottom: 1px solid rgba(214,206,188,.5);
  transition: background .15s;
}
.arow:last-child { border-bottom: none; }
.arow:hover { background: rgba(40,65,57,.04); }

.ac {
  padding: 15px 12px; font-size: 13px; line-height: 1.55;
  border-right: 1px solid rgba(214,206,188,.5);
  display: flex; align-items: flex-start; color: var(--text);
}
.ac:last-child { border-right: none; }

.ac-num {
  font-family: var(--font-serif); font-size: 20px; font-style: italic;
  color: var(--earth); justify-content: center; align-items: center;
  font-weight: 400; padding-left: 8px;
}
.ac-name { flex-direction: column; gap: 3px; }
.ac-name strong { font-weight: 600; font-size: 13px; color: var(--emerald); display: block; }
.ac-name span { color: var(--wasabi); font-size: 11px; }
.ac-hl { color: var(--text); font-weight: 500; font-size: 13px; }
.ac-key { color: var(--text-muted); font-size: 12.5px; }

/* ── Prompt box ──────────────────────────────── */
.pbox {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.06);
  padding: 40px 44px;
  position: relative; overflow: hidden;
  margin-top: 40px;
}
.pbox::before {
  content: '';
  display: block; height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--earth), var(--khaki));
  margin: -40px -44px 36px;
}
.plabel {
  display: inline-block;
  background: var(--emerald); color: var(--khaki);
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 99px; margin-bottom: 18px;
}
.pbox-title {
  font-family: var(--font-serif); font-size: 24px; font-weight: 500;
  font-style: italic; color: var(--emerald); margin-bottom: 6px;
}
.pbox-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 0; letter-spacing: .03em; }
.pcode {
  background: #1a2b20; border: 1px solid var(--border-dark);
  border-radius: 10px; padding: 28px;
  font-family: 'Courier New', monospace;
  font-size: 12.5px; line-height: 1.9;
  color: rgba(245,240,232,.78);
  white-space: pre-wrap; word-break: break-word;
  position: relative; margin-top: 22px;
}
.pcode .hi { color: var(--khaki); font-weight: 600; }
.pcode .cm { color: var(--wasabi); }
.pcode .kw { color: #a8c8a8; }

.cpbtn {
  position: absolute; top: 14px; right: 14px;
  background: rgba(187,104,48,.15);
  border: 1px solid rgba(187,104,48,.35);
  color: var(--earth);
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  padding: 7px 14px; border-radius: 6px; cursor: pointer;
  transition: all .2s; letter-spacing: .04em;
}
.cpbtn:hover { background: var(--earth); color: #fff; border-color: var(--earth); }
.cpbtn.done { background: var(--emerald); color: var(--khaki); border-color: transparent; }

/* ── Use-case cards ───────────────────────────── */
.ucases { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.ucard {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.06);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.ucard:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(128,144,118,.15);
}
.ucard-img {
  width: 72px; height: 72px;
  object-fit: contain; margin-bottom: 16px; display: block;
  border-radius: 8px;
}
.ucard-title { font-family: var(--font-serif); font-size: 19px; font-weight: 500; color: var(--emerald); margin-bottom: 8px; }
.ucard-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ── CTA Section ─────────────────────────────── */
.cta-sec {
  background: linear-gradient(160deg, #1a2e22 0%, #0f1d14 70%, #0D1510 100%);
  padding: 100px 28px;
  text-align: center;
  border-top: 1px solid var(--border-dark);
}
.cta-sec h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 400; color: #e8ede6;
  line-height: 1.2; margin-bottom: 16px;
}
.cta-sec h2 em { font-style: italic; color: var(--khaki); }
.cta-desc { font-size: 15px; color: rgba(200,220,210,.65); max-width: 480px; margin: 0 auto 36px; line-height: 1.8; }
.cta-note { font-size: 12px; color: var(--wasabi); margin-top: 18px; letter-spacing: .04em; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--earth); color: #fff;
  font-weight: 600; font-size: 14px; letter-spacing: .03em;
  padding: 15px 32px; border-radius: 6px;
  text-decoration: none; border: none; cursor: pointer;
  transition: all .25s; box-shadow: 0 4px 20px rgba(187,104,48,.35);
}
.btn-primary:hover { background: #c97535; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(187,104,48,.5); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(200,220,210,.3); color: rgba(200,220,210,.7);
  font-size: 13px; font-weight: 500; padding: 14px 28px;
  border-radius: 6px; text-decoration: none; background: none;
  cursor: pointer; transition: all .22s;
}
.btn-outline:hover { border-color: var(--khaki); color: var(--khaki); }

.cta-grp { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ── Footer ──────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-dark);
  padding: 40px 28px; text-align: center;
  background: var(--noir);
}
.flogo { font-family: var(--font-serif); font-size: 18px; font-style: italic; color: #e8ede6; margin-bottom: 8px; }
.ftxt { font-size: 12px; color: var(--wasabi); }
.ftxt a { color: var(--khaki); text-decoration: none; }
.ftxt a:hover { text-decoration: underline; }

/* ── Progress bar ────────────────────────────── */
#pb {
  position: fixed; top: 3px; left: 0; height: 2px;
  background: var(--earth); z-index: 999;
  width: 0; transition: width .1s linear;
  box-shadow: 0 0 8px rgba(187,104,48,.6);
}

/* ── Fade in ─────────────────────────────────── */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.fade.in { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .ucases { grid-template-columns: 1fr; }
  .acc-thead { display: none; }
  .arow { grid-template-columns: 40px 1fr; padding: 4px 0; }
  .ac { padding: 10px 16px; border-right: none; }
  .ac.ac-num { padding-right: 0; }
  .ac.ac-hl { grid-column: 1/-1; border-top: 1px solid rgba(214,206,188,.3); padding-top: 14px; padding-bottom: 8px; }
  .ac.ac-key { grid-column: 1/-1; border-top: none; padding-top: 0; color: var(--text-muted); font-size: 13px; }
  .acc-trigger { padding: 20px 16px; }
  .pbox { padding: 28px 20px; margin-top: 24px; }
  .pbox::before { margin: -28px -20px 28px; }
  .hero { padding: 60px 20px 90px; }
  .container { padding: 36px 20px 80px; }
  .hero h1 { font-size: 38px; }
}
@media (max-width: 600px) {
  .hero-stats { gap: 20px; }
  .cta-grp { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; box-sizing: border-box; }
  
  /* Mobile Accordion Header layout */
  .acc-trigger { flex-wrap: wrap; gap: 12px; }
  .acc-num { order: 1; }
  .acc-trigger-right { order: 2; margin-left: auto; }
  .acc-meta { order: 3; flex: 1 1 100%; margin-top: 2px; }
  
  .pcode { font-size: 11px; padding: 20px 16px; }
  .cpbtn { top: 10px; right: 10px; padding: 6px 12px; }
}
