*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #0a0a0f;
  color: #e2e8f0;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Nav ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
nav .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-size: 1.5rem; font-weight: 800; background: linear-gradient(135deg,#818cf8,#c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 2rem; font-weight: 500; }
.nav-links a:hover { color: #a78bfa; }
.nav-cta {
  background: linear-gradient(135deg,#6366f1,#a855f7);
  color: #fff; padding: .6rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .9rem; transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,.4); }
.mobile-btn { display: none; background: none; border: none; color: #e2e8f0; font-size: 1.6rem; cursor: pointer; }

/* ---- Hero ---- */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,.2) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero h1 span { background: linear-gradient(135deg,#818cf8,#c084fc,#f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg,#6366f1,#a855f7);
  color: #fff; padding: .85rem 2rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(99,102,241,.4); }
.btn-secondary {
  background: transparent; color: #e2e8f0; padding: .85rem 2rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; border: 1px solid rgba(255,255,255,.15); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: #a78bfa; background: rgba(167,139,250,.08); }
.hero-stats {
  display: flex; justify-content: center; gap: 3rem; margin-top: 3rem; flex-wrap: wrap;
}
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero-stats span { font-size: .9rem; color: #64748b; }

/* ---- Features ---- */
.section { padding: 80px 0; }
.section-label {
  display: inline-block; font-size: .85rem; font-weight: 600; color: #a78bfa;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: .5rem;
}
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: .75rem; }
.section-sub { color: #94a3b8; max-width: 550px; margin-bottom: 3rem; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem;
}
.feature-card {
  background: linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 2rem; transition: transform .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(167,139,250,.3); }
.feature-card .icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card p { font-size: .92rem; color: #94a3b8; }

/* ---- Pricing ---- */
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: 2.5rem; }
.pricing-toggle span { font-weight: 500; font-size: .95rem; color: #94a3b8; }
.pricing-toggle span.active { color: #fff; }
.toggle-track {
  width: 50px; height: 28px; background: rgba(255,255,255,.1); border-radius: 999px;
  position: relative; cursor: pointer; transition: background .3s;
}
.toggle-track.active { background: linear-gradient(135deg,#6366f1,#a855f7); }
.toggle-knob {
  width: 22px; height: 22px; background: #fff; border-radius: 50%;
  position: absolute; top: 3px; left: 3px; transition: transform .3s;
}
.toggle-track.active .toggle-knob { transform: translateX(22px); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; align-items: start; }
.plan-card {
  background: linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 2.5rem 2rem;
  transition: transform .25s, border-color .25s; position: relative;
}
.plan-card:hover { transform: translateY(-6px); }
.plan-card.highlight {
  border-color: #a78bfa; background: linear-gradient(135deg,rgba(167,139,250,.1),rgba(99,102,241,.05));
}
.plan-card .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg,#6366f1,#a855f7); color: #fff;
  padding: .25rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
}
.plan-card h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.plan-card .price { font-size: 2.5rem; font-weight: 800; margin: .75rem 0 .25rem; }
.plan-card .price span { font-size: 1rem; font-weight: 400; color: #64748b; }
.plan-card .desc { color: #94a3b8; font-size: .92rem; margin-bottom: 1.5rem; }
.plan-card ul { list-style: none; margin-bottom: 1.5rem; }
.plan-card ul li { padding: .4rem 0; font-size: .92rem; }
.plan-card ul li::before { content: '✓ '; color: #a78bfa; font-weight: 700; }
.plan-card .btn-plan {
  width: 100%; padding: .75rem; border-radius: 12px; border: none;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  background: rgba(255,255,255,.06); color: #e2e8f0; transition: background .2s;
}
.plan-card .btn-plan:hover { background: rgba(255,255,255,.12); }
.plan-card.highlight .btn-plan {
  background: linear-gradient(135deg,#6366f1,#a855f7); color: #fff;
}
.plan-card.highlight .btn-plan:hover { box-shadow: 0 8px 24px rgba(99,102,241,.4); }

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,.06); padding: 1.25rem 0;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; cursor: pointer; user-select: none;
}
.faq-q svg { transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  overflow: hidden; max-height: 0; transition: max-height .35s ease, padding .35s;
  color: #94a3b8; font-size: .92rem;
}
.faq-item.open .faq-a { max-height: 200px; padding-top: .75rem; }

/* ---- Contact ---- */
.contact-form {
  max-width: 500px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: .85rem 1rem; color: #e2e8f0;
  font-family: inherit; font-size: .95rem; outline: none; transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: #a78bfa; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.newsletter-box {
  max-width: 420px; margin: 0 auto;
  display: flex; gap: .5rem;
}
.newsletter-box input {
  flex: 1;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: .75rem 1rem; color: #e2e8f0;
  font-family: inherit; font-size: .92rem; outline: none;
}
.newsletter-box input:focus { border-color: #a78bfa; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2rem 0; text-align: center; color: #64748b; font-size: .9rem;
}

/* ---- Animations ---- */
[x-cloak] { display: none !important; }
.fade-in { animation: fadeIn .6s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Products (multi-SaaS) ---- */
.products-section {
  background: radial-gradient(ellipse at 50% 100%, rgba(99,102,241,.08) 0%, transparent 60%);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: transform .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167,139,250,.3);
}
.product-card .product-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: .5rem;
}
.product-card p {
  font-size: .92rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}
.product-card .product-tag {
  display: inline-block;
  background: rgba(167,139,250,.15);
  color: #a78bfa;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 999px;
}
.product-card .product-link {
  display: inline-block;
  margin-top: .75rem;
  color: #818cf8;
  font-weight: 600;
  font-size: .9rem;
  transition: color .2s;
}
.product-card .product-link:hover {
  color: #a78bfa;
}

/* ---- Workflow ---- */
.workflow-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 2rem;
  counter-reset: step;
}
.workflow-step {
  text-align: center; position: relative; padding: 1.5rem 1rem;
}
.workflow-step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(168,85,247,.15));
  border: 1px solid rgba(167,139,250,.3);
  font-size: 1.2rem; font-weight: 800; color: #a78bfa; margin-bottom: 1rem;
}
.workflow-step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.workflow-step p { font-size: .88rem; color: #94a3b8; }

/* ---- Modules Categorized ---- */
.modules-categories {
  display: flex; flex-direction: column; gap: 2.5rem;
}
.module-category {
  background: linear-gradient(135deg,rgba(255,255,255,.02),rgba(255,255,255,.005));
  border: 1px solid rgba(255,255,255,.04); border-radius: 20px;
  padding: 2rem; position: relative; overflow: hidden;
}
.module-category::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,transparent,rgba(167,139,250,.3),transparent);
}
.cat-header {
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem;
}
.cat-header .cat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg,#6366f1,#a855f7);
}
.cat-header h3 {
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: #a78bfa;
}
.cat-header .cat-count {
  margin-left: auto; font-size: .75rem; color: #475569;
  background: rgba(255,255,255,.04); padding: .2rem .6rem; border-radius: 999px;
}
.cat-modules {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.mod-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.04);
  border-radius: 14px; padding: 1.25rem; transition: transform .2s, border-color .25s, background .25s;
}
.mod-card:hover {
  transform: translateY(-3px); border-color: rgba(167,139,250,.2);
  background: rgba(255,255,255,.035);
}
.mod-card .mod-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,rgba(99,102,241,.12),rgba(168,85,247,.08));
  border: 1px solid rgba(167,139,250,.15); border-radius: 12px;
  font-size: 1.3rem;
}
.mod-card .mod-body { flex: 1; min-width: 0; }
.mod-card .mod-body h4 {
  font-size: .95rem; font-weight: 600; margin-bottom: .2rem; color: #e2e8f0;
}
.mod-card .mod-body p {
  font-size: .82rem; color: #64748b; line-height: 1.5; margin: 0;
}
.mod-card .mod-meta {
  display: flex; align-items: center; gap: .5rem; margin-top: .5rem;
}
.mod-card .mod-badge {
  font-size: .7rem; font-weight: 600; color: #a78bfa;
  background: rgba(167,139,250,.1); padding: .15rem .5rem; border-radius: 999px;
}
.mod-card .mod-count {
  font-size: .7rem; color: #475569;
}

/* ---- Integrations Bar ---- */
.integrations-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 2rem;
}
.integrations-bar .int-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px; padding: .5rem 1.2rem; font-size: .88rem; font-weight: 500;
  color: #cbd5e1; transition: border-color .2s;
}
.integrations-bar .int-chip:hover { border-color: rgba(167,139,250,.3); }
.integrations-bar .int-chip span { font-size: 1.1rem; }

/* ---- Trust Section ---- */
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.5rem;
}
.trust-card {
  background: linear-gradient(135deg,rgba(255,255,255,.03),rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.05); border-radius: 16px;
  padding: 1.8rem; text-align: center;
}
.trust-card .t-icon { font-size: 2.2rem; margin-bottom: .8rem; display: block; }
.trust-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.trust-card p { font-size: .88rem; color: #94a3b8; }

/* ---- JobGroup ---- */
.jobgroup-section {
  background: radial-gradient(ellipse at 90% 50%, rgba(168,85,247,.12) 0%, transparent 52%);
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.jobgroup-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.jobgroup-layout .section-sub { margin-bottom: 0; }
.jobgroup-actions { justify-content: flex-start; margin-top: 2rem; }
.service-list { display: grid; gap: .75rem; }
.service-list article {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 14px;
}
.service-list article > span { color: #a78bfa; font-size: .8rem; font-weight: 800; letter-spacing: .08em; padding-top: .15rem; }
.service-list h3 { font-size: 1rem; margin-bottom: .2rem; }
.service-list p { color: #94a3b8; font-size: .88rem; }

/* ---- Footer Expanded ---- */
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem;
  text-align: left; margin-bottom: 2rem;
}
.footer-brand .logo { font-size: 1.3rem; margin-bottom: .75rem; display: block; }
.footer-brand p { color: #64748b; font-size: .88rem; max-width: 280px; }
.footer-col h4 { font-size: .9rem; font-weight: 600; margin-bottom: .75rem; color: #cbd5e1; }
.footer-col a { display: block; color: #64748b; font-size: .88rem; padding: .2rem 0; transition: color .2s; }
.footer-col a:hover { color: #a78bfa; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.w-full { width: 100%; }
.whitespace-nowrap { white-space: nowrap; }
.nav-link-small { color: #94a3b8; font-size: .9rem; }
.btn-link { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
.display-contents { display: contents; }
.discount-badge { color: #a78bfa; font-size: .8rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.response-msg { text-align: center; margin-top: 1rem; }
.divider { border: none; border-top: 1px solid rgba(255,255,255,.06); margin: 3rem auto; max-width: 300px; }
.section-label-center { display: block; text-align: center; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(10,10,15,.95); padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.06); gap: 1.2rem; align-items: center; }
  .mobile-btn { display: block; }
  .hero-stats { gap: 1.5rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .newsletter-box { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 0 auto; }
  .footer-bottom { justify-content: center; text-align: center; }
  .modules-grid { grid-template-columns: 1fr; }
  .cat-modules { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: 1fr; }
  .jobgroup-layout { grid-template-columns: 1fr; gap: 2rem; }
  .jobgroup-actions { justify-content: center; }
}
