/* === Reset & Base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --white: #ffffff;
  --font-display: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  border-radius: 8px;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--blue);
}

.btn--outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 14px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 10px;
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo__img--sm {
  width: 32px;
  height: 32px;
}

.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.logo__text--white {
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* === Language Switcher === */
.lang-switcher {
  position: relative;
}

.lang-switcher__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s;
}

.lang-switcher__btn:hover {
  border-color: var(--blue);
}

.lang-switcher__btn .lang-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 200;
  flex-direction: column;
  gap: 4px;
}

.lang-dropdown--open {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--navy);
  transition: background 0.15s;
}

.lang-option:hover {
  background: var(--gray-50);
}

.lang-option--active {
  background: var(--gray-100);
  font-weight: 500;
}

.lang-option .lang-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* === Hero === */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}

.hero__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(37, 99, 235, 0.13);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #93c5fd;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  color: var(--white);
  text-align: center;
  letter-spacing: -2px;
  line-height: 1.05;
}

.hero__subtitle {
  max-width: 720px;
  font-size: 20px;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.6;
}

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

/* === Sections === */
.section {
  padding: 100px 0;
}

.section--white {
  background: var(--white);
}

.section--light {
  background: var(--gray-50);
}

.section--dark {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}

.section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 2px;
}

.section__label--blue {
  color: var(--blue-light);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  color: var(--navy);
  letter-spacing: -1px;
}

.section__subtitle {
  max-width: 600px;
  font-size: 18px;
  color: var(--gray-500);
}

/* === Cards === */
.cards {
  display: grid;
  gap: 24px;
}

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

.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  padding: 32px;
  border-radius: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card--white {
  background: var(--white);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.card__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: rgba(37, 99, 235, 0.12);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
}

.card__desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* === About === */
.about {
  display: flex;
  gap: 80px;
  align-items: center;
}

.about__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.1;
}

.about__desc {
  font-size: 16px;
  color: var(--gray-400);
  line-height: 1.7;
}

.about__right {
  flex: 1;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat {
  padding: 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  color: var(--white);
  letter-spacing: -1px;
}

.stat__label {
  font-size: 14px;
  color: var(--gray-400);
}

/* === Tech Grid === */
.tech-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.tech-item {
  flex: 1;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 32px;
  border-radius: 12px;
  background: var(--gray-50);
  color: var(--blue);
}

.tech-item span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
}

/* === CTA === */
.cta {
  background: var(--blue);
  padding: 100px 0;
}

.cta__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  color: var(--white);
  text-align: center;
  letter-spacing: -1px;
}

.cta__subtitle {
  max-width: 560px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

/* === Footer === */
.footer {
  background: var(--navy);
  padding: 60px 0 40px;
}

.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 80px;
}

.footer__brand {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 64px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.footer__link {
  font-size: 14px;
  color: var(--gray-400);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--white);
}

.footer__divider {
  height: 1px;
  background: var(--navy-light);
  margin: 48px 0 24px;
}

.footer__copy {
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .header__inner {
    padding: 0 40px;
  }

  .hero__inner,
  .section__inner,
  .cta__inner,
  .footer__inner {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero__title {
    font-size: 48px;
  }

  .section__title,
  .about__title {
    font-size: 36px;
  }

  .cta__title {
    font-size: 40px;
  }

  .cards--3 {
    grid-template-columns: 1fr;
  }

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

  .about {
    flex-direction: column;
    gap: 48px;
  }

  .tech-grid {
    flex-wrap: wrap;
  }

  .footer__top {
    flex-direction: column;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .header__inner {
    padding: 0 24px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav--open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero__inner,
  .section__inner,
  .cta__inner,
  .footer__inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero__inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section {
    padding: 64px 0;
  }

  .hero__title {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero__subtitle {
    font-size: 17px;
  }

  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .section__title,
  .about__title {
    font-size: 30px;
  }

  .cta__title {
    font-size: 32px;
  }

  .cards--4 {
    grid-template-columns: 1fr;
  }

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

  .tech-grid {
    flex-wrap: wrap;
  }

  .tech-item {
    min-width: calc(50% - 10px);
  }

  .footer__links {
    flex-direction: column;
    gap: 32px;
  }
}
