/* =========================================================
   Demo sites (demo/index.html) — themed by --p (primary), --a (accent),
   --hf (heading font) and body.mode-dark / body.mode-light.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  --bg: #0b1320; --bg2: #111c2e; --card: #16233a; --ink: #eef3fa; --muted: #a7b4c6; --line: rgba(255,255,255,.1);
  margin: 0; font-family: 'Geist', system-ui, sans-serif; line-height: 1.65; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.mode-light { --bg: #fffaf8; --bg2: #fff; --card: #fff; --ink: #2b2226; --muted: #7b6d72; --line: rgba(60,30,40,.1); }
body.mono { --bg: #0c0c0c; --bg2: #141414; --card: #1a1a1a; }
.ind-noi-that.mode-light, .mode-light.ind-noi-that { --bg: #faf7f2; }
a { color: inherit; text-decoration: none; }
svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
h1, h2, h3 { font-family: var(--hf), 'Be Vietnam Pro', serif; line-height: 1.15; margin: 0; letter-spacing: -.02em; }

.demo-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 9px 5vw; font: 500 13px/1.4 'Geist', sans-serif;
  background: #0a2a6b; color: #dbe7ff;
}
.demo-bar a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: #fff; color: #0a4ad8; font-weight: 700; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 99px; border: 0; cursor: pointer;
  font: 700 14px 'Be Vietnam Pro', sans-serif; background: var(--p); color: #fff;
  transition: transform .25s, filter .25s;
}
.mono .btn { color: #0c0c0c; }
.mono .btn-ghost { color: #fff; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13px; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.mode-light .btn-ghost { border-color: var(--p); color: var(--p); }

/* Nav */
.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 30px; padding: 18px 5vw;
  color: #fff; transition: background .3s, padding .3s, box-shadow .3s;
}
.demo-bar + .nav { top: 37px; }
.nav.solid { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); padding: 12px 5vw; box-shadow: 0 8px 30px rgba(0,0,0,.18); color: var(--ink); }
.mode-light .nav { color: var(--ink); }
.logo { display: flex; align-items: center; gap: 10px; font: 700 18px var(--hf), 'Be Vietnam Pro', sans-serif; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--p); color: #fff; font: 800 13px 'Be Vietnam Pro', sans-serif; }
.mono .logo-mark { color: #0c0c0c; }
.links { display: flex; gap: 26px; margin-left: auto; font: 500 14px 'Be Vietnam Pro', sans-serif; }
.links a { opacity: .85; } .links a:hover { opacity: 1; color: var(--a); }
.burger { display: none; background: none; border: 0; color: inherit; font-size: 22px; cursor: pointer; }

/* Hero */
.hero {
  position: relative; min-height: min(100vh, 880px); display: flex; flex-direction: column; justify-content: center;
  padding: 140px 5vw 60px; color: #fff; overflow: hidden;
  background: linear-gradient(90deg, rgba(5,10,20,.88) 0%, rgba(5,10,20,.55) 50%, rgba(5,10,20,.15) 100%), var(--img) center / cover;
}
.mono .hero { background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.35)), var(--img) center 20% / cover; filter: grayscale(1); }
.mode-light .hero { color: var(--ink); background: linear-gradient(90deg, rgba(255,250,248,.97) 0%, rgba(255,250,248,.82) 45%, rgba(255,250,248,0) 75%), var(--img) center / cover; }
.hero-inner { max-width: 640px; animation: rise 1s cubic-bezier(.16,.84,.24,1) both; }
.kicker { display: inline-block; font: 700 12.5px 'Be Vietnam Pro', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--a); margin-bottom: 14px; }
.mode-light .kicker { color: var(--p); }
.hero h1 { font-size: clamp(38px, 5.4vw, 76px); font-weight: 700; margin-bottom: 20px; }
.hero p { font-size: 18px; max-width: 520px; opacity: .88; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 50px; margin-top: 70px; animation: rise 1s .25s cubic-bezier(.16,.84,.24,1) both; }
.hero-stats strong { display: block; font: 700 32px var(--hf), 'Be Vietnam Pro', sans-serif; color: var(--a); }
.mode-light .hero-stats strong { color: var(--p); }
.hero-stats span { font-size: 14px; opacity: .8; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

/* Sections */
.sec { padding: 110px 5vw; opacity: 0; transform: translateY(40px); transition: opacity .9s, transform .9s cubic-bezier(.16,.84,.24,1); }
.sec.in { opacity: 1; transform: none; }
.sec h2 { font-size: clamp(28px, 3.2vw, 44px); margin-bottom: 18px; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; background: var(--bg); }
.about-img { aspect-ratio: 4 / 3.4; border-radius: 22px; background: center / cover; box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.mono .about-img, .mono .gal { filter: grayscale(1); }
.about-copy p { color: var(--muted); font-size: 16.5px; }
.checks { list-style: none; padding: 0; margin: 22px 0 30px; }
.checks li { position: relative; padding: 6px 0 6px 32px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--p); color: #fff; }
.mono .checks li::before { color: #0c0c0c; }
.services { background: var(--bg2); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc { padding: 32px 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: transform .35s, border-color .35s; }
.svc:hover { transform: translateY(-8px); border-color: var(--p); }
.svc-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--p) 18%, transparent); color: var(--p); margin-bottom: 20px; }
.svc h3 { font-size: 20px; margin-bottom: 10px; }
.svc p { color: var(--muted); margin: 0; font-size: 15px; }
.gallery { background: var(--bg); }
.gal-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 18px; }
.gal { margin: 0; border-radius: 18px; background: center / cover; transition: transform .5s; }
.gal:hover { transform: scale(1.02); }
.gal.g0 { grid-row: span 2; }
.gal.g3 { grid-column: span 2; }
.quote { background: var(--bg2); text-align: center; }
.quote blockquote { max-width: 820px; margin: 0 auto; }
.quote p { font: italic 500 clamp(22px, 2.4vw, 32px)/1.45 var(--hf), serif; margin: 0 0 26px; }
.quote footer strong { display: block; font-size: 17px; }
.quote footer span { color: var(--muted); font-size: 14px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; background: var(--bg); }
.contact-copy p { color: var(--muted); }
.contact-info { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-info li { display: flex; align-items: center; gap: 12px; }
.contact-info svg { color: var(--p); }
.contact-form { display: grid; gap: 14px; padding: 34px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.contact-form input, .contact-form textarea { font: inherit; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.sent { margin: 0; color: var(--muted); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 34px 5vw; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; background: var(--bg); }
.foot .logo { color: var(--ink); }

@media (max-width: 900px) {
  .links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 5vw 20px; background: var(--bg); color: var(--ink); display: none; }
  .nav.open .links { display: flex; }
  .links a { padding: 10px 0; }
  .nav > .btn { display: none; }
  .burger { display: block; margin-left: auto; }
  .hero { min-height: 88vh; padding-top: 120px; }
  .mode-light .hero { background: linear-gradient(0deg, rgba(255,250,248,.97) 40%, rgba(255,250,248,.55)), var(--img) center / cover; }
  .hero-stats { gap: 26px; margin-top: 44px; }
  .hero-stats strong { font-size: 24px; }
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
  .gal.g0 { grid-row: auto; grid-column: span 2; }
  .gal.g3 { grid-column: span 2; }
  .sec { padding: 72px 5vw; }
  .demo-bar { font-size: 12px; }
  .demo-bar > span { display: none; }
  .demo-bar { justify-content: center; }
}
@media (max-width: 520px) {
  .svc-grid { grid-template-columns: 1fr; }
  .hero p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .sec { opacity: 1; transform: none; }
}
