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

:root {
  --color-primary: #6B5CE7;
  --color-primary-dark: #5648C9;
  --color-secondary: #A855F7;
  --color-accent: #F59E0B;
  --color-dark: #1F2937;
  --color-gray: #6B7280;
  --color-gray-light: #F3F4F6;
  --color-white: #FFFFFF;
  --color-bg: #FAFAFA;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --radius: 8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--color-dark);
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 0.875rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

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

li {
  margin-bottom: 0.5rem;
}

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

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

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

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

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

/* Navigation */
.nav {
  display: none;
}

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

.nav__link {
  color: var(--color-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--active {
  color: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle__bar {
  width: 100%;
  height: 3px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  padding: 1rem;
}

.mobile-nav--open {
  display: block;
}

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

.mobile-nav__link {
  display: block;
  padding: 0.875rem 1rem;
  color: var(--color-dark);
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.mobile-nav__link:hover,
.mobile-nav__link:focus {
  background: var(--color-gray-light);
}

.mobile-nav__link--active {
  color: var(--color-primary);
  background: rgba(107, 92, 231, 0.1);
}

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

.btn:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

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

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

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

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

.btn--accent:hover {
  background: #D97706;
  color: var(--color-white);
}

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

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.hero p {
  font-size: 1.125rem;
  opacity: 0.95;
}

.hero .btn {
  align-self: flex-start;
}

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

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

.section__header {
  text-align: center;
  margin-bottom: 2rem;
}

.section__subtitle {
  color: var(--color-gray);
  font-size: 1.1rem;
}

/* Cards */
.cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

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

.card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.card__text {
  color: var(--color-gray);
  margin-bottom: 0;
}

/* Services */
.service {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service__title {
  font-size: 1.15rem;
  margin-bottom: 0;
}

.service__price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.service__desc {
  color: var(--color-gray);
  margin-bottom: 0;
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.2;
  position: absolute;
  top: 0;
  left: 1rem;
  line-height: 1;
}

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

.testimonial__author {
  font-weight: 600;
  color: var(--color-dark);
}

.testimonial__role {
  font-size: 0.875rem;
  color: var(--color-gray);
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  color: var(--color-primary);
}

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

.feature__content p {
  color: var(--color-gray);
  margin-bottom: 0;
}

/* About Page */
.about-intro {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-gray-light);
  border-radius: var(--radius);
}

.value__icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  color: var(--color-primary);
}

.value h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.value p {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Contact Page */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-item__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  color: var(--color-primary);
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--color-gray);
  margin-bottom: 0;
}

.contact-item a {
  word-break: break-all;
}

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

.thank-you__icon {
  width: 80px;
  height: 80px;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.thank-you h1 {
  color: var(--color-primary);
}

/* Legal Pages */
.legal {
  padding: 2rem 0 3rem;
}

.legal h1 {
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal p,
.legal li {
  color: var(--color-gray);
}

.legal strong {
  color: var(--color-dark);
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

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

.footer__desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.footer__nav h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.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;
  transition: color var(--transition);
}

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

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer__copy {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  padding: 1.25rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner__text {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-bottom: 0;
}

.cookie-banner__text a {
  text-decoration: underline;
}

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

.cookie-banner__btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 1rem;
}

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

.cookie-modal__content {
  background: var(--color-white);
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--color-gray-light);
}

.cookie-modal__header h2 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.cookie-modal__close {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  transition: color var(--transition);
}

.cookie-modal__close:hover {
  color: var(--color-dark);
}

.cookie-modal__body {
  padding: 1.25rem;
}

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

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

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

.cookie-option__title {
  font-weight: 600;
}

.cookie-option__desc {
  font-size: 0.875rem;
  color: var(--color-gray);
  margin-bottom: 0;
}

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

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

.toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--color-gray-light);
  border-radius: 26px;
  cursor: pointer;
  transition: background var(--transition);
}

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

.toggle input:checked + .toggle__slider {
  background: var(--color-primary);
}

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

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

.toggle input:focus + .toggle__slider {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.cookie-modal__footer {
  padding: 1.25rem;
  border-top: 1px solid var(--color-gray-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-modal__btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
}

.cta h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta p {
  opacity: 0.95;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  z-index: 10001;
  transition: top var(--transition);
}

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

/* Media Queries */
@media (min-width: 576px) {
  .cookie-banner__content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner__text {
    flex: 1;
  }
}

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

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 4rem 0;
  }

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

  .section {
    padding: 4rem 0;
  }

  .cards {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card {
    flex: 1;
    min-width: 280px;
  }

  .testimonials {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .testimonial {
    flex: 1;
    min-width: 280px;
  }

  .features {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .feature {
    flex: 1;
    min-width: 280px;
  }

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-item {
    flex: 1;
    min-width: 250px;
  }

  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .footer__nav {
    min-width: 150px;
  }
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }

  .nav {
    display: block;
  }

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

  .hero__content {
    max-width: 700px;
  }

  .cards {
    gap: 2rem;
  }

  .card {
    min-width: 300px;
  }

  .about-values {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .value {
    flex: 1;
    min-width: 200px;
  }

  .footer__brand {
    flex: 1;
    max-width: 350px;
  }
}
