/* CXGear marketing site */
:root {
  --bg: #06080f;
  --bg-elevated: #0f1219;
  --bg-card: #141820;
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.12);
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --success: #34d399;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Syne", system-ui, sans-serif;
  --max: 1080px;
  --legal-max: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 15, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner,
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}

.logo:hover {
  text-decoration: none;
}

.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #3b82f6 0%, #6366f1 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-display);
  box-shadow: 0 0 24px var(--accent-glow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(59, 130, 246, 0.22), transparent 65%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 35% 25% at 5% 60%, rgba(14, 165, 233, 0.08), transparent);
}

.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 10px var(--accent-bright);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  max-width: 900px;
  text-transform: uppercase;
}

.hero__title .highlight {
  background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 0 36px;
  line-height: 1.75;
  font-weight: 400;
}

/* Pain strip */
.pain-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  max-width: 640px;
}

.pain-chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.pain-chip::before {
  content: "“";
  color: var(--text-muted);
  margin-right: 2px;
}

.pain-chip::after {
  content: "”";
  color: var(--text-muted);
  margin-left: 2px;
}

/* Subscribe */
.subscribe-block {
  max-width: 520px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.subscribe-block__headline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.subscribe-block__sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 20px;
  line-height: 1.6;
}

.subscribe__form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.subscribe__input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.subscribe__input::placeholder {
  color: var(--text-muted);
}

.subscribe__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.subscribe__btn {
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(145deg, #3b82f6, #6366f1);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.subscribe__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.subscribe__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.subscribe__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subscribe__perks li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}

.subscribe__perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.subscribe__success {
  display: none;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--success);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.subscribe__success.is-visible {
  display: block;
}

.subscribe__form.is-hidden {
  display: none;
}

.subscribe-block__perks-hidden.is-hidden {
  display: none;
}

/* Outcomes */
.outcomes {
  padding: 48px 0 88px;
}

.outcomes__header {
  max-width: var(--max);
  margin: 0 auto 36px;
  padding: 0 28px;
}

.outcomes__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 10px;
}

.outcomes__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  text-transform: uppercase;
  max-width: 520px;
}

.outcomes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.outcome-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s;
}

.outcome-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.outcome-card__before {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.55;
  font-style: italic;
}

.outcome-card__before strong {
  color: #f87171;
  font-style: normal;
  font-weight: 600;
}

.outcome-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.outcome-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Journey preview */
.journey-preview {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 0 28px;
}

.journey-preview__card {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.journey-preview__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.journey-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.journey-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.journey-step__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3b82f6, #6366f1);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-display);
  display: grid;
  place-items: center;
}

.journey-arrow {
  color: var(--text-muted);
  font-size: 16px;
}

.journey-preview__caption {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA band */
.cta-band {
  margin: 0 28px 80px;
  max-width: calc(var(--max) - 56px);
  margin-left: auto;
  margin-right: auto;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.cta-band p {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .subscribe__form {
  max-width: 420px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__copy {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.site-footer__links {
  display: flex;
  gap: 24px;
}

.site-footer__links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--text);
}

/* Legal pages — light for readability */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8f9fb;
  color: #0f172a;
}

.legal-page .site-header {
  background: rgba(248, 249, 251, 0.9);
  border-bottom-color: #e2e8f0;
}

.legal-page .logo {
  color: #0f172a;
}

.legal-page .site-nav a {
  color: #475569;
}

.legal-page .site-nav a:hover {
  color: #0f172a;
}

.legal-main {
  flex: 1;
  max-width: var(--legal-max);
  margin: 0 auto;
  padding: 48px 28px 80px;
}

.legal-main h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.legal-main .updated {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 32px;
}

.legal-main h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.legal-main p,
.legal-main li {
  font-size: 15px;
  color: #475569;
  line-height: 1.75;
}

.legal-main ul {
  padding-left: 1.25rem;
  margin: 0 0 16px;
}

.legal-main li {
  margin-bottom: 8px;
}

.legal-page .site-footer {
  border-top-color: #e2e8f0;
  background: #fff;
}

.legal-page .site-footer__copy,
.legal-page .site-footer__links a {
  color: #64748b;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .subscribe__form {
    flex-direction: column;
  }

  .subscribe__btn {
    width: 100%;
  }

  .journey-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .journey-arrow {
    transform: rotate(90deg);
    align-self: center;
  }

  .pain-strip {
    flex-direction: column;
  }
}
