/* styles.css — chi rieng cho trang hugin.vn. Nen tang chung: brand.css */

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

.hero { min-height: 840px; padding-top: 178px; padding-bottom: 62px; background: radial-gradient(circle at 74% 16%, rgba(33, 199, 223, .13), transparent 26%), linear-gradient(180deg, #fbfcf7 0%, var(--paper) 100%); overflow: hidden; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; }
.hero h1 em { color: var(--cyan-dark); }
.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: 5px; place-items: center; border: 1px solid rgba(11, 146, 170, .25); border-radius: 50%; color: var(--cyan-dark); background: rgba(33, 199, 223, .1); font-size: 10px; }
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-orb-one { top: 90px; right: -110px; width: 360px; height: 360px; border: 1px solid rgba(33, 199, 223, .12); }
.hero-orb-two { bottom: 120px; left: -130px; width: 260px; height: 260px; border: 1px solid rgba(40, 210, 155, .12); }

.hero-visual { position: relative; isolation: isolate; }
.hero-visual::before { position: absolute; z-index: -1; top: 50%; left: 50%; width: 120%; height: 115%; background: radial-gradient(circle, rgba(33, 199, 223, .13), transparent 62%); content: ""; transform: translate(-50%, -50%); }

/* mockup cua so Hugin */
.hugin-window { border: 1px solid rgba(7, 27, 38, .13); border-radius: 14px; background: #e9efed; box-shadow: 0 35px 85px rgba(7, 27, 38, .17); overflow: hidden; transform: perspective(1400px) rotateY(-3deg); transform-origin: left center; }
.window-bar { display: flex; align-items: center; height: 36px; padding: 0 14px; border-bottom: 1px solid rgba(7, 27, 38, .08); background: #eef2f0; color: #748187; font-size: 8px; }
.window-bar i { width: 8px; height: 8px; margin-right: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--cyan), var(--mint)); }
.window-bar b { margin-left: auto; letter-spacing: 8px; font-weight: 600; }
.app-body { display: grid; grid-template-columns: 148px 1fr; min-height: 440px; background: #f8faf8; }
.app-side { display: flex; flex-direction: column; padding: 16px 11px; background: #0a2631; }
.side-brand { display: flex; gap: 8px; align-items: center; padding: 0 7px 15px; }
.side-brand span { width: 25px; height: 25px; border-radius: 7px; overflow: hidden; }
.side-brand strong { color: var(--white); font-size: 10px; }
.side-label { margin: 0 0 8px; padding: 0 7px; color: rgba(255, 255, 255, .35); font-size: 6px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.class-list { display: grid; gap: 4px; }
.class-item { display: flex; flex-direction: column; padding: 9px 10px; border-radius: 7px; line-height: 1.35; }
.class-item b { color: rgba(255, 255, 255, .72); font-size: 8px; }
.class-item small { color: rgba(255, 255, 255, .32); font-size: 6px; }
.class-item.active { background: rgba(33, 199, 223, .16); }
.class-item.active b { color: var(--white); }
.side-teacher { display: flex; gap: 7px; align-items: center; margin-top: auto; padding: 11px 5px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.side-teacher > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #06343c; background: var(--cyan); font-size: 7px; font-weight: 800; }
.side-teacher p { display: flex; flex-direction: column; margin: 0; line-height: 1.4; }
.side-teacher strong { color: var(--white); font-size: 7px; }
.side-teacher small { color: rgba(255, 255, 255, .4); font-size: 5px; }

.app-chat { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.chat-row { display: flex; gap: 8px; }
.chat-user { justify-content: flex-end; }
.chat-user p { max-width: 78%; margin: 0; padding: 10px 13px; border-radius: 12px 12px 3px 12px; color: var(--white); background: linear-gradient(140deg, #0b3540, #0b2932); font-size: 9px; line-height: 1.5; }
.ai-mark { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 8px; color: var(--cyan-dark); background: rgba(33, 199, 223, .14); font-size: 10px; }
.chat-bubble { max-width: 88%; padding: 12px; border: 1px solid rgba(7, 27, 38, .07); border-radius: 3px 12px 12px 12px; background: var(--white); box-shadow: 0 8px 22px rgba(7, 27, 38, .05); }
.chat-bubble > p { margin: 0; color: #33454e; font-size: 8.5px; line-height: 1.65; }
.source-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.source-chips span, .source-chip { padding: 4px 8px; border: 1px solid rgba(33, 199, 223, .2); border-radius: 999px; color: var(--cyan-dark); background: #f1fbfa; font-size: 6.5px; font-weight: 700; }
.mini-chart { margin-top: 10px; padding: 10px 12px 8px; border-radius: 9px; background: #f5f8f7; }
.mini-title { margin: 0 0 8px; color: var(--muted); font-size: 6.5px; font-weight: 700; }
.mini-bars { display: flex; gap: 9px; align-items: flex-end; height: 56px; border-bottom: 1px solid rgba(7, 27, 38, .1); }
.mini-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--cyan), var(--mint)); }
.mini-labels { display: flex; gap: 9px; padding-top: 5px; }
.mini-labels span { flex: 1; color: var(--muted); font-size: 5.5px; text-align: center; }
.chat-input { display: flex; gap: 8px; align-items: center; margin-top: auto; padding: 10px 13px; border: 1px solid rgba(7, 27, 38, .1); border-radius: 999px; background: var(--white); }
.chat-input span { flex: 1; color: #93a1a7; font-size: 8px; }
.chat-input b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: var(--white); background: linear-gradient(135deg, var(--cyan), var(--mint)); 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; }
.line-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(--cyan-dark); }
.trust-grid strong { display: block; font-size: 12px; }
.trust-grid p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

/* ---------- tinh nang ---------- */

.features { background: #fbfcf8; }
.section-heading h2 em { color: var(--cyan-dark); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-grid article { padding: 40px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .3); transition: background .25s ease, transform .25s ease; }
.feature-grid article:hover { z-index: 1; background: var(--white); transform: translateY(-5px); }
.feature-icon { display: grid; width: 46px; height: 46px; margin-bottom: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--cyan-dark); font-size: 17px; }
.feature-kicker { margin-bottom: 14px; color: var(--cyan-dark); font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.feature-grid h3 { margin-bottom: 13px; font-size: 21px; letter-spacing: -.03em; }
.feature-grid article > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

/* ---------- mimir office ---------- */

.office { background: var(--paper-warm); overflow-x: clip; }
.office-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 84px; align-items: center; }
.office-copy h2 { margin-bottom: 25px; font-size: clamp(42px, 5vw, 66px); font-weight: 590; }
.office-copy h2 em { color: var(--cyan-dark); }
.office-copy > p:not(.eyebrow):not(.office-note) { margin-bottom: 26px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.office-list { margin: 0 0 26px; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.office-list li { display: flex; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.office-list li > span { color: var(--cyan-dark); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.office-list li div { display: flex; flex-direction: column; }
.office-list strong { font-size: 12px; }
.office-list small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.office-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 1px solid rgba(242, 191, 98, .45); border-radius: 10px; background: rgba(242, 191, 98, .13); color: #7a5a20; font-size: 11px; line-height: 1.6; }

.office-mockup { border: 1px solid rgba(7, 27, 38, .13); border-radius: 14px; background: #e9efed; box-shadow: 0 35px 85px rgba(7, 27, 38, .17); overflow: hidden; }
.office-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 34px; padding: 0 14px; border-bottom: 1px solid rgba(7, 27, 38, .08); background: #f3f6f4; }
.tb-name { color: #55676f; font-size: 7.5px; font-weight: 700; }
.tb-tools { display: flex; gap: 7px; color: #7b8a90; font-size: 8px; }
.tb-tools b, .tb-tools i, .tb-tools span { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid rgba(7, 27, 38, .1); border-radius: 4px; background: var(--white); }
.tb-tools i { font-style: italic; }
.tb-tools .tb-u { text-decoration: underline; }
.office-body { display: grid; grid-template-columns: 1fr 168px; min-height: 330px; background: #eef2f0; }
.doc-page { display: flex; flex-direction: column; gap: 9px; margin: 18px 14px 18px 18px; padding: 22px 20px; border-radius: 6px; background: var(--white); box-shadow: 0 10px 26px rgba(7, 27, 38, .08); }
.doc-line { height: 6px; border-radius: 3px; background: #e2e9e6; }
.doc-line.title { width: 55%; height: 10px; margin-bottom: 6px; background: #c9d6d2; }
.doc-line.w95 { width: 95%; }
.doc-line.w90 { width: 90%; }
.doc-line.w80 { width: 80%; }
.doc-line.w70 { width: 70%; }
.doc-line.w60 { width: 60%; }
.doc-block { height: 52px; margin: 4px 0; border-radius: 5px; background: repeating-linear-gradient(to bottom, #eef4f2 0 12px, #e2e9e6 12px 13px); }
.office-ai { display: flex; flex-direction: column; gap: 10px; margin: 18px 18px 18px 0; padding: 16px 14px; border-radius: 10px; color: var(--white); background: linear-gradient(160deg, #0b3540, #0a2631); }
.office-ai-head { display: flex; gap: 7px; align-items: center; margin: 0; font-size: 9px; font-weight: 800; }
.office-ai-head span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 6px; color: #06343c; background: var(--cyan); font-size: 9px; }
.office-ai-text { margin: 0; color: rgba(255, 255, 255, .72); font-size: 8px; line-height: 1.65; }
.office-ai .source-chip { align-self: flex-start; border-color: rgba(33, 199, 223, .3); background: rgba(33, 199, 223, .12); color: var(--cyan); }
.office-ai-btn { margin-top: auto; padding: 9px 12px; border-radius: 7px; color: #03222a; background: linear-gradient(110deg, var(--cyan), var(--mint)); text-align: center; font-size: 7.5px; font-weight: 800; }

/* ---------- tai xuong ---------- */

.downloads { color: var(--white); background: #08232e; overflow: hidden; }
.downloads .section-heading h2 em { color: var(--mint); }
.downloads .section-heading > p:last-child { color: rgba(255, 255, 255, .55); }
.pilot-banner { margin-bottom: 34px; padding: 20px 24px; border: 1px solid rgba(242, 191, 98, .35); border-radius: 12px; background: rgba(242, 191, 98, .08); }
.pilot-banner strong { display: block; color: var(--gold); font-size: 12px; }
.pilot-banner p { margin: 8px 0 0; color: rgba(255, 255, 255, .6); font-size: 11px; line-height: 1.7; }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.download-card { display: flex; flex-direction: column; padding: 34px 32px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: rgba(255, 255, 255, .05); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.download-card:hover { transform: translateY(-4px); border-color: rgba(33, 199, 223, .4); background: rgba(255, 255, 255, .07); }
.download-card.is-recommended { border-color: rgba(40, 210, 155, .45); background: rgba(40, 210, 155, .06); }
.dl-badge { align-self: flex-start; margin-bottom: 16px; padding: 5px 11px; border-radius: 999px; color: #04261c; background: linear-gradient(110deg, var(--mint), var(--lime)); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dl-title { color: var(--white); font-size: 24px; letter-spacing: -.03em; }
.dl-desc { margin-top: 10px; color: rgba(255, 255, 255, .55); font-size: 11px; line-height: 1.7; }
.dl-file { display: block; margin-top: 20px; padding: 11px 13px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; color: var(--cyan); background: rgba(7, 27, 38, .5); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 10px; word-break: break-all; }
.dl-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 20px 0 0; }
.dl-meta > div { display: flex; flex-direction: column; gap: 3px; }
.dl-meta dt { color: rgba(255, 255, 255, .4); font-size: 7.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dl-meta dd { margin: 0; color: var(--white); font-size: 12px; font-weight: 650; }
.dl-sha { margin-top: 16px; color: rgba(255, 255, 255, .4); font-size: 7.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dl-sha code { display: block; margin-top: 4px; color: rgba(255, 255, 255, .75); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 9px; letter-spacing: 0; word-break: break-all; text-transform: none; }
.dl-cta { display: inline-flex; gap: 14px; align-items: center; justify-content: center; min-height: 48px; margin-top: 26px; border-radius: 6px; color: #03222a; background: linear-gradient(110deg, var(--cyan), var(--mint)); font-size: 13px; font-weight: 750; }
.download-card:not(.is-recommended) .dl-cta { border: 1px solid rgba(255, 255, 255, .2); color: var(--white); background: rgba(255, 255, 255, .1); }
.download-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 30px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); list-style: none; }
.download-notes li { display: flex; gap: 11px; }
.download-notes li > span { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; color: var(--mint); font-size: 10px; }
.download-notes p { margin: 0; color: rgba(255, 255, 255, .5); font-size: 10px; line-height: 1.7; }
.download-notes strong { color: rgba(255, 255, 255, .85); }

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

.faq { background: #fbfcf8; }
.faq-list { max-width: 840px; 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; padding: 24px 4px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.faq-list summary::after { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--cyan-dark); content: "+"; font-size: 15px; transition: transform .25s ease, background .25s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: rgba(33, 199, 223, .12); }
.faq-list details p { max-width: 680px; margin: 0; padding: 0 44px 26px 4px; color: var(--muted); font-size: 13px; line-height: 1.8; }

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

.ecosystem { border-top: 1px solid var(--line); background: var(--paper-warm); }
.eco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.eco-card { display: flex; gap: 22px; align-items: flex-start; padding: 38px 34px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .55); transition: background .25s ease, transform .25s ease; }
.eco-card:hover { background: var(--white); transform: translateY(-4px); }
.eco-logo { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.eco-card h3 { margin-bottom: 10px; font-size: 22px; }
.eco-card p { margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 1.75; }

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

@media (max-width: 1120px) {
  .hero { padding-top: 150px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { max-width: 780px; }
  .hero-visual { max-width: 720px; }
  .hugin-window { transform: none; }
  .office-grid { grid-template-columns: 1fr; gap: 60px; }
  .office-copy { max-width: 680px; }
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .download-notes { grid-template-columns: 1fr; gap: 18px; }
  .eco-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { min-height: auto; padding-top: 128px; padding-bottom: 46px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .text-link { align-self: flex-start; }
  .hero-notes { display: grid; }
  .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; }
  .app-body { grid-template-columns: 108px 1fr; }
  .office-body { grid-template-columns: 1fr 140px; }
  .download-card { padding: 28px 22px; }
}

@media (max-width: 430px) {
  .feature-grid { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 92px 1fr; }
  .class-item small { display: none; }
  .office-body { grid-template-columns: 1fr; }
  .doc-page { margin: 14px; }
  .office-ai { margin: 0 14px 16px; }
}
