/* ─────────────────────────────────────────────
   PRODIGY AI — Shared Stylesheet
   ───────────────────────────────────────────── */

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

:root {
  --bg:            #0a0a0f;
  --surface:       #111118;
  --surface2:      #16161f;
  --surface3:      #1c1c28;
  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(255,255,255,0.14);
  --violet:        #7c3aed;
  --violet-light:  #a855f7;
  --violet-glow:   rgba(124,58,237,0.25);
  --violet-subtle: rgba(124,58,237,0.08);
  --accent:        #c084fc;
  --blue:          #129bdb;
  --blue-subtle:   rgba(18,155,219,0.08);
  --green:         #4ade80;
  --text:          #f0eef8;
  --text-muted:    #8b87a8;
  --text-dim:      #4f4b6e;
  --font-display:  'DM Serif Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --radius:        16px;
  --radius-sm:     8px;
  --radius-xs:     6px;
  --nav-h:         68px;
  --max-w:         1200px;
  --transition:    0.2s ease;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.55;
}
img, svg { display: block; }
a { color: inherit; }
h1,h2,h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(40px, 6vw, 80px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
em { font-style: italic; color: var(--accent); }
p { line-height: 1.65; }

/* LAYOUT */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; }
.section--surface { background: var(--surface); }
.section--surface2 { background: var(--surface2); }
.section--gradient { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); }
.section-label { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet-light); margin-bottom: 14px; }
.section-title { margin-bottom: 18px; }
.section-intro { font-size: 18px; color: var(--text-muted); max-width: 560px; line-height: 1.65; }
.section-intro--center { margin: 0 auto; text-align: center; }
.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* NAVBAR */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav__links a { color: var(--text-muted); text-decoration: none; font-size: 15px; transition: color var(--transition); white-space: nowrap; }
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a.active { position: relative; }
.nav__links a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px; background: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* MOBILE MENU */
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: all 0.3s; }
.nav__mobile { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: rgba(10,10,15,0.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 20px 20px 28px; z-index: 199; }
.nav__mobile.open { display: block; }
.nav__mobile ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.nav__mobile ul a { display: block; padding: 12px 8px; color: var(--text-muted); text-decoration: none; font-size: 17px; border-radius: var(--radius-sm); transition: all var(--transition); }
.nav__mobile ul a:hover { color: var(--text); background: var(--violet-subtle); }
.nav__mobile .btn--primary { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-body); font-weight: 500; text-decoration: none; border: none; cursor: pointer; transition: all var(--transition); white-space: nowrap; border-radius: var(--radius-sm); }
.btn--primary { background: linear-gradient(135deg, var(--violet), var(--violet-light)); color: white; font-size: 14px; padding: 10px 20px; }
.btn--primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn--primary-lg { font-size: 16px; padding: 14px 28px; border-radius: 10px; }
.btn--ghost { background: transparent; color: var(--text-muted); font-size: 15px; padding: 10px 20px; border: 1px solid var(--border); }
.btn--ghost:hover { color: var(--text); border-color: var(--border-hover); }
.btn--ghost-sm { font-size: 13px; padding: 6px 12px; border-radius: var(--radius-xs); }
.btn--outline-accent { background: transparent; color: var(--accent); font-size: 15px; padding: 12px 24px; border: 1px solid rgba(192,132,252,0.3); }
.btn--outline-accent:hover { background: rgba(192,132,252,0.08); border-color: rgba(192,132,252,0.5); }

/* BADGE */
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3); border-radius: 100px; padding: 6px 16px; font-size: 13px; color: var(--accent); }
.badge__dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
.tag { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet-light); }

/* CARDS */
.card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 0.3s ease; }
.card:hover { border-color: rgba(124,58,237,0.35); background: rgba(124,58,237,0.04); }
.card--link { text-decoration: none; color: inherit; display: block; position: relative; }
.card--link .card__arrow { position: absolute; bottom: 24px; right: 24px; font-size: 18px; color: var(--text-dim); transition: all 0.3s; }
.card--link:hover .card__arrow { color: var(--accent); transform: translateX(4px); }
.card__icon { width: 48px; height: 48px; border-radius: 10px; background: var(--violet-subtle); border: 1px solid rgba(124,58,237,0.2); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px; flex-shrink: 0; }
.card__icon--blue { background: var(--blue-subtle); border-color: rgba(18,155,219,0.2); }
.card__title { font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.card__desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* GRIDS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 56px; }
.steps::before { content: ''; position: absolute; top: 35px; left: calc(12.5% + 20px); right: calc(12.5% + 20px); height: 1px; background: linear-gradient(90deg, var(--blue), var(--violet), var(--violet-light)); opacity: 0.3; z-index: 0; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 14px; }
.step__num { width: 70px; height: 70px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; position: relative; z-index: 1; transition: all 0.3s; flex-shrink: 0; }
.step:hover .step__num { background: var(--violet); border-color: var(--violet-light); box-shadow: 0 0 30px var(--violet-glow); }
.step__num-inner { font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.step__label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-light); margin-bottom: 10px; }
.step__title { font-family: var(--font-body); font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.step__desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* PILLS */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill { background: var(--surface2); border: 1px solid var(--border); border-radius: 100px; padding: 9px 18px; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: all var(--transition); cursor: default; }
.pill:hover { border-color: rgba(124,58,237,0.4); color: var(--text); background: var(--violet-subtle); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item.open { border-color: rgba(124,58,237,0.25); }
.faq-btn { width: 100%; background: none; border: none; padding: 20px 26px; text-align: left; font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: background var(--transition); }
.faq-btn:hover { background: rgba(255,255,255,0.02); }
.faq-chevron { flex-shrink: 0; width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-muted); transition: all 0.3s; }
.faq-item.open .faq-chevron { background: var(--violet); border-color: var(--violet); color: white; transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-body { max-height: 400px; }
.faq-answer { padding: 18px 26px 22px; font-size: 15px; color: var(--text-muted); line-height: 1.72; border-top: 1px solid var(--border); }

/* CTA STRIP */
.cta-strip { padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-strip::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 700px; height: 400px; background: radial-gradient(ellipse, rgba(124,58,237,0.18) 0%, transparent 65%); pointer-events: none; }
.cta-strip__inner { position: relative; max-width: 680px; margin: 0 auto; }
.cta-strip__title { font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 56px); margin-bottom: 16px; }
.cta-strip__desc { font-size: 18px; color: var(--text-muted); margin-bottom: 36px; line-height: 1.6; }
.cta-strip__actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); margin-bottom: 32px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--text); }

/* PAGE HERO */
.page-hero { padding-top: calc(var(--nav-h) + 80px); padding-bottom: 80px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1000px; height: 500px; background: radial-gradient(ellipse at top, rgba(124,58,237,0.14) 0%, transparent 65%); pointer-events: none; }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 28px; border-right: 1px solid var(--border); text-align: center; }
.stat:last-child { border-right: none; }
.stat__value { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); margin-bottom: 6px; background: linear-gradient(135deg, var(--blue), var(--violet-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat__label { font-size: 14px; color: var(--text-muted); line-height: 1.4; }

/* FEATURE ROWS */
.feature-list { display: flex; flex-direction: column; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.feature-row:last-child { border-bottom: none; }
.feature-row:nth-child(even) .feature-row__content { order: 2; }
.feature-row:nth-child(even) .feature-row__visual { order: 1; border-left: none; border-right: 1px solid var(--border); }
.feature-row__content { padding: 60px 48px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.feature-row__visual { background: var(--surface2); border-left: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 48px; min-height: 280px; }
.feature-row__title { font-family: var(--font-body); font-size: 22px; font-weight: 600; color: var(--text); }
.feature-row__desc { font-size: 16px; color: var(--text-muted); line-height: 1.7; }
.feature-row__bullets { display: flex; flex-direction: column; gap: 9px; }
.feature-row__bullet { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.feature-row__bullet::before { content: '✓'; color: var(--green); font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* COMPARISON TABLE */
.comparison-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.comparison-table thead th { padding: 18px 24px; text-align: left; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: var(--surface2); border-bottom: 1px solid var(--border); color: var(--text-muted); }
.comparison-table thead th.col--highlight { background: rgba(124,58,237,0.12); color: var(--accent); }
.comparison-table tbody tr { border-bottom: 1px solid var(--border); }
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table tbody tr:hover td { background: rgba(255,255,255,0.015); }
.comparison-table td { padding: 15px 24px; font-size: 14px; color: var(--text-muted); background: var(--surface); }
.comparison-table td.col--highlight { background: rgba(124,58,237,0.05); color: var(--text); }
.comparison-table td:first-child { color: var(--text); font-weight: 500; }
.check { color: var(--green); }
.cross { color: #f87171; }

/* HUBSPOT */
.hs-form-wrapper { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }

/* FOOTER */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--border); }
.footer__logo img { height: 30px; width: auto; margin-bottom: 16px; }
.footer__tagline { font-size: 14px; color: var(--text-muted); line-height: 1.65; max-width: 280px; margin-bottom: 20px; }
.footer__weblink { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); text-decoration: none; border: 1px solid var(--border); padding: 7px 14px; border-radius: var(--radius-xs); transition: all var(--transition); }
.footer__weblink:hover { color: var(--accent); border-color: rgba(124,58,237,0.35); background: var(--violet-subtle); }
.footer__weblink-dot { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--violet-light)); flex-shrink: 0; }
.footer__col-title { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer__links a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer__links a:hover { color: var(--text); }
.footer__bottom { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer__copy { font-size: 13px; color: var(--text-dim); }
.footer__madeby { font-size: 13px; color: var(--text-dim); }
.footer__madeby a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer__madeby a:hover { color: var(--accent); }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes arrowPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.45); } 50% { box-shadow: 0 0 0 10px rgba(124,58,237,0); } }
@keyframes fillBar { to { width: var(--fill-to, 94%); } }
.anim-fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.anim-fade-up.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(2) { border-right: none; }
  .stats .stat:nth-child(3) { border-top: 1px solid var(--border); }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row__visual { min-height: 200px; border-left: none !important; border-right: none !important; border-top: 1px solid var(--border); }
  .feature-row:nth-child(even) .feature-row__content { order: 1; }
  .feature-row:nth-child(even) .feature-row__visual { order: 2; }
  .feature-row__content { padding: 36px 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav { padding: 0 20px; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps::before { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .cta-strip__actions { flex-direction: column; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hs-form-wrapper { padding: 24px 16px; }
}
