/* ==========================================================================
   EcoMind landing page
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Components  6. Sections
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/inter-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --acc: #4ADE9B; /* brand accent; alternatives: #7C8CFF #F5A524 #F472B6 */
  --bg: #08090A;
  --text: #F7F8F8;
  --text-soft: #E4E6E9;
  --text-mid: #B4B8BF;
  --muted: #8A8F98;
  --faint: #8A8F98; /* was #6B7079 (3.9:1); raised for AA contrast */
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --surface: rgba(255, 255, 255, .025);
  --max: 1200px;
  --gutter: 32px;
}

/* 3. Base ----------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 16px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 4. Layout --------------------------------------------------------------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 140px; }
.section--tail { padding-bottom: 140px; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.grid-cards { display: flex; flex-wrap: wrap; gap: 16px; }

/* 5. Components ----------------------------------------------------------- */
.kicker { font-size: 13px; font-weight: 500; color: var(--acc); margin-bottom: 16px; }
.gradient-text {
  background: linear-gradient(180deg, #FFF 40%, #8A8F98 130%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.h2 { font-weight: 600; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 20px; max-width: 780px; }
.h2--feature { font-size: clamp(26px, 3.4vw, 36px); }
.lead { font-size: 18px; color: var(--muted); max-width: 660px; margin-bottom: 48px; }
.lead--flush { margin-bottom: 0; }
.lead--feature { margin-bottom: 40px; }

.btn { display: flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 10px; font-weight: 500; font-size: 15px; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--text); color: var(--bg); box-shadow: 0 0 40px color-mix(in srgb, var(--acc) 35%, transparent); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }

.card {
  flex: 1 1 440px; min-width: 0; padding: 36px; position: relative; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); border-radius: 20px;
  transition: border-color .2s, background .2s;
}
.card:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); }
.card--third { flex-basis: 300px; }
.card p { color: var(--muted); }
.card h3 { font-weight: 600; letter-spacing: -.02em; }
.card__badge {
  width: 36px; height: 36px; margin-bottom: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12);
  background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); font-weight: 600; font-size: 14px;
}
.card__title { font-size: 24px; line-height: 1.2; margin-bottom: 12px; }
.card__glow {
  position: absolute; top: -90px; right: -90px; width: 240px; height: 240px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 18%, transparent), transparent);
}
.brand-mark {
  display: block; width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--acc), var(--bg) 130%); border: 1px solid rgba(255, 255, 255, .25);
}
.brand-mark--lg { width: 28px; height: 28px; border-radius: 8px; }
.product { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.product__name { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.card .product + p { position: relative; }
.value__alt { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); margin-bottom: 56px; }
.value__title { font-size: 30px; line-height: 1.1; letter-spacing: -.035em; margin-bottom: 14px; }

/* App-window mockups */
.win {
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; overflow: hidden; text-align: left;
  background: linear-gradient(180deg, #111214, #0B0C0D); box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}
.winbar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 13px; color: var(--muted); }
.winbar__title { margin-left: 12px; }
.dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: #2A2C30; }
.ill { margin-left: auto; font-size: 11px; color: var(--faint); border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; padding: 1px 8px; }
.pane { min-width: 0; padding: 28px; }
.pane + .pane { border-left: 1px solid rgba(255, 255, 255, .07); }
.pane-title { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.row { transition: background .15s; }
.row:hover { background: rgba(255, 255, 255, .04); }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; font-size: 12px; color: var(--text-mid); background: rgba(255, 255, 255, .03);
}
.tag--accent { border-color: color-mix(in srgb, var(--acc) 50%, transparent); color: var(--acc); }
.skel { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .08); margin-bottom: 8px; }
.skel--hit { background: color-mix(in srgb, var(--acc) 35%, transparent); }
.skel:last-child { margin-bottom: 0; }
.fig { font-size: 12px; color: var(--faint); letter-spacing: .04em; margin-top: 14px; }

/* Capability list under each feature */
.caps { display: flex; flex-wrap: wrap; gap: 24px 32px; margin-top: 40px; }
.cap { flex: 1 1 260px; min-width: 0; border-left: 1px solid rgba(255, 255, 255, .12); padding: 2px 0 2px 20px; }
.cap__title { font-weight: 600; margin-bottom: 6px; }
.cap__body { font-size: 15px; color: var(--muted); }

/* 6. Sections ------------------------------------------------------------- */

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(8, 9, 10, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 8px; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 14px; font-weight: 500; }
.nav__link { display: flex; align-items: center; min-height: 44px; color: var(--muted); transition: color .15s; }
.nav__link:hover { color: var(--text); }
.nav__cta { display: flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; transition: transform .15s; }
.nav__cta:hover { transform: translateY(-1px); }
.lang { display: flex; gap: 2px; padding: 2px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; }
.lang__btn { min-width: 44px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.lang__btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* Hero */
.hero { position: relative; padding: 96px var(--gutter) 40px; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 75%);
}
.hero__glow {
  position: absolute; top: -260px; left: 50%; width: 1000px; height: 640px; margin-left: -500px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 34%, transparent), transparent);
}
.hero__copy { position: relative; max-width: 1000px; margin: 0 auto; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; padding: 6px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(255, 255, 255, .04); font-size: 13px; font-weight: 500; color: #C9CCD1; }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.hero__title { font-weight: 600; font-size: clamp(40px, 7vw, 78px); line-height: 1.04; letter-spacing: -.045em; margin-bottom: 28px; background: linear-gradient(180deg, #FFF 30%, #7E828B 115%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero__sub { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__win { position: relative; max-width: 1040px; margin: 72px auto 0; box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 -20px 120px color-mix(in srgb, var(--acc) 18%, transparent); }
.hero__body { display: flex; flex-wrap: wrap; min-height: 320px; }
.hero__side { flex: 0 0 220px; max-width: 100%; padding: 20px 14px; border-right: 1px solid rgba(255, 255, 255, .07); }
.hero__main { flex: 1 1 380px; min-width: 0; padding: 24px 28px; }
.step-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text-mid); }
.step-item__n { min-width: 20px; font-size: 12px; font-weight: 500; color: var(--acc); }
.point { display: flex; align-items: center; gap: 16px; padding: 16px; margin-bottom: 6px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 10px; }
.point--active { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.point__radio { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #4A4E56; }
.point--active .point__radio { border: 5px solid var(--acc); }
.point__text { flex: 1 1 auto; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.point__n { font-size: 12px; color: var(--faint); }
.principles { position: relative; max-width: 1040px; margin: 56px auto 0; display: flex; flex-wrap: wrap; gap: 24px; }
.principle { flex: 1 1 280px; min-width: 0; }
.principle__title { font-weight: 600; margin: 4px 0 6px; }
.principle__body { font-size: 15px; color: var(--muted); }
.figure { position: relative; height: 150px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.figure--stack { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.figure--bars { padding: 28px; display: flex; align-items: flex-end; gap: 12px; }
.ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(255, 255, 255, .1); }
.ring--1 { width: 120px; height: 120px; }
.ring--2 { width: 80px; height: 80px; border-color: rgba(255, 255, 255, .16); }
.ring--3 { width: 40px; height: 40px; border-color: var(--acc); box-shadow: 0 0 24px var(--acc); }
.ring--core { width: 8px; height: 8px; border: 0; background: var(--acc); }
.bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .1); }
.bar--hit { background: var(--acc); box-shadow: 0 0 18px color-mix(in srgb, var(--acc) 60%, transparent); }
.figure--bars .bar { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; }

/* Feature 1: chat mockup */
.chat-q { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.chat-q__bubble { max-width: 420px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 15px; }
.chat-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.chat-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.chat-step::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.chat-a { max-width: 520px; margin-bottom: 18px; font-size: 15.5px; color: var(--text-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.source { padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; }
.source:last-child { margin-bottom: 0; }
.source__name { margin-bottom: 10px; font-size: 13px; font-weight: 500; }

/* Feature 2: personalization mockup */
.profile { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: linear-gradient(135deg, var(--acc), #1B1D20); }
.profile__name { font-size: 15px; font-weight: 500; }
.profile__sub { font-size: 13px; color: var(--faint); }
.rec { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 12px; border-top: 1px solid rgba(255, 255, 255, .06); border-radius: 10px; }
.rec__thumb { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); }
.rec__name { flex: 1 1 180px; min-width: 0; font-size: 15px; font-weight: 500; }
.rec__meter { flex: 0 0 96px; height: 6px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.rec__meter > span { display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--acc); }

/* Feature 3: project board mockup */
.board { padding: 12px 16px 20px; }
.group__head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 8px; font-size: 13px; font-weight: 500; color: var(--text-mid); }
.group__count { color: var(--faint); }
.group__icon { display: block; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--acc); }
.group__icon--prog { background: conic-gradient(var(--acc) 0 50%, transparent 0); }
.group__icon--review { background: conic-gradient(var(--acc) 0 75%, transparent 0); }
.group__icon--done { background: var(--acc); }
.task { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 11px 12px; border-radius: 8px; font-size: 14.5px; }
.task__id { min-width: 56px; font-size: 13px; color: var(--faint); }
.task__title { flex: 1 1 260px; min-width: 0; }

/* Mission */
.mission { position: relative; padding: 180px var(--gutter); }
.mission__glow { position: absolute; top: 50%; left: 50%; width: 900px; height: 420px; margin: -210px 0 0 -450px; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 16%, transparent), transparent); }
.mission__inner { position: relative; max-width: 960px; margin: 0 auto; text-align: center; }
.mission__inner .kicker { margin-bottom: 24px; }
.mission__text { font-weight: 600; font-size: clamp(26px, 4vw, 44px); line-height: 1.18; letter-spacing: -.035em; background: linear-gradient(180deg, #FFF 30%, #7E828B 130%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* Process */
.process { display: flex; flex-wrap: wrap; gap: 32px; }
.process__step { position: relative; flex: 1 1 220px; min-width: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.process__step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.process__n { margin-bottom: 12px; font-size: 13px; font-weight: 500; color: var(--acc); }
.process__title { margin-bottom: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.process__body { font-size: 15px; color: var(--muted); }

/* Contact */
.contact { position: relative; overflow: hidden; padding: 80px 56px; text-align: center; border: 1px solid rgba(255, 255, 255, .1); border-radius: 28px; background: linear-gradient(180deg, #121315, #0A0B0C); }
.contact__glow { position: absolute; top: -240px; left: 50%; width: 800px; height: 420px; margin-left: -400px; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 30%, transparent), transparent); }
.contact__inner { position: relative; }
.contact__title { margin-bottom: 18px; font-weight: 600; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -.04em; background: linear-gradient(180deg, #FFF 30%, #7E828B 130%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.contact__body { max-width: 560px; margin: 0 auto 36px; font-size: 18px; color: var(--muted); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: center; align-items: center; }
.contact__note { font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .07); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 40px 48px; padding-block: 56px 32px; font-size: 14px; }
.site-footer__brand { flex: 1 1 280px; min-width: 0; }
.site-footer__brand .logo { min-height: 0; margin-bottom: 14px; }
.site-footer__addr { max-width: 280px; color: var(--faint); }
.site-footer__col { flex: 0 1 160px; min-width: 120px; }
.site-footer__col--wide { flex-basis: 220px; min-width: 160px; }
.site-footer__head { margin-bottom: 10px; font-weight: 500; }
.site-footer__link { display: block; padding: 5px 0; color: var(--muted); transition: color .15s; }
.site-footer__link:hover { color: var(--text); }
.site-footer__legal { padding-bottom: 32px; font-size: 13px; color: var(--faint); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .section { padding-top: 88px; }
  .section--tail { padding-bottom: 88px; }
  .hero { padding-top: 56px; }
  .mission { padding-block: 100px; }
  .card { padding: 28px; }
  .contact { padding: 56px 24px; }
  .pane + .pane { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .07); }
  .hero__side { flex-basis: 100%; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav__cta, .card, .row { transition: none; }
}
