* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f7f9fc;
  color: #101828;
  line-height: 1.5;
}

/* ================= NAVBAR ================= */

.navbar {
  width: 100%;
  min-height: 72px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #e7ecf3;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: #0052ff;
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0052ff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 21px;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navigation a {
  text-decoration: none;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}

.navigation a:hover {
  color: #0052ff;
}

.outline-btn {
  border: 1px solid #0052ff;
  background: #ffffff;
  color: #0052ff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.outline-btn:hover {
  background: #eef4ff;
}

/* ================= HERO ================= */

.hero {
  min-height: 520px;
  padding: 90px 7%;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 70px;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(0, 82, 255, 0.13),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #ffffff,
      #f3f7ff
    );
}

.eyebrow {
  display: inline-block;
  color: #0052ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -3px;
  margin-bottom: 22px;
}

.hero p {
  max-width: 550px;
  color: #667085;
  font-size: 17px;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-buttons button {
  background: #0052ff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 13px 24px;
  font-weight: 700;
  cursor: pointer;
}

.hero-buttons button:hover {
  background: #0044d6;
}

.secondary-btn {
  text-decoration: none;
  color: #0052ff;
  border: 1px solid #c9d7ff;
  background: #ffffff;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
}

/* ================= HERO CARD ================= */

.hero-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 32px;
  border: 1px solid #e1e8f5;
  box-shadow:
    0 25px 70px rgba(0, 82, 255, 0.12);
}

.hero-card small {
  color: #667085;
  display: block;
  margin-bottom: 10px;
}

.hero-card strong {
  display: block;
  font-size: 38px;
  margin-bottom: 8px;
}

.hero-positive {
  color: #12b76a;
  font-size: 14px;
  font-weight: 700;
}

.mini-chart {
  height: 100px;
  margin-top: 25px;
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      transparent 45%,
      #0052ff 46%,
      #0052ff 48%,
      transparent 49%
    ),
    linear-gradient(
      155deg,
      transparent 50%,
      #80aaff 51%,
      #80aaff 53%,
      transparent 54%
    );
  background-color: #f1f5ff;
}

/* ================= SECTIONS ================= */

.section {
  padding: 80px 7%;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: 32px;
  margin-bottom: 5px;
}

.muted {
  color: #667085;
}

.pill {
  background: #eaf1ff;
  color: #0052ff;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
}

/* ================= MARKETS ================= */

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.market-item {
  background: #ffffff;
  border: 1px solid #e4e9f2;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.04);
}

.market-item strong {
  display: block;
  font-size: 17px;
}

.market-item small {
  color: #98a2b3;
}

.market-price {
  color: #0052ff;
  font-weight: 800;
}

/* ================= STATS ================= */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: #ffffff;
  border: 1px solid #e4e9f2;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.04);
}

.card small {
  display: block;
  color: #667085;
  margin-bottom: 8px;
}

.card b {
  display: block;
  font-size: 25px;
  margin-bottom: 8px;
}

.positive {
  color: #12b76a;
  font-size: 14px;
  font-weight: 700;
}

/* ================= WALLET ================= */

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.coin {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #eaf1ff;
  color: #0052ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 18px;
}

/* ================= FOOTER ================= */

footer {
  padding: 35px 7%;
  text-align: center;
  color: #667085;
  border-top: 1px solid #e4e9f2;
  background: #ffffff;
  font-size: 14px;
}

/* ================= MODALS ================= */

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal.hidden {
  display: none !important;
}

.modal-box {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 18px;
  padding: 32px;
  position: relative;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.25);
  animation: popup 0.18s ease-out;
}

@keyframes popup {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  background: #f2f5fa;
  color: #475467;
  font-size: 24px;
  cursor: pointer;
}

.close:hover {
  background: #e6edff;
  color: #0052ff;
}

.center {
  justify-content: center;
  margin-bottom: 25px;
}

.modal-box h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.modal-box form {
  margin-top: 25px;
}

.modal-box label {
  display: block;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 14px;
}

.modal-box input,
.modal-box textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid #d5dbe7;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  font-size: 15px;
}

.modal-box input:focus,
.modal-box textarea:focus {
  border-color: #0052ff;
  box-shadow:
    0 0 0 3px rgba(0, 82, 255, 0.10);
}

.modal-box textarea {
  resize: vertical;
  min-height: 120px;
}

.full-btn {
  width: 100%;
  background: #0052ff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-weight: 650;
  cursor: pointer;
}

.full-btn:hover {
  background: #0044d6;
}

.otp-message {
  margin-top: 18px;
  text-align: center;
  color: #0052ff;
  font-size: 14px;
  font-weight: 600;
}

/* ================= MOBILE ================= */

@media (max-width: 850px) {

  .navbar {
    padding: 0 5%;
  }

  .navigation {
    gap: 12px;
  }

  .navigation a {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 65px 5%;
  }

  .hero h1 {
    font-size: 52px;
  }

  .section {
    padding: 60px 5%;
  }

  .market-grid,
  .stats,
  .wallet-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 520px;
  }
}

@media (max-width: 500px) {

  .brand {
    font-size: 17px;
  }

  .logo {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .outline-btn {
    padding: 8px 13px;
  }

  .hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons button,
  .secondary-btn {
    text-align: center;
    width: 100%;
  }

  .modal-box {
    padding: 25px 20px;
  }
}