/* ============================================
   TEAMANALYS — Global Stylesheet
   teamanalys.com
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:     #5C49E0;
  --purple-lt:  #f0edff;
  --purple-mid: #ece8ff;
  --coral:      #FF6B35;
  --coral-lt:   #fff3ef;
  --teal:       #00B4A0;
  --teal-lt:    #e6faf8;
  --dark:       #1a1626;
  --dark2:      #110f1e;
  --gray:       #6b7280;
  --gray-lt:    #f9f8ff;
  --border:     #e8e4f8;
  --white:      #ffffff;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --shadow:     0 4px 24px rgba(92,73,224,0.08);
  --shadow-lg:  0 8px 40px rgba(92,73,224,0.14);
  --font:       'Inter', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* --- Typography --- */
h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -2px; line-height: 1.08; }
h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.15; }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 700; letter-spacing: -0.5px; line-height: 1.3; }
h4 { font-size: 16px; font-weight: 700; }
p  { font-size: 16px; line-height: 1.7; color: var(--gray); }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary   { background: var(--purple); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(92,73,224,0.35); }
.btn-secondary { background: #fff; color: var(--dark); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); }
.btn-white  { background: #fff; color: var(--dark); font-weight: 700; }
.btn-white:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.btn-ghost  { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); }
.btn-coral  { background: var(--coral); color: #fff; }
.btn-coral:hover { box-shadow: 0 6px 20px rgba(255,107,53,0.35); }
.btn-sm     { padding: 9px 18px; font-size: 13px; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--purple);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--purple); background: var(--purple-lt); }
.nav-cta {
  background: var(--purple);
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  margin-left: 8px;
}
.nav-cta:hover { opacity: 0.88; background: var(--purple) !important; box-shadow: 0 4px 14px rgba(92,73,224,0.3); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

/* --- Footer --- */
.site-footer {
  background: var(--dark2);
  padding: 52px 24px 32px;
  color: #fff;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 13px; color: #666; margin-top: 10px; line-height: 1.7; }
.footer-col h5 { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #555; margin-bottom: 16px; }
.footer-col a  { display: block; font-size: 13px; color: #555; text-decoration: none; margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: #999; }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: #444; }
.footer-bottom a { font-size: 12px; color: #444; text-decoration: none; }
.footer-bottom a:hover { color: #888; }

/* --- Marquee --- */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  background: #fff;
}
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}
.marquee-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--purple); flex-shrink: 0; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Stats bar --- */
.stats-bar { background: var(--dark); padding: 52px 24px; }
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-val { font-size: 52px; font-weight: 800; color: #fff; letter-spacing: -3px; line-height: 1; }
.stat-val em { color: var(--purple); font-style: normal; }
.stat-label { font-size: 13px; color: #666; margin-top: 6px; font-weight: 500; letter-spacing: 0.5px; }

/* --- Bento grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bento-card { border-radius: var(--radius-lg); padding: 36px; position: relative; overflow: hidden; }
.bento-num  { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; opacity: 0.5; }
.bento-card h3 { font-size: 22px; margin-bottom: 6px; }
.bento-card .sub { font-size: 13px; margin-bottom: 20px; opacity: 0.7; }
.bento-purple { background: var(--purple); color: #fff; }
.bento-white  { background: #fff; border: 1px solid var(--border); color: var(--dark); }
.bento-white .bento-num { color: #bbb; opacity: 1; }
.bento-white .sub { color: var(--gray); opacity: 1; }
.bento-coral  { background: var(--coral); color: #fff; }

/* --- Chips / Tags --- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip  { padding: 6px 13px; border-radius: 16px; font-size: 12px; font-weight: 600; }
.chip-white  { background: rgba(255,255,255,0.18); color: #fff; }
.chip-purple { background: var(--purple-lt); color: var(--purple); }
.chip-teal   { background: var(--teal-lt); color: var(--teal); }
.chip-coral  { background: var(--coral-lt); color: var(--coral); }
.chip-gray   { background: #f3f4f6; color: #374151; }

/* --- Cert band --- */
.cert-band { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 36px 24px; }
.cert-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.cert-item { display: flex; align-items: center; gap: 12px; }
.cert-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--purple-lt); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--purple); flex-shrink: 0; }
.cert-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--dark); }
.cert-text span   { font-size: 12px; color: var(--gray); }

/* --- BD SELECT band --- */
.bd-band { background: var(--gray-lt); padding: 40px 24px; text-align: center; border-top: 1px solid var(--purple-mid); }
.bd-band p { max-width: 620px; margin: 0 auto; font-size: 15px; color: #555; line-height: 1.8; }
.bd-band a { color: var(--purple); font-weight: 600; text-decoration: none; border-bottom: 1px solid #c4bcf5; }
.bd-band a:hover { border-color: var(--purple); }

/* --- Trust logos --- */
.trust-band { padding: 52px 24px; background: #fff; text-align: center; }
.trust-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #ccc; text-transform: uppercase; margin-bottom: 24px; }
.trust-logos { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.trust-logo  { font-size: 16px; font-weight: 800; letter-spacing: 2px; color: #d1d5db; text-transform: uppercase; }

/* --- CTA Strip --- */
.cta-strip { background: var(--dark); padding: 88px 24px; text-align: center; }
.cta-strip h2 { color: #fff; margin-bottom: 14px; }
.cta-strip h2 em { color: #b8b0ff; font-style: italic; }
.cta-strip p { max-width: 480px; margin: 0 auto 36px; color: #777; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--purple-lt) 0%, #fff5f0 60%, var(--teal-lt) 100%);
  padding: 80px 24px 72px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 18px; }
.page-hero p  { font-size: 18px; max-width: 580px; margin: 0 auto; color: #555; }

/* --- Scroll animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Card grid --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--purple-lt); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p  { font-size: 14px; margin-bottom: 20px; }
.card-price { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.card-price span { font-size: 14px; font-weight: 500; color: var(--gray); }

/* --- Pricing table --- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.price-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--purple); }
.price-card.featured { border-color: var(--purple); background: var(--purple-lt); }
.price-header { margin-bottom: 20px; }
.price-header h3 { margin-bottom: 6px; }
.price-header p  { font-size: 13px; }
.price-amount { font-size: 32px; font-weight: 800; color: var(--dark); line-height: 1; margin-bottom: 4px; }
.price-amount .currency { font-size: 18px; font-weight: 600; vertical-align: top; margin-top: 4px; display: inline-block; }
.price-eur { font-size: 14px; color: var(--gray); margin-bottom: 20px; }
.price-features { list-style: none; margin-bottom: 24px; flex: 1; }
.price-features li { font-size: 13px; color: #4b5563; padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.price-features li::before { content: "✓"; color: var(--purple); font-weight: 700; flex-shrink: 0; }

/* --- Stat callout (Why It Matters page) --- */
.stat-callout {
  background: var(--purple);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.stat-callout .big-num { font-size: 64px; font-weight: 800; letter-spacing: -3px; line-height: 1; }
.stat-callout .big-label { font-size: 15px; margin-top: 8px; opacity: 0.85; }
.stat-callout .big-source { font-size: 11px; margin-top: 8px; opacity: 0.5; letter-spacing: 1px; text-transform: uppercase; }

.stat-callout.coral  { background: var(--coral); }
.stat-callout.dark   { background: var(--dark); }
.stat-callout.teal   { background: var(--teal); }

/* --- Tabs --- */
.tab-bar { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.tab {
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--gray);
  transition: all var(--transition);
}
.tab.active, .tab:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

/* --- Quote / Testimonial --- */
.quote-card {
  background: var(--gray-lt);
  border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 28px 32px;
}
.quote-text { font-size: 18px; font-style: italic; color: var(--dark); line-height: 1.6; margin-bottom: 16px; }
.quote-author { font-size: 13px; font-weight: 600; color: var(--purple); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .site-nav { position: relative; }
  .bento-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr; gap: 32px; }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  h1 { font-size: 36px; letter-spacing: -1.5px; }
  h2 { font-size: 28px; }
  .cert-inner { gap: 28px; }
  .trust-logos { gap: 24px; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { text-align: center; justify-content: center; }
}
