/* =========================================================
   Pixenty · Netflix-style landing page
   ========================================================= */

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --surface: #141414;
  --surface-2: #1f1f1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --text-2: #b3b3b3;
  --text-3: #808080;
  --brand: #e50914;
  --brand-hot: #f40612;
  --brand-deep: #b0060f;
  --danger: #e87c03;
  --radius-sm: 4px;
  --radius-md: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--text); text-decoration: none; }
button { font-family: inherit; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #200000;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(229, 9, 20, 0.18) 0%, transparent 32%),
    radial-gradient(circle at 88% 24%, rgba(229, 9, 20, 0.14) 0%, transparent 35%),
    radial-gradient(circle at 50% 95%, rgba(229, 9, 20, 0.10) 0%, transparent 40%),
    /* tile pattern of subtle red diagonal lines */
    repeating-linear-gradient(
      135deg,
      transparent 0px,
      transparent 38px,
      rgba(229, 9, 20, 0.04) 38px,
      rgba(229, 9, 20, 0.04) 40px
    );
  background-size: auto, auto, auto, 80px 80px;
}

/* tile mosaic of tickets — pure CSS, no external images */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    /* row of tickets */
    radial-gradient(circle 6px at 8% 22%, rgba(229, 9, 20, 0.65), transparent 70%),
    radial-gradient(circle 5px at 22% 14%, rgba(229, 9, 20, 0.5), transparent 70%),
    radial-gradient(circle 8px at 38% 28%, rgba(229, 9, 20, 0.45), transparent 70%),
    radial-gradient(circle 5px at 56% 12%, rgba(229, 9, 20, 0.6), transparent 70%),
    radial-gradient(circle 7px at 72% 22%, rgba(229, 9, 20, 0.5), transparent 70%),
    radial-gradient(circle 6px at 88% 36%, rgba(229, 9, 20, 0.55), transparent 70%),
    radial-gradient(circle 5px at 14% 48%, rgba(229, 9, 20, 0.4), transparent 70%),
    radial-gradient(circle 8px at 32% 62%, rgba(229, 9, 20, 0.55), transparent 70%),
    radial-gradient(circle 6px at 48% 52%, rgba(229, 9, 20, 0.45), transparent 70%),
    radial-gradient(circle 7px at 68% 64%, rgba(229, 9, 20, 0.5), transparent 70%),
    radial-gradient(circle 5px at 82% 56%, rgba(229, 9, 20, 0.45), transparent 70%),
    radial-gradient(circle 6px at 6% 78%, rgba(229, 9, 20, 0.5), transparent 70%),
    radial-gradient(circle 8px at 24% 88%, rgba(229, 9, 20, 0.45), transparent 70%),
    radial-gradient(circle 5px at 44% 82%, rgba(229, 9, 20, 0.55), transparent 70%),
    radial-gradient(circle 7px at 64% 88%, rgba(229, 9, 20, 0.45), transparent 70%),
    radial-gradient(circle 6px at 90% 76%, rgba(229, 9, 20, 0.55), transparent 70%);
  filter: blur(1px);
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.25) 30%,
      rgba(0, 0, 0, 0.55) 70%,
      rgba(0, 0, 0, 0.95) 100%
    ),
    radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

/* ============ NAVBAR ============ */
.navbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 60px);
}
.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s;
}
.lang-switch:hover { background: rgba(0, 0, 0, 0.6); }
.btn-signin {
  padding: 8px 18px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.btn-signin:hover { background: var(--brand-hot); }

/* ============ HERO CONTENT ============ */
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 100px;
  max-width: 950px;
  margin: 0 auto;
}
.hero-headline {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.hero-tagline {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.hero-cta-prompt {
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--text);
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ============ HERO FORM ============ */
.hero-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 700px;
  align-items: stretch;
}
.hero-email-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.hero-email {
  width: 100%;
  height: 64px;
  padding: 22px 14px 6px;
  background: rgba(22, 22, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s;
  backdrop-filter: blur(4px);
}
.hero-email:focus {
  border-color: rgba(255, 255, 255, 1);
}
.hero-email-label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-2);
  font-size: 16px;
  pointer-events: none;
  transition: all 0.15s ease-out;
}
.hero-email:focus + .hero-email-label,
.hero-email:not(:placeholder-shown) + .hero-email-label {
  top: 16px;
  transform: translateY(0);
  font-size: 12px;
  color: var(--text-2);
}
.hero-email-wrap.has-error .hero-email {
  border-color: var(--danger);
  border-width: 2px;
}
.hero-email-error {
  display: none;
  margin-top: 6px;
  padding-left: 4px;
  color: var(--danger);
  font-size: 13px;
  text-align: left;
}
.hero-email-wrap.has-error .hero-email-error { display: block; }

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--brand-hot); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary--lg {
  height: 64px;
  font-size: 22px;
  padding: 0 32px;
  font-weight: 600;
}
.btn-primary--lg svg { margin-top: 1px; }

/* ============ DIVIDERS / BANDS ============ */
.band {
  height: 8px;
  background: linear-gradient(
    180deg,
    rgba(35, 35, 35, 0) 0%,
    #232323 50%,
    rgba(35, 35, 35, 0) 100%
  );
}

/* ============ SECTIONS ============ */
.section {
  padding: 64px 0;
  background: var(--bg);
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 48px;
}

/* ============ FEATURES (Netflix-style alternating rows) ============ */
.features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 56px clamp(28px, 5vw, 64px);
  background: linear-gradient(149deg, #0f0f10 0%, #1a0808 46%, #2a0a0d 100%);
  border-radius: 12px;
}
.feature--reverse { grid-template-columns: 1fr 1.05fr; }
.feature--reverse .feature-text { order: 2; }
.feature--reverse .feature-visual { order: 1; }
.feature-text h3 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.feature-text p {
  font-size: clamp(15px, 1.6vw, 20px);
  color: var(--text-2);
  line-height: 1.4;
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.visual-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #181818 0%, #0a0a0a 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(229, 9, 20, 0.18), transparent 60%);
}

/* feature: play */
.play-circle {
  position: relative;
  z-index: 2;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.6);
  animation: pulse-play 2.4s ease-out infinite;
}
.play-circle svg { margin-left: 4px; }
@keyframes pulse-play {
  0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.55); }
  70% { box-shadow: 0 0 0 22px rgba(229, 9, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}
.play-progress {
  position: absolute;
  bottom: 24px;
  left: 24px; right: 24px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  z-index: 2;
}
.play-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  animation: progress 4s ease-in-out infinite;
}
@keyframes progress {
  0% { width: 0%; }
  85% { width: 100%; }
  100% { width: 100%; }
}

/* feature: tickets */
.ticket-stack {
  position: relative;
  width: 200px;
  height: 140px;
  z-index: 2;
}
.ticket {
  position: absolute;
  width: 200px;
  height: 80px;
  background: linear-gradient(135deg, #e50914 0%, #b0060f 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 18px 0 64px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.ticket::before {
  content: "";
  position: absolute;
  left: 48px;
  top: -8px; bottom: -8px;
  width: 2px;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 50%, transparent 50%);
  background-size: 2px 8px;
}
.ticket::after {
  content: "PXT";
  position: absolute;
  left: 0; top: 0;
  width: 48px; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px 0 0 8px;
}
.ticket-1 { top: 0; left: 0; transform: rotate(-8deg); }
.ticket-2 { top: 26px; left: 0; transform: rotate(2deg); background: linear-gradient(135deg, #f40612 0%, #c00510 100%); }
.ticket-3 { top: 52px; left: 0; transform: rotate(-2deg); background: linear-gradient(135deg, #b0060f 0%, #800409 100%); }

/* feature: gift */
.gift {
  position: relative;
  z-index: 2;
  color: var(--brand);
  filter: drop-shadow(0 0 28px rgba(229, 9, 20, 0.45));
  animation: gift-bob 3.6s ease-in-out infinite;
}
@keyframes gift-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

/* feature: devices */
.devices {
  position: relative;
  z-index: 2;
  color: var(--text);
}
.devices::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow:
    -22px 0 0 var(--brand),
    22px 0 0 var(--brand);
  animation: dots 1.4s ease-in-out infinite;
}
@keyframes dots {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============ FAQ ============ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 48px;
}
.faq-item {
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.faq-item summary:hover { background: #2d2d2d; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body {
  padding: 18px 28px 26px;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  border-top: 1px solid #000;
}
.faq-body p { color: var(--text-2); }

.faq-cta-prompt {
  font-size: clamp(15px, 1.6vw, 19px);
  text-align: center;
  margin-bottom: 24px;
}
.hero-form--bottom {
  max-width: 700px;
  margin: 0 auto;
}

/* ============ FOOTER ============ */
.footer {
  padding: 60px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--text-3);
}
.footer-help {
  font-size: 16px;
  margin-bottom: 24px;
}
.footer-help a {
  color: var(--text-3);
  text-decoration: underline;
}
.footer-help a:hover { color: var(--text-2); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 30px;
  margin-bottom: 32px;
}
.footer-grid a {
  color: var(--text-3);
  font-size: 13px;
  text-decoration: underline;
}
.footer-grid a:hover { color: var(--text-2); }
.lang-switch--small {
  font-size: 13px;
  padding: 6px 10px;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-3);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-size: 13px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .feature, .feature--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 28px;
    text-align: center;
  }
  .feature--reverse .feature-text { order: 1; }
  .feature--reverse .feature-visual { order: 2; }
  .feature-visual { min-height: 180px; }
  .visual-card { max-width: 280px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero-form { flex-direction: column; gap: 12px; }
  .btn-primary--lg { width: 100%; }
  .navbar { padding: 16px 20px; }
  .brand-logo { height: 28px; }
  .lang-switch span { display: none; }
  .lang-switch { padding: 7px 8px; }
  .btn-signin { padding: 7px 14px; font-size: 14px; }
  .section { padding: 48px 0; }
  .section-title { margin-bottom: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
}
