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

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f6f8;
  --color-text: #2d2d2d;
  --color-text-light: #6b7280;
  --color-accent: #a855f7;
  --color-accent-hover: #9333ea;
  --color-border: #e5e7eb;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg-alt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Header ── */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

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

.lang-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.lang-btn {
  padding: 0.4rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--color-text);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  background: var(--color-bg-alt);
}

/* ── Products ── */

.products {
  background: var(--color-bg-alt);
  padding: 2rem 2rem 5rem;
}

.products-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 3rem;
}

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

.card {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.card-link:hover {
  gap: 0.75rem;
  color: var(--color-accent-hover);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.card-link:hover svg {
  transform: translateX(2px);
}

.card-socials {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.25rem;
  margin-bottom: 1rem;
}

/* ── Footer ── */

.footer {
  padding: 4rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand a {
  text-decoration: none;
  display: inline-block;
}

.footer-logo-img {
  height: 24px;
  width: auto;
}

.footer-brand p {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.footer-socials {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.social-icon:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(168, 85, 247, 0.05);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .header {
    padding: 1.25rem 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .products {
    padding: 3.5rem 1.5rem;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-socials {
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 26px;
  }

  .lang-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }
}
