:root {
  --primary: #000000;
  --primary-foreground: #FFFFFF;
  --secondary: #EC4699;
  --secondary-foreground: #111827;
  --accent: #16A249;
  --accent-foreground: #111827;
  --background: #0F172A;
  --foreground: #F8FAFC;
  --card: #1E293B;
  --card-foreground: #F8FAFC;
  --border: #334155;
  --input: #334155;
  --ring: #000000;
  --muted: #1E293B;
  --muted-foreground: #94A3B8;
  --font-family: 'Inter', sans-serif;
  --radius: 1rem;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  overflow-wrap: break-word;
}

.hidden {
  display: none !important;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

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

a:hover {
  text-decoration: underline;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-bottom: 3px solid var(--primary);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--secondary);
  border-bottom-color: var(--secondary);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--primary);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  text-decoration: none;
}

/* Form Elements */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  font-family: var(--font-family);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Icons */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.icon-md {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

.text-primary {
  color: var(--primary) !important;
}

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

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--background);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
}

.logo-img {
  max-height: 40px;
  width: auto;
}

.hamburger-btn {
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.quantanovae_mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantanovae_mobile-menu-content {
  text-align: center;
}

.quantanovae_mobile-menu-link {
  display: block;
  padding: 1rem;
  font-size: 1.25rem;
  color: var(--foreground);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin: 0.5rem 0;
}

.quantanovae_mobile-menu-link:hover {
  border-bottom-color: var(--primary);
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: var(--background);
  color: var(--foreground);
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-foreground);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--primary-foreground);
}

.hero-cta {
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Sections */
section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.section-header h2 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  color: var(--foreground);
  margin-bottom: 3rem;
}

/* Page Header */
.page-header {
  background: var(--background);
  color: var(--foreground);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* Gallery Preview */
.gallery-preview {
  background: var(--background);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Features */
.features {
  background: var(--background);
}

.feature-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-left-color: var(--secondary);
}

.feature-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.feature-card h3 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--muted-foreground);
}

/* Newsletter */
.newsletter {
  background: var(--background);
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-text h2 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.newsletter-text p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
}

.newsletter-btn {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* Partner Logos */
.partner-logos {
  background: var(--background);
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
}

.logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.partner-icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.logo-placeholder span {
  color: var(--card-foreground);
  font-weight: 500;
}

/* Stats Counter */
.stats-counter {
  background: var(--background);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  color: var(--card-foreground);
  font-weight: 500;
}

/* CTA Section */
.cta {
  background: var(--background);
}

.cta-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

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

.cta-content p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Services Page */
.services-overview {
  background: var(--background);
}

.services-grid {
  display: grid;
  gap: 3rem;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
}

.service-card:nth-child(even) {
  direction: rtl;
}

.service-card:nth-child(even) .service-content {
  direction: ltr;
}

.service-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.service-content h3 {
  color: var(--card-foreground);
  margin: 1rem 0;
}

.service-content p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--card-foreground);
}

.feature-list li:before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .service-card {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  
  .service-card:nth-child(even) {
    direction: ltr;
  }
}

/* Pricing */
.pricing-overview {
  background: var(--background);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--secondary);
  border-left-color: var(--secondary);
  transform: scale(1.05);
}

.pricing-card h3 {
  color: var(--card-foreground);
  margin: 1rem 0;
}

.pricing-description {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--card-foreground);
}

.pricing-features li:before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Process Steps */
.service-process {
  background: var(--background);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.process-step {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-foreground);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.process-step h3 {
  color: var(--card-foreground);
  margin: 1rem 0;
}

.process-step p {
  color: var(--muted-foreground);
}

/* About Page */
.company-story {
  background: var(--background);
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-text h2 {
  color: var(--foreground);
  margin-bottom: 2rem;
}

.story-text p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.about-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--border);
}

@media (max-width: 768px) {
  .story-content {
    grid-template-columns: 1fr;
  }
}

.mission-vision {
  background: var(--background);
}

.mission-card,
.vision-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.mission-card h3,
.vision-card h3 {
  color: var(--card-foreground);
  margin: 1rem 0;
}

.mission-card p,
.vision-card p {
  color: var(--muted-foreground);
}

.values-grid {
  background: var(--background);
}

.value-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.value-card h3 {
  color: var(--card-foreground);
  margin: 1rem 0;
}

.value-card p {
  color: var(--muted-foreground);
}

.expertise-section {
  background: var(--background);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.expertise-item {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.expertise-item h3 {
  color: var(--card-foreground);
  margin: 1rem 0;
}

.expertise-item p {
  color: var(--muted-foreground);
}

.location-info {
  background: var(--background);
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.location-text h2 {
  color: var(--foreground);
  margin-bottom: 2rem;
}

.location-text p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.location-details {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.location-details h3 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.location-details address {
  color: var(--muted-foreground);
  font-style: normal;
  line-height: 1.6;
}

.location-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--border);
}

@media (max-width: 768px) {
  .location-content {
    grid-template-columns: 1fr;
  }
}

/* Contact Page */
.contact-section {
  background: var(--background);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.quantanovae_contact-form-container {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
}

.quantanovae_contact-form-container h2 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.quantanovae_contact-form-container p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-info-card h2 {
  color: var(--card-foreground);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-details h3 {
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.contact-details address {
  color: var(--muted-foreground);
  font-style: normal;
  line-height: 1.6;
}

.map-placeholder {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}

.map-content h3 {
  color: var(--card-foreground);
  margin: 1rem 0;
}

.map-content p {
  color: var(--muted-foreground);
}

.contact-cta {
  background: var(--background);
}

.submit-btn {
  width: 100%;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Success Message */
.success-message {
  background: var(--accent);
  color: var(--accent-foreground);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.success-icon {
  width: 3rem;
  height: 3rem;
  color: var(--accent-foreground);
}

.success-content h3 {
  margin: 0;
  color: var(--accent-foreground);
}

.success-content p {
  margin: 0;
  color: var(--accent-foreground);
}

/* FAQ Page */
.faq-section {
  background: var(--background);
}

.faq-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-intro h2 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.faq-intro p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

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

.faq-question:hover {
  background: var(--muted);
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

.faq-contact {
  background: var(--background);
}

.contact-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-cta h2 {
  color: var(--foreground);
  margin: 1rem 0;
}

.contact-cta p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* Portfolio Page */
.portfolio-intro {
  background: var(--background);
}

.intro-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.intro-content h2 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.intro-content p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.portfolio-grid {
  background: var(--background);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  position: relative;
}

.portfolio-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.project-category {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.project-content p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.project-results {
  display: flex;
  gap: 2rem;
}

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

.result-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.result-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.success-metrics {
  background: var(--background);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.metric-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0 0.5rem;
}

.metric-label {
  font-size: 1.125rem;
  color: var(--card-foreground);
  font-weight: 500;
  margin-bottom: 1rem;
}

.metric-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.testimonials-section {
  background: var(--background);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
}

.testimonial-content p {
  color: var(--muted-foreground);
  font-style: italic;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.testimonial-author h4 {
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
}

.testimonial-author span {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Legal Pages */
.legal-content {
  background: var(--background);
}

.legal-document {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 3rem;
}

.legal-intro {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-intro p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.legal-document h2 {
  color: var(--card-foreground);
  margin: 2rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

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

.legal-document h3 {
  color: var(--card-foreground);
  margin: 1.5rem 0 1rem;
}

.legal-document p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-document ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-document li {
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-document address {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
  font-style: normal;
  color: var(--foreground);
}

.contact-details {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.contact-details p {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.contact-details strong {
  color: var(--foreground);
}

/* Cookie Table */
.cookie-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--muted);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.cookie-table th {
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
}

.cookie-table td {
  color: var(--foreground);
}

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

/* Footer */
.footer {
  background: var(--muted);
  color: var(--foreground);
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--primary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.company-info p,
.contact-info p {
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
}

.legal-links a:hover {
  text-decoration: underline;
}

.copyright {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Cookie Consent */
.quantanovae_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 2px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
}

.quantanovae_cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.quantanovae_cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.quantanovae_cookie-banner-text p {
  color: var(--card-foreground);
  margin: 0;
}

.quantanovae_cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.quantanovae_cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.quantanovae_cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.quantanovae_cookie-modal-content {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  z-index: 1002;
}

.cookie-toggles {
  margin: 2rem 0;
}

.quantanovae_cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.quantanovae_cookie-toggle-row:last-child {
  border-bottom: none;
}

.quantanovae_cookie-toggle-row input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
}

.quantanovae_cookie-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.text-lg {
  font-size: 1.125rem;
}

.text-sm {
  font-size: 0.875rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .quantanovae_cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .quantanovae_cookie-banner-text {
    min-width: auto;
  }
  
  .quantanovae_cookie-modal-actions {
    justify-content: center;
  }
  
  .quantanovae_cookie-toggle-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Animation Classes */
.animate-slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-in {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  section {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
}

/* === BASELINE SAFETY CSS (injected by engine) === */

/* Ensure .hidden works consistently even with ID-specific overrides */
.hidden { display: none !important; }

/* Prevent content overflow breaking layout */
img, video, iframe { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

/* Ensure container has responsive padding */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* Prevent flex/grid children from overflowing */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive grid fallbacks */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Ensure forms don't break layout */
.form-input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  max-width: 100%;
}

/* Success message styling */
.success-message {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 0.5rem;
  color: #065f46;
  text-align: center;
}

/* Stacking context for hero sections — prevents z-index:-1 children from going behind the page */
.hero, .hero-section, .page-header, .cta, .cta-section { isolation: isolate; position: relative; }

/* Desktop nav injected by engine — show on desktop, hide on mobile */
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu .nav-link { text-decoration: none; color: var(--foreground, #1f2937); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-menu .nav-link:hover { color: var(--primary, #2563eb); }
@media (max-width: 768px) {
  .nav-menu { display: none !important; }
}

/* Fixed header body padding safety */
body { min-height: 100vh; }

/* Prevent long words breaking layout */
h1, h2, h3, h4, p, li, td, th { overflow-wrap: break-word; word-wrap: break-word; }

/* === END BASELINE SAFETY CSS === */

/* Cookie banner visibility rules */
#quantanovae_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#quantanovae_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#quantanovae_cookie-modal.hidden { display: none !important; }
.hidden { display: none !important; }
