/* =====================================================================
   XCell Performance — Design System
   One file, no build step. Recolor the whole site from :root below.
   ===================================================================== */

:root {
  /* Brand — swap these when the logo lands */
  --ink:        #0A1124;   /* deep navy-charcoal foundation */
  --ink-soft:   #131C32;
  --ink-line:   #22304F;
  --brand:      #1B6BFF;   /* primary accent */
  --brand-700:  #1453d6;
  --brand-2:    #16D6C1;   /* teal, for gradients/highlights */

  /* Neutrals */
  --bg:         #FFFFFF;
  --bg-soft:    #F4F7FB;
  --bg-soft-2:  #EAF0F8;
  --text:       #16203A;
  --muted:      #586079;
  --line:       #E4EAF2;
  --white:      #FFFFFF;

  /* System */
  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(10,17,36,.06), 0 2px 8px rgba(10,17,36,.05);
  --shadow:     0 10px 30px rgba(10,17,36,.10);
  --shadow-lg:  0 24px 60px rgba(10,17,36,.18);
  --container:  1160px;
  --ease:       cubic-bezier(.2,.7,.3,1);
  --font:       "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img,svg,video { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
ul,ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: .35rem 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--ink); color: #DCE5F4; }
.section--ink h1,.section--ink h2,.section--ink h3 { color: #fff; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }
.eyebrow { display:inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .75rem; }
.section--ink .eyebrow { color: var(--brand-2); }
.lead { font-size: 1.18rem; color: var(--muted); }
.section--ink .lead { color: #AEBCD6; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px){ .grid-3,.grid-4{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .grid-2,.grid-3,.grid-4{ grid-template-columns: 1fr;} }

/* ---------- buttons ---------- */
.btn { display:inline-flex; align-items:center; gap:.5rem; font-weight:700; font-size:1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent; cursor:pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s; text-decoration:none; }
.btn:hover { text-decoration:none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color:#fff; box-shadow: 0 8px 22px rgba(27,107,255,.35); }
.btn-primary:hover { background: var(--brand-700); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background:#fff; color: var(--ink); }
.btn-light:hover { background:#eef3fb; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.08rem; }
.btn-block { width:100%; justify-content:center; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top:0; z-index: 60; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display:flex; align-items:center; justify-content:space-between; gap: 1rem; height: 72px; }
.brand { display:flex; align-items:center; gap:.6rem; font-weight: 900; font-size:1.25rem;
  color: var(--ink); letter-spacing:-.02em; text-decoration:none; }
.brand:hover { text-decoration:none; }
.brand .x { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px;
  border-radius:9px; background: linear-gradient(135deg,var(--brand),var(--brand-2)); color:#fff; font-weight:900; }
.brand small { display:block; font-size:.62rem; font-weight:700; letter-spacing:.18em; color: var(--muted); text-transform:uppercase; }
.nav-links { display:flex; align-items:center; gap: 1.4rem; list-style:none; margin:0; padding:0; }
.nav-links a { color: var(--ink); font-weight:600; font-size:.96rem; }
.nav-links a:hover { color: var(--brand); text-decoration:none; }
.nav-cta { display:flex; align-items:center; gap: .8rem; }
.nav-phone { font-weight:800; color: var(--ink); white-space:nowrap; }
.nav-phone:hover { color: var(--brand); text-decoration:none; }

/* dropdown */
.has-sub { position: relative; }
.submenu { position:absolute; top:100%; left:50%; transform: translateX(-50%) translateY(8px);
  background:#fff; border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding:.5rem; min-width: 250px; opacity:0; visibility:hidden; transition:.18s var(--ease); list-style:none; }
.has-sub:hover .submenu { opacity:1; visibility:visible; transform: translateX(-50%) translateY(4px); }
.submenu a { display:block; padding:.55rem .8rem; border-radius:8px; font-size:.92rem; }
.submenu a:hover { background: var(--bg-soft); color: var(--brand); }

.nav-toggle { display:none; background:none; border:0; cursor:pointer; padding:8px; }
.nav-toggle span { display:block; width:24px; height:2px; background: var(--ink); margin:5px 0; transition:.2s; }

/* mobile menu is hidden by default — only revealed at the mobile breakpoint when toggled */
.mobile-nav { display:none; }

@media (max-width: 980px){
  .nav-links, .nav .nav-phone { display:none; }
  .nav-toggle { display:block; }
  /* Hide the nav "Book Consultation" button on small screens — it lives in the menu + bottom bar */
  .nav-cta .btn { display:none; }
  .mobile-nav.open { display:block; }
  /* Anchored dropdown below the header. Absolute (not fixed) so the header's
     backdrop-filter doesn't trap it; scrolls if taller than the screen. */
  .mobile-nav { position:absolute; top:100%; left:0; right:0; background:#fff; z-index:55;
    overflow-y:auto; -webkit-overflow-scrolling:touch;
    max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px);
    border-top:1px solid var(--line); box-shadow: var(--shadow);
    padding: .6rem 22px 1.6rem; }
  .mobile-nav a { display:block; padding:.8rem 0; font-size:1.05rem; font-weight:700; color:var(--ink); border-bottom:1px solid var(--line); }
  .mobile-nav a:last-of-type { border-bottom:0; }
  .mobile-nav .btn { display:flex; margin-top:1rem; border-bottom:0; }
  .mobile-nav .btn-primary { color:#fff; }   /* beat .mobile-nav a color */
}
@media (max-width: 420px){
  .nav { height:64px; }
  .brand { font-size:1.08rem; }
  .brand .x { width:30px; height:30px; }
}

/* ---------- hero ---------- */
.hero { position:relative; background: radial-gradient(1200px 600px at 80% -10%, rgba(22,214,193,.16), transparent 60%),
  linear-gradient(160deg, var(--ink), var(--ink-soft)); color:#E7EEFB; overflow:hidden; }
.hero::after { content:""; position:absolute; inset:0; background:
  radial-gradient(700px 360px at 10% 110%, rgba(27,107,255,.22), transparent 60%); pointer-events:none; }
.hero .container { position:relative; z-index:2; padding-top: clamp(56px,8vw,96px); padding-bottom: clamp(56px,8vw,96px); }
.hero h1 { color:#fff; }
.hero .lead { color:#B9C7E4; max-width: 620px; }
.hero-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items:center; }
@media (max-width: 880px){ .hero-grid{ grid-template-columns:1fr; } }
.hero-actions { display:flex; flex-wrap:wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-card { background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 1.6rem; backdrop-filter: blur(6px); }
.pill-row { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.4rem; }
.pill { font-size:.82rem; font-weight:700; padding:.4rem .8rem; border-radius:999px;
  background: rgba(255,255,255,.08); color:#CBD7EE; border:1px solid rgba(255,255,255,.14); }

/* ---------- cards ---------- */
.card { background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom:.4rem; }
.card p { color: var(--muted); margin-bottom: .8rem; }
.card .ic { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(27,107,255,.12), rgba(22,214,193,.14)); color: var(--brand);
  font-size:1.4rem; margin-bottom: 1rem; }
.card-link { font-weight:700; color:var(--brand); display:inline-flex; gap:.3rem; align-items:center; }
.card-link:hover { gap:.55rem; text-decoration:none; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display:grid; gap:24px; grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px){ .steps{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .steps{ grid-template-columns: 1fr;} }
.step { position:relative; padding-top: .5rem; }
.step .num { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-weight:900; color:#fff; background: linear-gradient(135deg,var(--brand),var(--brand-2)); margin-bottom:.9rem; }
.step h3 { font-size:1.15rem; }
.step p { color: var(--muted); font-size:.97rem; }

/* ---------- trust band ---------- */
.trust { display:flex; flex-wrap:wrap; gap: 1.2rem 2.4rem; align-items:center; justify-content:center; }
.trust .item { display:flex; align-items:center; gap:.55rem; font-weight:700; color: var(--ink); }
.trust .item span:first-child { color: var(--brand); font-size:1.2rem; }

.stat-row { display:grid; grid-template-columns: repeat(3,1fr); gap:24px; text-align:center; }
@media (max-width:620px){ .stat-row{ grid-template-columns:1fr;} }
.stat .n { font-size: clamp(2.2rem,5vw,3rem); font-weight:900; color:var(--brand);
  background: linear-gradient(135deg,var(--brand),var(--brand-2)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.stat .l { color: var(--muted); font-weight:600; }

/* ---------- FAQ (CSS-only) ---------- */
.faq { max-width: 820px; margin-inline:auto; }
.faq details { border:1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; background:#fff; overflow:hidden; }
.faq summary { cursor:pointer; list-style:none; padding: 1.1rem 1.3rem; font-weight:700; color:var(--ink);
  display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-size:1.5rem; color: var(--brand); font-weight:400; transition:.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-700)); color:#fff; border-radius: var(--radius-lg);
  padding: clamp(36px,5vw,64px); text-align:center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.92); }

/* ---------- forms ---------- */
.form-wrap { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px,3vw,40px); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display:block; font-weight:700; font-size:.92rem; color:var(--ink); margin-bottom:.4rem; }
.field input, .field select, .field textarea {
  width:100%; padding:.85rem 1rem; font: inherit; color:var(--text);
  border:1.5px solid var(--line); border-radius: var(--radius-sm); background:#fff; transition:.15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline:none; box-shadow:0 0 0 4px rgba(27,107,255,.12); }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media (max-width:560px){ .field-row{ grid-template-columns:1fr;} }
.req { color:#d6452c; }

/* consent / A2P block */
.consent { background: var(--bg-soft); border:1px solid var(--line); border-radius: var(--radius-sm); padding:1rem 1.1rem; margin-bottom:1.1rem; }
.consent label { display:flex; gap:.7rem; align-items:flex-start; font-weight:600; font-size:.9rem; color:var(--text); cursor:pointer; }
.consent input[type=checkbox]{ width:20px; height:20px; min-width:20px; margin-top:2px; accent-color: var(--brand); }
.consent .fine { font-size:.78rem; color: var(--muted); margin:.6rem 0 0; line-height:1.5; }

/* ---------- prose (legal / blog) ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left:1.3rem; }
.prose .updated { color: var(--muted); font-size:.92rem; }
.page-head { background: var(--bg-soft); border-bottom:1px solid var(--line); padding: clamp(40px,6vw,72px) 0; }
.page-head h1 { margin-bottom:.4rem; }
.crumbs { font-size:.85rem; color: var(--muted); margin-bottom: .8rem; }
.crumbs a { color: var(--muted); }

/* callout */
.callout { border-left: 4px solid var(--brand); background: var(--bg-soft); padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.4rem 0; }
.callout strong { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color:#9FB0CD; padding: 64px 0 28px; font-size:.95rem; }
.site-footer h4 { color:#fff; font-size:.85rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom:1rem; }
.foot-grid { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px){ .foot-grid{ grid-template-columns:1fr 1fr;} }
@media (max-width: 520px){ .foot-grid{ grid-template-columns:1fr;} }
.site-footer a { color:#9FB0CD; }
.site-footer a:hover { color:#fff; text-decoration:none; }
.foot-links { list-style:none; padding:0; margin:0; }
.foot-links li { margin:.5rem 0; }
.foot-brand .brand { color:#fff; margin-bottom: .8rem; }
.foot-brand .brand small { color:#7E90B0; }
.foot-bottom { border-top:1px solid var(--ink-line); margin-top:44px; padding-top:22px;
  display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; align-items:center; font-size:.82rem; color:#7E90B0; }
.foot-bottom a { color:#7E90B0; }
.disclaimer { font-size:.8rem; color:#6E7F9E; margin-top:1rem; max-width: 70ch; }

/* ---------- sticky mobile call/book bar ---------- */
.mobile-bar { display:none; }
@media (max-width: 720px){
  .mobile-bar { display:grid; grid-template-columns:1fr 1fr; gap:0; position:fixed; bottom:0; left:0; right:0; z-index:50;
    background:#fff; border-top:1px solid var(--line); box-shadow:0 -6px 24px rgba(10,17,36,.12); }
  .mobile-bar a { padding: .95rem; text-align:center; font-weight:800; }
  .mobile-bar a:first-child { color:var(--ink); }
  .mobile-bar a:last-child { background: var(--brand); color:#fff; }
  .mobile-bar a:hover { text-decoration:none; }
  body { padding-bottom: 58px; }
}

/* utilities */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-2{margin-top:1.2rem}
.maxw-720{max-width:720px}
