@import url('https://fonts.googleapis.com/css2?family=Exo:wght@400;500;600;700&family=Open+Sans:wght@400;700&display=swap');

:root {
  --brand: #d70044;
  --brand-dark: #251d24;
  --dark: #323435;
  --light: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --accent: #fdac08;
  --accent-orange: #ff7e00;
  --card-bg: rgba(51, 61, 131, 0.2);
  --footer-gradient: linear-gradient(90deg, rgb(35, 31, 99) 0%, rgb(28, 49, 128) 100%);
  --container: min(1140px, calc(100% - 40px));
  --font-body: 'Exo', sans-serif;
  --font-button: 'Open Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.56;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: var(--container);
  margin-inline: auto;
}

.section { padding: 70px 0; }

.section--dark {
  background: #000;
  color: var(--light);
}

.section--brand {
  background: var(--brand);
  color: var(--light);
}

.section--white { background: #fff; }

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(0deg, rgba(11, 11, 11, 0.25) 0%, var(--brand-dark) 100%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo__img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.site-logo__text {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--light);
  line-height: 1.2;
}

.site-header__lang {
  color: var(--light);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
}

.site-header__lang:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-intro {
  padding: 120px 0 60px;
  text-align: center;
}

.hero-intro .block-title {
  margin-bottom: 16px;
}

/* Partner logos carousel */
.partners-carousel {
  --partners-gap: 48px;
  --partners-logo-h: 56px;
  --partners-duration: 28s;
  margin: 40px 0 10px;
}

.partners-carousel__viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.partners-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: scrollPartners var(--partners-duration) linear infinite;
}

.partners-track.is-paused {
  animation-play-state: paused;
}

@media (hover: hover) {
  .partners-carousel:hover .partners-track {
    animation-play-state: paused;
  }
}

.partners-set {
  display: flex;
  align-items: center;
  gap: var(--partners-gap);
  padding-right: var(--partners-gap);
  flex-shrink: 0;
}

.partners-set img {
  display: block;
  height: var(--partners-logo-h);
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(1.05);
  opacity: 0.95;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

@keyframes scrollPartners {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Manual swipe on small screens / reduced motion */
.partners-carousel--swipe .partners-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.partners-carousel--swipe .partners-track {
  animation: none;
  transform: none;
}

.partners-carousel--swipe .partners-set img {
  scroll-snap-align: center;
  pointer-events: auto;
}

.partners-carousel--swipe .partners-carousel__viewport::-webkit-scrollbar {
  display: none;
}

/* Reseller pack */
.reseller-section {
  text-align: center;
}

.reseller-card {
  max-width: 520px;
  margin: 32px auto 0;
  padding: 32px 28px;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.reseller-card__label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light);
  text-align: center;
  margin: 8px 0 0;
}

.reseller-card__price {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--brand);
  margin: 8px 0 20px;
  text-align: center;
}

.reseller-card p {
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.6;
}

.devices-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 960px;
  margin-inline: auto;
}


/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  background: var(--dark) url('../assets/hero-cover.jpg') no-repeat 50% 75% / cover;
  color: var(--light);
  padding-bottom: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 11, 11, 0.25) 0%, var(--brand-dark) 100%);
}

.hero .container { position: relative; z-index: 1; }

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero__wave svg { width: 100%; height: 70px; }

/* Typography */
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px;
}

.heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 16px;
}

.heading--light { color: var(--light); }

.block-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
}

.block-title .brand { color: var(--brand); }

.subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: var(--muted);
  margin-bottom: 32px;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--brand);
  margin: 0 auto 24px;
}

.divider--left { margin: 0 0 24px; }

.text-light { color: var(--light); }
.text-muted { color: var(--muted); }
.text-brand { color: var(--brand); font-weight: 700; }
.text-yellow { color: #ffed00; font-weight: 700; }
.text-accent { color: var(--accent-orange); font-weight: 700; }

.welcome-text {
  font-size: 1.05rem;
  line-height: 1.8;
  white-space: pre-line;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1rem;
}

.feature-list__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--brand);
  margin-top: 2px;
}

/* Buttons - matching original Weblium style */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-button);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(215, 0, 68, 0.35); }

.btn--primary-dark {
  background: var(--brand);
  color: var(--light);
}

.btn--primary-light {
  background: var(--light);
  color: var(--brand-dark);
}

.btn__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Device cards */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.device-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.device-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.device-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: block;
  object-fit: contain;
}

.device-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--light);
}

.device-card__line {
  height: 3px;
  width: 100%;
  margin: 0 auto 16px;
  border: none;
}

.device-card__line--green { background: rgb(0, 215, 18); }
.device-card__line--white { background: #f7f7f7; }
.device-card__line--blue { background: rgb(41, 59, 255); }
.device-card__line--pink { background: rgb(215, 0, 166); }

.device-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.faq-image img {
  border-radius: 8px;
  width: 100%;
}

.accordion { list-style: none; padding: 0; margin: 0; }

.accordion__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--light);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.accordion__icon {
  position: relative;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--light);
  border-radius: 2px;
}

.accordion__icon::before { width: 2px; height: 12px; }
.accordion__icon::after { width: 12px; height: 2px; }

.accordion__item.is-open .accordion__icon::before { display: none; }

.accordion__panel {
  display: none;
  padding: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.accordion__item.is-open .accordion__panel { display: block; }

.accordion__panel a {
  color: var(--light);
  text-decoration: underline;
}

.accordion__panel .code {
  color: var(--brand-dark);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Contact */
.contact-section { text-align: center; }

.contact-email {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-orange);
}

/* Footer */
.site-footer {
  background: var(--footer-gradient);
  color: var(--light);
  padding: 30px 0 15px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-links a {
  display: flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  border-radius: 50%;
  color: #f7f7f7;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
}

.social-links a:hover { background: #ff0b58; }

/* Floating email icon - from original custom code */
.email-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background-color: #FF6600;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.2s;
  animation: pulseEmail 2.5s ease-in-out infinite;
  animation-delay: 2s;
}

.email-icon:hover { transform: scale(1.05); }

.email-icon svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* Movies section placeholder */
.movies-section {
  text-align: center;
  padding: 50px 0;
}

/* ── Scroll & load animations ── */
.reveal {
  opacity: 0;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.device-card.reveal.is-visible:hover {
  transform: translateY(-6px);
}

.reveal--fade-up    { transform: translateY(36px); }
.reveal--fade-down  { transform: translateY(-28px); }
.reveal--fade-left  { transform: translateX(-36px); }
.reveal--fade-right { transform: translateX(36px); }
.reveal--fade-in    { transform: none; }
.reveal--scale      { transform: scale(0.88); }

.reveal.is-visible .divider,
.reveal.is-visible.divider {
  animation: dividerGrow 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0.15s);
}

@keyframes dividerGrow {
  from { width: 0; opacity: 0; }
  to   { width: 60px; opacity: 1; }
}

.reveal.is-visible .divider--left,
.reveal.is-visible.divider--left {
  animation-name: dividerGrowLeft;
}

@keyframes dividerGrowLeft {
  from { width: 0; opacity: 0; }
  to   { width: 60px; opacity: 1; }
}

.hero {
  animation: heroZoom 1.2s ease-out both;
}

@keyframes heroZoom {
  from { background-size: 108% auto; }
  to   { background-size: cover; }
}

@keyframes pulseEmail {
  0%, 100% { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); }
  50%      { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(255, 102, 0, 0.18); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero,
  .email-icon,
  .device-card,
  .btn {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .partners-track {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .hero { min-height: 400px; }
  .hero-intro {
    padding: 88px 0 36px;
  }
  .hero-intro .block-title {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
    line-height: 1.2;
    padding: 0 4px;
  }
  .hero-intro .subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    padding: 0 6px;
  }
  .faq-layout { grid-template-columns: 1fr; }
  .site-header__inner { padding: 8px 14px; }
  .site-logo__img { width: 40px; height: 40px; }
  .site-logo__text { font-size: 1.1rem; }
  .site-header__lang {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
  .partners-carousel {
    --partners-gap: 28px;
    --partners-logo-h: 40px;
    --partners-duration: 20s;
    margin: 28px -8px 0;
  }
  .partners-set img {
    max-width: 96px;
  }
  .footer-top, .footer-bottom { flex-direction: column; text-align: center; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; }
  .reseller-card {
    padding: 24px 18px;
    margin-top: 24px;
  }
  .device-card {
    padding: 24px 18px;
  }
  .email-icon {
    width: 52px;
    height: 52px;
    bottom: 16px;
    left: 16px;
  }
}

@media (max-width: 480px) {
  .hero-intro { padding: 76px 0 28px; }
  .partners-carousel {
    --partners-gap: 22px;
    --partners-logo-h: 34px;
    --partners-duration: 18s;
    margin-inline: -12px;
  }
  .partners-set img {
    max-width: 82px;
  }
  .block-title {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }
}
