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

:root {
  --color-primary: #1a365d;
  --color-primary-dark: #0f2744;
  --color-secondary: #c53030;
  --color-accent: #e53e3e;
  --color-gold: #d69e2e;
  --color-light: #f7fafc;
  --color-white: #ffffff;
  --color-text: #2d3748;
  --color-text-light: #718096;
  --color-border: #e2e8f0;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.625rem; }

p { margin-bottom: 1rem; }

/* Header */
.header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  flex-wrap: wrap;
}

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

.logo svg {
  width: 36px;
  height: 36px;
}

/* Navigation */
.nav {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0;
  padding-top: 1rem;
}

.nav.active {
  display: flex;
}

.nav a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--color-secondary);
}

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

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--color-white);
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-graphic {
  max-width: 280px;
  margin: 0 auto 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--color-light);
}

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

.btn-outline:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* Sections */
.section {
  padding: 4rem 0;
}

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

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

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  flex: 1 1 100%;
  transition: all var(--transition);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 1rem 0;
}

/* Feature Blocks */
.feature-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-content {
  flex: 1;
}

.feature-graphic {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-graphic svg {
  max-width: 300px;
}

/* Stats Section */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.stat-item {
  text-align: center;
  flex: 1 1 140px;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.section-dark .stat-number {
  color: var(--color-gold);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.section-dark .stat-label {
  color: rgba(255,255,255,0.8);
}

/* Testimonials */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.testimonial {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  flex: 1 1 100%;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--color-secondary);
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

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

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

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

.faq-question:hover {
  color: var(--color-secondary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--color-text-light);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Process Steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

/* Icon List */
.icon-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.icon-list-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.icon-list-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-secondary);
}

/* Contact Info */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-card {
  flex: 1 1 100%;
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-secondary);
}

/* Footer */
.footer {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col {
  flex: 1 1 100%;
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  padding: 0.375rem 0;
  color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 0.75rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 1.25rem;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  font-size: 0.9rem;
}

.cookie-text a {
  color: var(--color-gold);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-weight: 600;
  transition: all var(--transition);
}

.cookie-btn-accept {
  background: var(--color-secondary);
  color: var(--color-white);
}

.cookie-btn-accept:hover {
  background: var(--color-accent);
}

.cookie-btn-settings {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--color-white);
}

.cookie-btn-settings:hover {
  background: rgba(255,255,255,0.1);
}

.cookie-btn-reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
}

.cookie-btn-reject:hover {
  color: var(--color-white);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.active {
  display: flex;
}

.cookie-modal-content {
  background: var(--color-white);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cookie-modal-header h3 {
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.cookie-modal-close svg {
  width: 24px;
  height: 24px;
}

.cookie-option {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cookie-option:last-of-type {
  border-bottom: none;
}

.cookie-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-option-header h4 {
  margin: 0;
  font-size: 1rem;
}

.cookie-option p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0;
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-border);
  border-radius: 26px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--color-white);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle input:checked + .toggle-slider {
  background: var(--color-secondary);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.toggle input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Highlight Panel */
.highlight-panel {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
  color: var(--color-white);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
}

.highlight-panel h2,
.highlight-panel h3 {
  color: var(--color-white);
}

/* Comparison Table */
.comparison-wrapper {
  overflow-x: auto;
}

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

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

.comparison-table th {
  background: var(--color-light);
  font-weight: 600;
}

.comparison-table tr:hover {
  background: var(--color-light);
}

.check-icon {
  color: #38a169;
}

/* Quote Block */
.quote-block {
  background: var(--color-light);
  border-left: 4px solid var(--color-secondary);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
}

.quote-block p {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.quote-block cite {
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary);
}

/* List with Icons */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check-list svg {
  width: 20px;
  height: 20px;
  color: #38a169;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Thank You Page */
.thank-you {
  text-align: center;
  padding: 6rem 0;
}

.thank-you-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Industries Grid */
.industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.industry-tag {
  background: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.industry-tag svg {
  width: 18px;
  height: 18px;
  color: var(--color-secondary);
}

/* Milestones */
.milestones {
  position: relative;
  padding-left: 2rem;
}

.milestones::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.milestone {
  position: relative;
  margin-bottom: 2rem;
}

.milestone::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--color-secondary);
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.milestone-year {
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.25rem;
}

/* Responsive Styles */
@media (min-width: 640px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .hero h1 {
    font-size: 2.75rem;
  }

  .card {
    flex: 1 1 calc(50% - 0.75rem);
  }

  .testimonial {
    flex: 1 1 calc(50% - 0.75rem);
  }

  .footer-col {
    flex: 1 1 calc(50% - 1rem);
  }

  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .contact-card {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (min-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .nav {
    display: flex;
    width: auto;
    flex-direction: row;
    gap: 2rem;
    padding-top: 0;
  }

  .nav a {
    padding: 0;
    border-bottom: none;
  }

  .menu-toggle {
    display: none;
  }

  .feature-row {
    flex-direction: row;
    align-items: center;
  }

  .feature-row.reverse {
    flex-direction: row-reverse;
  }

  .hero {
    padding: 5rem 0;
  }

  .hero-graphic {
    max-width: 350px;
  }
}

@media (min-width: 1024px) {
  h1 { font-size: 3rem; }

  .hero h1 {
    font-size: 3.25rem;
  }

  .section {
    padding: 5rem 0;
  }

  .card {
    flex: 1 1 calc(33.333% - 1rem);
  }

  .footer-col {
    flex: 1;
  }

  .process-steps {
    flex-direction: row;
  }

  .process-step {
    flex: 1;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .stat-item {
    flex: 1;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Focus Styles */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1rem;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

/* Divider */
.section-divider {
  width: 100%;
  height: 60px;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
}

.badge-gold {
  background: var(--color-gold);
  color: var(--color-primary);
}