/* Role Copilot – matches dashboard theme (orange accent, dark base). Mobile-friendly. */
:root {
  --bg: #0b1120;
  --bg-card: #111a31;
  --bg-elevated: #15203a;
  --text: #f8faff;
  --text-muted: #a9b3d0;
  --accent: #ff8a4c;
  --accent-hover: #ffa16e;
  --accent-soft: rgba(255, 138, 76, 0.22);
  --accent-secondary: #8d7bff;
  --cta-bg: linear-gradient(135deg, #d86835, #ff8a4c);
  --cta-text: #fff;
  --gradient-start: #090f1e;
  --gradient-mid: #101a33;
  --gradient-end: #090f1e;
  --hero-glow: rgba(255, 138, 76, 0.22);
  --grid-line: rgba(141, 123, 255, 0.1);
  --success: #22c55e;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --radius-lg: 24px;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --space: 1rem;
  --container: min(100% - 2rem, 1100px);
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 15% -10%, rgba(141, 123, 255, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% -5%, rgba(255, 138, 76, 0.2) 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  padding-left: var(--safe-top);
  padding-right: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.45;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}
.animate-in.visible {
  opacity: 1;
}

.hero .badge { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero .lead { animation-delay: 0.3s; }
.hero .cta-row { animation-delay: 0.4s; }
.section .section-title { animation-delay: 0.1s; }
.section .section-subtitle { animation-delay: 0.15s; }
.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.3s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }
.feature-card:nth-child(4) { animation-delay: 0.5s; }
.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }

/* Layout */
.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space);
}

/* Header – sticky, mobile-friendly touch targets */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 26, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  height: auto;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .site-header .container { min-height: 78px; }
}

.logo {
  color: var(--text);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 100%;
  overflow: visible;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo-svg {
  width: min(46vw, 250px);
  min-width: 140px;
  max-width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.footer-logo-svg {
  width: min(42vw, 210px);
  min-width: 140px;
}
@media (min-width: 768px) {
  .logo-svg {
    width: min(26vw, 250px);
    min-width: 170px;
  }
  .footer-logo-svg {
    width: min(18vw, 210px);
    min-width: 160px;
  }
}

.nav-desktop {
  display: none;
}
.nav-desktop a {
  color: var(--text-muted);
  margin-left: 1.8rem;
  padding: 0.65rem 0;
  font-size: 1.03rem;
  font-weight: 500;
}
.nav-desktop a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.7rem;
  min-height: 52px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(216, 104, 53, 0.36);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e37540, #ff9d67);
  color: var(--cta-text);
  box-shadow: 0 14px 36px rgba(227, 117, 64, 0.46);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text); }

.menu-toggle {
  background: none;
  border: none;
  color: var(--text);
  padding: 0.75rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: min(280px, 85vw);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #0d152b;
  border-left: 1px solid var(--border);
  padding: 5rem 1.25rem 1.5rem;
  padding-top: calc(5rem + var(--safe-top));
  padding-bottom: calc(1.5rem + var(--safe-bottom));
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 99;
  overflow-y: auto;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-mobile a:hover { color: var(--accent); text-decoration: none; }
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 98;
}
.overlay.open { opacity: 1; visibility: visible; }

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav-desktop { display: flex; align-items: center; }
}

/* Hero – gradient with orange glow */
.hero {
  padding: 3.8rem 0 5.4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding: 6.2rem 0 7rem; }
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 95% 78% at 50% 8%, var(--hero-glow) 0%, rgba(141, 123, 255, 0.08) 34%, transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(141, 123, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 123, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 25%, rgba(0, 0, 0, 0.9), transparent 80%);
}
.hero .container { position: relative; z-index: 1; }
.hero .badge {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 138, 76, 0.38);
}
.hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 5rem);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-inline: auto;
}
.hero .lead {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2.4rem;
}
.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero .cta-row .btn { min-width: 180px; }

/* Section */
.section {
  padding: 3.5rem 0;
}
@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 3rem;
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
}

/* Feature grid – responsive */
.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
@media (min-width: 768px) {
  .feature-card { padding: 2.1rem; }
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
  transform: translateY(-4px);
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.35rem; margin-bottom: 0.55rem; }
.feature-card p { color: var(--text-muted); font-size: 1.03rem; }

/* Audience */
.audience-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 40%, var(--bg) 100%);
}
.audience-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .audience-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.audience-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s;
}
@media (min-width: 768px) {
  .audience-card { padding: 2rem; }
}
.audience-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.audience-card h3 { margin-bottom: 0.6rem; font-size: 1.35rem; }
.audience-card p { color: var(--text-muted); font-size: 1.04rem; }

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
}
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.benefit-item {
  padding: 1.5rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.benefit-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
  transform: translateY(-2px);
}
.benefit-item strong {
  display: block;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.benefit-item span { font-size: 0.94rem; color: var(--text-muted); }

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}
@media (min-width: 640px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.pricing-below-grid {
  max-width: 1100px;
  margin: 1.25rem auto 0;
}

.pricing-or {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
}
.pricing-or::before,
.pricing-or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}
.pricing-or span {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-free-row {
  background: linear-gradient(160deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.pricing-free-row:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
@media (min-width: 768px) {
  .pricing-free-row {
    padding: 1.75rem 2rem;
    grid-template-columns: 1fr auto;
    gap: 1.75rem;
    align-items: center;
  }
}

.pricing-free-row__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}
.pricing-free-row__title h3 {
  font-size: 1.65rem;
  margin-bottom: 0;
}
.pricing-free-row__title .price {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0;
}
.pricing-free-row__title .price span {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-free-row__desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-top: 0.35rem;
}

.pricing-free-row__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.pricing-free-row__list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 1.03rem;
}
.pricing-free-row__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.pricing-free-row__cta .btn {
  width: 100%;
  min-height: 44px;
}
@media (min-width: 768px) {
  .pricing-free-row__cta .btn {
    width: auto;
    min-width: 220px;
  }
}

.pricing-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
@media (min-width: 768px) {
  .pricing-card { padding: 2rem; }
}
.pricing-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}
.pricing-card .tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.pricing-card h3 { font-size: 1.65rem; margin-bottom: 0.65rem; }
.pricing-card .price { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.3rem; }
.pricing-card .price span { font-size: 1.1rem; font-weight: 500; color: var(--text-muted); }
.pricing-card ul {
  list-style: none;
  margin: 1.5rem 0;
  flex: 1;
}
.pricing-card li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 1.03rem;
}
.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.pricing-card .btn { width: 100%; margin-top: auto; min-height: 44px; }

/* CTA block */
.cta-block {
  text-align: center;
  padding: 3.5rem 1.8rem;
  background: linear-gradient(135deg, rgba(255, 138, 76, 0.19) 0%, rgba(141, 123, 255, 0.16) 52%, var(--bg-card) 100%);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  border: 1px solid rgba(255, 138, 76, 0.34);
  box-shadow: 0 0 50px rgba(141, 123, 255, 0.13);
}
@media (min-width: 768px) {
  .cta-block { padding: 5rem 2.2rem; }
}
.cta-block h2 { margin-bottom: 0.85rem; font-size: clamp(2rem, 3.8vw, 3rem); }
.cta-block p { color: var(--text-muted); margin-bottom: 1.8rem; font-size: 1.13rem; }
.cta-block .btn { min-width: 160px; }

/* Video section – hidden by default (class .video-section hidden in HTML) */
.video-section {
  display: none;
}
.video-section .video-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-section .video-placeholder.hidden { display: none; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item dt { margin-bottom: 0.35rem; }
.faq-item dd { margin: 0; }
.faq-item h3 { font-size: 1.24rem; margin-bottom: 0.55rem; }
.faq-item p { color: var(--text-muted); font-size: 1.03rem; }

.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;
}

/* Steps */
.steps { max-width: 560px; margin: 0 auto; }
.step {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.step h3 { font-size: 1.28rem; margin-bottom: 0.42rem; }
.step p { color: var(--text-muted); font-size: 1.03rem; }

/* Footer – support, social, legal, Genprosys */
.site-footer {
  padding: 2rem 0;
  padding-bottom: calc(2rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  text-align: left;
  align-items: start;
}
@media (min-width: 768px) {
  .site-footer .container {
    gap: 1.25rem 2rem;
  }
}
@media (min-width: 900px) {
  .site-footer .container {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}
.site-footer .footer-brand {
  grid-column: 1 / -1;
}
@media (min-width: 900px) {
  .site-footer .footer-brand {
    grid-column: auto;
  }
}
.site-footer .logo { font-size: 1rem; }
.site-footer .footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.site-footer .footer-support {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  grid-column: 1 / 2;
}
.site-footer .footer-support a {
  color: var(--text-muted);
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer .footer-support a:hover { color: var(--accent); }
.site-footer .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-start;
}
.site-footer .footer-social a {
  color: var(--text-muted);
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer .footer-social a:hover { color: var(--accent); }
.site-footer .footer-legal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  justify-items: start;
  font-size: 0.85rem;
  grid-column: 2 / 3;
}
@media (min-width: 900px) {
  .site-footer .footer-support {
    grid-column: 2 / 3;
  }
  .site-footer .footer-legal {
    grid-column: 3 / 4;
  }
}
.site-footer .footer-legal a {
  color: var(--text-muted);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.site-footer .footer-legal a:hover { color: var(--accent); }
.site-footer .footer-genprosys {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
.site-footer .footer-genprosys a { color: var(--accent); }
.site-footer .footer-genprosys a:hover { color: var(--accent-hover); }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
