/* === 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: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.2s;
}

.lang-switcher__btn:hover {
  opacity: 0.8;
}

.lang-switcher__btn .lang-flag {
  width: 24px;
  height: 24px;
  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;
}

/* === Blog === */
.blog-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-filter {
  padding: 10px 24px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
}

.blog-filter:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.blog-filter--active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.blog-filter--active:hover {
  color: var(--white);
}

.blog-grid {
  width: 100%;
}

.blog-grid-sizer,
.blog-card {
  width: 31.33%;
}

.blog-gutter-sizer {
  width: 3%;
}

.blog-card {
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card__cat {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 1px;
}

.blog-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  line-height: 1.3;
}

.blog-card__desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
}

.blog-card__meta {
  font-size: 13px;
  color: var(--gray-400);
}

/* === reCAPTCHA === */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* === 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;
  }

  .blog-grid-sizer,
  .blog-card {
    width: 100%;
  }

  .blog-gutter-sizer {
    width: 0;
  }

  .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;
  }
}

/* === Code Blocks (highlight.js) === */
article pre {
  border-radius: 12px;
  margin-bottom: 24px;
}

article pre code.hljs {
  padding: 24px;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 12px;
}

article .code-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #94A3B8;
  background: #1a1f2e;
  padding: 12px 24px 0;
  border-radius: 12px 12px 0 0;
  font-family: Inter, sans-serif;
}

article .code-label + pre {
  border-radius: 0 0 12px 12px;
}

article .code-label + pre code.hljs {
  border-radius: 0 0 12px 12px;
  padding-top: 12px;
}

/* === Service Pages Grid === */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; }
.services-grid__card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.services-grid__card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); }
.services-grid__card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.services-grid__icon { flex-shrink: 0; }
.section__title { font-family: var(--font-display); font-weight: 800; font-size: 36px; color: var(--navy); letter-spacing: -1px; line-height: 1.1; margin-bottom: 8px; }
.section__text { font-size: 16px; color: var(--gray-500); line-height: 1.7; }
.section__label { font-size: 13px; font-weight: 600; text-transform: uppercase; margin-bottom: 8px; display: block; }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* === Legal Pages === */
.legal-hero {
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  padding: 80px;
  text-align: center;
}

.legal-hero__inner { max-width: 1440px; margin: 0 auto; }
.legal-hero__title { font-family: var(--font-display); font-size: 48px; font-weight: 800; color: #fff; letter-spacing: -1px; }
.legal-hero__date { font-family: var(--font-body); font-size: 16px; color: #94A3B8; margin-top: 16px; }

.legal-content { background: #fff; padding: 60px 0; }

.legal-content__inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content__inner p { font-size: 16px; color: var(--gray-500); line-height: 1.7; margin-bottom: 16px; }
.legal-content__inner h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--navy); margin: 32px 0 16px; }
.legal-content__inner h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--navy); margin: 24px 0 8px; }
.legal-content__inner ul { margin: 0 0 16px 24px; color: var(--gray-500); font-size: 16px; line-height: 1.7; }
.legal-content__inner li { margin-bottom: 4px; }
.legal-content__intro { font-size: 18px !important; margin-bottom: 32px !important; }
.legal-content__contact { font-style: normal; }

.legal-table { margin: 16px 0 24px; overflow-x: auto; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th { background: var(--gray-50); text-align: left; padding: 10px 14px; font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--gray-200); }
.legal-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-200); color: var(--gray-500); }
.legal-table tr:last-child td { border-bottom: none; }

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  padding: 24px 80px;
}

.cookie-banner__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-banner__content { flex: 1; }

.cookie-banner__title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: #fff; }
.cookie-banner__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #fff; }
.cookie-banner__text { font-size: 14px; color: #94A3B8; line-height: 1.5; max-width: 800px; }

.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }

.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.cookie-banner__btn:hover { opacity: 0.9; }

.cookie-banner__btn--primary { background: var(--blue); color: #fff; }
.cookie-banner__btn--outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.cookie-banner__btn--equal { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.cookie-banner__link { color: var(--blue-light); text-decoration: underline; }

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.cookie-modal__dialog {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 520px;
  width: 90%;
}

.cookie-modal__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.cookie-modal__text { font-size: 14px; color: var(--gray-500); line-height: 1.5; margin-bottom: 24px; }

.cookie-modal__options { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

.cookie-modal__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #E5E5E5;
}

.cookie-modal__option:last-child { border-bottom: none; }
.cookie-modal__option-info { display: flex; flex-direction: column; gap: 2px; }
.cookie-modal__option-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.cookie-modal__option-desc { font-size: 12px; color: var(--gray-500); }

.cookie-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: #D1D5DB;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle__slider { background: var(--blue); }
.cookie-toggle input:checked + .cookie-toggle__slider::before { transform: translateX(20px); }
.cookie-toggle--disabled .cookie-toggle__slider { opacity: 0.6; cursor: not-allowed; }

.cookie-modal__actions { display: flex; gap: 12px; justify-content: flex-end; }

@media (max-width: 768px) {
  .legal-hero { padding: 48px 24px; }
  .legal-hero__title { font-size: 32px; }
  .cookie-banner { padding: 16px 24px; }
  .cookie-banner__inner { flex-direction: column; gap: 16px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1; }
}
