/* WebX showcase design system — navy + violet from the brand logo, gradient X reserved for signature moments. */

/* ---------- fonts ---------- */
@font-face { font-family: 'Space Grotesk'; src: url('fonts/space-grotesk-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('fonts/work-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('fonts/work-sans-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --bg: #FBFBFD;
  --bg-alt: #F1F2F7;
  --surface: #FFFFFF;
  --ink: #14203F;
  --ink-muted: #4A5574;
  --navy: #1D2E63;
  --navy-deep: #14203F;
  --navy-ink: #F4F6FF;
  --violet: #6D3AE8;
  --violet-ink: #F6F2FF;
  --teal: #2BD4A8;
  --pink: #E84393;
  --line: #DFE2EE;
  --grad-x: linear-gradient(120deg, #2BD4A8 0%, #6D3AE8 55%, #E84393 100%);
  --f-display: 'Space Grotesk', system-ui, 'Segoe UI', sans-serif;
  --f-body: 'Work Sans', system-ui, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-btn: 10px;
  --shadow: 0 14px 40px -18px rgb(20 32 63 / 0.22);
  --container: 1160px;
  --pad-section: clamp(3.5rem, 8vw, 6.5rem);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; line-height: 1.3; }
h4 { font-size: 1.1rem; line-height: 1.35; }
p, li { max-width: 66ch; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 2px; }

.wx-skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--navy-ink); padding: 0.6rem 1.2rem; z-index: 100; }
.wx-skip:focus { left: 0; }

.wx-container { width: min(var(--container), 100% - 2.75rem); margin-inline: auto; }
.wx-section { padding-block: var(--pad-section); }
.wx-section--alt { background: var(--bg-alt); }
.wx-section--navy { background: var(--navy-deep); color: var(--navy-ink); }
.wx-section--navy h2, .wx-section--navy h3 { color: #FFFFFF; }
.wx-muted { color: var(--ink-muted); }
.wx-section--navy .wx-muted { color: #B9C2E0; }
.wx-lead { font-size: 1.2rem; }

/* ---------- header ---------- */
.wx-header { background: rgb(251 251 253 / 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.wx-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 68px; }
.wx-header__logo img { height: 30px; width: auto; }
.wx-header__toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.wx-header__bars { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; }
.wx-header__bars::before, .wx-header__bars::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--ink); }
.wx-header__bars::before { top: -7px; }
.wx-header__bars::after { top: 7px; }
.wx-nav { display: flex; align-items: center; gap: 1.6rem; }
.wx-nav a { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--ink-muted); }
.wx-nav a:hover, .wx-nav a[aria-current="page"] { color: var(--ink); }
.wx-nav a.wx-btn--primary, .wx-nav a.wx-btn--primary:hover { color: var(--navy-ink); }
.wx-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.wx-btn {
  display: inline-block; padding: 0.85em 1.7em; border-radius: var(--radius-btn);
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, background 140ms ease;
}
.wx-btn:active { transform: translateY(1px); }
.wx-btn--primary { background: var(--navy); color: var(--navy-ink); }
.wx-btn--primary:hover { filter: brightness(1.12); color: var(--navy-ink); }
.wx-btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.wx-btn--ghost:hover { background: var(--bg-alt); color: var(--ink); }
.wx-section--navy .wx-btn--primary { background: #FFFFFF; color: var(--navy-deep); }
.wx-section--navy .wx-btn--ghost { border-color: rgb(255 255 255 / 0.35); color: var(--navy-ink); }
.wx-section--navy .wx-btn--ghost:hover { background: rgb(255 255 255 / 0.1); }
.wx-btn--sm { padding: 0.55em 1.15em; font-size: 0.92rem; }

/* ---------- signature X moments (gradient rationed) ---------- */
.wx-x-rule { width: 64px; height: 4px; border-radius: 2px; background: var(--grad-x); margin-bottom: 1.4rem; }
.wx-grad-text { background: var(--grad-x); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- hero ---------- */
.wx-hero { padding-block: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.wx-hero__grid { display: grid; gap: 3rem; align-items: center; }
.wx-hero__kicker { display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--violet); background: #F0EAFE; border-radius: 999px; padding: 0.35em 1em; margin-bottom: 1.2rem; }
.wx-hero h1 { margin-bottom: 1.1rem; max-width: 22ch; }
.wx-hero__sub { font-size: 1.22rem; color: var(--ink-muted); margin-bottom: 1.8rem; max-width: 52ch; }
.wx-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.wx-hero__media { position: relative; }
.wx-hero__media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* browser-frame for demo screenshots */
.wx-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.wx-frame__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.wx-frame__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.wx-frame__url { margin-left: 10px; font-size: 0.72rem; color: var(--ink-muted); background: var(--surface); border-radius: 6px; padding: 2px 10px; border: 1px solid var(--line); }
.wx-frame img { width: 100%; height: auto; }

/* ---------- generic blocks ---------- */
.wx-section-head { max-width: 62ch; margin-bottom: 2.6rem; }
.wx-section-head h2 { margin-bottom: 0.7rem; }
.wx-grid-2 { display: grid; gap: 1.6rem; }
.wx-grid-3 { display: grid; gap: 1.6rem; }
.wx-grid-4 { display: grid; gap: 1.4rem; }
.wx-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.wx-card h3, .wx-card h4 { margin-bottom: 0.6rem; }
.wx-section--alt .wx-card { box-shadow: var(--shadow); border-color: transparent; }

/* steps */
.wx-steps { display: grid; gap: 1.6rem; counter-reset: step; }
.wx-step { position: relative; padding-left: 4rem; }
.wx-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0.1rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--navy); color: var(--navy-ink);
  font-family: var(--f-display); font-weight: 600; font-size: 1.15rem;
  display: grid; place-items: center;
}
.wx-step h3 { margin-bottom: 0.4rem; }

/* checklist */
.wx-checklist { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.wx-checklist li { position: relative; padding-left: 2rem; }
.wx-checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* pricing */
.wx-price-hero { display: grid; gap: 2rem; align-items: start; }
.wx-price-card { background: var(--surface); border: 2px solid var(--navy); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.wx-price-card__amount { font-family: var(--f-display); font-weight: 600; font-size: 3rem; line-height: 1; }
.wx-price-card__amount small { font-size: 1.1rem; color: var(--ink-muted); font-family: var(--f-body); font-weight: 400; }
.wx-table-wrap { overflow-x: auto; }
.wx-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.wx-table th { font-family: var(--f-display); font-weight: 600; text-align: left; padding: 0.85rem 1rem; border-bottom: 2px solid var(--navy); }
.wx-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.wx-table tbody tr:last-child td { border-bottom: 0; }
.wx-table--tco td:first-child { font-weight: 600; }

/* FAQ */
.wx-faq-group { margin-bottom: 2.6rem; }
.wx-faq-group h2 { font-size: 1.45rem; margin-bottom: 1rem; }
.wx-faq details { border-bottom: 1px solid var(--line); }
.wx-faq details:first-of-type { border-top: 1px solid var(--line); }
.wx-faq summary { cursor: pointer; padding: 1.05rem 2.2rem 1.05rem 0.2rem; font-weight: 600; font-family: var(--f-display); font-size: 1.05rem; list-style: none; position: relative; }
.wx-faq summary::-webkit-details-marker { display: none; }
.wx-faq summary::after { content: "+"; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--violet); transition: transform 160ms ease; }
.wx-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.wx-faq details > div { padding: 0 0.2rem 1.3rem; }
.wx-faq details > div p + p { margin-top: 0.7rem; }

/* demo gallery */
.wx-demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 160ms ease, box-shadow 160ms ease; display: flex; flex-direction: column; }
.wx-demo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.wx-demo-card__shot { aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.wx-demo-card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.wx-demo-card__body { padding: 1.2rem 1.4rem 1.5rem; }
.wx-demo-card__body h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.wx-demo-card__body p { font-size: 0.92rem; color: var(--ink-muted); margin-bottom: 0.9rem; }
.wx-demo-card__links { display: flex; gap: 0.9rem; font-size: 0.92rem; font-weight: 600; margin-top: auto; }

/* articles */
.wx-article-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; text-decoration: none; color: var(--ink); transition: transform 160ms ease, box-shadow 160ms ease; }
.wx-article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.wx-article-card h3 { margin-bottom: 0.5rem; }
.wx-article-card p { color: var(--ink-muted); font-size: 0.95rem; }
.wx-prose { max-width: 70ch; }
.wx-prose h2 { margin-top: 2.6rem; margin-bottom: 0.8rem; font-size: 1.55rem; }
.wx-prose h3 { margin-top: 1.9rem; margin-bottom: 0.6rem; }
.wx-prose p { margin-bottom: 1.05rem; }
.wx-prose ul, .wx-prose ol { margin-bottom: 1.05rem; padding-left: 1.4rem; }
.wx-prose li { margin-bottom: 0.4rem; }
.wx-prose table { margin-block: 1.4rem; }
.wx-prose blockquote { border-left: 3px solid var(--violet); padding-left: 1.2rem; color: var(--ink-muted); margin-block: 1.4rem; }
.wx-prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.2rem; }
.wx-article-meta { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 2.2rem; }

/* legal pages */
.wx-legal h2 { font-size: 1.3rem; margin-top: 2.4rem; margin-bottom: 0.7rem; }
.wx-legal-notice { background: #FFF7E6; border: 1px solid #F0DCA8; border-radius: var(--radius); padding: 1rem 1.3rem; margin-bottom: 2rem; font-size: 0.95rem; }

/* CTA band */
.wx-cta-band { text-align: left; }
.wx-cta-band__inner { display: grid; gap: 1.6rem; align-items: center; }
.wx-cta-band h2 { margin-bottom: 0.5rem; }

/* launching ribbon */
.wx-ribbon { background: var(--navy-deep); color: #C7D0EE; font-size: 0.9rem; text-align: center; padding: 0.55rem 1rem; }
.wx-ribbon a { color: #FFFFFF; font-weight: 600; }

/* footer */
.wx-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-block: 3rem 2rem; font-size: 0.95rem; margin-top: auto; }
.wx-footer__grid { display: grid; gap: 2rem; margin-bottom: 2.2rem; }
.wx-footer__logo img { height: 26px; width: auto; margin-bottom: 0.8rem; }
.wx-footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); margin-bottom: 0.8rem; }
.wx-footer ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.wx-footer a { color: var(--ink-muted); text-decoration: none; }
.wx-footer a:hover { color: var(--ink); text-decoration: underline; }
.wx-footer__legal { border-top: 1px solid var(--line); padding-top: 1.4rem; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.88rem; }

/* reveal (one-time, CSS only) */
@media (prefers-reduced-motion: no-preference) {
  .wx-hero__grid > * { animation: wx-rise 640ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .wx-hero__grid > *:nth-child(2) { animation-delay: 120ms; }
  @keyframes wx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* responsive */
@media (min-width: 640px) {
  .wx-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .wx-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .wx-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .wx-footer__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
}
@media (min-width: 900px) {
  .wx-hero__grid--split { grid-template-columns: 1.05fr 1fr; }
  .wx-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .wx-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .wx-steps { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 3rem; }
  .wx-price-hero { grid-template-columns: 1.1fr 1fr; }
  .wx-cta-band__inner { grid-template-columns: 1.5fr auto; }
}
@media (max-width: 899px) {
  .wx-header__toggle { display: block; }
  .wx-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 1.1rem 1.4rem 1.5rem; }
  .wx-nav.is-open { display: flex; }
}
