:root {
  --bg: #000000;
  --bg-soft: #141414;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --brand: #e50914;
  --brand-hover: #c11119;
  --card-top: #1a2144;
  --card-bottom: #210e17;
  --faq-bg: #2d2d2d;
  --faq-hover: #414141;
  --footer-text: rgba(255, 255, 255, 0.7);
  --max-width: 1060px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Netflix Sans, "Helvetica Neue", Segoe UI, Roboto, Ubuntu, sans-serif;
}

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

button,
input {
font: inherit;
}

a {
  color: inherit;
}

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

.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 1.5rem 2rem 5.5rem;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.7) 12%, rgba(0, 0, 0, 0.24) 45%, rgba(0, 0, 0, 0.58) 100%),
    url("images/header-image.png") center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
}

.hero-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 14rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
}

.navbar,
.hero-content {
  position: relative;
  z-index: 1;
}

.navbar {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.15rem;
}

.brand img {
  width: 148px;
  height: 40px;
  object-fit: contain;
  margin-left: 90px;
  margin-top: -3px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 80px;
  margin-top: -3px;
}

.lang-btn,
.sign-in-btn {
  border-radius: 0.25rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 123px;
  height: 32px;
  padding: 0.35rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(15, 15, 15, 0.72);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
}

.lang-caret {
  font-size: 0.68rem;
  line-height: 1;
  transform: translateY(1px);
}

.sign-in-btn {
  height: 32px;
  min-width: 76px;
  padding: 0.35rem 1rem;
  border: 0;
  background: var(--brand);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.sign-in-btn:hover,
.cta-btn:hover {
  background: var(--brand-hover);
}

.hero-content {
  width: min(100%, 900px);
  margin: 8.5rem auto 0;
  text-align: center;
}

.hero-content h2 {
  max-width: 560px;
  margin: 0 auto;
  font-size: 55px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin-top: 1.4rem;
  font-size: 19px;
  font-weight: 700;
}

.hero-copy,
.cta-copy {
  max-width: 760px;
  margin: 2.2rem auto 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
}

.email-form {
  display: flex;
  position: relative;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.email-field {
  width: min(100%, 375px);
}

.email-field input {
  width: 100%;
  min-height: 56px;
  padding: 1rem 1rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0.25rem;
  background: rgba(22, 22, 22, 0.75);
  color: var(--text);
  outline: none;
  font-size: 1rem;
}

.email-field input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.email-field input:focus {
  border-color: #ffffff;
  border: 3px solid #ffffff;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 210px;
  min-height: 54px;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 0.25rem;
  background: var(--brand);
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-btn span {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 400;
  transform: translateY(-2px);
}

.curve-separator {
  position: relative;
  width: 100%;
  height: 6.15rem;
  margin-top: -1.55rem;
  background:
    linear-gradient(to bottom, transparent 0, transparent 1.35rem, #000000 4.7rem, #000000 100%);
  overflow: hidden;
  isolation: isolate;
}

.curve-separator::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.2rem;
  width: 152%;
  height: 7.2rem;
  transform: translateX(-50%);
  border-top: 2px solid #ef0770;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    radial-gradient(
      82% 132% at 50% 0%,
      rgba(45, 82, 255, 0.34) 0%,
      rgba(26, 35, 114, 0.96) 21%,
      rgba(10, 14, 34, 0.98) 56%,
      rgba(0, 0, 0, 0.18) 76%,
      rgba(0, 0, 0, 0) 84%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 0 rgba(255, 122, 181, 0.2),
    0 10px 26px rgba(25, 47, 170, 0.34),
    0 16px 38px rgba(6, 10, 36, 0.5);
}

.curve-separator::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1rem;
  bottom: 0;
  background:
    radial-gradient(58% 88% at 50% 0, rgba(36, 72, 226, 0.3) 0%, rgba(14, 23, 80, 0.54) 34%, rgba(0, 0, 0, 0.92) 72%, #000000 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000000 80%);
}

.content-section,
.footer {
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
  padding: 0;
}

.trending-section {
  margin-top: 2rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-left: 36px;
}

.slider-shell {
  position: relative;
  padding: 0 2.8rem;
  margin-bottom: 1.8rem;
}

.trending-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.7rem 0.2rem 1rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.trending-slider::-webkit-scrollbar {
  display: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 108px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) scale(0.96);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease,
    visibility 0.2s ease;
  font-size: 1.5rem;
}

.slider-btn-left {
  left: 0.45rem;
}

.slider-btn-right {
  right: 0.45rem;
}

.trending-section:hover .slider-btn,
.trending-section:focus-within .slider-btn,
.trending-section.slider-active .slider-btn {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.slider-btn:hover,
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.movie-card {
  position: relative;
  padding-left: 0.85rem;
  min-height: 252px;
}

.movie-card img {
  width: 100%;
  height: 252px;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.28s ease;
}

.movie-card:hover img {
  transform: scale(1.06);
}

.rank {
  position: absolute;
  left: -0.15rem;
  bottom: 0.7rem;
  color: rgb(0, 0, 0);
  font-size: 4.8rem;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 1.5px #ffffff;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
  z-index: 10;
}

.reasons-section,
.cta-section {
  margin-top: 4rem;
}

.section-headingh2 h2{
  font-size: 1.6rem;
  font-weight: 700;
  margin-left: 42px;
}

.reasons-section {
  width: min(calc(100% - 3rem), 1052px);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 230px);
  justify-content: center;
  gap: 1rem;
  margin-top: 20px;
}

.reason-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 335px;
  padding: 1.6rem 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #1b1f51 0%, #1f1733 55%, #200f19 100%);
}

.reason-card h3 {
  font-size: 1.35rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.02em;

}

.reason-card p {
  margin-top: 1rem;
  color: var(--text-muted);
  line-height: 1.26;
  font-size: 1rem;
  font-weight: 500;
}

.reason-card img {
  align-self: flex-end;
  width: 3.75rem;
  margin-top: 1rem;
}


.faq-section {
  width: min(calc(100% - 3rem), 960px);
  margin-top: 5rem;
}

.faq-heading {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0;
}

.faq-item {
  background: var(--faq-bg);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 84px;
  padding: 1.32rem 1.45rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1.18;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  background: var(--faq-hover);
}

.faq-icon {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 2px;
  background: #ffffff;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease;
  border-top: 1px solid #000;
}

.faq-answer p {
  padding: 0 1.45rem 0;
  font-size: 1.42rem;
  line-height: 1.42;
}

.faq-item.active .faq-answer {
  max-height: 16rem;
  padding: 1.5rem 0;
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.cta-section {
  margin-top: 3.5rem;
  text-align: center;
}
.cta-copy{
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.4;
}

.email-form-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  flex-wrap: nowrap;
}
.email-form-bottom .email-field {
  width: 500px;
}

.email-form-bottom input {
  height: 56px;
  padding: 0 1rem;
  font-size: 1rem;
  border-radius: 4px;
}
.email-form-bottom .cta-btn {
  width: auto;         
  flex: 0 0 auto;      
  height: 56px;
  min-width: 180px;
  font-size: 1.2rem;
}
.cta-copy {
  max-width: 600px;
  margin: 0 auto 0.8rem;
  font-size: 1rem;
}

.footer {
  padding-top: 4.9rem;
  padding-bottom: 4rem;
  color: var(--footer-text);
}

.footer-contact {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-contact a {
  text-decoration: underline;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 1rem 6rem;
  margin-top: 1.8rem;
}

.footer-links a {
  font-size: 0.9rem;
  text-decoration: underline;
  color: rgba(255, 255, 255, 0.7);
}

.footer-lang {
  margin-top: 2rem;
  margin-left: 0;
}

.footer-country {
  margin-top: 1.2rem;
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .hero-section {
    min-height: auto;
    padding: 1.5rem 1.25rem 5rem;
  }

  .hero-content {
    margin-top: 6rem;
  }

  .content-section,
  .footer {
    width: min(calc(100% - 2.5rem), var(--max-width));
  }

  .faq-section {
    width: min(calc(100% - 2.5rem), 1036px);
  }

  .reasons-section {
    width: min(calc(100% - 2.5rem), 1052px);
  }

  .reasons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-end;
  }

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

  .email-field,
  .cta-btn {
    width: 100%;
  }

  .cta-btn {
    min-width: 0;
    font-size: 1.5rem;
  }

  .slider-btn {
    width: 26px;
    height: 92px;
    font-size: 1.2rem;
  }

  .trending-slider {
    grid-auto-columns: 145px;
    gap: 1rem;
  }

  .movie-card {
    padding-left: 0.7rem;
    min-height: 205px;
  }

  .movie-card img {
    height: 205px;
  }

  .rank {
    left: -0.1rem;
    bottom: 0.65rem;
    font-size: 3.5rem;
  }

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

  .reason-card {
    min-height: 286px;
    padding: 1.3rem 1.05rem 1rem;
  }

  .reason-card h3 {
    font-size: 1.55rem;
  }

  .reason-card p,
  .faq-question,
  .faq-answer p {
    font-size: 1.12rem;
  }

  .faq-question {
    min-height: 72px;
  }

  .reason-card h3 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-kicker {
    font-size: 0.82rem;
  }

  .lang-btn {
    min-width: 6rem;
    padding-inline: 0.7rem;
  }

  .sign-in-btn {
    padding-inline: 0.8rem;
  }

  .section-heading h2 {
    font-size: 1.45rem;
  }

  .faq-question {
    padding: 1.2rem;
  }

  .faq-answer p {
    padding-inline: 1.2rem;
  }

  .cta-btn span {
    font-size: 2rem;
  }
}

.footer {
  max-width: 1000px;
  margin-left: 165px;
  margin-right: auto;
  padding-top: 4rem;
  padding-bottom: 4rem;
}