:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #5f6368;
  --dark: #174ea6;
  --lime: #1a73e8;
  --paper: #ffffff;
  --line: #dadce0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; left: 16px; top: 12px; padding: 8px 16px; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.header, .hero { background: #fff; color: var(--ink); }
.header { position: sticky; z-index: 1; top: 0; border-bottom: 1px solid var(--line); box-shadow: 0 1px 3px #3c40431a; }
.header-inner, .footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header-inner { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.035em; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 4vw, 38px); font-size: .91rem; }
nav a { text-decoration: none; }
.nav-auth, .account-menu button { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.nav-auth-primary { padding: 7px 12px; border: 1px solid var(--lime); border-radius: 7px; color: var(--lime); }
.account-menu { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; }
.account-menu button { color: var(--lime); }
nav a:hover, .text-link:hover, .footer > a:hover { text-decoration: underline; }
.nav-contact { color: var(--lime); }
.hero { background: radial-gradient(circle at 88% 16%, #d2e3fc 0, #edf4ff 24%, transparent 53%), linear-gradient(180deg, #fff 0%, #f8faff 100%); }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(24px, 6vw, 84px); padding-block: clamp(64px, 9vw, 120px); }
.eyebrow { color: #185abc; font-size: .77rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.hero .eyebrow { color: #185abc; }
.featured .eyebrow { color: #d2e3fc; }
.eyebrow span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 5px; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 4.8vw, 3.9rem); margin-top: 16px; }
h1 em { color: var(--lime); font-style: normal; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); margin-top: 7px; }
h3 { font-size: 1.2rem; }
.hero-description { max-width: 44ch; margin-block: 22px 28px; color: var(--muted); font-size: 1.06rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: fit-content; padding: 11px 16px; border-radius: 8px; font-size: .92rem; font-weight: 750; text-decoration: none; }
.button-primary { background: var(--lime); color: #fff; box-shadow: 0 1px 2px #1a73e84d; }
.button-primary:hover { background: #1765cc; }

.illustration { min-width: 0; }
.window { color: var(--ink); border: 1px solid #d2e3fc; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px #174ea62b; overflow: hidden; }
.window-top { display: flex; gap: 14px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.window-dots { color: #8ab4f8; font-size: .55rem; white-space: nowrap; }
.window-body { padding: clamp(12px, 2.4vw, 28px); }
.window-heading { font-weight: 750; margin-bottom: 12px; }
.device { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafd; margin-bottom: 8px; font-size: .85rem; }
.device-icon { color: #1a73e8; }
.device-state { padding: 2px 7px; border-radius: 12px; background: #e8f0fe; color: #174ea6; font-size: .68rem; }
.device-state.available { background: #e6f4ea; color: #137333; }
.handover { font-size: .78rem; color: #185abc; margin-top: 15px; }
figcaption { margin-top: 12px; text-align: right; color: var(--muted); font-size: .75rem; }

.section { padding-block: clamp(50px, 7vw, 88px); }
.featured { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; margin-top: 26px; padding: clamp(22px, 4vw, 42px); background: linear-gradient(135deg, #174ea6, #1a73e8); color: #fff; border-radius: 16px; box-shadow: 0 12px 32px #1a73e829; }
.featured h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-block: 8px 10px; }
.featured p:not(.eyebrow) { max-width: 53ch; color: #e8f0fe; }
.feature-actions { display: grid; justify-items: start; gap: 8px; }
.text-link { font-size: .9rem; font-weight: 700; text-decoration: none; }
.availability { font-size: .88rem; }
.project-grid, .deployment-grid { display: grid; gap: 16px; margin-top: 16px; }
.project-grid { grid-template-columns: repeat(3, 1fr); }
.deployment-grid { grid-template-columns: repeat(2, 1fr); margin-top: 26px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 1px 3px #3c40431a; }
.card h3 + p, .contact-panel h2 + p { margin-top: 10px; color: var(--muted); }
.status { width: fit-content; padding: 3px 9px; border-radius: 20px; margin-bottom: 13px; background: #eef0eb; color: #45534a; font-size: .73rem; font-weight: 700; }
.status.working { background: #e8f0fe; color: #185abc; }
.deployment { background: #f8fafd; border-block: 1px solid var(--line); }
.contact-panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; padding: clamp(20px, 5vw, 48px); background: #e8f0fe; border: 1px solid #d2e3fc; border-radius: 16px; }
.contact-panel h2 { margin: 0; }
.footer { padding-block: 22px; border-top: 1px solid var(--line); }
.footer > a:last-child { font-size: .9rem; text-decoration: none; }
.about-main { background: #f6f9fe; }
.about-hero { padding-block: clamp(48px, 7vw, 78px) 24px; }
.about-hero h1 { margin-top: 12px; }
.about-hero > p { max-width: 72ch; margin-top: 14px; color: var(--muted); font-size: 1.06rem; }
.about-nav { display: flex; gap: 8px; margin-top: 22px; }
.about-nav a { padding: 7px 12px; border: 1px solid #cbd9ec; border-radius: 8px; background: #fff; color: #0757b5; font-size: .88rem; font-weight: 700; text-decoration: none; }
.about-nav a:hover { border-color: #8ab4f8; background: #e8f0fe; }
.about-info-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding-bottom: clamp(52px, 7vw, 76px); }
.about-info-card { grid-column: span 2; min-height: 176px; padding: clamp(22px, 3vw, 28px); border: 1px solid #d5e0ef; border-radius: 13px; background: #fff; }
.about-info-card.about-info-wide { grid-column: span 3; min-height: 128px; }
.about-info-card h2 { margin: 0 0 9px; font-size: 1.2rem; }
.about-info-card p { color: #40526c; }
.about-info-card a { color: #0757b5; font-weight: 700; }
.contact-heading { padding-bottom: 20px; }
.contact-heading h2 { margin-top: 6px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: clamp(24px, 5vw, 60px); align-items: start; padding-bottom: clamp(60px, 8vw, 100px); }
.about-card { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 34px #174ea614; }
.about-card h2 { margin: 0 0 12px; }
.about-card > p { color: var(--muted); }
.contact-list { display: grid; gap: 12px; margin: 26px 0; }
.contact-link { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.contact-link:hover { border-color: #8ab4f8; background: #f8faff; }
.contact-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #e8f0fe; color: #174ea6; font-weight: 800; }
.contact-link small, .contact-link strong { display: block; }
.contact-link small { color: var(--muted); }
.contact-link strong { overflow-wrap: anywhere; }
.privacy-note { padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; }
.about-card a, .privacy-note a { color: #185abc; font-weight: 700; }
.zalo-card { margin: 0; }
.zalo-card img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 14px 40px #174ea629; }
.zalo-card figcaption { color: var(--muted); text-align: center; }
.auth-dialog { width: min(430px, calc(100% - 32px)); border: 0; border-radius: 16px; padding: 28px; color: var(--ink); box-shadow: 0 24px 80px #07130e66; }
.auth-dialog::backdrop { background: #07130eb8; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 12px; right: 15px; border: 0; background: transparent; font-size: 1.7rem; cursor: pointer; color: var(--muted); }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 24px; padding-right: 28px; }
.auth-tabs button { flex: 1; border: 0; border-bottom: 2px solid var(--line); padding: 8px; background: none; font: inherit; font-weight: 750; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { border-color: #1a73e8; color: #174ea6; }
.auth-form { display: grid; gap: 16px; }
.auth-form h2 { margin: 0; font-size: 1.55rem; }
.auth-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; }
.auth-form input { width: 100%; border: 1px solid #b9c5b9; border-radius: 8px; padding: 10px 11px; font: inherit; }
.auth-form input:focus { outline: 2px solid #1a73e8; outline-offset: 1px; }
.auth-form small { color: var(--muted); font-weight: 400; }
.form-message { min-height: 1.5em; color: #a12c24; font-size: .88rem; }
.form-message.success { color: #137333; }

@media (max-width: 760px) {
  .hero-inner, .featured { grid-template-columns: 1fr; }
  .illustration { max-width: 480px; }
  .project-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-info-card, .about-info-card.about-info-wide { grid-column: span 6; min-height: 0; }
  .zalo-card { width: min(100%, 520px); margin-inline: auto; }
}

@media (max-width: 480px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; padding-block: 12px; gap: 8px 14px; }
  nav { gap: 12px; }
  .deployment-grid { grid-template-columns: 1fr; }
  .device { font-size: .77rem; }
}
