* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: ##F7F7F7;
  background: #f7f7f7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.blog-banner {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #2055ff;
  color: #fff;
  padding: 10px 48px 10px 20px;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-align: center;
}

.blog-banner[hidden] {
  display: none;
}

.blog-banner-text {
  line-height: 1.3;
}

.blog-banner-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

.blog-banner-link:hover {
  opacity: 0.85;
}

.blog-banner-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s;
}

.blog-banner-close:hover {
  background: rgba(255,255,255,0.15);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  padding: 0 34px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
}

.logo {
  font-size: 48px;
  color: #2055ff;
  letter-spacing: 0.02em;
  stroke: #2055ff;
  -webkit-text-stroke: 2px #2055ff;
  paint-order: stroke fill;
  text-decoration: none;
}

.header-bell {
  max-width: 32px;
  cursor: pointer;
  display: block;
}

.bell-wrapper {
  position: relative;
}

.bell-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 300px;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 20px;
  z-index: 200;
}

.bell-dropdown.open {
  display: block;
}

.bell-dropdown-title {
  font-size: 16px;
  font-weight: 600;
  color: #2055ff;
  margin-bottom: 14px;
}

.bell-signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bell-email-input {
  width: 100%;
  height: 42px;
  border: 1px solid #707070;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 15px;
  font-family: Arial, sans-serif;
  color: #1f1f1f;
  outline: none;
}

.bell-email-input::placeholder {
  color: #979797;
}

.bell-submit-btn {
  width: 100%;
  height: 42px;
  background: #2055ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-family: Arial, sans-serif;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}

.bell-submit-btn:hover {
  background: #1844dd;
}

.bell-success {
  display: none;
  font-size: 15px;
  color: #2055ff;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 6px 0;
}

.hero {
  text-align: center;
  padding: 100px 20px 40px;
  background: #f7f7f7;
}

.hero h1 {
  font-size: 60px;
  font-weight: 700;
  color: #2055ff;
  letter-spacing: 0.01em;
  margin-bottom: 40px;
}

.search-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 976px;
  margin: 0 auto 30px;
  position: relative;
}

.search-bar {
  width: 100%;
  height: 70px;
  border: 1px solid #707070;
  border-radius: 22px;
  padding: 0 90px 0 60px;
  font-size: 25px;
  color: #1f1f1f;
  outline: none;
  font-family: Arial, sans-serif;
}

.search-bar::placeholder {
  color: #979797;
}

.search-icon {
  position: absolute;
  left: 20px;
  width: 28px;
  height: 28px;
  fill: #1f1f1f;
}

.search-plus {
  position: absolute;
  right: 18px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b4b4b;
  transition: color 0.15s;
}

.search-plus.active {
  color: #2055ff;
}

.plusmenu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 200;
  background: #ecf1ff;
  border-radius: 22px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  padding: 10px 8px;
  min-width: 210px;
}

.plusmenu.open {
  display: block;
}

.plusmenu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  border: none;
  padding: 11px 14px;
  cursor: pointer;
  font-size: 17px;
  font-family: Arial, sans-serif;
  letter-spacing: 0.02em;
  color: #1f1f1f;
  text-align: left;
  border-radius: 12px;
  transition: background 0.15s;
}

.plusmenu-item:hover {
  background: rgba(255,255,255,0.55);
}

.plusmenu-item:hover span,
.plusmenu-item:hover .plusmenu-icon {
  color: #2055ff;
}

.plusmenu-icon {
  flex-shrink: 0;
}


.subtitle {
  font-size: 35px;
  letter-spacing: 0.02em;
  color: #1f1f1f;
  max-width: 1400px;
  margin: 35px auto 0;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 40px 0 0 0;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #f7f7f7, transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #f7f7f7, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
}

/* Animation applied only once both images have loaded and the track has its
   final width, so Safari resolves the -50% keyframe against the real width
   instead of caching a near-zero value from the pre-load layout. */
.marquee-track.is-ready {
  animation: marquee-scroll 40s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-img {
  display: block;
  height: 200px;
  width: auto;
  flex-shrink: 0;
  margin-right: 20px;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid #707070;
  background: #ecf1ff;
  font-size: 18px;
  color: #1f1f1f;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.pill:hover {
  background: #dce4ff;
}

.pill svg {
  width: 18px;
  height: 18px;
  fill: #1f1f1f;
}

.mission {
  text-align: center;
  padding: 50px 20px 80px;
  background: #f7f7f7;
}

.mission h2 {
  font-size: 55px;
  color: #1f1f1f;
  font-family: 'Microsoft Sans Serif', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  stroke: #1f1f1f;
  -webkit-text-stroke: 2px #1f1f1f;
  paint-order: stroke fill;
  margin-bottom: 50px;
}

.mission-text {
  max-width: 1260px;
  margin: 0 auto;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 30px;
}

.mission-text .highlight {
  color: #2055ff;
  font-weight: 400;
}

.mission-text .bold {
  font-weight: 700;
}

.mission-video {
  max-width: 900px;
  margin: 50px auto 0;
  padding: 0 30px;
}

.mission-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  display: block;
}

.features {
  padding: 60px 20px 40px;
  background: #f7f7f7;
}

.features-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto 80px;
  flex-wrap: wrap;
}

.feature {
  flex: 1;
  min-width: 300px;
  max-width: 420px;
}

.feature-learn {
  margin-top: 35px;
}

.feature-title {
  font-size: 35px;
  font-family: 'Microsoft Sans Serif', Arial, sans-serif;
  font-weight: 200;
  color: #2055ff;
  paint-order: stroke fill;
  margin-bottom: 30px;
  text-align: center;
}

.feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

svg.feature-icon {
  display: block;
  margin: 0 auto 40px;
}

.feature p {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #1f1f1f;
  text-align: center;
}

.puzzle-icon svg {
  width: 200px;
  height: 200px;
  stroke: #2055ff;
  stroke-width: 2;
  fill: none;
}

.player-icon {
  width: 267px;
  height: 129px;
  border: 1px solid #2055ff;
  border-radius: 19px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-icon svg {
  width: 40px;
  height: 40px;
  fill: #2055ff;
}

.bricks-icon {
  display: grid;
  grid-template-columns: repeat(4, 104px);
  grid-template-rows: repeat(3, 38px);
  gap: 0;
  position: relative;
  width: 416px;
  height: 114px;
}

.brick {
  border: 1px solid #2055ff;
  border-radius: 3px;
  background: #fff;
  width: 104px;
  height: 38px;
  position: absolute;
}

.brick.dashed {
  border-style: dashed;
  border-width: 2px;
  background: transparent;
}

.fork-icon svg {
  width: 160px;
  height: 160px;
  stroke: #2055ff;
  stroke-width: 2;
  fill: none;
}

.cycle-icon svg {
  width: 160px;
  height: 160px;
  stroke: #2055ff;
  stroke-width: 2;
  fill: none;
}

.how-it-works {
  padding: 50px 20px 80px;
  background: #f7f7f7;
}

.how-it-works h2 {
  font-size: 55px;
  font-family: 'Microsoft Sans Serif', Arial, sans-serif;
  font-weight: 400;
  color: #1f1f1f;
  stroke: #1f1f1f;
  -webkit-text-stroke: 2px #1f1f1f;
  paint-order: stroke fill;
  text-align: center;
  margin-bottom: 50px;
}

.how-it-works-text {
  max-width: 1260px;
  margin: 0 auto;
  font-size: 35px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 30px;
}

.how-it-works-text .highlight {
  color: #2055ff;
}

.research {
  max-width: 1260px;
  margin: 0 auto;
  padding: 40px 30px 80px;
  font-size: 35px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: left;
}

.research a {
  color: #2055ff;
  text-decoration: underline;
}

.cta {
  text-align: center;
  padding: 50px 20px 200px;
  background: #f7f7f7;
}

.cta h2 {
  font-size: 55px;
  font-family: 'Microsoft Sans Serif', Arial, sans-serif;
  font-weight: 400;
  color: #1f1f1f;
  stroke: #1f1f1f;
  -webkit-text-stroke: 2px #1f1f1f;
  paint-order: stroke fill;
  margin-bottom: 40px;
}

.cta-subtext {
  font-size: 35px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 50px;
}

.cta-subtext .highlight {
  color: #2055ff;
}

.signup-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.email-input {
  flex: 1;
  min-width: 250px;
  max-width: 700px;
  height: 60px;
  border: 1px solid #707070;
  border-radius: 16px;
  padding: 0 20px;
  font-size: 18px;
  font-family: Arial, sans-serif;
  color: #1f1f1f;
  outline: none;
}

.email-input::placeholder {
  color: #979797;
}

.submit-btn {
  width: 120px;
  height: 50px;
  background: #2055ff;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-family: Arial, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #1844dd;
}

.signup-success {
  display: none;
  font-size: 24px;
  color: #2055ff;
  letter-spacing: 0.02em;
  margin-top: 20px;
}

.footer {
  padding: 30px 34px;
  font-size: 21px;
  letter-spacing: 0.02em;
  color: #1f1f1f;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
}

.footer-link {
  padding: 0px 15px;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #1f1f1f;
  text-decoration: none;
  display: flex;
  align-items: right;
  justify-content: space-between;
}

.footer-link:hover{
  color: #2055ff;
}

@media (max-width: 1200px) {
  .hero h1 { font-size: 50px; }
  .search-bar { height: 65px; font-size: 22px; padding: 0 70px 0 50px; }
  .subtitle { font-size: 26px; }
  .mission h2,
  .how-it-works h2,
  .cta h2 { font-size: 40px; }
  .mission-text,
  .how-it-works-text,
  .cta-subtext { font-size: 28px; }
  .feature-title { font-size: 36px; }
  .feature p { font-size: 24px; }
  .research { font-size: 28px; padding-left: 30px; }
}

@media (max-width: 768px) {
  .blog-banner { font-size: 13px; padding: 8px 38px 8px 14px; }
  .header { height: 70px; padding: 0 20px; }
  .logo { font-size: 36px; -webkit-text-stroke: 1.5px #2055ff; }
  .header-bell { width: 34px; height: 36px; }
  .hero { padding: 60px 16px 30px; }
  .hero h1 { font-size: 32px; margin-bottom: 25px; }
  .search-bar { height: 52px; font-size: 16px; padding: 0 55px 0 52px; border-radius: 16px; }
  .subtitle { font-size: 18px; }
  .topic-pills { gap: 10px; }
  .pill { font-size: 16px; padding: 8px 18px; }
  .mission h2,
  .how-it-works h2,
  .cta h2 { font-size: 28px; -webkit-text-stroke: 1.5px; }
  .mission-text,
  .how-it-works-text,
  .cta-subtext,
  .research { font-size: 20px; padding-left: 16px; padding-right: 16px; }
  .research { text-align: center; }
  .marquee-wrapper:hover .marquee-track { animation-play-state: running; }
  .feature-title { font-size: 26px; -webkit-text-stroke: 0; }
  .feature p { font-size: 18px; }
  .feature { min-width: 260px; }
  .email-input { height: 52px; font-size: 18px; min-width: 200px; border-radius: 16px; }
  .submit-btn { width: 100px; height: 46px; font-size: 18px; }
  .bricks-icon { transform: scale(0.7); transform-origin: center; }
  .player-icon { width: 200px; height: 100px; border-radius: 14px; }
  .footer { font-size: 13px; padding: 20px 16px; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-link { font-size: 12px; padding: 0 8px; }
  .marquee-wrapper::before,
  .marquee-wrapper::after { width: 20px; }
  .mosaic-svg { max-width: 95%; height: auto; display: block; margin: 0 auto 40px; }
}

/* ── Sign-up modal ── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
  animation: backdropFade 0.2s ease forwards;
}

@keyframes backdropFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-backdrop.open .signup-modal {
  animation: modalRise 0.22s ease forwards;
}

@keyframes modalRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.signup-modal {
  position: relative;
  background: #fff;
  border: 1px solid #707070;
  border-radius: 30px;
  width: min(83vw, 990px);
  padding: 52px 61px 47px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
}

.modal-close {
  position: absolute;
  top: 27px;
  right: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

.modal-subheading {
  font-size: clamp(18px, 2.2vw, 38px);
  letter-spacing: 0.01em;
  color: #1f1f1f;
  margin-bottom: 5px;
}

.modal-blue {
  color: #2055ff;
}

.modal-heading {
  font-size: clamp(32px, 4.2vw, 64px);
  font-weight: 700;
  color: #2055ff;
  line-height: 1.22;
  margin-bottom: clamp(36px, 6vw, 72px);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-email {
  width: 100%;
  border: none;
  border-bottom: 2px solid #2055ff;
  font-size: clamp(16px, 1.6vw, 22px);
  font-family: Arial, sans-serif;
  letter-spacing: 0.01em;
  padding: 8px 0 10px;
  color: #1f1f1f;
  outline: none;
  background: transparent;
}

.modal-email::placeholder {
  color: #979797;
}

.modal-submit {
  width: 100%;
  border: 3px solid #2055ff;
  background: #fff;
  color: #2055ff;
  font-size: clamp(20px, 2.5vw, 38px);
  font-weight: 700;
  font-family: Arial, sans-serif;
  letter-spacing: 0.01em;
  padding: clamp(16px, 2vw, 26px) 0;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
}

.modal-submit:hover {
  background: #2055ff;
  color: #fff;
}

.modal-success {
  display: none;
  font-size: 22px;
  color: #2055ff;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 20px 0;
}

/* ── Privacy Policy modal ── */
.privacy-modal {
  position: relative;
  background: #fff;
  border: 1px solid #707070;
  border-radius: 30px;
  width: min(88vw, 620px);
  max-height: 80vh;
  overflow-y: auto;
  padding: 48px 52px 44px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  animation: modalRise 0.22s ease forwards;
}

.privacy-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 4px;
}

.privacy-date {
  font-size: 13px;
  color: #979797;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.privacy-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: #2055ff;
  margin-top: 8px;
  letter-spacing: 0.01em;
}

.privacy-body p {
  font-size: 15px;
  line-height: 1.6;
  color: #1f1f1f;
}

.privacy-link-inline {
  color: #2055ff;
  text-decoration: underline;
}
