/* ============================================================
   CXelerate — styles
   Logo palette: azure blue #29ABE2 · bronze gold #C9A14C · black
   Fonts: Outfit (UI/body) · Playfair Display (serif display)
   ============================================================ */

:root {
  --blue: #29abe2;          /* logo blue (C, chevron, tagline) */
  --blue-600: #1b93c9;      /* darker blue for hover */
  --blue-deep: #0b557c;     /* deep blue for the quote band */
  --gold: #c9a14c;          /* logo gold (X) */
  --gold-soft: #ddb96a;
  --ink: #16181d;           /* logo black ("elerate") */
  --ink-soft: #565d6b;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --tint: #e6f4fc;          /* blue tint */
  --border: #e6e9ee;
  --shadow-sm: 0 1px 3px rgba(22, 24, 29, 0.06), 0 1px 2px rgba(22, 24, 29, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(22, 24, 29, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 85, 124, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
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; }

.section { padding: clamp(72px, 11vw, 132px) 0; }

.accent { color: var(--blue); }
.accent-gold { color: var(--gold); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.section-head { max-width: 640px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.section-title { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: clamp(2rem, 4.2vw, 3rem); }
.section-sub { margin-top: 20px; font-size: 1.075rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 0.97rem; font-weight: 600; line-height: 1;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 8px 20px -8px rgba(41, 171, 226, 0.7); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(41, 171, 226, 0.75); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-lg { padding: 17px 32px; font-size: 1.02rem; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(249, 249, 251, 0); backdrop-filter: blur(0px);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; display: inline-flex; align-items: baseline; }
.brand-mark { font-weight: 800; }
.brand-mark .c { color: var(--blue); }
.brand-mark .x { color: var(--gold); }
.brand-rest { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav > a:not(.btn) { font-size: 0.97rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color 0.2s; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--blue); transition: width 0.25s var(--ease); }
.nav > a:not(.btn):hover { color: var(--ink); }
.nav > a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 6px; padding: 12px 24px 24px; background: rgba(255,255,255,0.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.mobile-nav a:not(.btn) { padding: 12px 4px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.orb-1 { width: 620px; height: 620px; top: -180px; right: -120px; background: radial-gradient(circle at 30% 30%, rgba(41,171,226,0.55), transparent 70%); animation: float1 18s ease-in-out infinite; }
.orb-2 { width: 520px; height: 520px; bottom: -200px; left: -140px; background: radial-gradient(circle at 30% 30%, rgba(201,161,76,0.32), transparent 70%); animation: float2 22s ease-in-out infinite; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(26,31,46,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(26,31,46,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
}
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px, 40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -30px); } }

.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-title { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: clamp(2.6rem, 6.4vw, 4.6rem); margin: 6px 0 0; }
.hero-lede { margin-top: 28px; font-size: clamp(1.075rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 660px; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Services ---------- */
.services { background: var(--surface); }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #d8e6f2; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--tint); color: var(--blue); margin-bottom: 24px;
}
.card-icon svg { width: 28px; height: 28px; }
.card:nth-child(2) .card-icon { background: rgba(201,161,76,0.14); color: var(--gold); }
.card-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 14px; }
.card-body { color: var(--ink-soft); }

.focus-strip {
  margin-top: 56px; padding: 28px 32px; border-radius: var(--radius);
  background: var(--ink); color: #fff;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.focus-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); white-space: nowrap; }
.focus-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 14px; }
.focus-list li { font-size: 0.92rem; color: rgba(255,255,255,0.85); padding: 7px 16px; border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.about-text { margin-top: 22px; font-size: 1.075rem; color: var(--ink-soft); }
.about-points { list-style: none; margin: 0; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.about-points li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; font-weight: 500; }
.about-points li + li { border-top: 1px solid var(--border); }
.check { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--blue); position: relative; }
.check::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.quote-band { margin-top: clamp(64px, 8vw, 96px); padding: clamp(56px, 8vw, 96px) 0; background: linear-gradient(135deg, var(--blue-deep), #0a2d54); color: #fff; position: relative; overflow: hidden; }
.quote-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(41,171,226,0.35), transparent 55%); }
.quote-band .container { position: relative; }
.quote-band blockquote { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.25; max-width: 940px; }
.quote-tag { margin-top: 24px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.65); }

/* ---------- Contact ---------- */
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-details { margin: 40px 0 0; display: grid; gap: 26px; }
.contact-details dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.contact-details dd { margin: 0; font-size: 1.05rem; color: var(--ink); }
.contact-details a:hover { color: var(--blue); }

.contact-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(28px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; }
.field .optional { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(41,171,226,0.14); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d9534f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 16px; font-size: 0.95rem; min-height: 1.2em; }
.form-status.success { color: #1a7f4b; font-weight: 500; }
.form-status.error { color: #c0392b; font-weight: 500; }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-tag { margin-top: 8px; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.footer-nav a:hover { color: var(--blue); }
.footer-bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--ink-soft); font-size: 0.88rem; }

/* ---------- Reveal animation (only when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .focus-strip { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom { flex-direction: column; }
}

/* ============================================================
   Content pages (Privacy, Terms, Support)
   ============================================================ */
body.doc .site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}
.doc-main { padding-top: 76px; }
.doc-hero { padding: clamp(48px, 7vw, 80px) 0 clamp(20px, 3vw, 32px); }
.doc-hero .section-title { margin-top: 4px; }
.doc-meta { margin-top: 16px; color: var(--ink-soft); font-size: 0.95rem; }
.doc-section { padding: 0 0 clamp(64px, 9vw, 110px); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; font-weight: 600; margin: 44px 0 14px; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; font-weight: 600; margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; color: var(--ink-soft); }
.prose ul { margin: 0 0 16px; padding-left: 1.25em; color: var(--ink-soft); }
.prose li { margin: 6px 0; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--blue-600); }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 1.1rem; color: var(--ink); }
.doc-card {
  margin: 28px 0; padding: 28px 30px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.doc-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 500; color: var(--blue); }
.doc-back:hover { color: var(--blue-600); }

/* Footer link grouping for legal row */
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { color: var(--ink-soft); font-size: 0.88rem; transition: color 0.2s; }
.footer-legal a:hover { color: var(--blue); }

/* ---------- Logo images (real artwork) ---------- */
.brand { line-height: 0; }
.brand-logo { height: 30px; width: auto; display: block; }
.footer-logo { height: 50px; width: auto; display: block; }
@media (max-width: 520px) {
  .brand-logo { height: 26px; }
  .footer-logo { height: 42px; }
}
