@font-face { font-family: "Gilroy"; src: url("assets/fonts/gilroy-regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("assets/fonts/gilroy-semibold.otf") format("opentype"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-500.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --sun: #fdb913;
  --amber: #f7941e;
  --ember: #f15a24;
  --ink: #2b2a2a;
  --graphite: #58595b;
  --muted: #6d6a66;
  --cream: #fff8ee;
  --paper: #ffffff;
  --line: #eadfcf;
  --focus: #1b6ef3;
  --grad: linear-gradient(100deg, var(--sun) 0%, var(--amber) 45%, var(--ember) 100%);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shell: min(1180px, calc(100% - 48px));
  --radius: 14px;
  color-scheme: light;
  --text: #2b2a2a;
  --header-bg: rgb(255 248 238 / 82%);
  --header-bg-2: rgb(255 248 238 / 94%);
  --field: #ffffff;
  --chip: #eee9e1;
  --soft: rgb(255 255 255 / 70%);
  --danger-bg: #fdecea;
  --ok: #1c7a43;
  --bad: #b3261e;
  --shadow-card: rgb(88 89 91 / 55%);
}

:root[data-theme="dark"] {
  --cream: #171413;
  --paper: #211d1b;
  --text: #f5efe7;
  --graphite: #d6cfc6;
  --muted: #a9a097;
  --line: #3b3430;
  --ink: #0d0b0a;
  --header-bg: rgb(23 20 19 / 82%);
  --header-bg-2: rgb(23 20 19 / 94%);
  --field: #2a2523;
  --chip: #3a332f;
  --soft: rgb(33 29 27 / 70%);
  --danger-bg: #3d1f1c;
  --ok: #6fd69a;
  --bad: #ff8a80;
  --shadow-card: rgb(0 0 0 / 70%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--text); font-family: "Gilroy", "Segoe UI", system-ui, sans-serif; font-size: 1rem; line-height: 1.6; overflow-x: clip; transition: background-color 250ms var(--ease), color 250ms var(--ease); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: -64px; left: 16px; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 16px; }
.muted { color: var(--muted); }
.eyebrow { margin-bottom: 14px; color: var(--ember); font-size: .8125rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

/* header */
.site-header { position: fixed; z-index: 50; inset: 0 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 10px max(24px, calc((100vw - 1180px) / 2)); background: var(--header-bg); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease), background-color 200ms var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); background: var(--header-bg-2); }
.brand { display: inline-flex; min-height: 48px; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand-text { display: grid; line-height: 1; }
.brand-text strong { color: var(--graphite); font-size: 1.0625rem; letter-spacing: .3em; }
.brand-text small { margin-top: 4px; color: var(--graphite); font-size: .6875rem; font-weight: 400; letter-spacing: .62em; }
.main-nav { display: flex; justify-content: center; gap: 8px; }
.main-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 14px; border-radius: 999px; color: var(--graphite); font-weight: 700; text-decoration: none; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.main-nav a:hover { background: rgb(247 148 30 / 14%); color: var(--ember); }
.header-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-chip { max-width: 200px; overflow: hidden; padding: 6px 12px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); font-size: .8125rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.theme-toggle { display: inline-grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--field); color: var(--ember); cursor: pointer; transition: transform 160ms var(--ease), border-color 160ms var(--ease), background-color 200ms var(--ease); }
.theme-toggle:hover { border-color: var(--amber); transform: rotate(14deg); }
.theme-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* buttons */
.btn { position: relative; display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 0 26px; overflow: hidden; border: 2px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform 140ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgb(241 90 36 / 70%); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 45%) 50%, transparent 70%); transform: translateX(-120%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -10px rgb(241 90 36 / 75%); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform 700ms var(--ease); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--graphite); background: transparent; color: var(--graphite); }
.btn-ghost:hover { background: var(--graphite); color: var(--cream); }
.btn-small { min-height: 44px; padding: 0 18px; border-color: var(--ember); color: var(--ember); background: transparent; }
.btn-small:hover { background: var(--ember); color: #fff; }
.btn-primary.btn-small { color: #fff; border-color: transparent; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 24px; min-height: 100svh; padding: 112px max(24px, calc((100vw - 1180px) / 2)) 72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: breathe 9s ease-in-out infinite alternate; }
.glow-a { top: -12%; right: -8%; width: 56vw; height: 56vw; max-width: 760px; max-height: 760px; background: radial-gradient(circle, var(--sun), transparent 65%); }
.glow-b { bottom: -22%; left: -14%; width: 50vw; height: 50vw; max-width: 640px; max-height: 640px; background: radial-gradient(circle, var(--ember), transparent 65%); opacity: .28; animation-delay: -4s; }
.bar { position: absolute; left: -10%; height: clamp(46px, 7vw, 88px); background: var(--grad); clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%); opacity: 0; animation: bar-in 1200ms var(--ease) forwards, bar-drift 14s ease-in-out 1.4s infinite alternate; }
.bar-1 { top: 17%; width: 46%; animation-delay: 150ms, 1.4s; opacity: .14; }
.bar-2 { top: 33%; width: 32%; animation-delay: 320ms, 2.2s; background: linear-gradient(100deg, var(--amber), var(--ember)); }
.bar-3 { bottom: 17%; width: 52%; animation-delay: 480ms, 3s; background: linear-gradient(100deg, var(--sun), var(--amber)); }
.bar-2 { opacity: .1; }
.bar-3 { opacity: .12; }
.hero-copy { position: relative; z-index: 2; max-width: 640px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.12em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 900ms var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 140ms; }
.hero h1 .line:nth-child(3) > span { animation-delay: 280ms; }
.grad { display: inline-block; padding-bottom: .16em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 54ch; margin-top: 24px; color: var(--graphite); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .reveal { opacity: 0; transform: translateY(18px); animation: fade-up 800ms var(--ease) 500ms forwards; }
.hero .lede.reveal { animation-delay: 600ms; }
.hero .hero-actions.reveal { animation-delay: 720ms; }
.hero-globe { position: relative; z-index: 1; display: grid; justify-items: center; opacity: 0; animation: fade-in 1200ms var(--ease) 350ms forwards; }
.hero-globe canvas { width: min(100%, 600px); aspect-ratio: 1; height: auto; }
.globe-caption { margin-top: 4px; color: var(--muted); font-size: .8125rem; letter-spacing: .06em; text-align: center; }
.scroll-cue { position: absolute; z-index: 2; bottom: 22px; left: 50%; display: grid; width: 28px; height: 46px; place-items: start center; padding-top: 8px; border: 2px solid var(--graphite); border-radius: 16px; translate: -50% 0; opacity: .6; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 3px; background: var(--graphite); animation: cue 1.8s ease-in-out infinite; }

/* stats */
.stats { position: relative; z-index: 3; margin-top: -1px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); background: var(--ink); color: #fff; }
.stats-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 30px 0; }
.stats p { display: grid; gap: 4px; padding-left: 18px; border-left: 3px solid var(--amber); }
.stats strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 2.5rem; font-weight: 800; line-height: 1; }
.stats span { color: #e7e2da; font-size: .9375rem; }

/* sections */
.section { width: var(--shell); margin: 0 auto; padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.core-belief { margin: 0 0 20px; padding: clamp(28px, 5vw, 48px); border-radius: 22px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.core-belief::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--grad); }
.cb-label { margin-bottom: 12px; color: var(--sun); font-size: .8125rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.cb-title { max-width: 26ch; font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.cb-text { max-width: 68ch; margin-top: 16px; color: #e7e2da; }
.pillar-kicker { margin-bottom: 8px; color: var(--ember); font-size: .8125rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pillar { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease); }
.pillar:hover { transform: translateY(-6px); border-color: var(--amber); box-shadow: 0 24px 40px -26px rgb(241 90 36 / 50%); }
.pillar svg { width: 56px; height: 56px; margin-bottom: 20px; fill: none; stroke: var(--ember); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin-bottom: 10px; font-size: 1.375rem; }
.pillar p { color: var(--graphite); }

.aspiration { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 150px) max(24px, calc((100vw - 1180px) / 2)); background: var(--ink); color: #fff; }
.asp-bars { position: absolute; inset: 0; pointer-events: none; }
.asp-bars span { position: absolute; right: -6%; height: clamp(38px, 6vw, 74px); background: var(--grad); clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%); opacity: .22; animation: bar-drift 12s ease-in-out infinite alternate; }
.asp-bars span:nth-child(1) { top: 12%; width: 54%; }
.asp-bars span:nth-child(2) { top: 46%; width: 38%; animation-delay: -4s; opacity: .14; }
.asp-bars span:nth-child(3) { bottom: 12%; width: 60%; animation-delay: -8s; opacity: .18; }
.asp-inner { position: relative; max-width: 880px; }
.aspiration .eyebrow { color: var(--sun); }
.aspiration h2 { font-size: clamp(2rem, 5vw, 3.75rem); }
.aspiration em { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.12em; font-style: italic; font-weight: 500; color: var(--sun); }
.journey { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 40px 0 0; padding: 0; list-style: none; }
.journey li { position: relative; padding: 8px 18px 8px 0; margin-right: 18px; color: #fff; font-weight: 800; letter-spacing: .04em; }
.journey li::after { content: ""; position: absolute; top: 50%; right: 0; width: 12px; height: 2px; background: var(--amber); }
.journey li:last-child::after { display: none; }

/* gate */
.gate { background: none; }
.login-card { display: grid; gap: 14px; max-width: 520px; margin: 0 auto; padding: clamp(28px, 5vw, 44px); border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 30px 60px -40px var(--shadow-card); }
.login-mark { width: 72px; }
.login-card h3 { font-size: 1.75rem; }
.login-card form { display: grid; gap: 10px; margin-top: 6px; }
.login-card label { font-weight: 800; font-size: .9375rem; }
input[type="email"] { width: 100%; min-height: 50px; padding: 0 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--field); font-size: 1rem; transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
input[type="email"]:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 4px rgb(247 148 30 / 22%); }
.or { position: relative; margin: 8px 0; text-align: center; color: var(--muted); font-size: .875rem; }
.or::before { content: ""; position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: var(--line); }
.or span { position: relative; padding: 0 12px; background: var(--paper); }
#google-button { display: flex; justify-content: center; min-height: 44px; }
.status { min-height: 1.5em; font-weight: 700; }
.status.is-ok { color: var(--ok); }
.status.is-error { color: var(--bad); }

.portal { max-width: 1040px; margin: 0 auto; }
.portal-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.portal-head h3 { font-size: clamp(1.5rem, 3vw, 2.125rem); overflow-wrap: anywhere; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.portal-card { position: relative; display: grid; align-content: start; gap: 8px; min-height: 200px; padding: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); text-decoration: none; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease); }
.portal-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--grad); }
.portal-card:hover { transform: translateY(-5px); border-color: var(--amber); box-shadow: 0 26px 40px -28px rgb(241 90 36 / 60%); }
.portal-card strong { font-size: 1.375rem; line-height: 1.15; }
.portal-card p { color: var(--graphite); }
.portal-card .go { margin-top: auto; color: var(--ember); font-weight: 800; }
.portal-card.is-feature { grid-column: 1 / -1; min-height: 180px; background: var(--ink); color: #fff; }
.portal-card.is-feature p { color: #e7e2da; }
.portal-card.is-feature .go { color: var(--sun); }
.tag { width: fit-content; padding: 4px 12px; border-radius: 999px; background: rgb(247 148 30 / 16%); color: var(--ember); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.is-feature .tag { background: var(--sun); color: var(--ink); }
.muted-tag { background: var(--chip); color: var(--graphite); }

.admin { margin-top: 32px; padding: 26px; border: 1px dashed var(--amber); border-radius: 18px; background: var(--soft); }
.admin h4 { margin-bottom: 6px; font-size: 1.25rem; }
.admin-form { display: flex; gap: 10px; margin: 16px 0; }
.admin-form input { flex: 1; }
.member-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.member-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border-radius: 10px; background: var(--field); border: 1px solid var(--line); overflow-wrap: anywhere; }
.member-list .role { color: var(--muted); font-size: .8125rem; }
.member-list button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--bad); font-weight: 700; cursor: pointer; }
.member-list button:hover { background: var(--danger-bg); }

.site-footer { display: grid; justify-items: center; gap: 12px; padding: 48px 24px 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; text-align: center; }
.site-footer img { width: 96px; }
.site-footer a { color: var(--ember); font-weight: 800; text-decoration: none; }

/* scroll reveal */
.js .section .reveal, .js .aspiration .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .section .reveal.is-in, .js .aspiration .reveal.is-in { opacity: 1; transform: none; }
.js .pillars .pillar:nth-child(even) { transition-delay: 100ms; }

@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes bar-in { from { transform: translateX(-30%); opacity: 0; } to { transform: translateX(0); } }
@keyframes bar-drift { from { transform: translateX(0); } to { transform: translateX(5%); } }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.bar { animation-fill-mode: forwards; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; gap: 8px; text-align: left; }
  .hero-globe { order: -1; margin-bottom: 8px; }
  .hero-globe canvas { width: min(78vw, 420px); }
  .main-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .stats-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --shell: calc(100% - 32px); }
  .site-header { padding: 8px 16px; }
  .brand-text strong { font-size: .9375rem; }
  .user-chip { display: none; }
  .hero { padding: 92px 16px 64px; min-height: auto; }
  .hero h1 { font-size: clamp(2.125rem, 10.4vw, 2.75rem); }
  .scroll-cue { display: none; }
  .stats { padding: 0 16px; }
  .stats-track { gap: 18px 12px; }
  .stats strong { font-size: 2rem; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-card.is-feature { grid-column: auto; }
  .portal-head { flex-direction: column; align-items: start; }
  .admin-form { flex-direction: column; }
  .aspiration { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .hero h1 .line > span { transform: none; }
  .hero .reveal, .hero-globe { opacity: 1; transform: none; }
}

/* che do toi: chinh do sang cac khoi trang tri */
:root[data-theme="dark"] .glow { opacity: .24; }
:root[data-theme="dark"] .glow-b { opacity: .16; }
:root[data-theme="dark"] .bar-1 { opacity: .2; }
:root[data-theme="dark"] .bar-2 { opacity: .14; }
:root[data-theme="dark"] .bar-3 { opacity: .16; }
:root[data-theme="dark"] .core-belief, :root[data-theme="dark"] .portal-card.is-feature { border: 1px solid var(--line); }
:root[data-theme="dark"] .site-footer img { filter: brightness(1.7) contrast(.92); }
:root[data-theme="dark"] .login-mark { filter: none; }

.theme-toggle { flex: none; }
.btn-small { white-space: nowrap; }
@media (max-width: 400px) {
  .site-header { gap: 8px; padding-inline: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 34px; }
  .brand-text strong { font-size: .8125rem; letter-spacing: .2em; }
  .brand-text small { font-size: .625rem; letter-spacing: .5em; }
  .header-user { gap: 6px; }
  .btn-small { padding: 0 12px; font-size: .875rem; }
}
