/* Import fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Cairo:wght@400;600;700&display=swap");

/*=============== BASE ===============*/
*,
::before,
::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", serif;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: unset;
}

button,
input {
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== VARIABLES ===============*/
:root {
  /* Colors */
  --primary-color: #2600fc;
  --secondary-color: #ff00ea;

  /* Spacing */
  --spacing-small: 0.5rem;
  --spacing-medium: 1rem;
  --spacing-large: 2rem;
}

/*=============== UTILITY CLASSES ===============*/

.container {
  width: 100%;
  max-width: 1230px;
  margin: auto;
  padding: var(--spacing-large);
  box-sizing: border-box;

}

/* Spacing Utilities */
.mt-1 {
  margin-top: var(--spacing-small);
}

.mb-1 {
  margin-bottom: var(--spacing-small);
}

.mb-2 {
  margin-bottom: var(--spacing-large);
}

.space-y-4>*+* {
  margin-top: var(--spacing-medium);
}

.p-1 {
  padding: var(--spacing-small);
}

.p-2 {
  padding: var(--spacing-medium);
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-16 {
  gap: 4rem;
}

/* Typography Utilities */
.text-center {
  text-align: center;
}

.text-lg {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.text-xl {
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.text-muted {
  color: #7B7583;

}

.text-gradient {
  background: -webkit-linear-gradient(var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* Display Utilities */
.d-flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

/*=============== LAYOUT ===============*/


.primary-button {
  background-image: linear-gradient(to right, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  padding: 1.1rem;
  border-radius: 30px;
  width: 14.5rem;
}

/*=============== NAVBAR ===============*/

.navbar {
  position: fixed;
  width: 100%;
  padding-top: 0.7rem;
  z-index: 999;
  background: white;
  border-bottom: 1px solid #e9e8e8;
}


/* HERO */
.hero-section {
  padding-top: 10em;
  padding-bottom: 10rem;
}

/* WALLETS */
.wallet-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  justify-items: center;
}



/* WHY US */
.why-us {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;

}

.why-us .card {
  border: 1px solid #e9e8e8;
  border-radius: 10px;
  padding: 2rem;

}

/* STATS */
.stat-item {
  text-align: center;
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  margin-top: 0.5rem;
}

/* How It Works Section */
.steps {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.step {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.step.reverse {
  flex-direction: row-reverse;
}

.step img {
  flex: 1;
  max-width: 100%;
  border-radius: 10px;
}

.step .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}




/* SUBSCRIBE */
.sub input {
  border: 1px solid #dadada;
  border-radius: 10px;
  padding: 1rem;
  width: 40%;
  margin-right: 0.5rem;
  margin-bottom: 1rem;
}

.sub button {
  width: 10rem;
}


/* FAQ */
.faq-container {
  width: 90%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: auto;
  border: 1px solid #e9e8e8;
}

.faq-item {
  border-bottom: 1px solid #e9e8e8;
}

.faq-title {
  padding: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-title:hover {
  background: #f0f0f0;
}

.faq-title::after {
  content: '+';
  font-size: 20px;
  transition: transform 0.3s;
}

.faq-title.active::after {
  content: '-';
  transform: rotate(180deg);
}

.faq-content {
  padding: 16px;
  font-size: 16px;
  color: #666;
  display: none;
}

.faq-content.active {
  display: block;
}


/* MINTING */
.minting {
  background-image: url('../img/cta-bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  height: 24rem;
}

/*  FOOTER */
.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.footer-left,
.footer-links,
.footer-community {
  text-align: center;
}

.footer-left p,
.footer-links ul,
.footer-community ul {
  margin-top: 2rem;
}

.footer-left ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-left a,
.footer-links a,
.footer-community a {
  color: #333;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

.footer-terms {
  display: flex;
  gap: 1rem;
}

.footer-terms a {
  color: #333;
  font-size: 0.875rem;
}



/* Media Queries */
@media (max-width: 1024px) {
  .steps {
    gap: 3rem;
  }

  .wallet-logos {
    grid-template-columns: repeat(4, 1fr);

  }
}


@media (max-width: 768px) {
  .navbar ul {
    display: none;
  }

  .hero-banner {
    display: none;
  }

  .wallet-logos {
    grid-template-columns: repeat(3, 1fr);

  }

  .stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .step {
    flex-direction: column;
  }

  .step.reverse {
    flex-direction: column;
  }

  .step img {
    width: 100%;
  }

  .sub input {
    width: 100%;
  }


  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }

  .footer-terms {
    justify-content: center;
  }

  .main-nav {
    display: none;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-cta,
  .hero-trust {
    justify-content: center;
  }

  .footer-content {
    gap: 2rem;
  }
}

/*=============== BCHAIN.LY ADDITIONS ===============*/

html[lang="ar"] body {
  font-family: "Cairo", "Inter", serif;
}

.brand {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f051d;
}

.brand span {
  background: -webkit-linear-gradient(var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-left .brand {
  display: inline-block;
}

.nav-actions {
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid #e9e8e8;
  border-radius: 30px;
  overflow: hidden;
}

.lang-btn {
  background: #fff;
  color: #7b7583;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.lang-btn.active {
  background-image: linear-gradient(to right, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
}

.secondary-button {
  display: inline-block;
  background: #fff;
  color: #0f051d;
  border: 1px solid #e2dfe8;
  padding: 1rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  width: auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.secondary-button:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(38, 0, 252, 0.12);
}

.hero-copy {
  max-width: 620px;
}

.hero-cta {
  flex-wrap: wrap;
}

.hero-cta .primary-button {
  display: inline-block;
  width: auto;
  text-align: center;
}

.hero-trust {
  align-items: center;
}

.products-intro {
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  border: 1px solid #e9e8e8;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(15, 5, 29, 0.09);
}

.product-image {
  height: 190px;
  background: #f7f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-image img {
  max-height: 100%;
  object-fit: contain;
}

.product-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.product-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color);
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}

.product-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
}

.product-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.product-price {
  font-weight: 700;
  color: #0f051d;
}

.product-buy {
  width: 100%;
  font-weight: 600;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 5, 29, 0.65);
  backdrop-filter: blur(3px);
}

.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  background: #f3f2f7;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1.3rem;
  line-height: 1;
  color: #333;
}

.network-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.network-tab {
  background: #f5f4f9;
  color: #4b4655;
  border-radius: 30px;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.network-tab.active {
  background: #fff;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.payment-detail label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 1rem 0 0.5rem;
}

.address-row {
  display: flex;
  gap: 0.5rem;
}

.address-row input,
.payment-detail > input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dedbe6;
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 0.85rem;
  font-family: monospace;
  background: #faf9fc;
}

.address-row .secondary-button {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  white-space: nowrap;
}

.copy-feedback {
  min-height: 1.2rem;
  font-size: 0.8rem;
  color: #14915a;
  margin-top: 0.35rem;
}

.demo-warning {
  margin-top: 1.25rem;
  padding: 0.85rem;
  border-radius: 8px;
  background: #fff6e5;
  color: #8a5b00;
  font-size: 0.82rem;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

/* RTL adjustments */
html[dir="rtl"] .navbar .container,
html[dir="rtl"] .hero-section,
html[dir="rtl"] .footer-bottom {
  direction: rtl;
}

html[dir="rtl"] .hero-trust img {
  transform: scaleX(-1);
}

html[dir="rtl"] .products-intro,
html[dir="rtl"] .product-body {
  text-align: right;
}

html[dir="rtl"] .faq-title {
  text-align: right;
}
