/* ========================================
   SERVSOL SOFTWARE SOLUTIONS — Global Styles
   Bold & Colorful Design System
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  /* Brand colors extracted from logo */
  --charcoal: #3d3d3d;
  --blue: #6AAFE6;
  --blue-deep: #2B7BC4;
  --red: #E85D5D;
  --yellow: #F2C94C;
  --yellow-warm: #E8A817;
  --green: #6FCF97;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #F7F8FA;
  --light-gray: #F0F0F0;
  --mid-gray: #B0B0B0;
  --dark-gray: #666666;
  --near-black: #1a1a1a;
  --dark-bg: #0F1923;
  --dark-bg-lighter: #162230;

  /* Functional */
  --primary: var(--blue-deep);
  --primary-hover: #1E6AAF;
  --accent: var(--yellow);
  --text: var(--charcoal);
  --text-light: var(--dark-gray);
  --text-muted: var(--mid-gray);
  --bg: var(--white);
  --bg-alt: var(--off-white);
  --border: #E0E4EA;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0F1923 0%, #1B3A5C 50%, #2B7BC4 100%);
  --gradient-blue: linear-gradient(135deg, #2B7BC4 0%, #6AAFE6 100%);
  --gradient-warm: linear-gradient(135deg, #F2C94C 0%, #E85D5D 100%);
  --gradient-cool: linear-gradient(135deg, #6AAFE6 0%, #6FCF97 100%);
  --gradient-sunset: linear-gradient(135deg, #E85D5D 0%, #F2C94C 100%);
  --gradient-dark: linear-gradient(135deg, #0F1923 0%, #1B3A5C 100%);
  --gradient-color-bar: linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--red));

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.2s var(--ease);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--near-black);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-light);
  line-height: 1.7;
  max-width: 65ch;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-deep);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-5xl) 0;
}

.section--alt {
  background: var(--bg-alt);
}

/* Dark section */
.section--dark {
  background: var(--gradient-dark);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.7);
}

.section--dark .label {
  color: var(--yellow);
}

/* Blue section */
.section--blue {
  background: var(--gradient-blue);
  color: var(--white);
}

.section--blue h2,
.section--blue h3 {
  color: var(--white);
}

.section--blue p {
  color: rgba(255, 255, 255, 0.85);
}

.section--blue .label {
  color: var(--yellow);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); gap: var(--space-lg); }
.grid--5 .card { padding: var(--space-xl); }

.flex {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.text-center { text-align: center; }

/* Content grid (two-column service layouts) */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.content-grid--top {
  align-items: start;
}

.content-grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-2xl);
  text-align: center;
}

/* --- Color Bar (top accent) --- */
.color-bar {
  height: 4px;
  background: var(--gradient-color-bar);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-blue);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(43, 123, 196, 0.4);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--near-black);
  font-weight: 600;
}

.btn--yellow:hover {
  background: var(--yellow-warm);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(242, 201, 76, 0.5);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn--outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  padding: 0.75rem 0;
}

.btn--ghost:hover {
  opacity: 0.8;
}

.btn--ghost svg,
.btn--primary svg,
.btn--outline svg,
.btn--yellow svg {
  width: 16px;
  height: 16px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 4px; /* space for color bar */
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all var(--transition);
}

.nav--dark {
  background: rgba(15, 25, 35, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav--dark .nav__links a {
  color: rgba(255, 255, 255, 0.7);
}

.nav--dark .nav__links a:hover,
.nav--dark .nav__links a.active {
  color: var(--white);
}

.nav--dark .nav__toggle span {
  background: var(--white);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav__logo img {
  height: 32px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--text-light);
  transition: color var(--transition);
  position: relative;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--near-black);
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-color-bar);
  border-radius: 1px;
}

.nav__cta {
  margin-left: var(--space-md);
}

.nav__links a.nav__cta,
.nav__links a.nav__cta:hover {
  color: var(--white);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero (DARK with gradient) --- */
.hero {
  padding-top: calc(var(--nav-height) + 4px + var(--space-5xl));
  padding-bottom: var(--space-5xl);
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

/* Decorative colored shapes in hero */
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 175, 230, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 201, 76, 0.1) 0%, transparent 70%);
  bottom: -80px;
  left: 10%;
}

.hero__content {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.hero__content .label {
  margin-bottom: var(--space-md);
  color: var(--yellow);
}

.hero__content h1 {
  margin-bottom: var(--space-lg);
  color: var(--white);
}

.hero__content p {
  font-size: 1.125rem;
  margin-bottom: var(--space-2xl);
  color: rgba(255, 255, 255, 0.75);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Decorative floating dots in hero */
.hero__dots {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.hero__dots span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}

.hero__dots span:nth-child(1) { width: 120px; height: 120px; background: var(--blue); top: -180px; left: 0; opacity: 0.15; }
.hero__dots span:nth-child(2) { width: 80px; height: 80px; background: var(--yellow); top: -40px; left: 140px; opacity: 0.2; }
.hero__dots span:nth-child(3) { width: 60px; height: 60px; background: var(--red); top: 80px; left: 30px; opacity: 0.15; }
.hero__dots span:nth-child(4) { width: 100px; height: 100px; background: var(--green); top: 40px; left: 200px; opacity: 0.12; }
.hero__dots span:nth-child(5) { width: 40px; height: 40px; background: var(--yellow); top: -120px; left: 250px; opacity: 0.25; }
.hero__dots span:nth-child(6) { width: 16px; height: 16px; background: var(--white); top: -60px; left: 60px; opacity: 0.3; }
.hero__dots span:nth-child(7) { width: 10px; height: 10px; background: var(--red); top: 130px; left: 170px; opacity: 0.4; }
.hero__dots span:nth-child(8) { width: 14px; height: 14px; background: var(--green); top: -150px; left: 180px; opacity: 0.35; }

/* --- Page Header (for inner pages) --- */
.page-header {
  padding-top: calc(var(--nav-height) + 4px + var(--space-4xl));
  padding-bottom: var(--space-3xl);
  background: var(--gradient-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-color-bar);
}

.page-header .label {
  margin-bottom: var(--space-sm);
  color: var(--yellow);
}

.page-header h1 {
  margin-bottom: var(--space-md);
  color: var(--white);
}

.page-header p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Section Header --- */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header .label {
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  transition: background var(--transition);
}

.card:nth-child(1)::before { background: var(--blue); }
.card:nth-child(2)::before { background: var(--yellow); }
.card:nth-child(3)::before { background: var(--green); }
.card:nth-child(4)::before { background: var(--red); }
.card:nth-child(5)::before { background: linear-gradient(90deg, var(--blue), var(--green)); }

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.grid--3 .card,
.grid--5 .card {
  display: flex;
  flex-direction: column;
}

.grid--5 .card .card__icon {
  height: 48px;
  flex-shrink: 0;
}

.grid--3 .card h3,
.grid--5 .card h3 {
  min-height: 2.8em;
  display: flex;
  align-items: flex-start;
}

.grid--3 .card p,
.grid--5 .card p {
  flex: 1;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}

.card__icon--blue { background: rgba(43, 123, 196, 0.12); color: var(--blue-deep); }
.card__icon--yellow { background: rgba(242, 201, 76, 0.18); color: var(--yellow-warm); }
.card__icon--green { background: rgba(111, 207, 151, 0.15); color: #3DB06F; }
.card__icon--red { background: rgba(232, 93, 93, 0.12); color: var(--red); }

.card h3 {
  margin-bottom: var(--space-md);
}

.card p {
  font-size: 0.9375rem;
}

/* --- Feature List --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--text-light);
}

.feature-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* --- Stats Row --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding: var(--space-3xl) 0;
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-xs);
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Dark stat variant */
.section--dark .stat__number {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section--dark .stat__label {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Pricing Table --- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.pricing-table thead {
  background: var(--white);
  color: var(--near-black);
  border-bottom: 2px solid var(--blue);
}

.section--alt .pricing-table thead,
.section--alt .comparison-table thead {
  background: var(--white);
}

.pricing-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background: rgba(43, 123, 196, 0.04);
}

.pricing-table .price {
  font-weight: 600;
  color: var(--blue-deep);
  white-space: nowrap;
}

.pricing-table .category {
  font-weight: 600;
  color: var(--near-black);
  background: var(--bg-alt);
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table thead {
  background: var(--white);
  color: var(--near-black);
  border-bottom: 2px solid var(--blue);
}

.comparison-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  font-weight: 600;
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.comparison-table td:first-child {
  text-align: left;
  color: var(--text-light);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: rgba(43, 123, 196, 0.04);
}

.comparison-table .plan-name {
  font-size: 1rem;
  font-weight: 600;
}

.comparison-table .plan-price {
  font-size: 0.8125rem;
  opacity: 0.7;
}

.check {
  color: var(--green);
  font-size: 1.25rem;
}

.cross {
  color: var(--mid-gray);
  font-size: 1.25rem;
}

/* --- Pricing Cards --- */
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border);
}

.pricing-card--featured {
  border-color: var(--blue-deep);
  box-shadow: 0 8px 30px rgba(43, 123, 196, 0.15);
}

.pricing-card--featured::before {
  background: var(--gradient-blue);
}

.pricing-card--featured::after {
  content: 'Most Popular';
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--gradient-blue);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 40px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(45deg);
}

.pricing-card__name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.pricing-card__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-deep);
}

.pricing-card__price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xl);
}

/* --- Partner Badge --- */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.partner-badge img {
  height: 40px;
}

/* --- Footer --- */
.footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-color-bar);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin-top: var(--space-md);
  max-width: 300px;
}

.footer__brand img {
  height: 28px;
  margin-bottom: var(--space-sm);
}

.footer h4 {
  color: var(--white);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--yellow);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(43, 123, 196, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Dot Divider (brand element) --- */
.dot-divider {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot-divider span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-divider span:nth-child(1) { background: var(--blue); }
.dot-divider span:nth-child(2) { background: var(--red); }
.dot-divider span:nth-child(3) { background: var(--yellow); }
.dot-divider span:nth-child(4) { background: var(--green); }

/* --- Color Stripe Divider --- */
.color-stripe {
  height: 4px;
  background: var(--gradient-color-bar);
  width: 80px;
  border-radius: 2px;
}

/* --- CTA Section (colorful) --- */
.section--cta {
  background: var(--gradient-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section--cta::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 201, 76, 0.12) 0%, transparent 70%);
  top: -80px;
  right: 10%;
}

.section--cta::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 175, 230, 0.1) 0%, transparent 70%);
  bottom: -60px;
  left: 15%;
}

.section--cta h2 {
  color: var(--white);
}

.section--cta p {
  color: rgba(255, 255, 255, 0.7);
}

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

.animate {
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease) forwards;
}

.animate--delay-1 { animation-delay: 0.1s; }
.animate--delay-2 { animation-delay: 0.2s; }
.animate--delay-3 { animation-delay: 0.3s; }
.animate--delay-4 { animation-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--4,
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .hero__dots { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-lg); }
  .section { padding: var(--space-3xl) 0; }

  /* Mobile nav — remove backdrop-filter so fixed children aren't trapped */
  .nav {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav--dark {
    background: #0F1923;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: calc(var(--nav-height) + 4px);
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-2xl) var(--space-xl);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    z-index: 999;
  }

  .nav__menu.open {
    transform: translateX(0);
  }

  .nav__menu a {
    font-size: 1.125rem;
    color: var(--near-black);
  }

  .nav__cta {
    margin-left: 0;
    margin-top: var(--space-md);
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .grid--5 {
    grid-template-columns: 1fr;
  }

  /* Content grid stacks to single column */
  .content-grid,
  .content-grid--3 {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  /* Reverse order on mobile when sidebar comes first in DOM */
  .content-grid--reverse > :first-child {
    order: 2;
  }
  .content-grid--reverse > :last-child {
    order: 1;
  }

  .stats { grid-template-columns: repeat(2, 1fr); }

  .hero {
    padding-top: calc(var(--nav-height) + 4px + var(--space-3xl));
    padding-bottom: var(--space-3xl);
    min-height: auto;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* Pricing table → stacked cards on mobile */
  .pricing-table {
    border: none;
    background: transparent;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table tbody {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  .pricing-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    padding: var(--space-lg);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    gap: var(--space-xs);
  }

  .pricing-table td {
    border: none;
    padding: 0;
  }

  /* Role name: full width heading */
  .pricing-table td:first-child {
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    color: var(--near-black);
  }

  /* Description: full width below */
  .pricing-table td:nth-child(2) {
    width: 100%;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
  }

  /* Rate: prominent */
  .pricing-table td:last-child {
    width: 100%;
    text-align: left !important;
  }

  .pricing-table .price {
    font-size: 1.125rem;
  }

  .pricing-table tbody tr:hover {
    background: var(--white);
  }

  /* Comparison table → horizontally scrollable */
  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
