/* Quixform — style.css
   A distinct visual system from the Amugenix site: sans-serif only,
   bolder weights, purple accent, rounder shapes. Layout patterns
   adapted from the FormFlow reference (FormFlow/formflow_landing_page.html),
   recolored purple instead of orange. */

:root {
  --qx-white: #ffffff;
  --qx-ink: #10151a;
  --qx-ink-mid: #333b44;
  --qx-muted: #6b7280;
  --qx-rule: #e3e7ec;
  --qx-surface: #f5f7fa;
  --qx-accent: #534ab7;
  --qx-accent-soft: #7b73cc;
  --qx-accent-hover: #443d96;
  --qx-accent-pale: #eeedf8;

  --qx-navy: #0b1628;
  --qx-navy2: #132040;
  --qx-navy-muted: #7b99be;
  --qx-navy-faint: #5a7294;

  --qx-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --qx-display: 'Barlow Condensed', 'Segoe UI', system-ui, sans-serif;

  --qx-shadow-sm: 0 2px 8px rgba(16, 21, 26, 0.06);
  --qx-shadow-md: 0 16px 40px rgba(16, 21, 26, 0.10);
  --qx-shadow-accent: 0 16px 40px rgba(83, 74, 183, 0.20);
  --qx-shadow-card: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--qx-white);
  color: var(--qx-ink-mid);
  font-family: var(--qx-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--qx-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--qx-ink);
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--qx-accent);
}

section {
  padding: 96px 0;
}

@media (max-width: 599px) {
  section {
    padding: 56px 0;
  }
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: 2px solid var(--qx-accent);
  outline-offset: 2px;
}

/* ---------- Nav ---------- */

.qx-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--qx-rule);
}

.qx-nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qx-wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--qx-ink);
}

.qx-wordmark-logo {
  height: 48px;
  width: auto;
  display: block;
}

.qx-wordmark-icon {
  height: 20px;
  width: auto;
  display: block;
}

.qx-nav-cta {
  background: var(--qx-accent);
  color: var(--qx-white);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.qx-nav-cta:hover {
  background: var(--qx-accent-soft);
}

/* ---------- Hero ---------- */

.qx-hero {
  padding-top: 152px;
  padding-bottom: 64px;
  background: var(--qx-navy);
  position: relative;
  overflow: hidden;
}

.qx-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 480px;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(83, 74, 183, 0.10) 100%);
  pointer-events: none;
}

.qx-hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  position: relative;
}

.qx-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(83, 74, 183, 0.16);
  border: 1px solid rgba(83, 74, 183, 0.4);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--qx-accent-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.qx-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--qx-accent-soft);
  animation: qx-pulse 2s ease-in-out infinite;
}

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

.qx-hero-headline {
  font-size: clamp(38px, 5.5vw, 60px);
  line-height: 1.0;
  color: #ffffff;
  margin-bottom: 8px;
}

.qx-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  height: 44px;
  overflow: hidden;
}

.qx-ticker-prefix {
  font-family: var(--qx-display);
  font-weight: 700;
  font-size: clamp(20px, 2.8vw, 30px);
  color: var(--qx-accent-soft);
  line-height: 44px;
  height: 44px;
  white-space: nowrap;
  overflow: hidden;
}

.qx-ticker-wrap {
  flex: 1;
  height: 44px;
  overflow: hidden;
  position: relative;
}

.qx-ticker-track {
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}

.qx-ticker-item {
  font-family: var(--qx-display);
  font-weight: 700;
  font-size: clamp(20px, 2.8vw, 30px);
  color: #ffffff;
  line-height: 44px;
  height: 44px;
  white-space: nowrap;
  overflow: hidden;
}

.qx-hero-sub {
  color: var(--qx-navy-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 28px;
}

.qx-hero-sub strong {
  color: #ffffff;
  font-weight: 600;
}

.qx-hero-verticals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.qx-v-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--qx-navy-muted);
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
}

.qx-hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qx-stat-num {
  font-family: var(--qx-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--qx-accent-soft);
  line-height: 1;
  display: block;
}

.qx-stat-label {
  font-size: 12px;
  color: var(--qx-navy-faint);
  margin-top: 4px;
}

.qx-cta-card {
  background: var(--qx-white);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--qx-shadow-card);
}

.qx-cta-card-headline {
  font-family: var(--qx-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--qx-ink);
  margin-bottom: 8px;
  line-height: 1.2;
}

.qx-cta-card-sub {
  font-size: 13.5px;
  color: var(--qx-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.qx-cta-card-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--qx-accent);
  color: #ffffff;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.2s;
}

.qx-cta-card-btn:hover {
  background: var(--qx-accent-hover);
}

.qx-cta-card-footnote {
  text-align: center;
  font-size: 11.5px;
  color: var(--qx-muted);
  margin-top: 14px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .qx-hero {
    padding-top: 112px;
  }
  .qx-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Social proof bar ---------- */

.qx-proof-bar {
  background: var(--qx-surface);
  border-top: 1px solid var(--qx-rule);
  border-bottom: 1px solid var(--qx-rule);
  padding: 20px 0;
}

.qx-proof-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.qx-proof-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--qx-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.qx-proof-item {
  font-size: 13px;
  color: var(--qx-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.qx-proof-item::before {
  content: '\2713';
  color: var(--qx-accent);
  font-weight: 700;
  font-size: 13px;
}

@media (max-width: 599px) {
  .qx-proof-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ---------- Problem ---------- */

.qx-problem {
  background: var(--qx-white);
}

.qx-section-title {
  font-size: clamp(30px, 3.6vw, 42px);
  color: var(--qx-ink);
  line-height: 1.1;
  margin-top: 12px;
  margin-bottom: 14px;
}

.qx-section-sub {
  color: var(--qx-muted);
  font-size: 15.5px;
  max-width: 560px;
  line-height: 1.7;
}

.qx-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.qx-pain-card {
  background: var(--qx-surface);
  border: 1px solid var(--qx-rule);
  border-radius: 12px;
  padding: 28px 24px;
  border-top: 3px solid var(--qx-accent);
  transition: box-shadow 0.2s;
}

.qx-pain-card:hover {
  box-shadow: var(--qx-shadow-sm);
}

.qx-pain-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--qx-accent-pale);
  color: var(--qx-accent);
  margin-bottom: 16px;
}

.qx-pain-icon svg {
  width: 22px;
  height: 22px;
}

.qx-pain-title {
  font-family: var(--qx-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--qx-ink);
  margin-bottom: 8px;
}

.qx-pain-desc {
  font-size: 13.5px;
  color: var(--qx-muted);
  line-height: 1.65;
}

@media (max-width: 767px) {
  .qx-pain-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Who it's for ---------- */

.qx-audience {
  background: var(--qx-surface);
}

.qx-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.qx-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--qx-white);
  border: 1px solid var(--qx-rule);
  border-radius: 8px;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--qx-ink);
  box-shadow: 0 1px 3px rgba(16, 21, 26, 0.04);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.qx-chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--qx-shadow-sm);
  border-color: var(--qx-accent-soft);
}

.qx-chip-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--qx-accent-pale);
  color: var(--qx-accent);
}

.qx-chip-icon svg {
  width: 22px;
  height: 22px;
}

.qx-chip-label {
  font-size: 15px;
}

@media (max-width: 767px) {
  .qx-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Roles (dark) ---------- */

.qx-roles-dark {
  background: var(--qx-navy);
}

.qx-roles-eyebrow {
  color: var(--qx-accent-soft);
}

.qx-roles-title {
  color: #ffffff;
}

.qx-roles-sub {
  color: var(--qx-navy-muted);
  margin-bottom: 40px;
}

.qx-roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.qx-role-col {
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.03);
}

.qx-role-col:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.qx-role-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.qx-role-title {
  font-family: var(--qx-display);
  font-weight: 700;
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.qx-role-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qx-role-list li {
  font-size: 13px;
  color: var(--qx-navy-muted);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.45;
}

.qx-role-list li:last-child {
  border: none;
}

.qx-role-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

@media (max-width: 767px) {
  .qx-roles-grid {
    grid-template-columns: 1fr;
  }
  .qx-role-col:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ---------- AI features ---------- */

.qx-ai {
  background: var(--qx-white);
  padding-bottom: 48px;
}

.qx-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.qx-ai-card {
  background: var(--qx-surface);
  border: 1px solid var(--qx-rule);
  border-radius: 12px;
  padding: 26px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.qx-ai-card:hover {
  border-color: var(--qx-accent);
}

.qx-ai-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  background: var(--qx-accent-pale);
  color: var(--qx-accent);
}

.qx-ai-card-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--qx-ink);
  margin-bottom: 5px;
}

.qx-ai-card-desc {
  font-size: 12.5px;
  color: var(--qx-muted);
  line-height: 1.6;
}

.qx-ai-tier {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  background: var(--qx-accent-pale);
  color: var(--qx-accent-hover);
}

@media (max-width: 767px) {
  .qx-ai-grid {
    grid-template-columns: 1fr;
  }
}

.ai-panel {
  background: var(--qx-accent-pale);
  border-radius: 16px;
  padding: 40px;
  margin-top: 32px;
}

.ai-panel h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.ai-panel .ai-lede {
  font-size: 16px;
  font-weight: 600;
  color: var(--qx-ink);
  margin-bottom: 16px;
}

.ai-panel p {
  font-size: 15px;
  color: var(--qx-ink-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.ai-panel ul,
.qx-list {
  margin: 0;
  padding-left: 20px;
}

.ai-panel li,
.qx-list li {
  font-size: 14px;
  color: var(--qx-ink-mid);
  line-height: 1.9;
}

.ai-subhead {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--qx-accent);
  margin-top: 20px;
  margin-bottom: 8px;
  display: block;
}


/* ---------- Waitlist ---------- */

.qx-waitlist {
  background: var(--qx-white);
  padding-top: 48px;
}

.qx-waitlist .container {
  max-width: 760px;
}

.qx-waitlist p {
  font-size: 15px;
  color: var(--qx-ink-mid);
  line-height: 1.8;
  margin-top: 12px;
}

.qx-native-form {
  margin-top: 32px;
  background: var(--qx-surface);
  border: 1px solid var(--qx-rule);
  border-radius: 12px;
  padding: 32px;
}

.qx-form-section {
  border: none;
  padding: 0;
  margin: 0 0 32px;
}

.qx-form-section:last-of-type {
  margin-bottom: 0;
}

.qx-form-section legend {
  font-family: var(--qx-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--qx-ink);
  padding: 0;
  margin-bottom: 16px;
}

.qx-form-field {
  margin-bottom: 18px;
}

.qx-form-field:last-child {
  margin-bottom: 0;
}

.qx-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--qx-ink-mid);
  margin-bottom: 6px;
  line-height: 1.4;
}

.qx-form-field select,
.qx-form-field input,
.qx-form-field textarea {
  width: 100%;
  font-family: var(--qx-sans);
  font-size: 14px;
  color: var(--qx-ink);
  background: var(--qx-white);
  border: 1px solid var(--qx-rule);
  border-radius: 8px;
  padding: 11px 14px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.qx-form-field select:focus,
.qx-form-field input:focus,
.qx-form-field textarea:focus {
  outline: none;
  border-color: var(--qx-accent);
  box-shadow: 0 0 0 3px var(--qx-accent-pale);
}

.qx-form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.qx-form-submit {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  text-align: center;
  margin-top: 8px;
}

.qx-form-status {
  margin-top: 16px;
  font-size: 13px;
  min-height: 18px;
}

.qx-form-status.is-success {
  color: #16a34a;
}

.qx-form-status.is-error {
  color: #dc2626;
}

.qx-form-thanks {
  margin-top: 32px;
  background: var(--qx-surface);
  border: 1px solid var(--qx-rule);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.qx-form-thanks h3 {
  font-family: var(--qx-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--qx-ink);
  margin-bottom: 8px;
}

.qx-form-thanks p {
  color: var(--qx-ink-mid);
  margin-top: 0;
}

.qx-waitlist-footnote {
  font-size: 13px;
  color: var(--qx-muted);
  margin-top: 16px;
}

/* ---------- Bottom CTA ---------- */

.qx-bottom-cta {
  background: var(--qx-accent);
  padding: 72px 0;
  text-align: center;
}

.qx-bottom-cta h2 {
  font-size: clamp(32px, 4.6vw, 48px);
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.05;
}

.qx-bottom-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.qx-bottom-cta-btn {
  display: inline-block;
  background: var(--qx-navy);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.2s;
}

.qx-bottom-cta-btn:hover {
  background: var(--qx-navy2);
}

.qx-bottom-cta-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Footer ---------- */

.qx-footer {
  background: var(--qx-navy);
  padding: 28px 0;
}

.qx-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.qx-footer-wordmark {
  color: #ffffff;
}

.qx-footer-note {
  font-size: 12px;
  color: var(--qx-navy-faint);
}
