/* styles.css — chi rieng cho trang munin.vn. Nen tang chung: brand.css.
   Munin nghieng ve mint / green / lime — gradient mint→lime la dau hieu phan biet voi Hugin. */

/* ---------- hero ---------- */

.hero { min-height: 840px; padding-top: 178px; padding-bottom: 64px; background: radial-gradient(circle at 74% 16%, rgba(40, 210, 155, .13), transparent 26%), radial-gradient(circle at 6% 88%, rgba(184, 224, 91, .14), transparent 30%), linear-gradient(180deg, #fbfcf7 0%, var(--paper) 100%); overflow: hidden; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero-lede { max-width: 560px; margin-bottom: 34px; color: #50656e; font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; gap: 28px; align-items: center; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 13px 23px; margin: 34px 0 0; padding: 0; color: #596c73; font-size: 11px; font-weight: 650; list-style: none; }
.check { display: inline-grid; width: 18px; height: 18px; margin-right: 6px; place-items: center; border: 1px solid rgba(21, 157, 117, .25); border-radius: 50%; color: var(--green); background: rgba(40, 210, 155, .1); font-size: 10px; }

/* mockup dien thoai Munin */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 630px; isolation: isolate; }
.phone-aura { position: absolute; z-index: -1; top: 50%; left: 50%; width: 470px; height: 470px; border: 1px solid rgba(21, 157, 117, .14); border-radius: 50%; background: radial-gradient(circle, rgba(40, 210, 155, .13), rgba(184, 224, 91, .05) 48%, transparent 70%); transform: translate(-50%, -50%); }
.phone-aura::before, .phone-aura::after { position: absolute; border: 1px dashed rgba(21, 157, 117, .16); border-radius: 50%; content: ""; }
.phone-aura::before { inset: 48px; }
.phone-aura::after { inset: 112px; }
.hero-phone { position: relative; z-index: 2; width: 296px; padding: 8px; border: 2px solid #0b2832; border-radius: 46px; background: #0b2832; box-shadow: 0 34px 70px rgba(7, 27, 38, .24); transform: rotate(2.2deg); }
.phone-notch { position: absolute; z-index: 3; top: 8px; left: 50%; width: 98px; height: 21px; border-radius: 0 0 13px 13px; background: #0b2832; transform: translateX(-50%); }
.phone-screen { display: flex; flex-direction: column; min-height: 560px; padding: 14px 14px 16px; border-radius: 37px; background: #fafcf8; overflow: hidden; }
.screen-status { display: flex; justify-content: space-between; padding: 2px 8px 8px; color: var(--ink); font-size: 7px; font-weight: 700; }
.screen-head { display: flex; align-items: center; padding: 6px 2px; }
.screen-logo { width: 27px; height: 27px; margin-right: 8px; border-radius: 8px; overflow: hidden; }
.screen-head b { font-size: 11px; }
.screen-head i { margin-left: auto; color: var(--muted); font-style: normal; }
.hw-card { margin-top: 12px; padding: 15px; border-radius: 16px; color: var(--white); background: linear-gradient(140deg, #0a3540, #0b2931); }
.hw-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hw-top small { color: var(--mint); font-size: 6px; font-weight: 800; letter-spacing: .11em; }
.hw-timer { padding: 4px 9px; border-radius: 999px; background: rgba(184, 224, 91, .16); color: var(--lime); font-size: 8px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hw-card > strong { display: block; margin-top: 9px; font-size: 11px; }
.hw-progress { display: flex; gap: 8px; align-items: center; margin-top: 13px; }
.hw-progress i { position: relative; height: 4px; flex: 1; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.hw-progress i::after { position: absolute; inset: 0 auto 0 0; width: var(--progress); border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--lime)); content: ""; }
.hw-progress span { color: rgba(255, 255, 255, .6); font-size: 6px; white-space: nowrap; }
.quiz-tag { margin: 17px 2px 5px; color: var(--green); font-size: 6px; font-weight: 800; letter-spacing: .13em; }
.quiz-question { margin: 0 2px; font-size: 12px; font-weight: 650; line-height: 1.5; }
.quiz-question em { font-family: var(--font-editorial); }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.quiz-options span { display: flex; gap: 7px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 9px; font-weight: 650; }
.quiz-options b { display: grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; border-radius: 6px; background: #eef4f0; color: var(--green); font-size: 7px; }
.quiz-options .is-chosen { border-color: var(--mint); background: rgba(40, 210, 155, .1); }
.quiz-options .is-chosen b { background: linear-gradient(135deg, var(--mint), var(--lime)); color: #06342a; }
.screen-bar { position: relative; height: 4px; margin-top: auto; border-radius: 3px; background: #e2eae5; overflow: hidden; }
.screen-bar::after { position: absolute; inset: 0 auto 0 0; width: var(--progress); border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--lime)); content: ""; }
.explain-chip { position: absolute; z-index: 3; right: 3%; bottom: 70px; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border: 1px solid rgba(40, 210, 155, .24); border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm); transform: rotate(-2deg); }
.explain-chip > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: var(--green); background: rgba(40, 210, 155, .13); font-size: 12px; }
.explain-chip p { display: flex; flex-direction: column; margin: 0; line-height: 1.35; }
.explain-chip small { color: var(--green); font-size: 7px; font-weight: 700; }
.explain-chip strong { font-size: 9px; }

/* ---------- dai tin cay ---------- */

.trust-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f2f4ee; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-grid article { display: flex; gap: 16px; align-items: center; min-height: 124px; padding: 25px 42px; border-right: 1px solid var(--line); }
.trust-grid article:first-child { padding-left: 0; }
.trust-grid article:last-child { padding-right: 0; border-right: 0; }
.trust-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid rgba(7, 27, 38, .15); border-radius: 50%; color: var(--green); }
.trust-grid strong { display: block; font-size: 12px; }
.trust-grid p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }

/* ---------- tinh nang hoc sinh ---------- */

.features { background: #fbfcf8; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { display: flex; flex-direction: column; padding: 30px 26px 28px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .55); transition: background .25s ease, transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { background: var(--white); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.feature-icon { display: grid; width: 46px; height: 46px; margin-bottom: 24px; place-items: center; border-radius: 13px; background: linear-gradient(135deg, rgba(40, 210, 155, .18), rgba(184, 224, 91, .24)); color: var(--green); font-size: 19px; }
.feature-card h3 { margin-bottom: 10px; font-size: 18px; letter-spacing: -.03em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

/* ---------- cach hoat dong ---------- */

.steps { background: var(--paper-warm); overflow-x: clip; }
.step-flow { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr; align-items: stretch; }
.flow-arrow { display: grid; place-items: center; color: var(--green); font-size: 17px; }
.step { display: flex; flex-direction: column; padding: 28px 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); }
.step-number { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.step h3 { margin: 16px 0 10px; font-size: 17px; letter-spacing: -.03em; }
.step p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.step-tag { margin-top: auto; padding-top: 18px; color: #8a9a92; font-size: 7px; font-weight: 800; letter-spacing: .16em; }
.step-note { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 38px 0 0; color: var(--muted); font-size: 11px; }
.step-note span { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green); }

/* ---------- khu vuc cai dat ---------- */

.install { color: var(--white); background: #072420; overflow: hidden; }
.install::before { position: absolute; top: -200px; left: 50%; width: 720px; height: 480px; border-radius: 50%; background: rgba(40, 210, 155, .09); content: ""; filter: blur(60px); transform: translateX(-50%); }
.install .container { position: relative; }
.install .section-heading h2 em { color: var(--mint); }
.install .section-heading > p:last-child { color: rgba(255, 255, 255, .55); }
.install-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 62px; }
.button-big { min-height: 62px; padding: 0 38px; font-size: 15px; border-radius: 8px; }
.install-cta small { color: rgba(255, 255, 255, .45); font-size: 10px; letter-spacing: .06em; }
.install-guides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.guide-card { padding: 30px 28px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 16px; background: rgba(255, 255, 255, .045); }
.guide-head { display: flex; gap: 13px; align-items: center; margin-bottom: 22px; }
.guide-device { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 11px; background: rgba(40, 210, 155, .13); color: var(--mint); font-size: 17px; }
.guide-device::before { content: "▯"; }
.guide-head h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.guide-head small { display: block; margin-top: 3px; color: rgba(255, 255, 255, .4); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.guide-steps { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.guide-steps li { display: flex; gap: 12px; align-items: flex-start; }
.guide-steps b { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; margin-top: 1px; border-radius: 50%; background: rgba(184, 224, 91, .16); color: var(--lime); font-size: 9px; }
.guide-steps span { color: rgba(255, 255, 255, .62); font-size: 11px; line-height: 1.65; }
.guide-steps strong { color: var(--white); font-weight: 650; }
.app-status-card { padding: 28px 30px; border: 1px dashed rgba(255, 255, 255, .22); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.app-status-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.app-status-head h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.status-pill { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border: 1px solid rgba(242, 191, 98, .35); border-radius: 999px; color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.status-pill::before { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); content: ""; }
.platform-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.platform-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px; background: rgba(255, 255, 255, .04); }
.platform-name { font-size: 11px; font-weight: 750; }
.platform-state { color: rgba(255, 255, 255, .5); font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.status-note { margin: 18px 0 0; color: rgba(255, 255, 255, .42); font-size: 10px; line-height: 1.7; }

/* ---------- cau hoi thuong gap ---------- */

.faq { background: #fbfcf8; }
.faq-list { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 66px; padding: 17px 4px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { content: ""; }
.faq-list summary h3 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.faq-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green); font-size: 15px; transition: transform .25s ease, background .25s ease; }
details[open] .faq-icon { background: rgba(40, 210, 155, .13); transform: rotate(45deg); }
.faq-answer { max-width: 680px; margin: 0 0 24px; padding-right: 50px; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* ---------- he sinh thai ---------- */

.ecosystem { background: var(--paper-warm); }
.eco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.eco-card { display: flex; flex-direction: column; padding: 36px 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-sm); }
.eco-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.eco-logo { width: 46px; height: 46px; border-radius: 13px; overflow: hidden; box-shadow: var(--shadow-sm); }
.eco-brand p { display: flex; flex-direction: column; margin: 0; line-height: 1.25; }
.eco-brand strong { font-size: 16px; }
.eco-brand small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.eco-desc { margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.eco-card .text-link { margin-top: auto; align-self: flex-start; }

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .hero { padding-top: 150px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .hero-visual { width: min(640px, 100%); min-height: 590px; margin: 0 auto; }
  .step-flow { grid-template-columns: 1fr 1fr; gap: 16px; }
  .flow-arrow { display: none; }
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .install-guides, .eco-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { width: 44px; height: 44px; }
  .primary-nav > a:not(.button) { padding: 14px 12px; }
  .primary-nav .button { min-height: 48px; }
  .hero { min-height: 0; padding-top: 128px; padding-bottom: 48px; }
  .hero-grid { gap: 46px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .text-link { align-self: flex-start; }
  .hero-notes { display: grid; gap: 10px; }
  .hero-visual { min-height: 0; padding: 26px 0 44px; }
  .hero-phone { transform: rotate(0deg) scale(.94); }
  .phone-aura { width: 380px; height: 380px; }
  .explain-chip { right: 0; bottom: 10px; }
  .trust-grid { grid-template-columns: 1fr; padding-block: 8px; }
  .trust-grid article, .trust-grid article:first-child, .trust-grid article:last-child { min-height: 98px; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-grid article:last-child { border-bottom: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .step-flow { grid-template-columns: 1fr; }
  .flow-arrow { display: grid; padding: 2px 0; transform: rotate(90deg); }
  .step-note { align-items: flex-start; text-align: left; }
  .platform-list { grid-template-columns: 1fr; }
  .faq-answer { padding-right: 0; }
}

@media (max-width: 480px) {
  .explain-chip { display: none; }
}

@media (max-width: 430px) {
  .hero-phone { width: 272px; }
  .phone-aura { width: 320px; height: 320px; }
  .guide-card { padding: 24px 20px; }
  .app-status-card { padding: 22px 18px; }
}
