:root {
  --primary: #0066ff;
  --primary-dark: #0052cc;
  --secondary: #00d4ff;
  --accent-warm: #ff6b35;
  --success: #10b981;
  --warning: #f59e0b;
  --neutral-950: #0a0e27;
  --neutral-900: #0f172a;
  --neutral-800: #1e293b;
  --neutral-700: #334155;
  --neutral-600: #475569;
  --neutral-500: #64748b;
  --neutral-400: #94a3b8;
  --neutral-300: #cbd5e1;
  --neutral-200: #e2e8f0;
  --neutral-100: #f1f5f9;
  --neutral-50: #f8fafc;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  background: linear-gradient(
    135deg,
    var(--neutral-950) 0%,
    var(--neutral-900) 50%,
    var(--neutral-800) 100%
  );
  color: var(--neutral-100);
  line-height: 1.6;
  min-height: 100vh;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}
h2 {
  font-size: 2.5rem;
  color: var(--neutral-50);
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.25rem;
  color: var(--neutral-50);
}
a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--primary);
}
button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../hero-bg.jpg) center/cover no-repeat;
  opacity: 0.15;
  filter: brightness(0.5) saturate(0.8);
  z-index: 0;
}
.container-hero {
  position: relative;
  z-index: 1;
}
.hero-content {
  animation: slideInLeft 0.8s ease-out;
}
.badge {
  display: inline-block;
  background: #00d4ff26;
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--neutral-300);
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 500px;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.btn-primary,
.btn-secondary {
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 8px 24px #0066ff4d;
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px #06f6;
}
.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.btn-secondary:hover {
  background: #00d4ff1a;
  transform: translateY(-2px);
}
.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat strong {
  font-size: 1.75rem;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}
.stat span {
  font-size: 0.9rem;
  color: var(--neutral-400);
}
.hero-visual {
  position: relative;
  animation: slideInRight 0.8s ease-out;
}
.phone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 80px #0009, 0 0 40px #00d4ff33;
  margin: 0 auto;
  border: 2px solid rgba(0, 212, 255, 0.15);
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  width: 140px;
  height: 24px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}
.phone-display {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #003d99 100%);
  border-radius: 35px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  color: #fff;
}
.phone-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.phone-chart {
  width: 100%;
  height: 80px;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.phone-balance-display {
  text-align: center;
  margin-bottom: 1.5rem;
}
.phone-balance-display p {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}
.phone-balance-display h3 {
  font-size: 1.75rem;
  color: #fff;
  margin: 0;
}
.phone-assets-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.asset-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff1a;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.asset-icon {
  width: 32px;
  height: 32px;
  background: #fff3;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.floating-cards {
  position: absolute;
  bottom: -20px;
  right: -40px;
  width: 200px;
  height: 200px;
}
.float-card {
  position: absolute;
  background: #ffffff1a;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 1rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  animation: float 3s ease-in-out infinite;
}
.card-1 {
  width: 100px;
  height: 100px;
  animation-delay: 0s;
}
.card-2 {
  width: 90px;
  height: 90px;
  top: 40px;
  right: 40px;
  animation-delay: 0.5s;
}
.card-3 {
  width: 80px;
  height: 80px;
  bottom: 30px;
  right: 20px;
  animation-delay: 1s;
}
@keyframes float {
  0%,
  to {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
.info-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #00d4ff0d, #0066ff0d);
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.info-card {
  background: #0066ff14;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.info-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.info-card:hover {
  border-color: var(--secondary);
  background: #0066ff1f;
  transform: translateY(-8px);
  box-shadow: 0 12px 40px #0066ff26;
}
.info-card:hover:before {
  transform: scaleX(1);
}
.info-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px #0066ff4d;
}
.info-icon img {
  width: 40px;
  height: 40px;
}
.info-icon i {
  font-size: 40px;
  color: #fff;
}
.info-card:hover .info-icon {
  transform: scale(1.1) rotate(-5deg);
}
.info-card h3 {
  margin-bottom: 0.75rem;
  color: var(--neutral-50);
}
.info-card p {
  color: var(--neutral-400);
  font-size: 0.95rem;
  line-height: 1.6;
}
.problems-section {
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  margin-bottom: 0.75rem;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--neutral-400);
}
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.problem-card {
  background: linear-gradient(135deg, #0066ff1a, #00d4ff0d);
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.problem-card:before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.15) 0%,
    transparent 70%
  );
  transition: all 0.5s ease;
}
.problem-card:hover {
  border-color: var(--secondary);
  background: linear-gradient(135deg, #0066ff26, #00d4ff1a);
  transform: translateY(-12px);
  box-shadow: 0 20px 50px #0066ff40;
}
.problem-card:hover:before {
  top: -20%;
  right: -20%;
}
.problem-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.problem-card:hover .problem-icon {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
}
.problem-card h3 {
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.problem-card p {
  color: var(--neutral-400);
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}
.arrow {
  position: relative;
  z-index: 1;
  color: var(--secondary);
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translate(-10px);
}
.problem-card:hover .arrow {
  opacity: 1;
  transform: translate(0);
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.popup {
  position: fixed;
  top: 2rem;
  right: -500px;
  max-width: 380px; /* default for 768px and up */
  width: 100%;
  max-height: 90vh; /* don't exceed viewport height */
  overflow-y: auto; /* allow scrolling within popup */
  box-sizing: border-box;
  background: linear-gradient(
    135deg,
    var(--neutral-800) 0%,
    var(--neutral-900) 100%
  );
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 60px #00000080;
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}
.popup.active {
  right: 2rem;
}
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}
.popup-header h4 {
  margin: 0;
  color: var(--neutral-50);
  font-size: 1.1rem;
}
.popup-close {
  background: none;
  border: none;
  color: var(--neutral-400);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}
.popup-close:hover {
  color: var(--secondary);
}
.recovery-popup-close {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  font-size: 1.2rem;
}
.wallet-popup-close {
  font-size: 1.2rem;
}

/* popup children 2 */
.wallet-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}
.wallet-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem;
  background: #0066ff1a;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--neutral-100);
  width: 100%;
  box-sizing: border-box;
}
.wallet-card img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 50%;
}
.wallet-icon-box i {
  font-size: 24px;
  color: #fff;
}
.wallet-card:hover {
  background: #0066ff26;
  border-color: var(--secondary);
  transform: translate(8px);
}

/* popup footer */
.popup-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 212, 255, 0.2);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.popup-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.popup-footer a:hover {
  color: var(--primary);
}
.popup-state {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInUp 0.4s ease;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 212, 255, 0.2);
  border-top: 4px solid var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 1rem auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.device-warning {
  background: #f59e0b1a;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.device-warning i {
  font-size: 1.75rem;
  color: var(--warning);
  display: block;
  margin-bottom: 0.5rem;
}
.device-warning h4 {
  color: var(--warning);
  margin: 0.5rem 0 0.25rem;
  font-size: 1rem;
}
.device-warning p {
  color: var(--neutral-400);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}
.wallet-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #0066ff1a;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.95rem;
}
.wallet-icon-box-small {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wallet-icon-box-small img {
  width: 100%;
  height: 100%;
  color: var(--secondary);
  border-radius: 50%;
}
.recovery-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.recovery-inputs label {
  color: var(--neutral-300);
  font-weight: 500;
  font-size: 0.9rem;
}
select {
  background: #0066ff1a;
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--neutral-100);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}
select:hover,
select:focus {
  border-color: var(--secondary);
  outline: none;
  background: #0066ff26;
}
select option {
  background: var(--neutral-900);
  color: var(--neutral-100);
}
.inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.recovery-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.4rem;
  box-sizing: border-box;
}
input[type="text"] {
  background: #0066ff1a;
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--neutral-100);
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 16px; /* prevents auto-zoom on mobile */
  transition: all 0.3s ease;
  font-family: Courier New, monospace;
  font-weight: 500;
  box-sizing: border-box; /* prevents padding from affecting width */
  width: 100%; /* ensure it fills container */
}
input[type="text"]::placeholder {
  color: var(--neutral-600);
}
input[type="text"]:hover,
input[type="text"]:focus {
  border-color: var(--secondary);
  outline: none;
  background: #0066ff26;
}
.btn-verify {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: #fff;
  padding: 0.9rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px #10b98133;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}
.btn-verify:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px #10b9814d;
}
.success-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: #10b9811a;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  text-align: center;
  animation: slideUp 0.4s ease;
}
.success-display i {
  font-size: 2.5rem;
  color: var(--success);
}
.success-display h4 {
  color: var(--success);
  margin: 0;
  font-size: 1.1rem;
}
.success-display p {
  color: var(--neutral-400);
  margin: 0;
  font-size: 0.9rem;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translate(-30px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translate(30px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  .container-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  .hero-stats {
    gap: 1.5rem;
  }
  .phone-frame {
    width: 240px;
    height: 480px;
  }
  .floating-cards {
    display: none;
  }
  .modal {
    max-width: 100%;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .problems-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .phrase-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  .container {
    padding: 0 1rem;
  }
  .phone-frame {
    width: 200px;
    height: 400px;
  }
  .problems-grid {
    grid-template-columns: 1fr;
  }
  .info-section,
  .problems-section {
    padding: 3rem 0;
  }
  .modal-content {
    padding: 1.5rem;
  }
}

/* -----------Modification----------- */

.hero-buttons .btn-primary {
  text-align: center;
}

@media (max-width: 768px) {
  .badge-wrapper {
    text-align: center;
    padding-bottom: 10px;
  }

  .badge {
    display: inline-block;
  }

  .popup {
    max-width: 320px; /* 375px to 768px */
  }
}

@media (min-width: 769px) {
  input[type="text"] {
    font-size: 0.75rem;
  }
}
