/* style.css */

:root {
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  --font-secondary: "Georgia", "Times New Roman", serif;

  /* Light Theme Colors */
  --color-background: #ffffff;
  --color-background-secondary: #f8f9fa;
  --color-surface: #ffffff;
  --color-text-primary: #212529;
  --color-text-secondary: #5a6169;
  --color-text-muted: #868e96;
  --color-border: #dee2e6;
  --color-primary: #007bff;
  --color-primary-dark: #0056b3;
  --color-primary-light: #66afff;
  --color-secondary: #6c757d;
  --color-secondary-dark: #495057;
  --color-accent: #28a745;
  --color-accent-dark: #1e7e34;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-shadow-heavy: rgba(0, 0, 0, 0.15);
  --color-popular-badge: #ffc107;
  --color-popular-text: #212529;

  /* Spacing & Sizing */
  --spacing-xs: 0.25rem; /* 4px */
  --spacing-sm: 0.5rem; /* 8px */
  --spacing-md: 1rem; /* 16px */
  --spacing-lg: 1.5rem; /* 24px */
  --spacing-xl: 2rem; /* 32px */
  --spacing-xxl: 3rem; /* 48px */
  --spacing-xxxl: 4rem; /* 64px */

  --container-width: 1200px;
  --container-padding: var(--spacing-lg);

  /* Borders & Shadows */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 2px 4px var(--color-shadow);
  --shadow-md: 0 4px 8px var(--color-shadow);
  --shadow-lg: 0 10px 20px var(--color-shadow),
    0 6px 6px var(--color-shadow-heavy);

  /* Transitions */
  --transition-fast: all 0.2s ease-in-out;
  --transition-normal: all 0.3s ease-in-out;
  --transition-slow: all 0.5s ease-in-out;

  /* Z-Index */
  --z-index-header: 1000;
  --z-index-modal: 1100;
  --z-index-cookie: 1200;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #121212;
    --color-background-secondary: #1e1e1e;
    --color-surface: #242424;
    --color-text-primary: #eaeaea;
    --color-text-secondary: #b0b0b0;
    --color-text-muted: #7e7e7e;
    --color-border: #3a3a3a;
    --color-primary: #3391ff;
    --color-primary-dark: #007bff;
    --color-primary-light: #66afff;
    --color-secondary: #adb5bd;
    --color-secondary-dark: #ced4da;
    --color-accent: #32cd32;
    --color-accent-dark: #28a745;
    --color-shadow: rgba(0, 0, 0, 0.25);
    --color-shadow-heavy: rgba(0, 0, 0, 0.4);
    --color-popular-badge: #ffc107;
    --color-popular-text: #212529;
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  line-height: 1.65;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  transition: background-color var(--transition-normal),
    color var(--transition-normal);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.5px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-md);
  max-width: 75ch;
}

ul,
ol {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: var(--spacing-md);
}

ul {
  list-style-type: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section-padding {
  padding-top: var(--spacing-xxxl);
  padding-bottom: var(--spacing-xxxl);
}

.section-padding-gray {
  padding-top: var(--spacing-xxxl);
  padding-bottom: var(--spacing-xxxl);
  background-color: var(--color-background-secondary);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-xxl);
}

.section-header h2 {
  margin-bottom: var(--spacing-md);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.button {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
  user-select: none;
  line-height: 1.5;
}

.button:hover,
.button:focus {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.primary-button {
  background-color: var(--color-primary);
  color: var(--color-background);
  border-color: var(--color-primary);
}

.primary-button:hover,
.primary-button:focus {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-background);
}

.secondary-button {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.secondary-button:hover,
.secondary-button:focus {
  background-color: var(--color-primary);
  color: var(--color-background);
}

.large-button {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.1rem;
  border-radius: var(--border-radius-md);
}

.full-width {
  display: block;
  width: 100%;
}

.site-header {
  background-color: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: var(--z-index-header);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md) 0;
  transition: var(--transition-normal);
}

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

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

.logo:hover {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
}

.nav-links li {
  margin-bottom: 0;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: var(--spacing-sm) 0;
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  color: var(--color-text-primary);
}

.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-section {
  padding: var(--spacing-xxxl) 0;
  background-color: var(--color-background-secondary);
}

.hero-section .container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--spacing-xxl);
}

.hero-content h1 {
  margin-bottom: var(--spacing-md);
}

.hero-content .subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 65ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.hero-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.solutions-section .solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

.solution-card {
  background-color: var(--color-surface);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: var(--transition-normal);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.solution-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
}

.solution-card svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-primary);
}

.solution-card h3 {
  margin-bottom: var(--spacing-sm);
}

.solution-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.how-it-works-section .steps-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.step {
  text-align: center;
  max-width: 350px;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--spacing-md);
  border: 3px solid var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.step-content h3 {
  margin-bottom: var(--spacing-sm);
}

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

.step-separator {
  width: 2px;
  height: 50px;
  background-color: var(--color-border);
}

.features-section .features-content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.features-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.features-list ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-md);
  background-color: var(--color-background-secondary);
}

.feature-icon svg {
  color: var(--color-primary);
}

.feature-text h3 {
  margin-bottom: var(--spacing-xs);
  font-size: 1.125rem;
}

.feature-text p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.case-study-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxl);
}

.case-study-text h3 {
  margin-bottom: var(--spacing-md);
}

.case-study-text h4 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
}

.case-study-text ul {
  list-style-type: disc;
  padding-left: var(--spacing-lg);
}

.case-study-text ul li {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
}

.case-study-quote {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  padding-left: var(--spacing-lg);
  border-left: 4px solid var(--color-primary);
  font-family: var(--font-secondary);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

.case-study-quote footer {
  margin-top: var(--spacing-sm);
  font-style: normal;
  font-weight: 600;
  font-family: var(--font-primary);
  color: var(--color-text-primary);
}

.case-study-stats {
  background-color: var(--color-surface);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.stat-item .stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-item .stat-label {
  display: block;
  color: var(--color-text-secondary);
  margin-top: var(--spacing-sm);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: flex-start;
}

.pricing-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-card.popular {
  border-color: var(--color-primary);
  border-width: 2px;
  position: relative;
  padding-top: var(--spacing-xxxl);
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.07);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-popular-badge);
  color: var(--color-popular-text);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
}

.pricing-card h3 {
  text-align: center;
  font-size: 1.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.pricing-card .price-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-card .plan-description {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  min-height: 4.5em;
}

.pricing-card ul {
  margin-bottom: var(--spacing-xl);
  flex-grow: 1;
}

.pricing-card li {
  padding-left: var(--spacing-xl);
  position: relative;
  margin-bottom: var(--spacing-md);
}

.pricing-card li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

.testimonial-card {
  background-color: var(--color-surface);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-md);
  border-left: 5px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}

.testimonial-text {
  font-family: var(--font-secondary);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.testimonial-text::before {
  content: "“";
  font-size: 3rem;
  color: var(--color-primary-light);
  line-height: 0;
  margin-right: var(--spacing-sm);
  vertical-align: -0.4em;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
}

.author-title {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.faq-section .faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

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

.faq-question {
  width: 100%;
  padding: var(--spacing-lg);
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-primary);
}

.faq-question svg {
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  margin-left: var(--spacing-md);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-answer p {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

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

.cta-content {
  text-align: center;
}

.cta-content h2 {
  color: inherit;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.cta-content p {
  color: var(--color-primary-light);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-xl);
}

.cta-section .primary-button {
  background-color: var(--color-background);
  color: var(--color-primary);
  border-color: var(--color-background);
}

.cta-section .primary-button:hover,
.cta-section .primary-button:focus {
  background-color: var(--color-background-secondary);
  color: var(--color-primary-dark);
}

.registration-form-section .form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--color-surface);
  padding: var(--spacing-xxl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.form-container h3 {
  text-align: center;
}

.form-container p {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
}

#quick-registration-form .form-group {
  margin-bottom: var(--spacing-lg);
}

#quick-registration-form label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

#quick-registration-form input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-background-secondary);
  color: var(--color-text-primary);
  transition: var(--transition-fast);
}

#quick-registration-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

#form-success-message {
  text-align: center;
  padding: var(--spacing-lg);
  background-color: var(--color-accent-dark);
  color: var(--color-background);
  border-radius: var(--border-radius-md);
}

.site-footer {
  background-color: var(--color-background-secondary);
  color: var(--color-text-secondary);
  padding-top: var(--spacing-xxxl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  padding-bottom: var(--spacing-xxl);
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

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

.footer-column a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer-column.contact-column address {
  font-style: normal;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-lg) 0;
  text-align: center;
  font-size: 0.9rem;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */

@media (max-width: 767px) {
  .nav-links,
  .main-navigation .primary-button {
    display: none;
  }
}

@media (min-width: 768px) {
  .hero-section .container {
    grid-template-columns: 1.2fr 1fr;
    text-align: left;
  }
  .hero-content {
    text-align: left;
  }

  .solutions-section .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-it-works-section .steps-container {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: var(--spacing-xl);
  }

  .how-it-works-section .step-separator {
    width: 100px;
    height: 2px;
    margin-top: 25px;
  }

  .features-section .features-content-wrapper {
    grid-template-columns: 1fr 1.2fr;
  }

  .features-section .features-image {
    order: 1;
  }

  .case-study-content {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }
  .case-study-stats {
    align-self: start;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-column.about-column {
    grid-column: 1 / 3;
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-card.popular {
    transform: scale(1.05);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-xxl);
  }

  .footer-column.about-column {
    grid-column: auto;
  }
}

@media (min-width: 1200px) {
  .solutions-section .solutions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cookie Banner Styles */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  padding: var(--spacing-lg);
  box-shadow: 0 -2px 10px var(--color-shadow);
  z-index: var(--z-index-cookie);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out;
}

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

.cookie-consent-text {
  flex-grow: 1;
  text-align: center;
}

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

.cookie-consent-button {
  flex-shrink: 0;
  padding: var(--spacing-sm) var(--spacing-xl);
  background-color: var(--color-primary);
  color: var(--color-background);
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.cookie-consent-button:hover {
  background-color: var(--color-primary-dark);
}

@media (min-width: 768px) {
  .cookie-consent-banner {
    justify-content: space-between;
  }
  .cookie-consent-text {
    text-align: left;
  }
}
