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

:root {
  --primary-color: #4D4861;
  --primary-dark: #3d384d;
  --secondary-color: #92B6B1;
  --header-teal: #C2E8E2;
  --accent-color: #9E7682;
  --text-color: #4D4861;
  --text-light: #605770;
  --bg-color: #FCFFFC;
  --bg-light: #FCFFFC;
  --border-color: #92B6B1;
  --success-color: #92B6B1;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

/* Header */
.site-header {
  background: linear-gradient(135deg, #FF69B4 0%, #6B5B95 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 2rem;
  font-weight: 900;
  color: var(--header-teal);
  letter-spacing: -0.02em;
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.logo-cve {
  font-size: 2.5rem;
  font-weight: 900;
}

.logo-curtain {
  font-size: 1.6rem;
  font-weight: 700;
}

.logo-symbol {
  font-size: calc((2rem + 1rem) * 1.3);
  line-height: 1;
  display: block;
}

.logo-img {
  height: calc((2rem + 1rem) * 1.3);
  width: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(25%) sepia(12%) saturate(1000%) hue-rotate(220deg) brightness(0.85);
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav {
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.main-nav a {
  text-decoration: none;
  color: var(--header-teal);
  font-weight: 700;
  font-size: 2rem;
  transition: color 0.2s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.main-nav a:hover {
  color: var(--header-teal);
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #4D4861 0%, #9E7682 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.btn-primary {
  background: linear-gradient(90deg, #6B5B95 0%, #FF69B4 25%, #00B89A 50%, #5FB8A8 75%, #6B5B95 100%);
  background-size: 300% 100%;
  background-position: 0% 50%;
  color: white;
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn-primary:hover {
  animation: colorShiftHover 2.5s linear infinite;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@keyframes colorShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes colorShiftHover {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

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

.btn-secondary:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.5rem 4rem;
  font-size: 2rem;
}

/* Features Preview */
.features-preview {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-color);
}

/* Videos Section */
.videos-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.video-card {
  background: #FCFFFC;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.video-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.video-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  background-color: #000;
  overflow: hidden;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.feature-card {
  background: #FCFFFC;
  padding: 2rem;
  border-radius: 0;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Benefits Section */
.benefits {
  padding: 5rem 0;
  background-color: var(--bg-color);
}

.benefits-content {
  max-width: 900px;
  margin: 0 auto;
}

.benefits-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.benefits-text p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.benefits-list li {
  padding: 0.75rem 0;
  font-size: 1.125rem;
  color: var(--text-color);
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #4D4861 0%, #9E7682 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

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

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}

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

/* Form Elements - Use Sans-serif */
input,
select,
textarea,
button {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* CTA Sections - Use Sans-serif */
.cta-section,
.cta-inline {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Page Content Styles */
.page-content {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.page-content h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.page-content ul,
.page-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .main-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .features-preview,
  .benefits,
  .cta-section {
    padding: 3rem 0;
  }
}

/* Contact modal */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.contact-modal-overlay.contact-modal-open {
  opacity: 1;
  visibility: visible;
}

.contact-modal-panel {
  background: var(--bg-light);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  margin: 1rem;
  border: 1px solid var(--border-color);
}

.contact-modal-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
}

.contact-modal-step {
  display: block;
}

.contact-modal-step-hidden {
  display: none;
}

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

.contact-modal-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-color);
  background: var(--bg-color);
}

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

.contact-modal-error {
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  min-height: 1.25em;
}

.contact-modal-message {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

.contact-modal-actions .btn {
  flex: 1 1 auto;
}
