/* =========================================================
   VWorldX — Enterprise AI Knowledge Brain
   Light, professional theme (green from logo)
   ========================================================= */

:root {
  --brand: #5e9e15;          /* primary green */
  --brand-d: #4a7e10;        /* darker green for hover */
  --brand-dd: #2f5208;       /* deepest green */
  --lime: #a8d62f;           /* logo accent */
  --lime-soft: #eaf6cf;      /* light lime tint */

  --ink: #16210f;            /* headings */
  --body: #4f5a4a;           /* body text */
  --muted: #7e8a76;          /* muted text */

  --bg: #ffffff;
  --mint: #f1f8e9;           /* soft mint band */
  --mint-2: #e9f4d8;
  --cream: #fbf6ea;          /* warm band */
  --sky: #eef4fb;            /* cool band */
  --line: #e7ece0;           /* borders */

  --card: #ffffff;
  --shadow-sm: 0 2px 10px rgba(22, 33, 15, 0.05);
  --shadow: 0 14px 40px rgba(22, 33, 15, 0.08);
  --shadow-lg: 0 26px 70px rgba(22, 33, 15, 0.12);

  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Icons */
.svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.16; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { color: var(--body); }
.lead { font-size: 1.15rem; color: var(--body); }
.grad-text { color: var(--brand); }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand-d);
  padding: 7px 14px; border-radius: 999px; background: var(--lime-soft); margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: 0.96rem;
  border: 1.5px solid transparent; transition: 0.2s; white-space: nowrap;
}
.btn .svg { width: 18px; height: 18px; }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 8px 20px rgba(94, 158, 21, 0.28); }
.btn-primary:hover { background: var(--brand-d); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(94, 158, 21, 0.36); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-d); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { background: #28361d; transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.02em; }
.brand img { height: 40px; width: auto; }
.brand span b { color: var(--brand); }
.nav-mid { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-mid > li > a, .drop-toggle { padding: 10px 14px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; color: var(--body); transition: 0.18s; display: inline-flex; align-items: center; gap: 6px; }
.nav-mid > li > a:hover, .nav-mid > li > a.active, .drop-toggle:hover, .drop-toggle.active { color: var(--brand-d); background: var(--mint); }

/* Dropdown menus */
.has-drop { position: relative; }
.drop-toggle { font-family: inherit; cursor: pointer; background: none; border: 0; }
.drop-toggle .svg { width: 16px; height: 16px; transition: transform 0.2s; }
.drop { position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 60; }
.drop::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.drop a { padding: 11px 14px; border-radius: 10px; font-size: 0.93rem; font-weight: 500; color: var(--body); }
.drop a:hover { background: var(--mint); color: var(--brand-d); }
@media (min-width: 981px) {
  .has-drop:hover .drop { display: flex; }
  .has-drop:hover .drop-toggle .svg { transform: rotate(180deg); }
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; }
.menu-toggle .svg { width: 28px; height: 28px; }

/* ---------- Sections ---------- */
section { padding: 90px 0; position: relative; }
.band-mint { background: var(--mint); }
.band-cream { background: var(--cream); }
.band-sky { background: var(--sky); }
.band-ink { background: var(--ink); }
.band-ink h1, .band-ink h2, .band-ink h3 { color: #fff; }
.band-ink p { color: #c6d2bd; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.08rem; }

/* ---------- HERO (distinctive: ask-the-brain) ---------- */
.hero { padding: 70px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(620px 360px at 50% -8%, rgba(168,214,47,0.18), transparent 70%),
    linear-gradient(180deg, #fbfdf6, #ffffff 60%);
}
.hero h1 { max-width: 920px; margin: 0 auto 20px; }
.hero .lead { max-width: 640px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.hero-sub { font-size: 0.9rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.hero-sub .svg { width: 16px; height: 16px; color: var(--brand); }

/* Ask widget */
.ask {
  max-width: 720px; margin: 50px auto 0; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.ask-top { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.ask-top .pin { width: 38px; height: 38px; border-radius: 11px; background: var(--mint); color: var(--brand-d); display: grid; place-items: center; }
.ask-top input { flex: 1; border: 0; font-size: 1.02rem; font-family: inherit; color: var(--ink); background: transparent; }
.ask-top input:focus { outline: none; }
.ask-top .go { width: 40px; height: 40px; border-radius: 11px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ask-top .go:hover { background: var(--brand-d); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px; }
.ask-chips button { font-size: 0.84rem; padding: 8px 13px; border-radius: 999px; background: #f6f9f0; border: 1px solid var(--line); color: var(--body); cursor: pointer; transition: 0.18s; font-family: inherit; }
.ask-chips button:hover { border-color: var(--brand); color: var(--brand-d); background: var(--mint); }
.ask-answer { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.45s ease, padding 0.45s ease; }
.ask-answer.show { padding: 4px 22px 22px; max-height: 420px; }
.ans-card { background: #f8fbf2; border: 1px solid var(--mint-2); border-radius: 16px; padding: 18px; }
.ans-card .role { display: inline-flex; align-items: center; gap: 7px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-d); margin-bottom: 9px; }
.ans-card .role .svg { width: 15px; height: 15px; }
.ans-card p { color: var(--ink); font-size: 0.98rem; }
.ans-card .cite { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--mint-2); font-size: 0.82rem; color: var(--brand-d); }
.ans-card .cite .svg { width: 15px; height: 15px; }

/* ---------- Trust strip ---------- */
.trust { padding: 40px 0; }
.trust p { text-align: center; color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--body); font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow-sm); }
.chip .svg { width: 16px; height: 16px; color: var(--brand); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--mint-2); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mint); color: var(--brand-d); margin-bottom: 18px;
}
.card .ic .svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: 0.97rem; }

/* ---------- Split feature rows (alternating) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-text { order: 2; }
.split-text h2 { margin-bottom: 16px; }
.split-text .lead { margin-bottom: 22px; }

/* Visual panels */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.panel-head { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.panel-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #e2e8da; }
.panel-head .dot:first-child { background: var(--lime); }
.qa { margin-bottom: 12px; }
.qa .q { background: #f4f7ee; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 12px 15px; font-size: 0.92rem; color: var(--ink); display: inline-block; }
.qa .a { background: #fff; border: 1px solid var(--mint-2); border-left: 3px solid var(--brand); border-radius: 4px 14px 14px 14px; padding: 13px 15px; margin-top: 8px; font-size: 0.92rem; color: var(--body); }
.qa .a .cite { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 0.76rem; color: var(--brand-d); }
.qa .a .cite .svg { width: 14px; height: 14px; }

/* ---------- Ticks ---------- */
.ticks { list-style: none; display: grid; gap: 13px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; color: var(--body); }
.ticks li .svg { width: 20px; height: 20px; color: var(--brand); flex: 0 0 20px; margin-top: 3px; }
.ticks.cross li .svg { color: #d06a5a; }

/* ---------- Layers (architecture) ---------- */
.layer { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: center; }
.layer h3 { color: var(--brand-d); display: flex; align-items: center; gap: 10px; }
.layer h3 .ic { width: 40px; height: 40px; margin: 0; border-radius: 11px; }
.layer h3 .ic .svg { width: 20px; height: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 13px; border-radius: 999px; font-size: 0.85rem; background: var(--mint); color: var(--brand-d); border: 1px solid var(--mint-2); }

/* ---------- Flow ---------- */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.flow .step { padding: 13px 18px; border-radius: 12px; font-weight: 600; font-size: 0.9rem; background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.flow .arrow { color: var(--brand); display: grid; place-items: center; }
.flow .arrow .svg { width: 20px; height: 20px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .s b { font-size: 2.4rem; color: var(--brand-d); display: block; line-height: 1; }
.stats .s span { font-size: 0.92rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta { text-align: center; padding: 64px 30px; border-radius: 28px; background: linear-gradient(135deg, #20351a, #16210f); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(168,214,47,0.35), transparent 70%); top: -120px; right: -60px; }
.cta h2 { color: #fff; margin-bottom: 14px; position: relative; }
.cta p { color: #c6d2bd; max-width: 600px; margin: 0 auto 28px; position: relative; }
.cta .btn { position: relative; }

/* ---------- Spotlight (distinctive promise band) ---------- */
.spotlight {
  display: grid; grid-template-columns: 1.5fr auto; gap: 40px; align-items: center;
  background: linear-gradient(135deg, #f1f8e9, #ffffff);
  border: 1px solid var(--mint-2); border-left: 6px solid var(--brand);
  border-radius: 26px; padding: 52px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.spotlight::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(168,214,47,0.28), transparent 70%); bottom: -120px; right: -60px; }
.spotlight-quote { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; margin: 6px 0 14px; position: relative; }
.spotlight .lead { position: relative; max-width: 620px; }
.spotlight-cta { display: flex; flex-direction: column; gap: 12px; position: relative; }
.spotlight-cta .btn { justify-content: center; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); }
.compare { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: middle; font-size: 0.97rem; }
.compare thead th { font-weight: 800; color: var(--ink); border-bottom: 1px solid var(--line); }
.compare thead th.hl { color: var(--brand-d); background: var(--mint); }
.compare thead th .pill-h { display: inline-flex; align-items: center; gap: 8px; }
.compare thead th .pill-h .svg { width: 18px; height: 18px; color: var(--brand); }
.compare tbody tr:not(:last-child) td { border-bottom: 1px solid var(--line); }
.compare td.aspect { font-weight: 700; color: var(--ink); width: 22%; }
.compare td.before { color: var(--muted); }
.compare td.after { color: var(--ink); font-weight: 600; background: var(--mint); }
.compare .cell { display: flex; align-items: center; gap: 10px; }
.compare .cell .svg { width: 18px; height: 18px; flex: 0 0 18px; }
.compare td.before .cell .svg { color: #d06a5a; }
.compare td.after .cell .svg { color: var(--brand); }

/* ---------- Plans ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.plan .pname { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.plan .price { font-size: 1.7rem; font-weight: 800; color: var(--ink); margin: 12px 0 4px; }
.plan .price small { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.plan .pdesc { font-size: 0.95rem; min-height: 48px; }
.plan ul { list-style: none; display: grid; gap: 11px; margin: 22px 0 26px; }
.plan ul li { display: flex; gap: 10px; color: var(--body); font-size: 0.94rem; }
.plan ul li .svg { width: 19px; height: 19px; color: var(--brand); flex: 0 0 19px; margin-top: 2px; }
.plan .btn { margin-top: auto; justify-content: center; }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-size: 0.74rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--brand); color: #fff; white-space: nowrap; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; color: var(--ink); font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 13px 15px; border-radius: 12px; font-family: inherit; font-size: 0.95rem;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink); transition: 0.18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(94,158,21,0.14); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.form-success { display: none; align-items: center; gap: 10px; padding: 15px 18px; border-radius: 12px; margin-bottom: 18px; background: var(--mint); border: 1px solid var(--mint-2); color: var(--brand-dd); font-weight: 600; }
.form-success.show { display: flex; }
.form-success .svg { width: 20px; height: 20px; color: var(--brand); }
.form-error { display: none; align-items: center; gap: 10px; padding: 15px 18px; border-radius: 12px; margin-bottom: 18px; background: #fcebe8; border: 1px solid #f3cfc8; color: #a3402e; font-weight: 600; }
.form-error.show { display: flex; }
.form-error .svg { width: 20px; height: 20px; color: #d06a5a; flex: 0 0 20px; }

/* ---------- Page hero ---------- */
.page-hero { padding: 76px 0 40px; text-align: center; background: linear-gradient(180deg, #fbfdf6, #fff); }
.page-hero p { max-width: 680px; margin: 16px auto 0; font-size: 1.1rem; }

/* ---------- Legal ---------- */
.legal { max-width: 880px; margin: 0 auto; }
.legal .doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 44px; }
.legal h2 { font-size: 1.45rem; margin: 36px 0 12px; color: var(--ink); padding-top: 10px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin: 20px 0 8px; color: var(--brand-d); }
.legal p, .legal li { margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.toc a { font-size: 0.86rem; padding: 8px 14px; border-radius: 999px; background: var(--mint); border: 1px solid var(--mint-2); color: var(--brand-d); font-weight: 600; }
.toc a:hover { background: var(--mint-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.info-row .ic { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--brand-d); }
.info-row .ic .svg { width: 22px; height: 22px; }
.info-row b { display: block; margin-bottom: 3px; color: var(--ink); }
.info-row span { color: var(--body); font-size: 0.95rem; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #b9c4ad; padding: 64px 0 28px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.4fr; gap: 36px; margin-bottom: 42px; }
.foot-grid h4 { font-size: 0.95rem; margin-bottom: 16px; color: #fff; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a { color: #aebaa3; font-size: 0.92rem; }
.foot-grid a:hover { color: var(--lime); }
.foot-brand .brand { color: #fff; }
.foot-brand .brand span { color: #fff; }
.foot-brand p { color: #93a087; font-size: 0.92rem; margin-top: 14px; max-width: 320px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #8b9880; font-size: 0.86rem; }
.foot-bottom a { color: #8b9880; }
.foot-bottom a:hover { color: var(--lime); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.rev .split-text { order: 0; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .layer { grid-template-columns: 1fr; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-mid { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 16px 24px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-mid.open { display: flex; }
  .menu-toggle { display: block; }
  .drop-toggle { width: 100%; justify-content: space-between; }
  .drop { position: static; display: none; box-shadow: none; border: 0; padding: 2px 0 6px 14px; min-width: 0; }
  .has-drop.open .drop { display: flex; }
  .has-drop.open .drop-toggle .svg { transform: rotate(180deg); }
  .spotlight { grid-template-columns: 1fr; gap: 28px; padding: 36px; }
}
@media (max-width: 620px) {
  .g2, .g3, .g4, .form-grid, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .nav-right .btn-ghost { display: none; }
}
