/* Prodesk24 Sales Page – compact, responsive, conversion-focused */

:root {
  --bg: #2d323a;
  --bg-mid: #383d47;
  --bg-alt: #3d434e;
  --bg-card: #454c58;
  --bg-card-hover: #4e5562;
  --text: #e8ebf0;
  --text-muted: #9ba3b4;
  --accent: #2d9d78;
  --accent-hover: #38b88a;
  --accent-soft: rgba(45, 157, 120, 0.2);
  --accent-glow: rgba(45, 157, 120, 0.08);
  --border: #4a5160;
  --warning-bg: rgba(220, 160, 60, 0.1);
  --warning-border: #c49b3d;
  --radius: 8px;
  --radius-lg: 12px;
  --space: clamp(1rem, 3vw, 1.5rem);
  --space-lg: clamp(1.5rem, 5vw, 2.5rem);
  --max-width: 680px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, var(--accent-glow), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(60, 65, 78, 0.5), transparent 45%),
    radial-gradient(ellipse 80% 50% at 0% 80%, rgba(55, 60, 72, 0.4), transparent 45%);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* Particles layer – behind content */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  animation: particle-float linear infinite;
}
.particle--small { width: 4px; height: 4px; }
.particle--medium { width: 6px; height: 6px; }
.particle--large { width: 8px; height: 8px; }
@keyframes particle-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  25% { transform: translate(10px, -15px) scale(1.1); opacity: 0.9; }
  50% { transform: translate(-5px, -25px) scale(0.95); opacity: 0.7; }
  75% { transform: translate(-12px, -10px) scale(1.05); opacity: 0.85; }
}
/* Vary animation duration for natural look */
.particle:nth-child(5n+1) { animation-duration: 18s; }
.particle:nth-child(5n+2) { animation-duration: 22s; }
.particle:nth-child(5n+3) { animation-duration: 25s; }
.particle:nth-child(5n+4) { animation-duration: 20s; }
.particle:nth-child(5n)   { animation-duration: 16s; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  z-index: 60;
  transition: width 0.1s ease-out;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
  z-index: 40;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
.hero.reveal-on-scroll { transition-duration: 0.6s; }

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space);
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: var(--space);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
  position: relative;
  z-index: 1;
}

/* Ensure main content and header sit above particles */
.header,
main {
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(45, 50, 58, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space) var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
}
.header.past-hero .btn-cta-header {
  box-shadow: 0 0 0 1px var(--accent);
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:active {
  transform: translateY(0);
}
.btn-cta-sales {
  animation: cta-pulse 2.5s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 157, 120, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(45, 157, 120, 0); }
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.btn-cta-header {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.btn-large {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  padding: var(--space-lg) 0;
  text-align: center;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 var(--space);
  color: var(--text);
}
.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-desc {
  margin: 0 0 var(--space);
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

/* Hero media placeholder – replace with <img> or <video> when you have assets */
.hero-media {
  margin: var(--space) 0 var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 100%;
}
.hero-media-placeholder {
  aspect-ratio: 16/10;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-media img,
.hero-media video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.hero-media:has(img) .hero-media-placeholder,
.hero-media:has(video) .hero-media-placeholder { display: none; }

/* Sections */
.section {
  padding: var(--space-lg) 0;
}
.section-alt {
  background: var(--bg-alt);
  background-image: radial-gradient(ellipse 100% 60% at 50% 50%, rgba(55, 60, 72, 0.35), transparent 70%);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 400;
  margin: 0 0 var(--space);
  color: var(--text);
}
.section-intro {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pain list */
.pain-list,
.benefits-list,
.audience-list,
.not-for-list,
.pricing-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space);
}
.pain-list li,
.benefits-list li,
.audience-list li,
.not-for-list li,
.pricing-benefits li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
.pain-list li::before,
.benefits-list li::before,
.audience-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.not-for-list li::before {
  background: var(--text-muted);
}
.pain-conclusion {
  font-weight: 600;
  color: var(--text);
  margin: var(--space) 0 0.25rem;
}
.pain-solution {
  margin: 0 0 var(--space);
  color: var(--accent);
}
.benefits-note,
.audience-note {
  margin: 0 0 var(--space);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.benefits-media {
  margin: var(--space) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.benefits-media-placeholder {
  aspect-ratio: 16/9;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.benefits-media img,
.benefits-media video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.benefits-media:has(img) .benefits-media-placeholder,
.benefits-media:has(video) .benefits-media-placeholder { display: none; }

/* Not for */
.section-not-for {
  background: var(--warning-bg);
  border-top: 1px solid var(--warning-border);
  border-bottom: 1px solid var(--warning-border);
}
.section-not-for .section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.badge {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  background: var(--warning-border);
  color: var(--bg);
  border-radius: 4px;
}
.not-for-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing */
.section-pricing {
  padding: var(--space-lg) 0;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}
.pricing-tiers {
  margin: 0 0 0.5rem;
}
.pricing-tier {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.pricing-tier:last-child {
  margin-bottom: 0;
}
.price {
  color: var(--accent);
  font-size: 1.25rem;
}
.pricing-note {
  margin: 0 0 var(--space);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pricing-recovery {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}
.pricing-benefits {
  margin: 0 0 var(--space);
  text-align: left;
  display: inline-block;
}
.pricing-benefits li::before {
  background: var(--accent);
}
.pricing-cta {
  margin: 0 0 var(--space);
  font-weight: 600;
  color: var(--text);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(45, 157, 120, 0.15);
}
.faq-item summary {
  padding: var(--space);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: color 0.2s;
}
.faq-item summary:hover {
  color: var(--accent);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  margin: 0;
  padding: 0 var(--space) var(--space);
  padding-left: var(--space);
  color: var(--text-muted);
  font-size: 0.95rem;
  animation: faq-open 0.25s ease-out;
}
@keyframes faq-open {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* CTA section */
.section-cta {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: var(--space-lg) 0;
  text-align: center;
}
.cta-intro {
  margin: 0 0 var(--space);
  font-size: 1.05rem;
}
.cta-sub {
  margin: var(--space) 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.cta-after {
  margin-top: var(--space-lg);
  text-align: left;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.cta-after h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.cta-after ul {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.cta-no-pressure {
  margin: 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Final note */
.section-final {
  padding: var(--space-lg) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.final-note {
  margin: 0 0 var(--space);
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}
.final-note strong {
  color: var(--text);
}

/* Footer */
.footer {
  padding: var(--space) 0;
  border-top: 1px solid var(--border);
}
.footer-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .btn-cta-header {
    width: 100%;
  }
  .pricing-card {
    padding: var(--space);
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn:hover {
    transform: none;
  }
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
  .btn-cta-sales {
    animation: none;
  }
  .particle {
    animation: none;
    opacity: 0.5;
  }
}
