/* 1VISION — Brand Guidelines v1.0 */
:root {
  --cobalt: #2747F5;
  --cobalt-hover: #1E3BE0;
  --ink: #0E1525;
  --lime: #C8F25A;
  --paper: #F5F6F2;
  --mist: #E2E5EC;
  --slate: #4A5468;
  --white: #FFFFFF;
  --task: #2747F5;
  --meet: #D9480F;
  --spa: #0F7A6A;

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 246, 242, .88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--mist);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.wordmark { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -0.04em; line-height: 1; }
.brand-sm .wordmark { font-size: 16px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--cobalt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; border: 0; border-radius: 10px;
  font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: background-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 999px; }
.btn-cobalt { background: var(--cobalt); color: #fff; }
.btn-cobalt:hover { background: var(--cobalt-hover); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1C2539; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: rgba(14, 21, 37, .06); }
.btn-pill { height: 48px; border-radius: 999px; padding: 0 22px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt);
  margin-bottom: 16px;
}
.eyebrow-lime { color: var(--lime); }
.display, .display-2, .h2, .h2-cta, h3 { font-family: var(--f-display); color: inherit; }
.display {
  font-weight: 800; font-size: clamp(44px, 7.4vw, 84px); line-height: 1.02;
  letter-spacing: -0.04em; max-width: 13.5ch;
}
.accent { color: var(--cobalt); }
.lime { color: var(--lime); }
.display-2 {
  font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.07;
  letter-spacing: -0.035em; max-width: 22ch;
}
.h2 { font-weight: 700; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.025em; max-width: 16ch; }
.h2.wide { max-width: none; }
.h2.narrow { max-width: 21ch; }
h3 { font-weight: 700; font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--mist); }
.hero-inner { position: relative; padding-top: clamp(56px, 9vw, 96px); padding-bottom: clamp(64px, 10vw, 104px); }
.lens {
  position: absolute; top: 50%; right: max(-240px, calc(50% - 820px));
  width: min(820px, 95vw); height: auto; transform: translateY(-52%);
  fill: none; stroke: #DADFF5; stroke-width: 1.4; pointer-events: none;
}
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 24px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200, 242, 90, .3); }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-apps { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-apps a {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 8px;
  background: #fff; border: 1px solid var(--mist); border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.hero-apps a:hover { border-color: #C3C9D6; }
.hero-apps img { width: 28px; height: 28px; border-radius: 8px; }
.lead { margin-top: 28px; max-width: 34em; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: #2A3247; }

/* ---------- Signup ---------- */
.signup { margin-top: 32px; max-width: 560px; }
.signup label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.signup-row { display: flex; gap: 10px; }
.signup input[type="email"] {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 16px;
  border: 1px solid #CDD2DC; border-radius: 10px; background: #fff; color: var(--ink);
  font: 400 15px/1 var(--f-body);
}
.signup input[type="email"]::placeholder { color: #8A92A3; }
.signup input[type="email"]:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(39, 71, 245, .18); }
.signup input[aria-invalid="true"] { border-color: var(--meet); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.5em; margin-top: 10px; font-size: 14px; color: var(--slate); }
.form-msg.ok { color: var(--spa); font-weight: 500; }
.form-msg.err { color: var(--meet); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section + .section:not(.section-ink):not(.section-mist):not(.section-cta) { border-top: 1px solid var(--mist); }

.section-ink { background: var(--ink); color: #F5F6F2; }
.muted-dark { margin-top: 32px; max-width: 34em; color: #A9B0C0; font-size: 15px; line-height: 1.75; }

.section-mist { background: var(--mist); }

/* Products — each card wears its own app's palette inside the 1VISION frame */
.products { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product {
  display: flex; flex-direction: column; gap: 20px;
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px);
}
.product-head { display: flex; align-items: center; gap: 16px; }
.product-icon { width: 64px; height: 64px; border-radius: 16px; }
.product-name { font-size: 28px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.badge {
  display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.product-tagline { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.product-desc { font-size: 15px; line-height: 1.7; }
.product-points { display: grid; gap: 12px; font-size: 14px; line-height: 1.6; }
.product-points li { padding-left: 18px; position: relative; }
.product-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; }
.product-points strong { font-weight: 600; }
.product-actions { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.product-link { font-size: 14px; font-weight: 500; text-underline-offset: 3px; }
.product-note { font-size: 12px; }

/* SpotShare — Brand v1.0: nền #0B0B0D, Kem Sữa #F5F5F4, Vàng Nắng #FBBF3B */
.product-spotshare { background: #0B0B0D; color: #F5F5F4; }
.product-spotshare .product-name { font-family: var(--f-body); }
.product-spotshare .ss-yellow { color: #FBBF3B; }
.product-spotshare .badge { background: #17171A; color: #FBBF3B; box-shadow: inset 0 0 0 1px #2A2A2F; }
.product-spotshare .product-desc, .product-spotshare .product-points { color: #C9C9CE; }
.product-spotshare .product-points strong { color: #F5F5F4; }
.product-spotshare .product-points li::before { background: #FBBF3B; }
.product-spotshare .product-link { color: #F5F5F4; }
.btn-ss { background: #FBBF3B; color: #1A1204; }
.btn-ss:hover { background: #FDD57A; }
.product-spotshare :focus-visible { outline-color: #FBBF3B; }

/* Thiên Thời — theme sáng của app: nền #FBF8F0, chữ #1F1B16, nhấn #B8372A */
.product-thienthoi { background: #FBF8F0; color: #1F1B16; box-shadow: inset 0 0 0 1px #DDD3BF; }
.product-thienthoi .badge { background: #EFE8D8; color: #7A3B33; }
.product-thienthoi .product-desc, .product-thienthoi .product-points { color: #4D453B; }
.product-thienthoi .product-points strong { color: #1F1B16; }
.product-thienthoi .product-points li::before { background: #B8372A; }
.product-thienthoi .product-link { color: #1F1B16; }
.product-thienthoi .product-note { color: #6B6153; }
.btn-tt { background: #B8372A; color: #fff; }
.btn-tt:hover { background: #9E2E23; }

/* Lingua AI — Brand: Ink #111633, Lingua Blue #2E5BFF, Spark #FFB224, Mist #EEF2FF */
.product-lingua { grid-column: 1 / -1; background: #111633; color: #FFFFFF; }
.product-lingua .lg-accent { color: #FFB224; }
.product-lingua .product-name .lg-accent { margin-left: .16em; }
.product-lingua .badge { background: #1C2350; color: #FFB224; box-shadow: inset 0 0 0 1px #2A3266; }
.product-lingua .badge .dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #FFB224; box-shadow: none; vertical-align: middle; }
.product-lingua .product-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; align-items: start; }
.product-lingua .product-body > div { display: grid; gap: 16px; }
.product-lingua .product-kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8FA6FF; }
.product-lingua .product-desc, .product-lingua .product-points { color: #AEB4D6; }
.product-lingua .product-points strong { color: #FFFFFF; }
.product-lingua .product-points li::before { background: #2E5BFF; box-shadow: 0 0 0 3px rgba(46, 91, 255, .3); }
.product-lingua .product-link { color: #FFFFFF; }
.product-lingua .product-note { color: #8C93B8; }
.btn-lingua { background: #2E5BFF; color: #FFFFFF; }
.btn-lingua:hover { background: #4A72FF; }
.product-lingua :focus-visible { outline-color: #FFB224; }

/* Spafy — CRM cho spa: nền Sage #EEF3EF, xanh rêu #1F4D43, hồng đào #C8674A */
.product-spafy { grid-column: 1 / -1; background: #EEF3EF; color: #14302A; box-shadow: inset 0 0 0 1px #CFDCD3; }
.product-spafy .sp-accent { color: #1F4D43; }
.product-spafy .badge { background: #DCE8E0; color: #1F4D43; }
.product-spafy .badge .dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #2F8A5F; box-shadow: none; vertical-align: middle; }
.product-spafy .product-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; align-items: start; }
.product-spafy .product-body > div { display: grid; gap: 16px; }
.product-spafy .product-kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #A4502F; }
.product-spafy .product-desc, .product-spafy .product-points { color: #3E544D; }
.product-spafy .product-points strong { color: #14302A; }
.product-spafy .product-points li::before { background: #C8674A; }
.product-spafy .product-link { color: #14302A; }
.btn-spafy { background: #1F4D43; color: #FFFFFF; }
.btn-spafy:hover { background: #2A6356; }
.product-spafy :focus-visible { outline-color: #1F4D43; }

/* VisKey — Brand v1: Lam mực #3044D6, Ngọc #3FE0C0 (chữ #0B7F6D), Xám than #16181C */
.product-viskey { background: #FFFFFF; color: #16181C; box-shadow: inset 0 0 0 1px #DADDE4; }
.product-viskey .vk-accent { color: #3044D6; }
.product-viskey .badge { background: #E6E9FF; color: #2534B8; }
.product-viskey .badge .dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #14B89A; box-shadow: none; vertical-align: middle; }
.product-viskey .product-kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #0B7F6D; }
.product-viskey .product-desc, .product-viskey .product-points { color: #4B515C; }
.product-viskey .product-points strong { color: #16181C; }
.product-viskey .product-points li::before { background: #3FE0C0; box-shadow: 0 0 0 3px #D5F8F0; }
.product-viskey .product-link { color: #16181C; }
.btn-viskey { background: #3044D6; color: #FFFFFF; }
.btn-viskey:hover { background: #2534B8; }
.product-viskey :focus-visible { outline-color: #3044D6; }

/* VisionGuard — dark-first: nền #0B0E13, chữ #E8ECF2, Guard Blue #6EA8FE / #1F5FD1 */
.product-visionguard { background: #0B0E13; color: #E8ECF2; box-shadow: inset 0 0 0 1px #262E3B; }
.product-visionguard .vg-accent { color: #6EA8FE; }
.product-visionguard .badge { background: #1A2638; color: #9CC3FF; box-shadow: inset 0 0 0 1px #262E3B; }
.product-visionguard .product-kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8FE0B8; }
.product-visionguard .product-desc, .product-visionguard .product-points { color: #B8C2D1; }
.product-visionguard .product-points strong { color: #E8ECF2; }
.product-visionguard .product-points li::before { background: #6EA8FE; box-shadow: 0 0 0 3px rgba(110, 168, 254, .25); }
.product-visionguard .product-link { color: #E8ECF2; }
.btn-visionguard { background: #1F5FD1; color: #FFFFFF; }
.btn-visionguard:hover { background: #2A6CE0; }
.product-visionguard :focus-visible { outline-color: #6EA8FE; }

/* Principles */
.principles { margin-top: 40px; padding-top: 28px; border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.principles h3 { font-size: 24px; margin-bottom: 10px; }
.principles p { font-size: 14px; line-height: 1.65; color: var(--slate); }

/* CTA */
.section-cta { padding-top: clamp(48px, 7vw, 72px); }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
  background: var(--cobalt); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px) clamp(24px, 6vw, 64px);
}
.cta-deco { position: absolute; z-index: -1; background: rgba(255, 255, 255, .16); pointer-events: none; }
.cta-circle { width: 60px; height: 60px; border-radius: 50%; top: -20px; right: 112px; }
.cta-bar { width: 50px; height: 180px; border-radius: 0 0 10px 10px; top: 0; right: 44px; }
.h2-cta { font-weight: 800; font-size: clamp(30px, 3.8vw, 42px); line-height: 1.08; letter-spacing: -0.035em; max-width: 13ch; }
.cta-copy p:last-child { margin-top: 16px; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .9); max-width: 30em; }
.signup-on-cobalt { margin-top: 0; }
.app-pick { border: 0; padding: 0; margin: 0 0 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.app-pick legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.signup .app-pick label { display: inline-flex; margin: 0; font-weight: 500; cursor: pointer; }
.app-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.app-pick span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5);
  transition: background-color .15s ease, color .15s ease;
}
.app-pick input:checked + span { background: #fff; color: var(--cobalt); box-shadow: none; font-weight: 600; }
.app-pick input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.form-hint { margin-top: 10px; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.signup-on-cobalt input[type="email"] { border-color: transparent; }
.signup-on-cobalt input[type="email"]:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(200, 242, 90, .45); }
.signup-on-cobalt .form-msg { color: rgba(255, 255, 255, .9); }
.signup-on-cobalt .form-msg.ok { color: var(--lime); }
.signup-on-cobalt .form-msg.err { color: #FFD9C9; }

/* Footer */
.site-footer { border-top: 1px solid var(--mist); margin-top: clamp(48px, 7vw, 72px); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--slate); flex-wrap: wrap; }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 13px; }
.footer-links a { color: var(--slate); text-decoration: none; }
.footer-links a:hover { color: var(--cobalt); }
.footer-meta { display: flex; gap: 16px; font-size: 12px; color: var(--slate); flex-wrap: wrap; }
.footer-meta a { color: var(--cobalt); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: 1fr; }
  .product-lingua .product-body, .product-spafy .product-body { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .h2 { max-width: none; }
  .lens { width: 520px; right: -260px; top: 120px; transform: none; opacity: .7; }
  .signup-row { flex-direction: column; }
  .signup .btn { width: 100%; }
  .cta-circle { right: 80px; } .cta-bar { right: 20px; height: 120px; width: 40px; }
}
@media (max-width: 520px) {
  .principles { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}
