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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fafafa;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.03) 0%, transparent 50%);
  color: black;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

.halloween-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.halloween-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.halloween-modal {
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 500px;
  width: calc(100% - 40px);
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: modalSlideUp 0.5s ease-out;
}

@keyframes modalSlideUp {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.halloween-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: #6e6e73;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.halloween-modal-close:hover {
  background: #f5f5f5;
  color: #000;
}

.halloween-modal-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: pumpkinBounce 2s ease-in-out infinite;
}

@keyframes pumpkinBounce {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.halloween-modal h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #000;
  font-family: "DM Sans", sans-serif;
  letter-spacing: -0.02em;
}

.halloween-modal-highlight {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.halloween-modal p {
  font-size: 1.125rem;
  color: #6e6e73;
  margin-bottom: 24px;
  line-height: 1.6;
}

.halloween-modal-code {
  background: #f5f5f5;
  border: 2px dashed #ff6b35;
  border-radius: 12px;
  padding: 16px 24px;
  margin: 24px 0;
  display: inline-block;
}

.halloween-modal-code-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6e6e73;
  font-weight: 600;
  margin-bottom: 4px;
}

.halloween-modal-code-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ff6b35;
  font-family: "DM Sans", sans-serif;
  letter-spacing: 2px;
}

.halloween-modal-button {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "DM Sans", sans-serif;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
  margin-top: 8px;
}

.halloween-modal-button:hover {
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
  transform: translateY(-2px);
}

.product-card {
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15) !important;
  z-index: 10;
}

.product-card-advanced {
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.25));
  z-index: 1;
}

.product-card-advanced:hover {
  filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.35));
  box-shadow: none !important;
  z-index: 10;
}

.product-card:hover a {
  transform: scale(1.02);
}

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  padding: 12px 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 500px;
  max-width: calc(100vw - 40px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled {
  top: 15px;
  width: 400px;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0 32px;
  transition: all 0.3s ease;
}

.navbar.scrolled .nav-container {
  padding: 0 10px;
  padding-left: 20px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.favicon {
  height: 28px;
  width: 28px;
  transition: all 0.3s ease;
}

.logo-text {
  font-weight: 600;
  font-size: 18px;
  color: black;
  transition: all 0.3s ease;
}

.navbar.scrolled .favicon {
  height: 24px;
  width: 24px;
}

.navbar.scrolled .logo-text {
  font-size: 16px;
}

.logo {
  height: 28px;
  transition: all 0.3s ease;
}

.navbar.scrolled .logo {
  height: 24px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar.scrolled .nav-links {
  gap: 20px;
}

.nav-links a {
  color: #424245;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.navbar.scrolled .nav-links a {
  font-size: 14px;
}

.nav-links a:hover {
  color: black;
}

.navbar.scrolled .nav-links a.download-nav-btn {
  background: linear-gradient(135deg, #1e3a8a, #000000);
  color: #fff;
  padding: 6px 10px;
  border-radius: 100px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.3);
}

.navbar.scrolled .nav-links a.download-nav-btn:hover {
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.4);
  color: #fff;
}

.hero {
  min-height: 100vh;
  padding: 120px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

.notification-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 20px;
  width: 320px;
  max-width: calc(100% - 40px);
  transform: translateX(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s ease, opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1001;
  border: 1px solid #e0e0e0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  background: linear-gradient(135deg, #fff, #fff5f0);
  border: 1px solid rgba(255, 107, 53, 0.2);
  padding: 6px 16px;
  color: black;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  width: fit-content;
}

.hero-title {
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1px;
  color: black;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, black, #424245);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "DM Sans", sans-serif;
}

#cycling-game {
  display: inline-block;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
  transform: translateY(0);
  background: linear-gradient(135deg, black, #424245);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: black;
}

.hero-subtitle {
  font-size: 19px;
  color: #6e6e73;
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.4;
  max-width: 500px;
  margin-left: 5px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.download-btn {
  background: linear-gradient(135deg, #1e3a8a, #000000);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.3);
}

.download-btn:hover {
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.4);
}

.github-btn {
  color: #424245;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
}

.github-btn:hover {
  background: #ddd;
  color: #000000;
}

.download-link {
  color: #6e6e73;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  margin-top: 12px;
  display: none;
}

.download-link:hover {
  color: #424245;
}

.app-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.app-preview img {
  width: 100%;
  height: auto;
  max-width: 600px;
}

.features {
  padding: 120px 60px;
  position: relative;
  overflow: visible;
}

.features::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.features-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 80px;
  color: black;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  font-family: "DM Sans", sans-serif;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.bento-item {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.bento-item:nth-child(1) {
  grid-row: span 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 255, 0.9));
}

.bento-item:nth-child(2) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 248, 0.9));
}

.bento-item:nth-child(3) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 255, 248, 0.9));
}

.bento-item:nth-child(4) {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 255, 0.9));
}

.bento-item:nth-child(5) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 255, 255, 0.9));
}

.bento-item:nth-child(6) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 248, 0.9));
}

.bento-item:nth-child(7) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 248, 0.9));
}

.bento-item h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: black;
  letter-spacing: -0.01em;
  font-family: "DM Sans", sans-serif;
}

.bento-item p {
  font-size: 16px;
  color: #6e6e73;
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 500;
}

.bento-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  z-index: 1;
}

.bento-item .content {
  position: relative;
  z-index: 2;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 24px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.faq {
  padding: 120px 60px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.faq-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 80px;
  color: black;
  letter-spacing: -0.02em;
  font-family: "DM Sans", sans-serif;
}

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 20px;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  color: black;
  margin: 0;
  font-family: "DM Sans", sans-serif;
  line-height: 1.4;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #1735AD;
}

.faq-icon {
  font-size: 20px;
  color: #1735AD;
  transition: transform 0.3s ease;
  font-weight: 300;
}

.faq-answer {
  color: #6e6e73;
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
  max-height: 0;
  font-weight: 500;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 12px 0 0 0;
}

.footer {
  padding: 80px 60px 40px;
  background: linear-gradient(180deg, #000 0%, #00071a 100%);
  color: #f5f5f7;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.github-star {
  background: white;
  color: black;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  transition: all 0.3s ease;
  font-size: 16px;
  font-family: "DM Sans", sans-serif;
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.3);
}

.github-star img {
  width: 20px;
  height: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.social-links a {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.footer-text {
  color: #a1a1a6;
  font-size: 16px;
}

.footer-text a {
  color: #f5f5f7;
  text-decoration: none;
  font-weight: 500;
}

.detection-container {
  padding: 40px 20px;
  text-align: center;
}

.feature-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.feature-list li {
  padding: 8px 0;
  color: #6e6e73;
  position: relative;
  padding-left: 20px;
}

.feature-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1e3a8a;
  font-weight: bold;
}

.price {
  font-size: 18px;
  font-weight: 600;
  color: #1e3a8a;
  margin: 10px 0;
}

.bento-item .download-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 12px;
  font-weight: 500;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 100px 40px;
    text-align: center;
  }

  .hero-content {
    max-width: none;
    align-items: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .features {
    padding: 80px 40px;
  }

  .faq {
    padding: 80px 40px;
  }

  .footer {
    padding: 60px 40px 40px;
  }
}

@media (max-width: 768px) {
  .halloween-modal {
    padding: 40px 28px;
    max-width: calc(100% - 32px);
  }

  .halloween-modal h2 {
    font-size: 1.5rem;
  }

  .halloween-modal p {
    font-size: 1rem;
  }

  .halloween-modal-code-text {
    font-size: 1.5rem;
  }

  .halloween-modal-icon {
    font-size: 48px;
  }

  .navbar {
    width: calc(100vw - 32px);
    max-width: none;
    top: 12px;
  }

  .navbar.scrolled {
    width: calc(100vw - 32px);
    top: 12px;
  }

  .nav-container {
    padding: 0 16px;
  }

  .navbar.scrolled .nav-container {
    padding: 0 12px;
  }

  .nav-links {
    gap: 12px;
  }

  .navbar.scrolled .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .navbar.scrolled .nav-links a {
    font-size: 12px;
  }

  .logo-text {
    font-size: 16px;
  }

  .navbar.scrolled .logo-text {
    font-size: 14px;
  }

  .favicon {
    height: 24px;
    width: 24px;
  }

  .navbar.scrolled .favicon {
    height: 20px;
    width: 20px;
  }

  .hero {
    padding: 120px 20px 60px;
    gap: 40px;
    min-height: auto;
  }

  .hero-content {
    padding: 0;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-left: 0;
  }

  .cta-buttons {
    width: 100%;
    justify-content: center;
  }

  .download-btn,
  .github-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .scroll-indicator {
    display: none !important;
  }

  .app-preview {
    display: none !important;
  }

  .app-preview img {
    display: none !important;
  }

  .notification-popup {
    width: calc(100% - 32px);
    max-width: 280px;
    bottom: 16px;
    right: 16px;
    padding: 16px;
  }

  .detection-container {
    padding: 60px 20px 40px;
  }

  .detection-container h2 {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  .detection-container p {
    font-size: 1rem !important;
    padding: 0 10px;
  }

  .features {
    padding: 60px 20px;
  }

  .features-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-item {
    min-height: 250px;
    padding: 32px 24px;
  }

  .bento-item:nth-child(1) {
    grid-row: span 1;
  }

  .bento-item:nth-child(4) {
    grid-column: span 1;
  }

  .bento-item h3 {
    font-size: 20px;
  }

  .bento-item p {
    font-size: 15px;
  }

  .faq {
    padding: 60px 20px;
  }

  .faq-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .faq-question {
    font-size: 16px;
    padding-right: 30px;
  }

  .faq-answer {
    font-size: 15px;
  }

  .footer {
    padding: 60px 20px 40px;
  }

  .github-star {
    padding: 14px 24px;
    font-size: 15px;
  }

  .social-links {
    gap: 16px;
  }

  .footer-text {
    font-size: 14px;
    line-height: 1.6;
  }
}

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

  .nav-links a {
    font-size: 12px;
  }

  .navbar.scrolled .nav-links a {
    font-size: 11px;
  }

  .detection-container h2 {
    font-size: 1.5rem !important;
  }

  .bento-item {
    padding: 24px 20px;
    min-height: 220px;
  }

  .faq-question {
    font-size: 15px;
  }
}
