/* Bé Ong — beong.net — Design System: Hiện đại, Mượt mà & Thân thiện với trẻ em */
:root {
  --honey: #FFC53D;
  --honey-light: #FFF6DF;
  --honey-deep: #F59E0B;
  --honey-ink: #3D2800;
  --blue: #2563EB;
  --blue-light: #EFF6FF;
  --green: #10B981;
  --green-light: #ECFDF5;
  --amber: #D97706;
  --purple: #8B5CF6;
  --purple-light: #F5F3FF;
  --coral: #FF6B6B;
  --coral-light: #FFF1F1;

  --bg: #FFFDF9;
  --bg-alt: #FFF8EB;
  --surface: #FFFFFF;
  --ink: #1E1743;
  --ink-muted: #645C84;
  --line: #EFE7D4;
  --line-light: #F7F2E7;

  --shadow-sm: 0 2px 8px rgba(30, 23, 67, 0.04);
  --shadow: 0 6px 24px rgba(30, 23, 67, 0.06), 0 1px 3px rgba(30, 23, 67, 0.02);
  --shadow-hover: 0 16px 36px rgba(30, 23, 67, 0.12), 0 4px 12px rgba(245, 158, 11, 0.18);

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --radius-pill: 9999px;
  --maxw: 1120px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110D26;
    --bg-alt: #181236;
    --surface: #201A45;
    --ink: #F5F3FF;
    --ink-muted: #A8A1CC;
    --line: #322B60;
    --line-light: #26204D;
    --blue: #60A5FA;
    --blue-light: #1E293B;
    --green: #34D399;
    --green-light: #064E3B;
    --amber: #FBBF24;
    --purple: #A78BFA;
    --honey: #FCD34D;
    --honey-light: #2C2407;
    --honey-ink: #1F1500;
    --coral: #FB7185;
    --coral-light: #4C0519;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --bg: #110D26;
  --bg-alt: #181236;
  --surface: #201A45;
  --ink: #F5F3FF;
  --ink-muted: #A8A1CC;
  --line: #322B60;
  --line-light: #26204D;
  --blue: #60A5FA;
  --blue-light: #1E293B;
  --green: #34D399;
  --green-light: #064E3B;
  --amber: #FBBF24;
  --purple: #A78BFA;
  --honey: #FCD34D;
  --honey-light: #2C2407;
  --honey-ink: #1F1500;
  --coral: #FB7185;
  --coral-light: #4C0519;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-underline-offset: 4px; transition: var(--transition); }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 800; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--honey);
  color: var(--honey-ink); padding: 12px 20px; font-weight: 800;
  border-radius: 0 0 12px 0; z-index: 100;
}
.skip:focus { left: 0; }

section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.band { background: var(--bg-alt); }
.lede { color: var(--ink-muted); font-size: 1.12rem; max-width: 64ch; line-height: 1.7; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber); background: var(--honey-light); padding: 6px 14px;
  border-radius: var(--radius-pill); margin-bottom: 16px; border: 1px solid rgba(245, 158, 11, 0.15);
}
.center-head { text-align: center; max-width: 700px; margin: 0 auto; }

/* ── HEADER & NAVIGATION ───────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
  transition: var(--transition);
}
@supports (backdrop-filter: blur(1px)) {
  .site-head {
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
  }
}
.head-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; flex: none;
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1.15;
}
.brand-name {
  font-weight: 900; font-size: 1.2rem; color: var(--ink);
}
.brand-slogan {
  font-size: 0.72rem; font-weight: 700; color: var(--amber); letter-spacing: 0.02em;
}
.brand .logo {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover .logo { transform: scale(1.08) rotate(6deg); }

.mainnav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.mainnav a {
  color: var(--ink-muted); text-decoration: none; font-weight: 700; font-size: 0.95rem;
  padding: 8px 16px; border-radius: var(--radius-pill); transition: var(--transition);
}
.mainnav a:hover { color: var(--ink); background: var(--bg-alt); transform: translateY(-1px); }
.mainnav a[aria-current="page"] {
  color: var(--honey-ink); background: var(--honey); font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.navtoggle {
  display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; width: 44px; height: 44px; cursor: pointer; color: var(--ink);
  font-size: 1.25rem; line-height: 1; transition: var(--transition);
}
.navtoggle:hover { background: var(--bg-alt); }

@media (max-width: 840px) {
  .navtoggle { display: block; }
  .mainnav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: 14px 24px 20px; gap: 6px; display: none; box-shadow: var(--shadow);
  }
  .mainnav.open { display: flex; animation: slideDown 0.25s ease-out; }
  .mainnav a { padding: 12px 16px; font-size: 1.05rem; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── BUTTONS & INTERACTIVE ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius-pill); font-weight: 800;
  font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); line-height: 1.4;
}
.btn-primary {
  background: var(--honey); color: var(--honey-ink);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover {
  background: var(--honey-deep); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}
.btn-ghost {
  border-color: var(--line); color: var(--ink); background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--honey); background: var(--honey-light);
  transform: translateY(-2px); color: var(--honey-ink);
}
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ── CARDS & GRIDS ─────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--honey);
}
.feature-card {
  display: flex; flex-direction: column; gap: 8px;
}
.ico-badge {
  font-size: 2.2rem; line-height: 1; width: 56px; height: 56px;
  display: grid; place-items: center; border-radius: 16px;
  background: var(--bg-alt); margin-bottom: 8px;
}
.grid { display: grid; gap: 24px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .g3, .g2 { grid-template-columns: 1fr; } }

.hex {
  width: 48px; height: 54px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--honey), var(--honey-deep));
  color: var(--honey-ink); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  font-weight: 800; font-size: 1.15rem; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.val:hover .hex, .step:hover .hex { transform: scale(1.1) rotate(6deg); }
.hex.sm { width: 38px; height: 43px; font-size: 0.92rem; }

/* ── HERO SECTION ──────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; } }
.hero h1 .hl {
  background: linear-gradient(180deg, transparent 60%, rgba(255, 197, 61, 0.65) 60%);
  padding: 0 0.15em; border-radius: 4px;
}
.hero p.lede { margin-top: 22px; font-size: 1.18rem; }
.note {
  margin-top: 22px; font-size: 0.94rem; color: var(--ink-muted);
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-weight: 600;
}

.phones { display: flex; justify-content: center; gap: 20px; padding: 20px 0; perspective: 1000px; }
.phone {
  border-radius: 30px; overflow: hidden; background: var(--surface);
  border: 4px solid var(--surface); box-shadow: var(--shadow-hover);
  width: min(250px, 42vw); transition: var(--transition);
}
.phone img { border-radius: 26px; }
.phone.tilt-l { transform: rotate(-5deg) translateY(12px); }
.phone.tilt-r { transform: rotate(5deg) translateY(-12px); }
.phone:hover { transform: scale(1.04) translateY(-6px) rotate(0deg) !important; z-index: 10; }
@media (max-width: 540px) { .phone.tilt-l { display: none; } }

/* ── BA HŨ XU ──────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.jars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
@media (max-width: 720px) { .jars { grid-template-columns: 1fr; } }

.jar {
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; box-shadow: var(--shadow);
  transition: var(--transition); position: relative; overflow: hidden;
}
.jar:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--honey);
}
.jar .e { font-size: 2.6rem; line-height: 1; margin-bottom: 8px; }
.jar .pct {
  font-weight: 900; font-size: 1.8rem; color: var(--blue); margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.jar .nm { font-weight: 800; font-size: 1.12rem; margin-top: 4px; }
.jar p { color: var(--ink-muted); font-size: 0.92rem; margin-top: 6px; }

.phone-img {
  border-radius: 28px; border: 4px solid var(--surface); box-shadow: var(--shadow-hover);
  transition: var(--transition);
}
.phone-img:hover { transform: scale(1.02); }

/* ── STATUS CARD ───────────────────────────────────── */
.status-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow);
}
.status-desc { font-size: 1.1rem; color: var(--ink-muted); margin-top: 14px; max-width: 64ch; }
.status-grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 760px) { .status-grid { grid-template-columns: repeat(3, 1fr); } }

.status-box {
  border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line);
  background: var(--bg); transition: var(--transition);
}
.status-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.status-box h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.status-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.status-box li { font-size: 0.95rem; color: var(--ink-muted); line-height: 1.5; position: relative; padding-left: 18px; }
.status-box li::before { content: "•"; position: absolute; left: 0; font-weight: 900; color: var(--honey-deep); }
.status-box.done { border-top: 4px solid var(--green); }
.status-box.doing { border-top: 4px solid var(--amber); }
.status-box.todo { border-top: 4px solid var(--blue); }

/* ── FEATURES & SHOWCASE ───────────────────────────── */
.feat {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px);
  align-items: center; padding: clamp(40px, 6vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}
.feat:last-of-type { border-bottom: none; }
.feat:nth-of-type(even) .shot { order: -1; }
@media (max-width: 880px) {
  .feat { grid-template-columns: 1fr; gap: 28px; }
  .feat:nth-of-type(even) .shot { order: 0; }
}
.feat h2 { font-size: clamp(1.4rem, 3.5vw, 1.95rem); color: var(--ink); }
.feat .lede { margin-top: 14px; }
.shot img {
  width: min(300px, 80%); margin: 0 auto; border-radius: 26px;
  border: 4px solid var(--surface); box-shadow: var(--shadow-hover);
  transition: var(--transition);
}
.shot img:hover { transform: scale(1.03) translateY(-4px); }

.pts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.pts li { display: flex; gap: 12px; font-size: 1rem; color: var(--ink-muted); align-items: baseline; }
.pts b { color: var(--ink); }
.tick {
  color: var(--green); font-weight: 800; font-size: 1.1rem; flex: none;
  background: var(--green-light); width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
}

/* ── STEPS ─────────────────────────────────────────── */
.steps { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); transition: var(--transition);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--honey); }
.step img {
  border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  margin-bottom: 18px; width: 100%; transition: var(--transition);
}
.step:hover img { transform: scale(1.02); }
.step .row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.step p { color: var(--ink-muted); font-size: 0.96rem; line-height: 1.6; }

/* ── SCENE / SAYS ──────────────────────────────────── */
.scene { display: grid; gap: 18px; margin-top: 32px; }
@media (min-width: 760px) { .scene { grid-template-columns: repeat(3, 1fr); } }
.say {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: var(--transition);
}
.say:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--honey); }
.say q { display: block; font-weight: 800; font-size: 1.1rem; color: var(--ink); margin-bottom: 8px; }
.say p { color: var(--ink-muted); font-size: 0.95rem; }

/* ── VALUES ────────────────────────────────────────── */
.vals { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 720px) { .vals { grid-template-columns: repeat(2, 1fr); } }
.val {
  display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow);
  transition: var(--transition); align-items: flex-start;
}
.val:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--honey); }
.val p { color: var(--ink-muted); font-size: 0.98rem; margin-top: 8px; }

/* ── ACCORDION / NOTS ──────────────────────────────── */
.nots { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 720px) { .nots { grid-template-columns: repeat(2, 1fr); } }
.not {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; box-shadow: var(--shadow); transition: var(--transition);
}
.not:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--honey); }
.not h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: 8px; }
.not p { color: var(--ink-muted); font-size: 0.96rem; line-height: 1.6; }

/* ── FOOTER ────────────────────────────────────────── */
.site-foot {
  background: var(--bg-alt); border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 72px) 0 40px; color: var(--ink-muted); font-size: 0.95rem;
}
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-brand p { margin-top: 14px; max-width: 34ch; line-height: 1.65; }
.foot-col h2 {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); font-weight: 800; margin-bottom: 16px;
}
.foot-col a, .foot-col span { display: block; color: var(--ink-muted); text-decoration: none; padding: 6px 0; transition: var(--transition); }
.foot-col a:hover { color: var(--blue); transform: translateX(3px); }
.foot-bar {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: 0.9rem;
}
.foot-bar .badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 6px 16px;
  font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm);
}

/* ── PRIVACY TABLE ─────────────────────────────────── */
.tblwrap {
  overflow-x: auto; margin-top: 20px; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--surface); }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
th { font-weight: 800; background: var(--bg-alt); color: var(--ink); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
