:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #94a3b8;
  --success: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: #ffffff;
  color: var(--dark);
  line-height: 1.6;
}

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

/* Header */
header {
  padding: 24px 0;
  position: fixed;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 50px;
  width: auto;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.login-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  background-color: transparent;
  border: 1px solid var(--gray);
  color: var(--dark);
  cursor: pointer;
  transition: all 0.3s;
}

.login-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Thank You Section */
.thank-you {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0.9)), url('assets/images/tech-pattern.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.thank-you h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--dark);
  line-height: 1.2;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.thank-you p {
  font-size: 18px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}
/* Hero Section */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0.9)), url('/assets/images/tech-pattern.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  background-image: linear-gradient(rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0.9)), url('/assets/images/tech-pattern.jpg'), linear-gradient(to bottom, #f8fafc, rgba(37, 99, 235, 0.1));
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--dark);
  line-height: 1.2;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero p {
  font-size: 18px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.cta-btn {
  display: inline-block;
  padding: 14px 28px;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
  opacity: 0;
  animation: scaleIn 0.6s ease-out 0.6s forwards;
}

.cta-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.hero-image {
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  padding: 16px;
  background: white;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.hero-image canvas {
  max-width: 100%;
  height: 400px !important;
}

/* Why ARVIOL Section */
.feature-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Solutions Section */
#solutions .feature-card {
  opacity: 0;
}

/* Comparison Section */
table {
  width: 100%;
  min-width: 600px;
  /* Ensures table doesn't shrink too much */
  border-collapse: collapse;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

th,
td {
  padding: 15px;
  text-align: left;
  white-space: normal;
  /* Allow text to wrap */
  overflow-wrap: break-word;
  /* Break long words */
}

/* FAQ Section */
details {
  margin-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 15px;
  opacity: 0;
}

/* Signup Section */
.signup-form {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 Владислав Саликов 2px 4px -1px rgba(0, 0, 0, 0.06);
  opacity: 0;
}

/* Final CTA Section */
.cta-section h2,
.cta-section p,
.cta-section .cta-btn {
  opacity: 0;
}

/* Footer */
.footer-column {
  opacity: 0;
}

/* Accessibility: Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

  .hero h1,
  .hero p,
  .cta-btn,
  .hero-image,
  .feature-card,
  #solutions .feature-card,
  table,
  details,
  .signup-form,
  .cta-section h2,
  .cta-section p,
  .cta-section .cta-btn,
  .footer-column {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Signup Form Section */
.signup-section {
  padding: 100px 0;
  background-color: #f8fafc;
  text-align: center;
}

.signup-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}

.signup-section p {
  font-size: 18px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 40px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray);
  border-radius: 6px;
  font-size: 16px;
  color: var(--dark);
  transition: border-color 0.3s;
}

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

.form-group input.error {
  border-color: #ef4444;
}

.error-message {
  color: #ef4444;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.signup-form button {
  width: 100%;
  padding: 16px;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.signup-form button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray);
  border-radius: 6px;
  font-size: 16px;
  color: var(--dark);
  transition: border-color 0.3s;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
  background-color: white;
}

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

.form-group textarea.error {
  border-color: #ef4444;
}

.captcha-wrapper {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

/* Features Section */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--dark);
}

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

.feature-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--dark);
}

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

/* CTA Section */
.cta-section {
  text-align: center;
  background: linear-gradient(to right, #2563eb, #3b82f6);
  color: white;
  padding: 80px 0;
  border-radius: 12px;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

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

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

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

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .nav-links {
    display: none;
  }

  .signup-form {
    padding: 20px;
  }

  .signup-section h2 {
    font-size: 28px;
  }

  .signup-section p {
    font-size: 16px;
  }

  .hero {
    padding: 120px 0 60px;
    background-attachment: scroll;
  }

  .cta-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Responsive Table Adjustments */
  table {
    min-width: 0;
    /* Allow table to shrink on small screens */
  }

  th,
  td {
    padding: 10px;
    /* Reduce padding */
    font-size: 14px;
    /* Reduce font size */
  }
}
