/* CSS Variables */
:root {
  --primary: #8b5cf6;
  --primary-foreground: #FFFFFF;
  --secondary: #16A249;
  --secondary-foreground: #111827;
  --accent: #2463EB;
  --accent-foreground: #FFFFFF;
  --background: #FFFFFF;
  --foreground: #111827;
  --card: #FFFFFF;
  --card-foreground: #111827;
  --border: #E5E7EB;
  --input: #E5E7EB;
  --ring: #8b5cf6;
  --muted: #F3F4F6;
  --muted-foreground: #6B7280;
  --font-family: 'Open Sans', sans-serif;
  --radius: 0.75rem;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

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

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

/* Utility Classes */
.hidden {
  display: none !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Button Styles */
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.btn-white:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--input);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--background);
  color: var(--foreground);
}

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

/* Success Message */
.success-message {
  background: var(--muted);
  border: 2px solid var(--secondary);
  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-content h3 {
  color: var(--secondary);
  margin: 0;
}

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

/* Icon Styles */
.icon-sm {
  width: 1rem;
  height: 1rem;
}

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

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

.icon-box {
  background: var(--muted);
  border-radius: 50%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
}

/* Section Styles */
.section {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

.section:nth-child(even) {
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

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

/* Top Bar */
.topbar {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

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

.topbar-contact {
  display: flex;
  gap: 2rem;
}

.topbar-contact span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-contact a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.topbar-contact a:hover {
  color: #fff;
}

.topbar-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .topbar-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .topbar-contact {
    gap: 1rem;
  }
}

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

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

.navbar-brand .logo-img {
  height: 2.5rem;
  width: auto;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.motivevjpn_mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

.motivevjpn_mobile-menu {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.mobile-nav-link {
  display: block;
  color: var(--foreground);
  text-decoration: none;
  padding: 0.75rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
  
  .motivevjpn_mobile-menu-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  background: var(--background);
  color: var(--foreground);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

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

.hero-text {
  position: relative;
  z-index: 2;
}

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

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

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

.hero-image {
  position: relative;
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
}

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

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-image {
    clip-path: none;
  }
  
  .hero-actions {
    justify-content: center;
  }
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.25rem;
  .9;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
}

/* Card Styles */
.feature-card,
.service-card,
.team-card,
.achievement-item,
.contact-option-card,
.pricing-card,
.value-card,
.methodology-item {
  background: var(--card);
  color: var(--card-foreground);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.feature-card:hover,
.service-card:hover,
.team-card:hover,
.achievement-item:hover,
.contact-option-card:hover,
.pricing-card:hover,
.value-card:hover,
.methodology-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem 0;
  color: var(--foreground);
}

.card-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* FAQ Styles */
.faq-grid {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  transition: background 0.3s ease;
}

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

.faq-question h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.faq-icon {
  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: 200px;
}

/* Stats Section */
.stats-section {
  background: var(--primary);
  color: #fff;
}

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

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
}

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

/* Partner Section */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
}

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

.partner-placeholder {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--muted-foreground);
}

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

/* About Content */
.about-content,
.story-content,
.approach-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lead-text {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.about-img,
.story-img,
.approach-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .about-content,
  .story-content,
  .approach-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mission Section */
.mission-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.mission-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.mission-statement {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 4rem;
  color: var(--primary);
}

.mission-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

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

.value-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem 0;
  color: var(--foreground);
}

.value-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

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

/* Team Styles */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-avatar {
  text-align: center;
  margin-bottom: 1.5rem;
}

.avatar-icon {
  width: 4rem;
  height: 4rem;
  color: var(--primary);
}

.team-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.team-role {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-description {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.team-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.expertise-tag {
  background: var(--muted);
  color: var(--foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

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

/* Values Grid */
.values-grid,
.achievements-grid,
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .values-grid,
  .achievements-grid,
  .methodology-grid {
    grid-template-columns: 1fr;
  }
}

/* Process Steps */
.process-steps {
  display: grid;
  gap: 3rem;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.step-number {
  background: var(--primary);
  color: var(--primary-foreground);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.step-description {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.step-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Service Features */
.service-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--muted-foreground);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Pricing Cards */
.pricing-card {
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

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

.pricing-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.pricing-features {
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.pricing-feature:last-child {
  border-bottom: none;
}

/* Contact Form */
.motivevjpn_contact-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

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

.motivevjpn_contact-form {
  background: var(--card);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

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

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

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .motivevjpn_contact-form {
    padding: 2rem;
  }
}

/* Contact Info */
.contact-info-bar {
  background: var(--muted);
}

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

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contact-info-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.contact-info-text {
  color: var(--muted-foreground);
  margin: 0;
}

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

.contact-details {
  margin-top: 1rem;
}

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

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

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

/* CTA Section */
.cta-section {
  background: var(--primary);
  color: #fff;
}

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

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  .9;
}

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

/* Footer */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #fff;
}

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

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-info,
.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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

/* Cookie Consent */
.motivevjpn_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--background);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 10000;
  padding: 1rem 0;
}

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

.motivevjpn_cookie-banner-text {
  flex: 1;
}

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

.motivevjpn_cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.motivevjpn_cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.motivevjpn_cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
}

.motivevjpn_cookie-modal-content {
  background: var(--background);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  z-index: 1;
  max-height: 80vh;
  overflow-y: auto;
}

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

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

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

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

@media (max-width: 768px) {
  .motivevjpn_cookie-banner-inner {
    flex-direction: column;
    gap: 1rem;
  }
  
  .motivevjpn_cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
  
  .motivevjpn_cookie-modal-actions {
    flex-direction: column;
  }
}

/* Legal Content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 3rem 0 1.5rem 0;
  color: var(--foreground);
}

.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: var(--foreground);
}

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

.legal-content ul,
.legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

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

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

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

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  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(--muted);
  font-weight: 600;
  color: var(--foreground);
}

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

/* Story Highlights */
.story-highlights {
  margin-top: 2rem;
}

.highlight-item,
.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Achievement Content */
.achievement-content {
  margin-left: 1rem;
}

.achievement-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.achievement-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

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

.animate-hide:nth-child(even) {
  transform: translateX(40px);
}

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

/* Responsive Adjustments */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .btn-primary,
  .btn-outline,
  .btn-white,
  .btn-outline-white {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
}

/* === 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 */
#motivevjpn_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#motivevjpn_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#motivevjpn_cookie-modal.hidden { display: none !important; }
.hidden { display: none !important; }
