/* ============================================================
   SimpleAI — page layout & components
   ============================================================ */

.page-aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% -8%, rgba(98,95,255,.22), transparent 70%),
    radial-gradient(40% 40% at 92% 8%, rgba(40,182,255,.10), transparent 70%),
    radial-gradient(45% 35% at 6% 30%, rgba(255,125,218,.06), transparent 70%);
}
main, .footer, .nav { position: relative; z-index: 1; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,12,14,.72);
  border-bottom: 1px solid rgba(23,37,64,.7);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 0 10px rgba(40,182,255,.35)); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-ai { color: var(--color-starlight-violet); }

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: 12px;
  margin-right: auto;
}
.nav-links a {
  color: var(--color-lunar-dust);
  font-size: 15px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: #fff; background: rgba(23,37,64,.6); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: flex;
  background: var(--color-astral-deep);
  border: 1px solid var(--color-violet-edge);
  border-radius: var(--radius-full);
  padding: 3px;
}
.lang-toggle button {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--color-ash-outline);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  transition: all .15s;
}
.lang-toggle button.is-active { background: var(--color-starlight-violet); color: #0a1020; font-weight: 500; }

.nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 88px); padding-bottom: 40px; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px;
  background: var(--deep-space-glow);
  filter: blur(8px);
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge { margin-bottom: 26px; }
.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d39a;
  box-shadow: 0 0 0 3px rgba(52,211,154,.18);
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 3px rgba(52,211,154,.18);} 50%{ box-shadow:0 0 0 5px rgba(52,211,154,.05);} }

.hero-title { margin-bottom: 22px; }
.grad-text {
  background: linear-gradient(100deg, #c7d6ff 0%, #85a6e9 40%, #28b6ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-lead { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta.center { justify-content: center; }

.hero-channels { margin-top: 38px; }
.hero-channels > span[data-lang] {
  font-size: 13px; color: var(--color-ash-outline);
  text-transform: uppercase; letter-spacing: .05em;
}
.chan-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chan-chip {
  font-size: 13px;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-violet-edge);
  background: var(--color-midnight-gaze);
  color: var(--color-comet-grey);
}

/* channel accent dots */
.chan-chip::before, .integ-points li::before {
  content: ""; display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; margin-right: 7px; vertical-align: middle;
}
.chan-chip[data-c=fb]::before { background:#4e7cff; }
.chan-chip[data-c=zalo]::before { background:#28b6ff; }
.chan-chip[data-c=web]::before { background:#85a6e9; }
.chan-chip[data-c=msg]::before { background:#b06bff; }
.chan-chip[data-c=crm]::before { background:#34d39a; }

/* hero mockup */
.hero-mock { position: relative; }
.mock-shell {
  background: linear-gradient(180deg, #0f1626, #0c1019);
  border: 1px solid var(--color-violet-edge);
  border-radius: 18px;
  box-shadow: var(--shadow-xl-2);
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
}
.mock-top {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(23,37,64,.8);
  background: rgba(13,23,43,.6);
}
.mock-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #0a1020;
  background: linear-gradient(140deg, #85a6e9, #28b6ff);
}
.mock-id { display: flex; flex-direction: column; line-height: 1.3; margin-right: auto; }
.mock-id strong { font-size: 15px; font-weight: 600; }
.mock-id > span { font-size: 12px; color: #7fd6a8; display: flex; align-items: center; gap: 6px; }
.mock-src {
  font-size: 11px; font-family: var(--font-mono);
  padding: 4px 9px; border-radius: var(--radius-full);
  background: rgba(40,182,255,.12); color: #66cbff;
  border: 1px solid rgba(40,182,255,.25);
}
.mock-body {
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 300px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(40,182,255,.05), transparent 60%);
}
.msg {
  max-width: 84%;
  font-size: 14px; line-height: 1.45;
  padding: 11px 14px;
  border-radius: 14px;
}
.msg.in {
  align-self: flex-start;
  background: var(--color-astral-deep);
  border: 1px solid var(--color-violet-edge);
  border-bottom-left-radius: 4px;
  color: var(--color-comet-grey);
}
.msg.out {
  align-self: flex-end;
  background: linear-gradient(160deg, #1b346e, #15264c);
  border: 1px solid rgba(133,166,233,.35);
  border-bottom-right-radius: 4px;
  color: #eaf0ff;
}
.pay-link {
  display: inline-block; margin-top: 8px;
  font-family: var(--font-mono); font-size: 12.5px;
  color: #66cbff;
  background: rgba(40,182,255,.1);
  border: 1px solid rgba(40,182,255,.3);
  padding: 7px 11px; border-radius: 8px;
}
.msg.typing { display: flex; gap: 4px; padding: 13px 14px; align-self: flex-start; background: var(--color-astral-deep); border: 1px solid var(--color-violet-edge); border-bottom-left-radius: 4px; }
.msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--color-ash-outline); animation: blink 1.4s infinite both; }
.msg.typing span:nth-child(2){ animation-delay:.2s; } .msg.typing span:nth-child(3){ animation-delay:.4s; }
@keyframes blink { 0%,80%,100%{ opacity:.25; transform: translateY(0);} 40%{ opacity:1; transform: translateY(-3px);} }
.mock-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-top: 1px solid rgba(23,37,64,.8);
}
.mock-input {
  flex: 1; font-size: 13px; color: var(--color-ash-outline);
  background: var(--color-page-canvas);
  border: 1px solid var(--color-violet-edge);
  border-radius: var(--radius-full);
  padding: 9px 14px;
}
.mock-send { color: #66cbff; font-size: 14px; }

.mock-tag {
  position: absolute;
  background: rgba(14,17,27,.92);
  border: 1px solid var(--color-violet-edge);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; line-height: 1.2;
  backdrop-filter: blur(6px);
}
.mock-tag strong { font-family: var(--font-display); font-size: 20px; color: #fff; }
.mock-tag span { font-size: 11px; color: var(--color-lunar-dust); }
.tag-1 { top: 18%; left: -26px; animation: float 6s ease-in-out infinite; }
.tag-2 { bottom: 14%; right: -22px; animation: float 6s ease-in-out infinite .8s; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-9px);} }

/* stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 18px;
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid rgba(23,37,64,.7);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--font-display); font-size: clamp(28px,3.4vw,38px); color: #fff; }
.stat span { font-size: 13.5px; color: var(--color-lunar-dust); }

/* ---------- generic grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

.section-alt {
  background: linear-gradient(180deg, rgba(13,23,43,.45), rgba(13,23,43,0));
  border-block: 1px solid rgba(23,37,64,.4);
}

/* ---------- PROBLEM ---------- */
.prob { display: flex; flex-direction: column; gap: 12px; }
.prob-num {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--color-etherium-blue);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--color-violet-edge); border-radius: 10px;
  background: var(--color-astral-deep);
}
.prob h3 { color: #fff; }
.prob p { color: var(--color-lunar-dust); font-size: 15px; }

/* ---------- BENEFITS ---------- */
.benefit { display: flex; flex-direction: column; gap: 12px; }
.benefit-ic {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--color-violet-edge);
}
.benefit-ic[data-c=zalo]{ background: rgba(40,182,255,.12); color:#5cc7ff; }
.benefit-ic[data-c=violet]{ background: rgba(133,166,233,.14); color:#a7c0f5; }
.benefit-ic[data-c=blue]{ background: rgba(98,95,255,.14); color:#9d9bff; }
.benefit-ic[data-c=green]{ background: rgba(52,211,154,.12); color:#5fdcab; }
.benefit h3 { color:#fff; }
.benefit p { color: var(--color-lunar-dust); font-size: 15px; }

/* ---------- CAPABILITIES ---------- */
.cap-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.cap-left { position: sticky; top: 100px; }
.cap-left .h-lg { margin: 16px 0; }
.cap-list { display: flex; flex-direction: column; }
.cap-item {
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(23,37,64,.7);
}
.cap-item:last-child { border-bottom: 1px solid rgba(23,37,64,.7); }
.cap-k {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--color-etherium-blue);
  padding-top: 3px;
}
.cap-item h3 { color: #fff; margin-bottom: 7px; }
.cap-item p { color: var(--color-lunar-dust); font-size: 15px; }

/* ---------- FLOW ---------- */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 16px;
  counter-reset: none;
  position: relative;
}
.flow::before {
  content: ""; position: absolute; top: 22px; left: 6%; right: 6%;
  height: 1px; background: linear-gradient(90deg, transparent, rgba(133,166,233,.5), transparent);
  z-index: 0;
}
.flow-step {
  background: var(--color-midnight-gaze);
  border: 1px solid var(--color-violet-edge);
  border-radius: var(--radius-xl);
  padding: 22px 18px;
  position: relative;
  z-index: 1;
}
.flow-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  background: linear-gradient(150deg, #85a6e9, #28b6ff); color: #0a1020;
  margin-bottom: 16px;
  box-shadow: 0 0 18px rgba(40,182,255,.3);
}
.flow-step h3 { color: #fff; margin-bottom: 8px; }
.flow-step p { color: var(--color-lunar-dust); font-size: 14px; }

/* ---------- INTEGRATIONS ---------- */
.integ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.integ-copy .h-lg { margin: 16px 0; }
.integ-points { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.integ-points li { color: var(--color-comet-grey); font-size: 15.5px; }
.integ-points li::before { background: var(--color-etherium-blue); box-shadow: 0 0 8px rgba(40,182,255,.6); }

.integ-orbit { position: relative; height: 420px; display: grid; place-items: center; }
.orbit-core {
  width: 130px; height: 130px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #1b346e, #0c1326);
  border: 1px solid rgba(133,166,233,.5);
  box-shadow: 0 0 50px rgba(98,95,255,.35), inset 0 0 30px rgba(40,182,255,.2);
  z-index: 3;
}
.orbit-core span { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.orbit-core b { color: var(--color-starlight-violet); }
.orbit-ring {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  border: 1px dashed rgba(133,166,233,.25);
}
.orbit-ring.ring-2 { width: 410px; height: 410px; border-color: rgba(133,166,233,.14); }
.orbit-node {
  position: absolute;
  font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-full);
  background: var(--color-midnight-gaze);
  border: 1px solid var(--color-violet-edge);
  box-shadow: var(--shadow-md);
  z-index: 4;
}
.orbit-node::before { content:""; display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:7px; vertical-align: middle; }
.orbit-node[data-c=fb]::before{ background:#4e7cff;} .orbit-node[data-c=zalo]::before{ background:#28b6ff;}
.orbit-node[data-c=web]::before{ background:#85a6e9;} .orbit-node[data-c=msg]::before{ background:#b06bff;}
.orbit-node[data-c=crm]::before{ background:#34d39a;}
.orbit-node.n1 { top: 4%; left: 50%; transform: translateX(-50%); }
.orbit-node.n2 { top: 32%; right: 2%; }
.orbit-node.n3 { bottom: 18%; right: 6%; }
.orbit-node.n4 { bottom: 18%; left: 6%; }
.orbit-node.n5 { top: 32%; left: 2%; }

/* ---------- DASHBOARD ---------- */
.dash {
  background: linear-gradient(180deg, #0f1626, #0c1019);
  border: 1px solid var(--color-violet-edge);
  border-radius: 16px;
  box-shadow: var(--shadow-xl-2);
  overflow: hidden;
}
.dash-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid rgba(23,37,64,.8); }
.dash-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.dash-tabs { display: flex; gap: 4px; background: var(--color-page-canvas); border: 1px solid var(--color-violet-edge); border-radius: var(--radius-full); padding: 3px; }
.dash-tabs span { font-size: 12.5px; color: var(--color-ash-outline); padding: 5px 12px; border-radius: var(--radius-full); cursor: default; }
.dash-tabs span.is-active { background: var(--color-twilight-indigo); color: #cfe0ff; }
.dash-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(23,37,64,.6); }
.kpi { background: var(--color-midnight-gaze); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.kpi-l { font-size: 13px; color: var(--color-lunar-dust); }
.kpi-v { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: #fff; }
.kpi-d { font-size: 12px; font-family: var(--font-mono); }
.kpi-d.up { color: #5fdcab; }
.dash-lower { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1px; background: rgba(23,37,64,.6); }
.dash-chart, .dash-notes { background: var(--color-midnight-gaze); padding: 22px 24px; }
.chart-head, .note-head { font-size: 13.5px; color: var(--color-comet-grey); margin-bottom: 20px; }
.bars { display: flex; align-items: flex-end; gap: 18px; height: 150px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar-fill { width: 100%; max-width: 38px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #85a6e9, #28b6ff); box-shadow: 0 0 14px rgba(40,182,255,.25); }
.bar em { font-style: normal; font-size: 12px; color: var(--color-ash-outline); }
.dash-notes ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.dash-notes li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--color-comet-grey); }
.dash-notes .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-ash-outline); flex-shrink: 0; }
.dash-notes .dot.ok { background: #5fdcab; }
.dash-notes li.alert .dot { background: #ffb454; box-shadow: 0 0 8px rgba(255,180,84,.5); }

/* ---------- PRICING ---------- */
.price { display: flex; flex-direction: column; position: relative; }
.price-feat { border-color: rgba(133,166,233,.55); box-shadow: 0 0 0 1px rgba(133,166,233,.25), var(--shadow-xl); background: linear-gradient(180deg, #111a30, #0e131f); }
.price-flag {
  position: absolute; top: -12px; left: 24px;
  font-size: 12px; font-weight: 500;
  background: linear-gradient(150deg, #85a6e9, #28b6ff); color: #0a1020;
  padding: 5px 12px; border-radius: var(--radius-full);
}
.price-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: #fff; }
.price-desc { color: var(--color-lunar-dust); font-size: 14.5px; margin: 8px 0 20px; }
.price-tag { display: flex; align-items: baseline; gap: 6px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid rgba(23,37,64,.7); }
.price-from { font-size: 13px; color: var(--color-ash-outline); }
.price-tag strong { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: #fff; }
.price-custom { font-size: 32px !important; }
.price-per { font-size: 14px; color: var(--color-lunar-dust); }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.price-feats li { font-size: 14.5px; color: var(--color-comet-grey); display: flex; align-items: flex-start; gap: 9px; }
.price-feats li::before { content: "✓"; color: #5cc7ff; font-size: 13px; margin-top: 1px; }
.price-cta { width: 100%; justify-content: center; }
.price-foot { text-align: center; color: var(--color-ash-outline); font-size: 13.5px; margin-top: 26px; }

/* ---------- FINAL CTA ---------- */
.final-cta { position: relative; text-align: center; overflow: hidden; }
.final-glow {
  position: absolute; inset: 0;
  background: radial-gradient(50% 120% at 50% 120%, rgba(98,95,255,.28), transparent 60%),
              radial-gradient(40% 80% at 70% 0%, rgba(255,125,218,.10), transparent 60%);
  z-index: 0;
}
.final-inner { position: relative; z-index: 1; max-width: 760px; }
.final-inner .h-display { margin-bottom: 20px; }
.final-inner .lead { margin: 0 auto 32px; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid rgba(23,37,64,.7); background: rgba(13,23,43,.3); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; padding-bottom: 40px; }
.footer-tag { color: var(--color-lunar-dust); font-size: 14.5px; margin-top: 16px; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-ash-outline); font-weight: 500; font-family: var(--font-body); }
.footer-col a { color: var(--color-comet-grey); font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 22px 28px; margin-top: 0;
  border-top: 1px solid rgba(23,37,64,.5);
  max-width: 1240px;
}
.footer-bottom span { font-size: 13px; color: var(--color-ash-outline); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-mock { order: -1; max-width: 420px; margin: 0 auto; }
  .cap-grid { grid-template-columns: 1fr; gap: 32px; }
  .cap-left { position: static; }
  .integ-grid { grid-template-columns: 1fr; gap: 40px; }
  .flow { grid-template-columns: repeat(2,1fr); }
  .flow::before { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta span[data-lang] { display: none; }
  .grid-2, .grid-3, .stat-strip { grid-template-columns: 1fr 1fr; }
  .dash-kpis, .dash-lower { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .mock-tag { display: none; }
}
@media (max-width: 460px) {
  .grid-2, .grid-3, .stat-strip, .flow, .dash-kpis { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
