:root {
  --ink: #07090d;
  --ink-soft: #0e1219;
  --paper: #f4efe4;
  --paper-deep: #e9e0ce;
  --gold: #d8ae5d;
  --gold-light: #f5d99a;
  --gold-dark: #8d622d;
  --jade: #6fd1b4;
  --red: #a63b42;
  --text: #17191d;
  --muted: #68645c;
  --line: rgba(36, 30, 20, .14);
  --shell: 1180px;
  --serif: Cambria, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--paper);
  font: 400 16px/1.65 var(--sans);
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: -80px;
  padding: 12px 16px;
  color: #111;
  background: var(--gold-light);
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 80px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background .25s, height .25s, box-shadow .25s;
}
.site-header.scrolled {
  height: 68px;
  background: rgba(7,9,13,.91);
  box-shadow: 0 12px 34px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
}
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #17120b;
  border: 1px solid rgba(255,255,255,.46);
  background: linear-gradient(145deg, #f7dfa7, #b9843d);
  box-shadow: inset 0 0 0 3px rgba(30,19,8,.18), 0 8px 24px rgba(0,0,0,.28);
  border-radius: 50%;
  font: 800 12px/1 var(--serif);
  letter-spacing: -.05em;
}
.brand-copy { display: grid; line-height: 1.05; text-transform: uppercase; }
.brand-copy strong { font: 700 18px/1.1 var(--serif); letter-spacing: .08em; }
.brand-copy small { margin-top: 4px; color: var(--gold-light); font-size: 9px; letter-spacing: .32em; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { position: relative; color: rgba(255,255,255,.76); font-size: 13px; font-weight: 650; letter-spacing: .03em; text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--gold-light); transition: right .25s var(--ease); }
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { right: 0; }
.header-social { display: flex; align-items: center; gap: 7px; }
.header-social-link { min-height: 36px; display: inline-flex; align-items: center; padding: 0 11px; color: #fff; border-radius: 5px; font-size: 11px; font-weight: 800; text-decoration: none; }
.header-social-zalo { background: #0068ff; }
.header-social-facebook { background: #1877f2; }
.header-social-link:hover { filter: brightness(1.12); }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s var(--ease), color .22s, background .22s, border-color .22s, box-shadow .22s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-small { min-height: 42px; padding: 9px 17px; }
.button-small svg { width: 17px; height: 17px; }
.button-gold { margin-left: 2px; color: #161109; background: var(--gold-light); border-color: var(--gold-light); }
.button-gold:hover { background: #fff1c9; box-shadow: 0 9px 26px rgba(221,174,86,.28); }
.button-primary { color: #171109; background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-color: rgba(255,245,214,.6); box-shadow: 0 16px 38px rgba(0,0,0,.24); }
.button-primary:hover { background: linear-gradient(135deg, #ffe9b6, #e9bd67); box-shadow: 0 20px 44px rgba(0,0,0,.32); }
.button-primary span { display: grid; gap: 3px; text-align: left; }
.button-primary small { font-size: 11px; font-weight: 550; opacity: .72; }
.button-ghost { color: #fff; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.36); backdrop-filter: blur(8px); }
.button-ghost:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.7); }

.hero {
  min-height: 780px;
  height: min(900px, 100dvh);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero-art, .hero-shade, .hero-noise { position: absolute; inset: 0; pointer-events: none; }
.hero-art {
  z-index: -3;
  background: url("/assets/hero.webp") center 44% / cover no-repeat;
  transform: scale(1.02);
  animation: hero-breathe 18s ease-in-out infinite alternate;
}
.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4,6,10,.96) 0%, rgba(4,6,10,.83) 36%, rgba(4,6,10,.38) 65%, rgba(4,6,10,.44) 100%),
    linear-gradient(0deg, rgba(4,6,10,.88) 0%, transparent 36%, rgba(4,6,10,.27) 100%);
}
.hero-noise {
  z-index: -1;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.hero::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; left: -230px; top: 20%; border-radius: 50%; background: rgba(178,45,45,.19); filter: blur(90px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) 330px; gap: clamp(48px, 8vw, 110px); align-items: end; padding-top: 92px; }
.hero-copy { max-width: 710px; padding-bottom: 26px; }
.eyebrow { margin: 0 0 18px; display: flex; align-items: center; gap: 12px; color: var(--gold-light); font-size: 11px; font-weight: 800; letter-spacing: .23em; text-transform: uppercase; }
.eyebrow span { width: 36px; height: 1px; background: currentColor; }
.eyebrow.dark { color: var(--gold-dark); }
.hero h1 { margin: 0; color: #fff; font: 700 clamp(62px, 7.3vw, 112px)/.84 var(--serif); letter-spacing: -.065em; text-shadow: 0 5px 30px rgba(0,0,0,.48); }
.hero h1 em { color: var(--gold-light); font-style: italic; font-weight: 400; }
.hero-lead { max-width: 620px; margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.75; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero-actions .button-primary { min-width: 250px; }
.hero-facts { margin-top: 38px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.18); display: flex; gap: 0; max-width: 570px; }
.hero-facts div { min-width: 150px; display: grid; gap: 2px; padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(255,255,255,.16); }
.hero-facts div:last-child { border: 0; margin: 0; }
.hero-facts strong { font: 600 15px/1.3 var(--serif); }
.hero-facts span { color: rgba(255,255,255,.48); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.release-card { align-self: end; margin-bottom: 25px; padding: 26px; background: rgba(8,11,15,.68); border: 1px solid rgba(255,255,255,.19); box-shadow: 0 24px 70px rgba(0,0,0,.3); backdrop-filter: blur(14px); }
.release-kicker { display: block; margin-bottom: 10px; color: var(--gold-light); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.release-card > strong { font: 600 24px/1.2 var(--serif); }
.release-card p { margin: 12px 0 18px; color: rgba(255,255,255,.64); font-size: 13px; line-height: 1.65; }
.release-meta { display: flex; justify-content: space-between; padding: 12px 0; border-block: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.68); font-size: 12px; }
.release-card > a { min-height: 44px; margin-top: 13px; display: flex; align-items: center; justify-content: space-between; color: var(--gold-light); font-size: 13px; font-weight: 750; text-decoration: none; }
.release-card > a span { font-size: 19px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 44px; height: 44px; display: grid; place-items: center; transform: translateX(-50%); }
.scroll-cue span { width: 1px; height: 28px; background: linear-gradient(#fff, transparent); animation: scroll-cue 1.8s ease-in-out infinite; }

.section { position: relative; padding: 112px 0; }
.section-heading { max-width: 700px; margin-bottom: 54px; }
.section-heading.row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.section-heading.row > p { max-width: 410px; margin-bottom: 8px; }
.section-heading h2, .install h2 { margin: 0; color: #171710; font: 600 clamp(42px, 5vw, 67px)/.99 var(--serif); letter-spacing: -.045em; }
.section-heading > p, .section-heading.row > p { color: var(--muted); font-size: 17px; }
.intro { background: var(--paper); }
.intro::before { content: "三"; position: absolute; right: 4vw; top: 40px; color: rgba(118,85,42,.055); font: 300 250px/1 var(--serif); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 330px; padding: 34px; border: 1px solid var(--line); background: rgba(255,255,255,.42); overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.feature-card:hover { transform: translateY(-7px); border-color: rgba(142,99,41,.35); box-shadow: 0 22px 60px rgba(68,50,25,.1); }
.feature-card::after { content: ""; position: absolute; width: 140px; height: 140px; right: -80px; bottom: -80px; border: 1px solid rgba(156,108,47,.16); border-radius: 50%; }
.feature-card svg { width: 48px; height: 48px; margin: 48px 0 30px; fill: none; stroke: var(--gold-dark); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.feature-number { position: absolute; top: 24px; right: 25px; color: #9a8f7c; font: 12px/1 var(--sans); letter-spacing: .12em; }
.feature-card h3 { margin: 0 0 12px; font: 600 24px/1.2 var(--serif); }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

.updates { background: #e9e0ce; }
.updates::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(117,94,58,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(117,94,58,.08) 1px, transparent 1px); background-size: 60px 60px; }
.updates .shell { position: relative; }
.news-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.news-card { position: relative; min-height: 245px; padding: 31px; background: rgba(255,255,255,.62); border: 1px solid rgba(63,51,31,.14); }
.news-card:not(.news-featured) { display: flex; flex-direction: column; }
.news-card time { color: var(--gold-dark); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.tag { display: inline-block; width: fit-content; margin: 14px 0 16px; padding: 5px 9px; color: #7f352f; background: rgba(166,59,66,.1); border: 1px solid rgba(166,59,66,.2); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.news-card h3 { max-width: 500px; margin: 0 0 12px; font: 600 24px/1.25 var(--serif); }
.news-card p { margin: auto 0 0; color: var(--muted); font-size: 14px; }
.news-featured { grid-row: span 2; min-height: 508px; padding: 0; display: grid; grid-template-rows: 220px 1fr; overflow: hidden; }
.news-visual { position: relative; display: grid; place-items: center; color: rgba(255,255,255,.86); background: linear-gradient(135deg, rgba(103,23,26,.85), rgba(14,17,22,.25)), url("/assets/hero.webp") center 35% / cover; overflow: hidden; }
.news-visual::before, .news-visual::after { content: ""; position: absolute; width: 190px; height: 190px; border: 1px solid rgba(255,226,165,.4); transform: rotate(45deg); }
.news-visual::after { width: 130px; height: 130px; }
.news-visual span { position: relative; z-index: 1; padding: 10px 15px; border-block: 1px solid rgba(255,255,255,.5); font: 600 12px/1 var(--sans); letter-spacing: .3em; }
.news-body { padding: 31px; }
.news-body p { margin-top: 16px; }

.install { color: #fff; background: var(--ink-soft); overflow: hidden; }
.install::before { content: ""; position: absolute; width: 640px; height: 640px; right: -250px; top: -260px; border-radius: 50%; background: rgba(153,46,50,.22); filter: blur(90px); }
.install-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; align-items: center; }
.install h2 { color: #fff; }
.install-copy > p:not(.eyebrow) { max-width: 490px; margin: 24px 0 31px; color: rgba(255,255,255,.62); }
.install-copy .button { max-width: 100%; }
.install-actions { width: min(100%, 430px); display: grid; gap: 12px; }
.install-actions .button { width: 100%; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { min-height: 120px; display: grid; grid-template-columns: 62px 1fr; gap: 22px; align-items: start; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.steps li:first-child { border-top: 1px solid rgba(255,255,255,.13); }
.steps li > span { color: var(--gold-light); font: italic 500 26px/1 var(--serif); }
.steps strong { font: 600 21px/1.2 var(--serif); }
.steps p { margin: 7px 0 0; color: rgba(255,255,255,.54); font-size: 14px; }
.checksum { position: relative; margin-top: 78px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: center; }
.checksum > div { display: flex; align-items: center; gap: 15px; }
.checksum svg { width: 29px; height: 29px; fill: none; stroke: var(--jade); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.checksum div span { display: grid; }
.checksum strong { font-size: 13px; }
.checksum small { color: rgba(255,255,255,.44); font-size: 9px; letter-spacing: .16em; }
.checksum code { padding: 15px 18px; color: rgba(255,255,255,.68); background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); font: 11px/1.5 Consolas, monospace; overflow-wrap: anywhere; }
.site-footer { padding: 38px 0; color: rgba(255,255,255,.48); background: #05070a; border-top: 1px solid rgba(255,255,255,.09); }
.footer-grid { display: grid; grid-template-columns: 230px 1fr auto; gap: 34px; align-items: center; }
.footer-grid p { margin: 0; font-size: 11px; }
.footer-brand { color: #fff; }
.mobile-download { display: none; }

.reveal { opacity: 1; transform: none; }
@keyframes hero-breathe { from { transform: scale(1.02); } to { transform: scale(1.065); } }
@keyframes scroll-cue { 0%,100% { opacity: .35; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .button-gold { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; align-items: center; }
  .release-card { display: none; }
  .hero-copy { padding-top: 40px; }
  .feature-card { padding: 25px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-featured { grid-column: span 2; grid-row: auto; grid-template-columns: .9fr 1.1fr; grid-template-rows: 1fr; min-height: 360px; }
  .install-grid { gap: 7vw; }
  .checksum { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-grid > p:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }
  body { padding-bottom: 74px; }
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .site-header { height: 68px; }
  .nav-wrap { gap: 12px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 16px; }
  .header-social { margin-left: auto; gap: 5px; }
  .header-social-link { min-height: 34px; padding: 0 8px; font-size: 10px; }
  .site-header .button-gold { display: none; }
  .hero { min-height: 720px; height: 100svh; max-height: 860px; align-items: end; }
  .hero-art { background-image: url("/assets/hero-mobile.webp"); background-position: center 40%; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,6,10,.98) 3%, rgba(4,6,10,.9) 40%, rgba(4,6,10,.22) 78%, rgba(4,6,10,.42) 100%); }
  .hero-grid { display: block; padding-top: 98px; padding-bottom: 57px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(54px, 17vw, 75px); }
  .hero-lead { margin-top: 21px; font-size: 15px; line-height: 1.65; }
  .hero-actions { margin-top: 25px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .button-ghost { display: none; }
  .hero-facts { margin-top: 25px; padding-top: 18px; justify-content: space-between; }
  .hero-facts div { min-width: 0; flex: 1; padding-right: 12px; margin-right: 12px; }
  .hero-facts strong { font-size: 12px; }
  .hero-facts span { font-size: 8px; }
  .scroll-cue { display: none; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 35px; }
  .section-heading.row { display: block; }
  .section-heading h2, .install h2 { font-size: clamp(38px, 12vw, 53px); }
  .section-heading > p, .section-heading.row > p { font-size: 15px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 260px; }
  .feature-card svg { margin: 34px 0 22px; }
  .news-grid { display: block; }
  .news-card { margin-top: 14px; min-height: 230px; }
  .news-featured { display: grid; grid-template-columns: 1fr; grid-template-rows: 190px 1fr; min-height: 500px; }
  .install-grid { grid-template-columns: 1fr; gap: 54px; }
  .install-copy .button { width: 100%; font-size: 12px; }
  .checksum { margin-top: 55px; gap: 18px; }
  .checksum code { font-size: 9px; }
  .footer-grid { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .mobile-download {
    position: fixed;
    z-index: 200;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 18px;
    color: #171109;
    background: linear-gradient(135deg, #f7dfa7, #d5a84e);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 7px;
    box-shadow: 0 15px 40px rgba(0,0,0,.42);
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition: opacity .22s, transform .22s var(--ease);
  }
  .show-mobile-download .mobile-download { opacity: 1; pointer-events: auto; transform: none; }
  .mobile-download svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-download span { display: grid; line-height: 1.2; }
  .mobile-download strong { font-size: 14px; }
  .mobile-download small { margin-top: 3px; font-size: 9px; opacity: .7; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 53px; }
  .hero-facts div { padding-right: 8px; margin-right: 8px; }
  .hero-facts strong { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
