/*
Theme Name: Soft8x CRM AI
Theme URI: https://soft8x.io.vn/
Author: Soft8x
Author URI: https://soft8x.io.vn/
Description: Theme giới thiệu nền tảng CRM AI cho doanh nghiệp và khách hàng cá nhân.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: soft8x-crm-ai
*/

:root {
  --sx-ink: #10233f;
  --sx-muted: #63738a;
  --sx-blue: #2563eb;
  --sx-blue-dark: #1749bb;
  --sx-cyan: #54d6e7;
  --sx-line: #dce6f2;
  --sx-soft: #f4f8fd;
  --sx-white: #fff;
  --sx-shadow: 0 24px 70px rgba(22, 52, 95, .12);
  --sx-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sx-ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.sx-container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.sx-skip { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 10px 14px; background: #fff; }
.sx-skip:focus { left: 8px; }

.sx-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(220,230,242,.8); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); }
.sx-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.sx-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--sx-ink); font-weight: 800; letter-spacing: -.035em; font-size: 19px; white-space: nowrap; }
.sx-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #2f7df1, #1243ad); box-shadow: 0 8px 20px rgba(37,99,235,.23); }
.sx-brand-mark svg { width: 23px; height: 23px; }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 42px; width: auto; }
.sx-nav { display: flex; align-items: center; gap: 30px; color: #4c5d74; font-size: 14px; font-weight: 600; }
.sx-nav a:hover, .sx-nav a:focus { color: var(--sx-blue); }
.sx-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.sx-nav li { position: relative; }
.sx-nav .sub-menu { display: none; position: absolute; top: 100%; left: -14px; min-width: 190px; padding: 10px; border: 1px solid var(--sx-line); border-radius: 14px; background: #fff; box-shadow: var(--sx-shadow); }
.sx-nav li:hover > .sub-menu, .sx-nav li:focus-within > .sub-menu { display: block; }
.sx-nav .sub-menu li a { display: block; padding: 8px 10px; }
.sx-header-actions { display: flex; gap: 10px; align-items: center; }
.sx-mobile-toggle { display: none; border: 1px solid var(--sx-line); border-radius: 12px; padding: 9px 12px; color: var(--sx-ink); background: #fff; }

.sx-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 19px; border: 1px solid transparent; border-radius: 13px; font-size: 14px; font-weight: 750; line-height: 1.2; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; cursor: pointer; }
.sx-button:hover { transform: translateY(-2px); }
.sx-button-primary { color: #fff; background: var(--sx-blue); box-shadow: 0 10px 22px rgba(37,99,235,.22); }
.sx-button-primary:hover { background: var(--sx-blue-dark); box-shadow: 0 14px 28px rgba(37,99,235,.28); }
.sx-button-light { color: var(--sx-ink); border-color: var(--sx-line); background: #fff; }
.sx-button-light:hover { border-color: #b6c9e2; }
.sx-button-white { color: var(--sx-blue-dark); background: #fff; }

.sx-hero { overflow: hidden; position: relative; padding: 92px 0 100px; background: radial-gradient(ellipse at 76% 44%, rgba(88,182,245,.2), transparent 36%), linear-gradient(180deg, #f5f9ff 0%, #fff 100%); }
.sx-hero:before { position: absolute; top: -240px; right: -160px; width: 660px; height: 660px; border: 1px solid rgba(73,137,225,.13); border-radius: 50%; content: ""; }
.sx-hero:after { position: absolute; top: -180px; right: -100px; width: 540px; height: 540px; border: 1px solid rgba(73,137,225,.12); border-radius: 50%; content: ""; }
.sx-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 60px; }
.sx-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #d6e7fb; border-radius: 999px; color: #255eb8; background: #fff; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.sx-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #28c99a; box-shadow: 0 0 0 4px rgba(40,201,154,.13); }
.sx-hero h1 { max-width: 620px; margin: 20px 0 18px; font-size: clamp(39px, 5vw, 62px); line-height: 1.08; letter-spacing: -.055em; }
.sx-gradient-text { color: #2868df; background: linear-gradient(100deg, #2464dc 5%, #10a7c5 95%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sx-hero-copy { max-width: 550px; margin: 0; color: var(--sx-muted); font-size: 18px; }
.sx-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sx-hero-note { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: #66788f; font-size: 12px; }
.sx-hero-note span:before { content: "✓"; margin-right: 7px; color: #12a77b; font-weight: 900; }
.sx-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.sx-orbit { position: absolute; width: 430px; height: 430px; border-radius: 50%; background: radial-gradient(circle, rgba(95,177,243,.20), rgba(94,178,240,.05) 55%, transparent 70%); }
.sx-dashboard { position: relative; width: min(100%, 480px); padding: 15px; border: 1px solid rgba(255,255,255,.85); border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 35px 80px rgba(34,73,127,.2); transform: rotate(-2deg); }
.sx-dash-top { display: flex; align-items: center; justify-content: space-between; padding: 3px 4px 14px; border-bottom: 1px solid #e8eef6; }
.sx-dash-brand { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; }
.sx-dash-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--sx-blue); }
.sx-dash-status { padding: 5px 8px; border-radius: 999px; color: #168c69; background: #e9faf4; font-size: 9px; font-weight: 800; }
.sx-dash-body { display: grid; grid-template-columns: 72px 1fr; min-height: 267px; }
.sx-dash-side { padding: 16px 10px 0 4px; border-right: 1px solid #edf1f7; }
.sx-side-line { height: 7px; margin: 0 0 15px; border-radius: 8px; background: #e9eef7; }
.sx-side-line.active { width: 100%; background: #cfe0ff; }
.sx-dash-main { padding: 18px 15px; }
.sx-dash-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 15px; }
.sx-dash-heading strong { display: block; font-size: 12px; }
.sx-dash-heading small { color: #8492a5; font-size: 9px; }
.sx-mini-select { padding: 5px 8px; border: 1px solid #e1e9f4; border-radius: 7px; color: #63738a; font-size: 8px; }
.sx-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sx-stat { padding: 10px; border: 1px solid #edf1f7; border-radius: 10px; }
.sx-stat span { display: block; color: #8291a6; font-size: 8px; }
.sx-stat strong { display: block; margin-top: 3px; font-size: 15px; letter-spacing: -.03em; }
.sx-stat em { color: #1aa57c; font-size: 8px; font-style: normal; }
.sx-chart { position: relative; height: 103px; margin-top: 12px; overflow: hidden; border: 1px solid #edf1f7; border-radius: 10px; background: repeating-linear-gradient(to bottom, #fff 0, #fff 24px, #f1f5fa 25px); }
.sx-chart svg { position: absolute; inset: 8px 9px 0; width: calc(100% - 18px); height: calc(100% - 15px); }
.sx-chat-card { position: absolute; right: -22px; bottom: 17px; width: 180px; padding: 12px; border: 1px solid #e6eef8; border-radius: 13px; background: #fff; box-shadow: 0 15px 36px rgba(35,69,114,.15); transform: rotate(3deg); }
.sx-chat-title { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; font-size: 9px; font-weight: 800; }
.sx-ai-avatar { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #2765d8; background: #eaf1ff; }
.sx-bubble { margin: 5px 0; padding: 7px 8px; border-radius: 9px; color: #53657c; background: #f1f5fb; font-size: 8px; }
.sx-bubble.ai { color: #245ab6; background: #eaf2ff; }

.sx-strip { padding: 21px 0; border-block: 1px solid #edf2f8; background: #fff; }
.sx-strip-inner { display: flex; align-items: center; justify-content: center; gap: 36px; color: #708198; font-size: 12px; font-weight: 650; text-align: center; }
.sx-strip-item { display: inline-flex; align-items: center; gap: 9px; }
.sx-strip-item b { color: var(--sx-blue); font-size: 17px; }
.sx-section { padding: 92px 0; }
.sx-section-soft { background: var(--sx-soft); }
.sx-section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.sx-kicker { color: var(--sx-blue); font-size: 12px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.sx-section h2 { margin: 10px 0 12px; font-size: clamp(30px, 4vw, 43px); line-height: 1.16; letter-spacing: -.045em; }
.sx-section-head p { margin: 0; color: var(--sx-muted); font-size: 16px; }
.sx-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.sx-feature { min-height: 205px; padding: 25px; border: 1px solid var(--sx-line); border-radius: 18px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.sx-feature:hover { transform: translateY(-4px); box-shadow: var(--sx-shadow); }
.sx-feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px; color: var(--sx-blue); background: #eaf2ff; }
.sx-feature-icon svg { width: 23px; height: 23px; }
.sx-feature h3 { margin: 0 0 7px; font-size: 17px; letter-spacing: -.02em; }
.sx-feature p { margin: 0; color: var(--sx-muted); font-size: 13px; }
.sx-audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sx-audience { position: relative; overflow: hidden; padding: 32px; border: 1px solid var(--sx-line); border-radius: 22px; background: #fff; }
.sx-audience:after { position: absolute; right: -55px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: #eff5ff; content: ""; }
.sx-audience.individual:after { background: #eafaf8; }
.sx-audience-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(145deg,#367af0,#1c4ebc); }
.sx-audience.individual .sx-audience-icon { background: linear-gradient(145deg,#24b6bd,#158487); }
.sx-audience h3 { margin: 18px 0 8px; font-size: 22px; letter-spacing: -.035em; }
.sx-audience p { max-width: 440px; margin: 0 0 16px; color: var(--sx-muted); font-size: 14px; }
.sx-check-list { position: relative; z-index: 1; display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: #465970; font-size: 13px; }
.sx-check-list li:before { content: "✓"; margin-right: 9px; color: #15a47b; font-weight: 900; }
.sx-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; align-items: stretch; }
.sx-plan { padding: 27px; border: 1px solid var(--sx-line); border-radius: 20px; background: #fff; }
.sx-plan.featured { position: relative; border: 2px solid #4b83e7; box-shadow: 0 20px 55px rgba(40,94,176,.13); }
.sx-plan-label { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #3265bc; background: #edf4ff; font-size: 10px; font-weight: 800; }
.sx-plan h3 { margin: 14px 0 4px; font-size: 21px; }
.sx-plan-sub { min-height: 44px; margin: 0; color: var(--sx-muted); font-size: 12px; }
.sx-plan-price { margin: 20px 0 16px; font-size: 26px; font-weight: 850; letter-spacing: -.04em; }
.sx-plan-price small { color: var(--sx-muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.sx-plan ul { display: grid; gap: 10px; min-height: 124px; margin: 0 0 22px; padding: 0; list-style: none; color: #52647b; font-size: 12px; }
.sx-plan li:before { content: "✓"; margin-right: 8px; color: #12a77b; font-weight: 900; }
.sx-plan .sx-button { width: 100%; }
.sx-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; counter-reset: sx-step; }
.sx-step { padding: 24px; border: 1px solid var(--sx-line); border-radius: 18px; background: #fff; counter-increment: sx-step; }
.sx-step:before { content: "0" counter(sx-step); display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 12px; color: var(--sx-blue); background: #eaf2ff; font-size: 12px; font-weight: 850; }
.sx-step h3 { margin: 0 0 6px; font-size: 15px; }
.sx-step p { margin: 0; color: var(--sx-muted); font-size: 12px; }
.sx-cta { padding: 74px 0; color: #fff; background: radial-gradient(ellipse at 90% 5%, rgba(84,214,231,.25), transparent 32%), linear-gradient(115deg,#153e91,#1e63d3 65%,#178ca9); }
.sx-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.sx-cta h2 { max-width: 660px; margin: 0 0 8px; font-size: clamp(28px,4vw,40px); line-height: 1.18; letter-spacing: -.04em; }
.sx-cta p { margin: 0; color: rgba(255,255,255,.78); }
.sx-register { display: grid; grid-template-columns: .85fr 1.15fr; gap: 45px; align-items: start; }
.sx-register-copy p { color: var(--sx-muted); }
.sx-register-box { padding: 27px; border: 1px solid var(--sx-line); border-radius: 20px; background: #fff; box-shadow: var(--sx-shadow); }
.sx-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sx-field { display: grid; gap: 6px; }
.sx-field.full { grid-column: 1 / -1; }
.sx-field label { color: #40536c; font-size: 12px; font-weight: 750; }
.sx-field input, .sx-field select, .sx-field textarea { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #d8e2ef; border-radius: 10px; outline: none; color: var(--sx-ink); background: #fff; }
.sx-field textarea { min-height: 82px; resize: vertical; }
.sx-field input:focus, .sx-field select:focus, .sx-field textarea:focus { border-color: #6a98ee; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.sx-form-note { color: #7b899a; font-size: 11px; }
.sx-form-result { margin-bottom: 14px; padding: 11px 13px; border-radius: 10px; color: #126b51; background: #e9faf4; font-size: 13px; }
.sx-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px,1px,1px,1px) !important; }
.sx-footer { padding: 55px 0 24px; color: #d8e4f5; background: #0e1e36; }
.sx-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 40px; padding-bottom: 38px; }
.sx-footer .sx-brand { color: #fff; }
.sx-footer p { max-width: 360px; color: #9fb0c7; font-size: 13px; }
.sx-footer h4 { margin: 0 0 13px; color: #fff; font-size: 13px; }
.sx-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: #aebdd1; font-size: 12px; }
.sx-footer a:hover { color: #fff; }
.sx-footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.12); color: #8da0b9; font-size: 11px; }
.sx-page-content { min-height: 55vh; padding: 70px 0; }
.sx-page-content h1 { font-size: clamp(34px,5vw,52px); line-height: 1.1; }
.sx-page-content article { max-width: 820px; margin-inline: auto; }
.sx-page-content .entry-content { color: #42546b; }
.sx-page-content .entry-content a { color: var(--sx-blue); text-decoration: underline; }
.sx-404 { padding: 100px 0; text-align: center; }

@media (max-width: 920px) {
  .sx-nav { gap: 17px; }
  .sx-nav ul { gap: 16px; }
  .sx-hero-grid { gap: 25px; }
  .sx-visual { min-height: 370px; }
  .sx-feature-grid { grid-template-columns: repeat(2,1fr); }
  .sx-steps { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .sx-container { width: min(100% - 30px, 560px); }
  .sx-header-inner { min-height: 66px; }
  .sx-mobile-toggle { display: inline-flex; }
  .sx-nav { display: none; position: absolute; top: 65px; left: 0; right: 0; padding: 14px 20px 20px; border-bottom: 1px solid var(--sx-line); background: #fff; box-shadow: 0 18px 30px rgba(15,40,78,.09); }
  .sx-nav.is-open { display: block; }
  .sx-nav ul { display: grid; gap: 0; }
  .sx-nav li a { display: block; padding: 10px 0; }
  .sx-nav .sub-menu { position: static; display: block; padding: 0 0 0 14px; border: 0; box-shadow: none; }
  .sx-header-actions .sx-button-light { display: none; }
  .sx-header-actions .sx-button { min-height: 40px; padding-inline: 12px; font-size: 12px; }
  .sx-hero { padding: 58px 0 54px; }
  .sx-hero-grid { grid-template-columns: 1fr; }
  .sx-hero h1 { font-size: clamp(38px,11vw,54px); }
  .sx-hero-copy { font-size: 16px; }
  .sx-visual { min-height: 330px; margin-top: 4px; }
  .sx-orbit { width: 330px; height: 330px; }
  .sx-dashboard { width: min(100%, 440px); }
  .sx-chat-card { right: -4px; bottom: 1px; }
  .sx-strip-inner { flex-wrap: wrap; gap: 13px 22px; font-size: 11px; }
  .sx-section { padding: 65px 0; }
  .sx-section-head { margin-bottom: 30px; }
  .sx-feature-grid, .sx-audience-grid, .sx-pricing-grid, .sx-register { grid-template-columns: 1fr; }
  .sx-feature { min-height: 0; }
  .sx-audience { padding: 25px; }
  .sx-plan ul { min-height: 0; }
  .sx-steps { grid-template-columns: 1fr 1fr; }
  .sx-step { padding: 18px; }
  .sx-cta { padding: 55px 0; }
  .sx-cta-inner { align-items: flex-start; flex-direction: column; }
  .sx-register { gap: 20px; }
  .sx-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .sx-footer-grid > div:first-child { grid-column: 1/-1; }
  .sx-footer-bottom { flex-direction: column; }
}
@media (max-width: 420px) {
  .sx-container { width: calc(100% - 24px); }
  .sx-brand { font-size: 16px; }
  .sx-brand-mark { width: 34px; height: 34px; }
  .sx-hero-actions .sx-button { width: 100%; }
  .sx-stat-row { gap: 5px; }
  .sx-stat { padding: 7px; }
  .sx-stat strong { font-size: 12px; }
  .sx-dash-body { grid-template-columns: 48px 1fr; }
  .sx-chat-card { width: 150px; }
  .sx-form-grid { grid-template-columns: 1fr; }
  .sx-field.full { grid-column: auto; }
  .sx-steps { grid-template-columns: 1fr; }
}
