:root {
  --primary: #1a365d;
  --primary-dark: #0f2442;
  --primary-light: #2d4a7c;
  --accent: #0d9488;
  --accent-dark: #0a7a70;
  --accent-light: #14b8a6;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #f1f5f9;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li { margin-bottom: 0.5rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

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

.section--dark {
  background: var(--primary);
  color: #fff;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.header__logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item {
  position: relative;
  margin: 0;
}

.nav__link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.nav__link:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s;
  list-style: none;
  padding: 0.5rem 0;
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
}

.nav__dropdown a:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

.header__cta {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: transform 0.2s;
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 1rem;
  transform: translateX(100%);
  transition: transform 0.3s;
  overflow-y: auto;
  z-index: 999;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav__list {
  list-style: none;
  padding: 0;
}

.mobile-nav__item {
  border-bottom: 1px solid var(--border);
}

.mobile-nav__link {
  display: block;
  padding: 1rem 0;
  color: var(--text);
  font-weight: 500;
}

.mobile-nav__sub {
  list-style: none;
  padding: 0 0 0.5rem 1rem;
}

.mobile-nav__sub a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

@media (min-width: 1024px) {
  .nav {
    display: block;
  }
  
  .header__cta {
    display: block;
  }
  
  .menu-toggle,
  .mobile-nav {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn--secondary {
  background: var(--primary);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--primary-dark);
  color: #fff;
}

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

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--primary);
}

.btn--white:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect fill='%23ffffff' fill-opacity='0.03' x='10' y='10' width='20' height='20'/%3E%3Crect fill='%23ffffff' fill-opacity='0.03' x='40' y='30' width='15' height='15'/%3E%3Crect fill='%23ffffff' fill-opacity='0.03' x='70' y='20' width='25' height='25'/%3E%3Crect fill='%23ffffff' fill-opacity='0.03' x='20' y='60' width='18' height='18'/%3E%3Crect fill='%23ffffff' fill-opacity='0.03' x='55' y='55' width='22' height='22'/%3E%3C/svg%3E") repeat;
  opacity: 0.5;
}

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

.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0;
  }
}

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
}

.card__title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.card__text {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card__link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stats__item {
  padding: 1rem;
}

.stats__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stats__label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Feature list */
.features {
  display: grid;
  gap: 2rem;
}

.feature {
  display: flex;
  gap: 1rem;
}

.feature__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.feature__content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.feature__content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.breadcrumb__item:not(:last-child)::after {
  content: '/';
  color: var(--text-muted);
}

.breadcrumb__link {
  color: var(--text-light);
}

.breadcrumb__link:hover {
  color: var(--accent);
}

.breadcrumb__current {
  color: var(--text);
}

/* Page header */
.page-header {
  background: var(--bg-alt);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header__subtitle {
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 700px;
}

/* Content */
.content {
  max-width: 800px;
}

.content h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border: none;
}

.content h3 {
  margin-top: 2rem;
}

.content ul,
.content ol {
  margin-bottom: 1.5rem;
}

.content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-style: italic;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.content th,
.content td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.content th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--primary);
}

/* Sidebar */
.layout-sidebar {
  display: grid;
  gap: 2rem;
}

.sidebar {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.sidebar__title {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar__list li {
  margin-bottom: 0.5rem;
}

.sidebar__list a {
  color: var(--text);
  font-size: 0.9rem;
}

@media (min-width: 1024px) {
  .layout-sidebar {
    grid-template-columns: 1fr 300px;
  }
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  color: #fff;
}

.cta-section p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
}

.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq__item.active .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
}

.faq__item.active .faq__answer {
  max-height: 500px;
}

.faq__answer p {
  padding-bottom: 1.5rem;
  color: var(--text-light);
}

/* Comparison table */
.comparison-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.comparison-table table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border);
}

.comparison-table th {
  background: var(--primary);
  color: #fff;
}

.comparison-table tbody tr:nth-child(odd) {
  background: var(--bg-alt);
}

.comparison-table .feature-name {
  text-align: left;
  font-weight: 500;
}

.check {
  color: var(--accent);
  font-weight: bold;
}

.cross {
  color: var(--text-muted);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
}

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

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

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

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  color: rgba(255,255,255,0.6);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Vendor card */
.vendor-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.vendor-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vendor-card__logo {
  width: 60px;
  height: 60px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vendor-card__rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #f59e0b;
  font-weight: 600;
}

.vendor-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-alt);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.vendor-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.vendor-card__features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vendor-card__features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
}

/* Calculator */
.calculator {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.calculator__result {
  background: var(--accent);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 2rem;
}

.calculator__result-value {
  font-size: 3rem;
  font-weight: 700;
}

.calculator__result-label {
  opacity: 0.9;
}

/* Glossary */
.glossary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.glossary-nav a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--text);
}

.glossary-nav a:hover {
  background: var(--accent);
  color: #fff;
}

.glossary-section {
  margin-bottom: 2rem;
}

.glossary-section h3 {
  font-size: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1rem;
}

.glossary-term {
  margin-bottom: 1.5rem;
}

.glossary-term dt {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.glossary-term dd {
  color: var(--text-light);
  margin: 0;
}

/* Industry icons */
.industry-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1rem;
}

/* Text utilities */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-light); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Print */
@media print {
  .header,
  .footer,
  .mobile-nav {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
}
