/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background-color: #ffffff;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 80px 0;
}

.section-default {
  background-color: #ffffff;
}

.section-light {
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.section-muted {
  background-color: #f3f4f6;
}

.section-white {
  background-color: #ffffff;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
}

.section-subtitle,
.section-subtitle-left {
  margin: 0 0 24px;
  color: #b8bfce;
  font-size: 18px;
}

.section-header.center {
  text-align: center;
  margin-bottom: 40px;
}

.center {
  text-align: center;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f9fafb;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: white;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 18px;
}

/* Language switcher (desktop) */
.lang-switch {
  display: none;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  font-size: 14px;
  color: #e5e7eb;
}

.lang-switch a {
  color: #e5e7eb;
  text-decoration: none;
}

.lang-switch a:hover {
  color: #38bdf8;
}

.lang-separator {
  color: #64748b;
  font-size: 12px;
}

.lang-active {
  font-weight: 600;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #e5e7eb;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #38bdf8;
}

.header-actions-desktop {
  display: none;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
  border-color: #e5e7eb;
}

.btn-outline:hover {
  background: rgba(248, 250, 252, 0.1);
}

.btn-light {
  background: #ffffff;
  color: #2563eb;
}

.btn-light:hover {
  background: #e5e7eb;
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-full {
  width: 100%;
}

/* Header: mobile */
.header-menu-btn {
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background-color: #020617;
  padding: 12px 16px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile-link {
  padding: 8px 0;
  font-size: 15px;
  color: #e5e7eb;
}

.nav-mobile-link:hover {
  color: #38bdf8;
}

.nav-mobile-divider {
  margin: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

/* Language switcher (mobile) */
.lang-switch-mobile {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.nav-mobile-login .nav-mobile-label {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.nav-mobile-demo {
  margin-top: 8px;
}

/* Header: desktop breakpoint */
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .lang-switch {
    display: flex;
  }

  .header-actions-desktop {
    display: flex;
  }

  .header-menu-btn {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* Dropdown */
.login-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: transparent;
  color: #e5e7eb;
  border-color: #e5e7eb;
}

.chevron-down {
  margin-left: 6px;
  font-size: 10px;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 115%;
  background: #020617;
  border-radius: 8px;
  padding: 8px 0;
  box-shadow: 0 20px 30px rgba(15, 23, 42, 0.6);
  min-width: 240px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: none;
  z-index: 60;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-label {
  padding: 8px 12px;
  font-size: 13px;
  color: #9ca3af;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.dropdown-item {
  padding: 8px 12px;
  font-size: 14px;
  color: #e5e7eb;
  display: block;
}

.dropdown-item:hover {
  background-color: rgba(15, 23, 42, 0.9);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #ffffff;
  will-change: transform, opacity;
}

.hero-video {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  top: 0;
  left: 0;
  z-index: 1;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  text-align: center;
  margin: 0 auto;
}

.hero-title {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(249, 250, 251, 0.8);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  color: #38bdf8;
  font-size: 14px;
}

.hero-badge-icon {
  font-size: 16px;
}

@media (min-width: 640px) {
  .hero-content {
    padding: 112px 24px 112px;
  }
  .hero-title {
    font-size: 48px;
  }
  .hero-subtitle {
    font-size: 20px;
  }
  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    margin-left: 250px;
    margin-right: 250px;
    margin-top: 120px;
  }
  .hero-title {
    font-size: 60px;
  }
}

/* Cards / grids */
.card {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  padding: 24px;
}

.card-big {
  max-width: 900px;
  margin: 0 auto 40px;
}

.card-body {
  padding: 0;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.card-subtitle {
  margin: 0 0 8px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.card-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.card-danger {
  border-color: rgba(248, 113, 113, 0.4);
  background-color: rgba(248, 113, 113, 0.04);
}

.card-danger .card-icon {
  background-color: rgba(248, 113, 113, 0.2);
  color: #b91c1c;
}

.card-primary {
  border-color: rgba(59, 130, 246, 0.4);
  background-color: rgba(59, 130, 246, 0.04);
}

.card-primary .card-icon {
  background-color: rgba(59, 130, 246, 0.2);
  color: #1d4ed8;
}

.card-highlight {
  margin-top: 32px;
  background-color: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.3);
}

/* Hover card */
.hover-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.14);
  border-color: #2563eb;
}

/* Animations */
.pre-animate {
  opacity: 0;
  transform: translateY(24px);
}

.animate {
  opacity: 1;
  transform: none;
}

.animate-fade-up {
  animation: fadeUp 0.7s ease-out forwards;
}

.animate-slide-left {
  animation: slideLeft 0.7s ease-out forwards;
}

.animate-slide-right {
  animation: slideRight 0.7s ease-out forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Lists */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #4b5563;
  font-size: 14px;
}

.list li {
  margin-bottom: 6px;
}

.check-list li::before {
  content: "✔";
  color: #16a34a;
  margin-right: 6px;
}

.dot-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2563eb;
  margin-right: 8px;
  transform: translateY(-1px);
}

.bullet-list li::before {
  content: "•";
  margin-right: 6px;
}

.text-muted {
  color: #6b7280;
  font-size: 14px;
}

/* Grids */
.grid-2 {
  display: grid;
  gap: 24px;
}

.grid-3 {
  display: grid;
  gap: 24px;
}

.grid-4 {
  display: grid;
  gap: 20px;
}

.case-grid {
  margin-top: 16px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-indigo {
  background-color: #e0e7ff;
  color: #4338ca;
}

.badge-purple {
  background-color: #f3e8ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.badge-lime {
  background-image: linear-gradient(to right, #65a30d, #4d7c0f);
  color: #ffffff;
}

/* Products */
.card-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  background: #ffffff;
}

/* Technology section */
.tech-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.tech-left {
  max-width: 540px;
}

.tech-right {
  position: relative;
}

.tech-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom right, #bfdbfe, #e9d5ff);
  border-radius: 24px;
  transform: rotate(3deg);
}

.tech-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  border: 4px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.tech-image {
  border-radius: 18px;
  height: 320px;
  object-fit: cover;
  margin-bottom: 16px;
}

.tech-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tech-stat {
  text-align: center;
  padding: 12px;
  border-radius: 14px;
}

.tech-stat:nth-child(1) {
  background-color: #eff6ff;
}

.tech-stat:nth-child(2) {
  background-color: #ecfdf5;
}

.tech-stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 2px;
}

.tech-stat-label {
  font-size: 12px;
  color: #6b7280;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  margin-bottom: 12px;
}

.feature-card.blue {
  background-color: #eff6ff;
}

.feature-card.green {
  background-color: #ecfdf5;
}

.feature-card.purple {
  background-color: #f5f3ff;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.feature-title {
  margin: 0 0 2px;
  font-weight: 600;
}

.feature-text {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

@media (min-width: 1024px) {
  .tech-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Documentation */
.doc-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.doc-item::before {
  content: "✔";
  color: #22c55e;
}

/* Scale */
.scale-number {
  font-size: 72px;
  font-weight: 800;
  background-image: linear-gradient(to right, #65a30d, #4d7c0f);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 8px;
}

.scale-text-main {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.scale-text-sub {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 24px;
}

.scale-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background-image: linear-gradient(to right, #f7fee7, #ecfdf5);
  font-size: 14px;
  color: #374151;
}

.scale-pill-icon {
  font-size: 18px;
}

.scale-map {
  max-width: 900px;
  margin: 0 auto 32px;
}

.scale-map-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.scale-map-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 18px;
}

.scale-map-image {
  border-radius: 14px;
}

/* Scale stats */
.scale-stats {
  display: grid;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
  border-width: 2px;
}

.stat-card.green {
  background-image: linear-gradient(to bottom right, #ecfdf5, #bbf7d0);
  border-color: #bbf7d0;
}

.stat-card.blue {
  background-image: linear-gradient(to bottom right, #eff6ff, #bfdbfe);
  border-color: #bfdbfe;
}

.stat-card.purple {
  background-image: linear-gradient(to bottom right, #f5f3ff, #e9d5ff);
  border-color: #e9d5ff;
}

.stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #4b5563;
}

@media (min-width: 768px) {
  .scale-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Case study */
.case-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.case-before {
  color: #dc2626;
}

.case-after {
  color: #2563eb;
}

.quote-box {
  margin-top: 24px;
  padding: 18px 18px 16px;
  border-radius: 12px;
  background-color: rgba(37, 99, 235, 0.06);
}

.quote-mark {
  font-size: 32px;
  line-height: 1;
  color: #2563eb;
  margin-bottom: 8px;
}

.quote-text {
  font-style: italic;
  color: #4b5563;
  margin-bottom: 4px;
}

.quote-author {
  font-size: 14px;
  font-weight: 500;
}

/* FAQ / Accordion */
.accordion {
  max-width: 720px;
  margin: 0 auto;
}

.accordion-item {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  margin-bottom: 10px;
  padding: 0 16px;
}

.accordion-title {
  cursor: pointer;
  padding: 14px 0;
  list-style: none;
  font-weight: 500;
}

.accordion-title::marker {
  display: none;
}

.accordion-content {
  padding-bottom: 14px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  color: #4b5563;
}

/* Steps */
.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 4px solid #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-weight: 700;
  color: #2563eb;
  font-size: 22px;
}

/* Contacts section */
.contacts-section {
  position: relative;
  padding: 80px 0;
  background-image: linear-gradient(to bottom right, #2563eb, #4f46e5, #7c3aed);
  color: #ffffff;
  overflow: hidden;
}

.contacts-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 20px 20px;
  opacity: 0.5;
}

.contacts-inner {
  position: relative;
  max-width: 720px;
  text-align: center;
}

.contacts-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.contacts-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
}

.contacts-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.contacts-label {
  margin: 0 0 10px;
  color: #bfdbfe;
}

.contacts-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 15px;
}

.contacts-link a {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .contacts-actions {
    flex-direction: row;
  }
  .contacts-links {
    flex-direction: row;
  }
}

/* Footer */
.footer {
  background-color: #020617;
  color: #e5e7eb;
  padding: 48px 0 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-text {
  font-size: 14px;
  color: #9ca3af;
}

.footer-subtitle {
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid #111827;
  padding-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Utilities */
.mt-small {
  margin-top: 12px;
}