:root {
  font-family: Inter, sans-serif;
  font-feature-settings: "liga" 1, "calt" 1;
}
@supports (font-variation-settings: normal) {
  :root {
    font-family: InterVariable, sans-serif;
  }
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration-thickness: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 50px;
  background: #ededeb;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.button:hover {
  background: #e6e6e4;
}

.button:active {
  transform: scale(0.98);
}

body {
  font-family: "InterVariable", "Inter", -apple-system, sans-serif;
  background-color: #f6f6f5;
  font-size: 16px;
  font-weight: 350;
  color: #000;
  line-height: 1.6;
}

.container {
  max-width: 740px;
  margin: 60px 12%;
}

.header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 60px;
}

.logo {
  width: 50px;
  height: 50px;
  background: url("loupe-icon.png") no-repeat center center;
  background-size: cover;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 4px 6px 0 rgba(0, 0, 0, 0.1);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

h1 {
  font-size: 30px;
  font-weight: 600;
}

.tagline {
  font-size: 20px;
  margin-bottom: 40px;
}

.tagline strong {
  font-weight: 600;
}

.testimonial {
  padding: 3px 0 3px 12px;
  border-left: 6px solid rgba(49, 93, 255, 0.1);
}

.testimonial-quote {
  color: #315dff;
  font-weight: 500;
  margin-bottom: 2px;
}

.testimonial-author {
  color: rgba(49, 93, 255, 0.6);
}

.app-showcase {
  display: flex;
  gap: 20px;
  margin: 100px 20px 100px 12%;
}

.app-icon-container {
  flex-shrink: 0;
  position: relative;
  width: 180px;
  height: 180px;
}

.app-icon-placeholder {
  width: 180px;
  height: 180px;
  border: 2px dashed #ddddd8;
  border-radius: 40px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-icon-placeholder.visible {
  opacity: 0.7;
}

.app-icon {
  width: 180px;
  height: 180px;
  background: url("loupe-icon.png") no-repeat center center;
  background-size: cover;
  border-radius: 40px;
  display: flex;
  position: relative;
  cursor: grab;
  z-index: 10;
  box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.05), 0 13px 14px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    box-shadow 0.4s ease;
}

.app-icon.dragging {
  cursor: grabbing;
  position: fixed !important;
  z-index: 1000;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 0 0 0 rgba(0, 0, 0, 0);
}

.download-section {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  background: #ededeb;
  border-radius: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.download-section.drop-active {
  background: rgba(49, 93, 255, 0.3);
  transform: scale(1.025);
}

.download-instructions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 160px;
  color: #a6a6a2;
  font-size: 14px;
  font-weight: 300;
}

.download-instructions:after {
  content: "";
  left: 0;
  bottom: calc(50% - 1px);
  position: absolute;
  width: 97%;
  height: 1px;
  border-bottom: 2px dashed #ddddd8;
}

.download-instructions:before {
  content: "";
  right: 0px;
  bottom: calc(50% - 6px);
  position: absolute;
  width: 10px;
  height: 10px;
  border-right: 2px solid #ddddd8;
  border-bottom: 2px solid #ddddd8;
  rotate: -45deg;
}

.download-btn {
  display: flex;
  flex-direction: column;
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: #a6a6a2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.download-btn:hover,
.download-section.drop-active .download-btn {
  color: #315dff;
}

.download-btn .download-btn-during {
  display: none;
}
.download-btn.downloading .download-btn-pre {
  display: none;
}
.download-btn.downloading .download-btn-during {
  display: flex;
  color: #315dff;
}

.see-action {
  padding: 10px 20px 10px 14px;
}

.play-icon {
  width: 20px;
  height: 20px;
  border: 1.5px solid #000;
  border-radius: 50%;
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 4.5px;
  width: 0;
  height: 0;
  border-left: 8px solid #000;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.description {
  margin: 60px 0;
}

.description strong {
  font-weight: 600;
}

.description p {
  margin-bottom: 30px;
}

.opacity-section {
  background: #000;
  border-radius: 50px;
  padding: 70px 64px;
  margin: 100px 12%;
  color: #f6f6f5;
}

.brought-by {
  margin-bottom: 12px;
}

.opacity-description {
  margin: 60px 0 80px 0;
}

.early-access-btn {
  background: #f6f6f5;
  color: #000;
}

.early-access-btn:hover {
  background: #f6f6f5;
}

.footer {
  margin-top: 40px;
}

.copyright {
  margin-top: 40px;
  font-size: 12px;
}

.copyright span {
  white-space: nowrap;
}

.beta-version {
  font-size: 12px;
  margin-top: 5px;
}
.beta-version strong {
  font-weight: 600;
}

#physics-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-overlay.active {
  display: flex;
  opacity: 1;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.video-overlay.active .video-container {
  transform: scale(1);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.close-video {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2001;
}

.close-video:hover {
  background: rgba(255, 255, 255, 0.3);
}

.close-video:active {
  transform: scale(0.95);
}

.close-video::before,
.close-video::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: black;
  border-radius: 2px;
}

.close-video::before {
  transform: rotate(45deg);
}

.close-video::after {
  transform: rotate(-45deg);
}

@media (max-width: 600px) {
  body {
    padding: 60px 0;
  }

  .container {
    margin: 0 10%;
  }

  .app-showcase {
    margin-left: 10%;
    flex-direction: column-reverse;
  }

  .download-instructions {
    display: none;
  }

  .download-section {
    width: fit-content;
    height: inherit;
    padding: 10px 20px 10px 14px;
    justify-content: start;
  }

  .download-section:not(.drop-active):hover {
    background: #e6e6e4;
  }

  .download-section:active {
    transform: scale(0.98);
  }

  .download-section.drop-active .download-btn-icon {
    border-color: #315dff;
  }

  .download-section.drop-active .download-btn-icon::after {
    border-color: #315dff;
  }

  .download-btn {
    display: flex;
    color: #000;
    flex-direction: row;
    gap: 4.5px;
    align-items: center;
  }

  .download-btn:hover {
    color: #000;
  }

  .download-btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border: 1.5px solid #000;
    border-radius: 50%;
    position: relative;
  }

  .download-btn-icon::after {
    content: "";
    position: absolute;
    left: 5.5px;
    top: 4px;
    width: 4.5px;
    height: 4.5px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
  }

  .opacity-section {
    border-radius: 0;
    padding: 70px 54px;
    margin: 0;
  }

  .video-container {
    margin: 0 10px;
  }

  .close-video {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .close-video::before,
  .close-video::after {
    width: 20px;
  }
}
