@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: 2.5rem;
  font-weight: 600;
  color: var(--light);
}

/* 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;
  }
}

@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .hero { min-height: 400px; }
  .faq-layout { grid-template-columns: 1fr; }
  .site-logo__text { font-size: 1.75rem; }
  .footer-top, .footer-bottom { flex-direction: column; text-align: center; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; }
}
