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

:root {
  --primary-bg: #0b0e11;
  --secondary-bg: #1a1d21;
  --primary-orange: #f7a600;
  --primary-orange-hover: #ffb41f;
  --text-primary: #ffffff;
  --text-secondary: #8b909a;
  --border-color: #2b3139;
  --modal-bg: #1a1d21;
  --danger-red: #ff4747;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Pattern */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-pattern::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(
    circle,
    rgba(247, 166, 0, 0.1) 2px,
    transparent 2px
  );
  background-size: 40px 40px;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(40px, 40px);
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

/* Hide main content when modal is open */
.modal-open .container {
  filter: blur(5px);
  pointer-events: none;
}

/* Header */
.header {
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo {
  height: 32px;
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
  padding: 40px 0;
  text-align: center;
}

/* Hero Section */
.hero-image {
  width: 600px;
  height: 300px;
  margin: 0 auto 40px;
  display: block;
  filter: drop-shadow(0 0 30px #FFA500) drop-shadow(0 0 60px rgba(255, 165, 0, 0.6));
}

.bitcoin-icon {
  position: relative;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #f7a600 0%, #ffb41f 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-weight: bold;
  box-shadow: 0 10px 40px rgba(247, 166, 0, 0.3);
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-element {
  position: absolute;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f7a600 0%, #ffb41f 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  animation: float-rotate 3s ease-in-out infinite;
}

.float-element:nth-child(1) {
  top: -20px;
  left: -20px;
  animation-delay: 0s;
}
.float-element:nth-child(2) {
  top: -20px;
  right: -20px;
  animation-delay: 0.5s;
}
.float-element:nth-child(3) {
  bottom: -20px;
  left: -20px;
  animation-delay: 1s;
}
.float-element:nth-child(4) {
  bottom: -20px;
  right: -20px;
  animation-delay: 1.5s;
}

@keyframes float-rotate {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
}

.hero-title {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Features */
.features {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 200px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-title {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

.feature-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

/* Button */
.cw-connect-button {
  background: linear-gradient(
    135deg,
    var(--primary-orange) 0%,
    var(--primary-orange-hover) 100%
  );
  color: var(--primary-bg);
  border: none;
  padding: 18px 169px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: buttonAppear 1s ease-out 0.5s both;
}

.cw-connect-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247, 166, 0, 0.4);
}

.cw-connect-button:active {
  transform: translateY(0);
}

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

.button-animate {
  animation: buttonAppear 0.8s ease-out forwards;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.modal {
  background: var(--modal-bg);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  transform: scale(1);
  transition: all 0.3s ease;
}

.modal-overlay.hidden .modal {
  transform: scale(0.9);
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 24px;
  transition: all 0.2s ease;
}

.close-button:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 15px 20px;
}

.modal-text {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 15px;
  font-size: 13px;
}

.warning-text {
  color: var(--danger-red);
  font-weight: 600;
}

.modal-list {
  list-style: none;
  margin: 15px 0;
}

.modal-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-secondary);
  font-size: 12px;
}

.modal-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--primary-orange);
  font-weight: bold;
}

.divider {
  height: 1px;
  background: var(--border-color);
  margin: 15px 0;
}

.modal-footer {
  padding: 0 20px 15px;
}

/* Checkbox */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  background: transparent;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.custom-checkbox.checked {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
}

.custom-checkbox.checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-bg);
  font-size: 12px;
  font-weight: bold;
}

.checkbox-text {
  color: var(--text-secondary);
  line-height: 1.4;
  font-size: 12px;
}

.modal-button {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-orange) 0%,
    var(--primary-orange-hover) 100%
  );
  color: var(--primary-bg);
  border: none;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.5;
  pointer-events: none;
}

.modal-button.enabled {
  opacity: 1;
  pointer-events: auto;
}

.modal-button.enabled:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(247, 166, 0, 0.3);
}

.feature-icon {
  width: 50px;
  height: 50px;
}

.feature-icon-2 img {
  
  transform: rotate(-5deg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 20px 0;
  }

  .hero-image {
    width: 220px;
    height: 220px;
    margin-bottom: 30px;
  }

  .bitcoin-icon {
    width: 140px;
    height: 140px;
    font-size: 60px;
  }

  .float-element {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .features {
    gap: 20px;
    margin-bottom: 40px;
  }

  .feature {
    gap: 10px;
  }

  .feature-title {
    max-width: 100px;
  }

  .feature-icon img {
    width: 30px;
    height: 30px;
  }

  .cw-connect-button {
    padding: 16px 60px;
    font-size: 16px;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-title {
    font-size: 18px;
    flex-direction: column;
    text-align: center;
  }

  .modal-body {
    padding: 15px 20px;
  }

  .modal-footer {
    padding: 0 20px 15px;
  }

  .modal {
    margin: 10px;
    max-height: 90vh;
  }

  .modal-list li {
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.4;
  }

  .modal-text {
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
  }

  .divider {
    margin: 15px 0;
  }

  .checkbox-text {
    font-size: 12px;
  }

  .modal-button {
    padding: 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-image {
    width: 335px;
    height: 180px;
  }

  .bitcoin-icon {
    width: 120px;
    height: 120px;
    font-size: 50px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-description {
    font-size: 14px;
  }

  .features {
    gap: 30px;
    flex-wrap: nowrap;
  }

  .feature {
    text-align: center;
    gap: 0;
    max-width: 220px;
  }

  .feature-title {
    font-size: 11px;
    line-height: 1.3;
    max-width: 120px;
  }


  .cw-connect-button {
    padding: 14px 40px;
    font-size: 15px;
    width: 100%;
    max-width: 302px;
  }

  .modal {
    margin: 5px;
    max-height: 95vh;
  }

  .modal-header {
    padding: 12px 15px;
  }

  .modal-title {
    font-size: 16px;
    margin-top: 50px;
  }

  .modal-body {
    padding: 12px 15px;
  }

  .modal-footer {
    padding: 0 15px 12px;
  }

  .modal-text {
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .modal-list li {
    font-size: 11px;
    margin-bottom: 8px;
    line-height: 1.3;
    padding-left: 20px;
  }

  .divider {
    margin: 12px 0;
  }

  .checkbox-container {
    gap: 10px;
    margin-bottom: 15px;
  }

  .custom-checkbox {
    width: 18px;
    height: 18px;
  }

  .checkbox-text {
    font-size: 11px;
    line-height: 1.3;
  }

  .modal-button {
    padding: 10px;
    font-size: 13px;
  }
}

/* Safe area insets for modern devices */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .modal-overlay {
    padding: max(20px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      max(20px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
  }
}
