/* ===== CSS Variables ===== */
:root {
  --primary: #c41230;
  --primary-dark: #a30e28;
  --primary-light: #e8364f;
  --secondary: #1a1a2e;
  --dark: #0f0f1a;
  --gray-900: #1a1a2e;
  --gray-800: #2d2d44;
  --gray-700: #404060;
  --gray-600: #6b6b8a;
  --gray-500: #8e8ea8;
  --gray-400: #b0b0c4;
  --gray-300: #d0d0dc;
  --gray-200: #e8e8f0;
  --gray-100: #f4f4f8;
  --white: #ffffff;
  --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== Utilities ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-dark { background: var(--gray-900); color: var(--white); }
.section-gray { background: var(--gray-100); }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--gray-900);
}
.section-dark .section-title { color: var(--white); }

.section-desc {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.7;
}
.text-center .section-desc { margin: 0 auto; }
.section-dark .section-desc { color: var(--gray-400); }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
  position: relative;
}
.header-nav a:hover, .header-nav a.active {
  color: var(--primary);
}
.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  transition: background var(--transition);
}
.lang-toggle:hover { background: var(--gray-200); }
.lang-toggle .lang-active { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  gap: 8px;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
  background: transparent;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white {
  background: var(--white);
  color: var(--gray-900);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-lg); }

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.mobile-toggle span {
  width: 24px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height); left: 0; right: 0; bottom: 0;
  background: var(--white);
  padding: 32px 24px;
  z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}
.mobile-menu a:hover { color: var(--primary); }

/* ===== Hero ===== */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 50%, #fef2f2 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,18,48,0.05) 0%, transparent 70%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(196,18,48,0.08);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.hero-title span { color: var(--primary); }
.hero-desc {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-wrapper {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  width: 100%;
}
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-lg) + 8px);
  border: 2px dashed var(--gray-300);
  z-index: -1;
}

/* ===== Carousel ===== */
.carousel-section { padding: 60px 0; background: var(--gray-100); overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 32px;
  animation: scroll-carousel 30s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }
.carousel-item {
  flex-shrink: 0;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.carousel-item .carousel-placeholder {
  text-align: center;
  padding: 40px;
}
.carousel-placeholder h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.carousel-placeholder p {
  color: var(--gray-400);
  font-size: 14px;
}
@keyframes scroll-carousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Features / Products ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.feature-icon.red { background: rgba(196,18,48,0.1); color: var(--primary); }
.feature-icon.blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.feature-icon.green { background: rgba(16,185,129,0.1); color: #10b981; }
.feature-icon.purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.feature-icon.orange { background: rgba(245,158,11,0.1); color: #f59e0b; }
.feature-icon.teal { background: rgba(20,184,166,0.1); color: #14b8a6; }
.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-900);
}
.feature-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== Product Detail ===== */
.product-hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--gray-900), #1a1030);
  color: var(--white);
  text-align: center;
}
.product-hero .section-title { color: var(--white); font-size: 42px; }
.product-hero .section-desc { color: var(--gray-400); margin: 0 auto; }

.product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}
.product-features.reverse { direction: rtl; }
.product-features.reverse > * { direction: ltr; }
.product-feature-visual {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-feature-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
.product-feature-content p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}
.product-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.product-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--gray-700);
}
.product-feature-list li::before {
  content: '\2713';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== Providers ===== */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.provider-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
  transition: all var(--transition);
}
.provider-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.provider-card .provider-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.provider-card .provider-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

/* Provider logos marquee */
.providers-marquee {
  overflow: hidden;
  padding: 40px 0;
  position: relative;
}
.providers-marquee::before,
.providers-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
}
.providers-marquee::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.providers-marquee::after { right: 0; background: linear-gradient(to left, var(--white), transparent); }
.section-gray .providers-marquee::before { background: linear-gradient(to right, var(--gray-100), transparent); }
.section-gray .providers-marquee::after { background: linear-gradient(to left, var(--gray-100), transparent); }

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  flex-shrink: 0;
  height: 48px;
  display: flex;
  align-items: center;
  opacity: 0.6;
  filter: grayscale(1);
  transition: all var(--transition);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-600);
  white-space: nowrap;
}
.marquee-item:hover { opacity: 1; filter: grayscale(0); color: var(--primary); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Stats ===== */
.stats-section { padding: 60px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 15px;
  color: var(--gray-600);
  font-weight: 500;
}
.section-dark .stat-label { color: var(--gray-400); }

/* ===== About ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 32px;
}
.about-text h3:first-child { margin-top: 0; }
.about-text p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.value-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
}
.value-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.value-card p {
  font-size: 14px;
  color: var(--gray-600);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}
.contact-info-card:last-child { border-bottom: none; }
.contact-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(196,18,48,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-info-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-info-card p {
  font-size: 14px;
  color: var(--gray-600);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,18,48,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 40px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.section-dark .faq-item { border-color: var(--gray-800); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}
.section-dark .faq-question { color: var(--white); }
.faq-arrow {
  width: 24px; height: 24px;
  transition: transform var(--transition);
  color: var(--gray-500);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }
.faq-answer p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}
.section-dark .faq-answer p { color: var(--gray-400); }

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-800);
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  color: var(--gray-500);
}
.footer-logo { height: 36px; filter: brightness(2); }
.footer-brand img { height: 40px; width: auto; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--gray-500);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray-600);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 16px;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); }

/* ===== Legal Pages (Privacy / Terms) ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--gray-900);
}
.legal-content p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content ul li {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  list-style: disc;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Page Header ===== */
.page-header {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 48px;
  background: linear-gradient(135deg, var(--gray-900), #1a1030);
  color: var(--white);
  text-align: center;
}
.page-header h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 18px;
  color: var(--gray-400);
  max-width: 540px;
  margin: 0 auto;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .product-features { grid-template-columns: 1fr; gap: 32px; }
  .product-features.reverse { direction: ltr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-toggle { display: flex; }
  .hero { padding-top: calc(var(--header-height) + 32px); padding-bottom: 48px; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 16px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-number { font-size: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .providers-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
  .cta-section h2 { font-size: 28px; }
  .page-header h1 { font-size: 30px; }
  .about-values { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .container { padding: 0 16px; }
}
