/* ==========================================================================
   Relistix - Modern CSS (2025)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --primary: #0066ff;
  --primary-dark: #0052cc;
  --accent: #fec503;
  --dark: #1e293b;
  --dark-lighter: #334155;
  --light: #f8f9fa;
  --white: #ffffff;
  --text: #333;
  --text-muted: #6c757d;
  --text-light: #94a3b8;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", monospace;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition: 0.2s ease;

  --container-max: 1140px;
  --spacing-section: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

p {
  margin: 0 0 1rem;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--spacing-section) 0;
  scroll-margin-top: 70px;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: var(--dark);
  box-shadow: var(--shadow-md);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav__logos {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: var(--white);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav__logo:hover {
  background: var(--primary);
}

.nav__logo img {
  height: 32px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__menu-link {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__menu-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

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

.nav__lang {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__lang:hover {
  color: var(--primary);
  background: var(--white);
  border-color: var(--white);
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav__burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__drawer {
  display: none;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  contain: paint;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.35);
  z-index: 2;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: hero-float 10s ease-in-out infinite;
  z-index: 2;
  will-change: transform;
}

.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  opacity: 0.25;
  top: -150px;
  left: -80px;
}

.hero__glow--2 {
  width: 480px;
  height: 480px;
  background: var(--accent);
  opacity: 0.18;
  bottom: -80px;
  right: -60px;
  animation-delay: -5s;
}

@keyframes hero-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}

.hero__content {
  position: relative;
  max-width: 900px;
  z-index: 3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 18px;
  background: rgba(0, 102, 255, 0.22);
  border: 1px solid rgba(0, 102, 255, 0.45);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
}

.hero__headline {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--white);
}

.hero__highlight {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.hero__brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform var(--transition);
}

.hero__brand:hover {
  transform: translateY(-3px);
}

.hero__brand-logo {
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  transition: opacity var(--transition), transform var(--transition);
}

.hero__brand:hover .hero__brand-logo {
  opacity: 0.9;
}

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

.hero__brand-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.hero__brand-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.35);
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
  background: var(--light);
}

.services__header {
  text-align: center;
  margin-bottom: 60px;
}

.services__title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.services__subtitle {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--primary);
  border-radius: 50%;
  color: var(--white);
}

.service-card__icon svg {
  width: 36px;
  height: 36px;
}

.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.service-card__text {
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Customers Section
   -------------------------------------------------------------------------- */
.customers {
  background: var(--white);
}

.customers__header {
  text-align: center;
  margin-bottom: 48px;
}

.customers__title {
  font-size: 2.5rem;
  margin-bottom: 0;
}

.customers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.customer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  background: var(--light);
  border-radius: var(--radius-md);
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.customer:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.customer__logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 16px;
}

.customer__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.customer__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Products Section
   -------------------------------------------------------------------------- */
.products {
  background: var(--light);
}

.products__header {
  text-align: center;
  margin-bottom: 60px;
}

.products__title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.products__subtitle {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card__image-wrap {
  display: block;
  overflow: hidden;
  background: var(--dark);
  aspect-ratio: 16 / 9;
}

.product-card__screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__screenshot {
  transform: scale(1.03);
}

.product-card__body {
  padding: 32px;
}

.product-card__name {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.product-card__tagline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__desc {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition), gap var(--transition);
}

.product-card__cta:hover {
  color: var(--primary-dark);
  gap: 12px;
}

.product-card__cta svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
  background: var(--dark);
  color: var(--white);
}

.contact__header {
  text-align: center;
  margin-bottom: 48px;
}

.contact__title {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 0;
}

.contact__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

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

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.contact__input,
.contact__textarea {
  padding: 12px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.1);
}

.contact__textarea {
  resize: vertical;
  min-height: 130px;
}

.contact__submit {
  padding: 14px 28px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  align-self: flex-start;
}

.contact__submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.contact__success {
  display: none;
  padding: 16px;
  background: rgba(0, 200, 100, 0.15);
  border: 1px solid rgba(0, 200, 100, 0.3);
  border-radius: var(--radius-md);
  color: #6effc0;
  font-size: 14px;
  text-align: center;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: var(--text-light);
  transition: color var(--transition);
}

.contact__item:hover {
  color: var(--accent);
}

.contact__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Email obfuscation */
.at-sign {
  display: inline;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 40px 0;
  background: var(--dark-lighter);
  color: var(--text-light);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--dark);
  border-radius: 50%;
  color: var(--white);
  transition: background var(--transition), color var(--transition);
}

.footer__social-link:hover {
  background: var(--primary);
  color: var(--white);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer__nav-link {
  font-size: 14px;
  color: var(--text-light);
  transition: color var(--transition);
}

.footer__nav-link:hover {
  color: var(--accent);
}

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

.footer__link {
  color: var(--text-light);
  font-size: 14px;
  transition: color var(--transition);
}

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

.footer__copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

/* --------------------------------------------------------------------------
   Privacy Modal
   -------------------------------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal__content {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  background: var(--white);
  border-radius: var(--radius-lg);
  position: relative;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition);
}

.modal__close:hover {
  color: var(--text);
}

.modal__close svg {
  width: 24px;
  height: 24px;
}

.modal__title {
  font-size: 2rem;
  margin-bottom: 24px;
}

.modal__text {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --spacing-section: 60px;
  }

  .nav__menu,
  .nav__lang {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .nav__drawer {
    display: flex;
    flex-direction: column;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.32s ease, opacity 0.22s ease;
  }

  .nav__drawer.is-open {
    max-height: 420px;
    opacity: 1;
  }

  .nav__drawer-link,
  .nav__drawer-lang {
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: color var(--transition), background var(--transition);
  }

  .nav__drawer-link:hover,
  .nav__drawer-lang:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
  }

  .nav__drawer-lang {
    margin-top: 4px;
    border-bottom: none;
    color: var(--accent);
    font-weight: 600;
  }

  .hero {
    min-height: auto;
    padding: 120px 20px 80px;
  }

  .hero__brands {
    flex-direction: column;
    gap: 24px;
  }

  .hero__brand-divider {
    width: 40px;
    height: 1px;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .services__title,
  .customers__title,
  .products__title,
  .contact__title {
    font-size: 2rem;
  }

  .contact__body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .service-card {
    padding: 32px 24px;
  }

  .modal__content {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .nav__logos {
    gap: 8px;
  }

  .nav__logo {
    padding: 4px 8px;
  }

  .nav__logo img {
    height: 26px;
  }

  .hero__brand-logo img {
    height: 32px;
  }

  .hero__brand-tagline {
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
