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

body {
  font-family: Arial, sans-serif;
  color: #111;
  line-height: 1.6;
  background: #fff;
}

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

img {
  max-width: 100%;
  display: block;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.container p {
  margin-bottom: 10px;
}

/* ================= HEADER ================= */
.header {
  background: #0b0f1a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 150px;
}

nav a {
  margin: 0 10px;
  color: #fff;
  font-size: 14px;
  transition: color 0.3s;
  font-weight: 500;
}

nav a:hover {
  color: #7d3cff;
}

.desktop-wallet-btn {
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wallet-btn {
  background-color: #7d3cff;
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.5s;
}

.wallet-btn:hover {
  background-color: #5f2bd6;
}

.wallet-area {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.wallet-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: #0b0f1a;
  border: 1px solid #1f2a44;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1200;
}

.wallet-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.wallet-dropdown a,
.wallet-dropdown button {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: left;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}

.wallet-dropdown a:hover,
.wallet-dropdown button:hover {
  background: rgba(125, 60, 255, 0.18);
}

.wallet-access-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
}

.wallet-access-modal.show {
  display: block;
}

.wallet-access-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 28, 0.62);
}

.wallet-access-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 460px);
  margin: 12vh auto 0;
  background: #fff;
  border: 1px solid #e4e8f1;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(11, 15, 26, 0.3);
  padding: 24px;
}

.wallet-access-dialog h3 {
  font-size: 1.2rem;
  color: #0b0f1a;
  margin-bottom: 10px;
}

.wallet-access-dialog p {
  color: #3a4661;
  margin-bottom: 18px;
}

.wallet-access-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.wallet-access-btn {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.wallet-access-btn.connect {
  background: #7d3cff;
  color: #fff;
}

.wallet-access-btn.connect:hover {
  background: #5f2bd6;
}

.wallet-access-btn.cancel {
  background: #f5f7fc;
  color: #243052;
  border-color: #d7dfef;
}

.wallet-access-btn.cancel:hover {
  background: #edf2fb;
}

body.wallet-modal-open {
  overflow: hidden;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

.menu-overlay,
.menu-close {
  display: none;
}

/* ================= BUTTONS ================= */
.btn-primary,
.btn-secondary {
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
}

.btn-primary {
  background: #7d3cff;
  color: #fff;
  transition: background-color 0.5s;
}

.btn-primary:hover {
  background-color: #5f2bd6;

}

.btn-secondary {
  border: 2px solid #7d3cff;
  color: #7d3cff;
  transition: color 0.5s, background-color 0.5s;
}

.btn-secondary:hover {
  color: #fff;
  background-color: #5f2bd6;

}

/* ================= HERO ================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 0;
}

.hero-text h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero-text p {
  color: #555;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 15px;
}

/* ================= FEATURES ================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 60px 0;
}

.feature-card,
.service-card,
.step {
  background: #f7f7f7;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
}

.feature-card i,
.step i {
  font-size: 36px;
  color: #7d3cff;
  margin-bottom: 15px;
}

.service-card img {
  border-radius: 8px;
  margin-bottom: 10px;
}

/* ================= TITLES ================= */
.section-title {
  text-align: center;
  margin-top: 60px;
  font-size: 32px;
}

/* ================= CTA ================= */
.feature-card,
.service-card,
.step {
  background: #f7f7f7;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
}


.cta-btn {
  background-color: #7d3cff;
  color: #fff;
  transition: background-color 0.5s;
  padding: 12px 22px;
  border-radius: 6px;
  border: none;
  font-weight: bold;
}

.cta-btn:hover {
  background-color: #5f2bd6;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 15px;
}
  


/* ================= FOOTER ================= */
.footer {
  background: #0b0f1a;
  color: #ccc;
  padding: 50px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}

.footer-grid > div {
  text-align: center;
  align-items: center;
}

.footer h4 {
  margin-bottom: 10px;
  color: #fff;
}

.footer a {
  display: block;
  margin: 6px 0;
  font-size: 14px;
  color: #c9d2e8;
  transition: color 0.3;
}

.footer a:hover {
  color: #7d3cff;
}

.footer i {
  font-size: 22px;
  margin-right: 10px;
  cursor: pointer;
}

.footer-grid p {
  text-align: center;
  margin-top: 0;
  font-size: 14px;
  color: #b9c6e4;
}

.footer .socials {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.footer .copyright {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

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

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

  nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 50vw;
    max-width: 50dvw;
    height: 100vh;
    max-height: 100dvh;
    background: #0b0f1a;
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: flex-start;
    overflow-y: auto;
    z-index: 1100;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding-top: 56px;
  }

  nav.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  nav a {
    padding: 14px 15px;
    border-top: 1px solid #222;
    text-align: left;
  }

  .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1090;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .menu-close {
    display: block;
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
  }

  body.menu-open {
    overflow: hidden;
  }

  .menu-toggle {
    display: block;
  }

  .wallet-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .desktop-wallet-btn {
    display: none;
  }

}

.transactions table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  color: #fff;
}

.transactions th,
.transactions td {
  border: 1px solid #333;
  padding: 10px;
  text-align: left;
}

.wallet-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.wallet-actions button {
  background-color: #7d3cff;
  border: none;
  color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.5s;
}

.wallet-actions button:hover {
  background-color: #5a24b6;
}

.socials a i {
  font-size: 22px;
  margin: 8px;
  transition: transform .3s, color .3s;
}

.socials a {
  display: inline-block;
}


.socials i:hover {
  color: #5a24b6;
}

.btn {
  background-color: #7d3cff;
  color: white;
  transition: background-color 0.5s;
  padding: 12px 22px;
  border-radius: 6px;
  border: none;
  font-weight: bold;
}

.btn:hover {
    background-color: #5f2bd6;
}

/* Global dark theme across pages */
body.dark {
  background: #0b0f1a;
  color: #e9efff;
}

body.dark .header,
body.dark .footer,
body.dark .cta,
body.dark .home-cta,
body.dark .home-hero {
  background: #0b0f1a;
  color: #e9efff;
}

body.dark .header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark .footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark nav a,
body.dark .footer a,
body.dark .footer p,
body.dark .hero-text p,
body.dark .home-section-head p {
  color: #c4cee5;
}

body.dark .footer h4 {
  color: #f2f6ff;
}

/* Keep readable text on light/white surfaces while dark mode is enabled */
body.dark .feature-card,
body.dark .service-card,
body.dark .step,
body.dark .auth-box,
body.dark .panel,
body.dark .table-wrap,
body.dark .home-service-card,
body.dark .home-highlight-card,
body.dark .blog-card,
body.dark .blog-featured,
body.dark .faq-item,
body.dark .contact-card,
body.dark .pricing-card,
body.dark .portfolio-card {
  color: #e9efff;
}

body.dark .feature-card p,
body.dark .service-card p,
body.dark .step p,
body.dark .auth-box p,
body.dark .panel p,
body.dark .table-wrap p,
body.dark .home-service-card p,
body.dark .home-highlight-card p,
body.dark .blog-card p,
body.dark .blog-featured p,
body.dark .faq-item p,
body.dark .contact-card p,
body.dark .pricing-card p,
body.dark .portfolio-card p {
  color: #c4cee5;
}

/* Do not force all headings to light in dark mode.
   Let page-level styles control heading contrast per section. */
body.dark .section-title {
  color: #111933;
}

/* Keep heading/text contrast on light sections used across pages */
body.dark .about-modern-grid h1,
body.dark .about-modern-grid h2,
body.dark .about-modern-grid h3,
body.dark .about-modern-grid h4,
body.dark .hub-section h1,
body.dark .hub-section h2,
body.dark .hub-section h3,
body.dark .hub-section h4,
body.dark .hiw-section h1,
body.dark .hiw-section h2,
body.dark .hiw-section h3,
body.dark .hiw-section h4,
body.dark .faq-layout h1,
body.dark .faq-layout h2,
body.dark .faq-layout h3,
body.dark .faq-layout h4,
body.dark .contact-layout h1,
body.dark .contact-layout h2,
body.dark .contact-layout h3,
body.dark .contact-layout h4 {
  color: #111933;
}

body.dark .about-modern-grid p,
body.dark .hub-section p,
body.dark .hub-section li,
body.dark .hiw-section p,
body.dark .hiw-section li,
body.dark .faq-layout p,
body.dark .faq-layout li,
body.dark .contact-layout p,
body.dark .contact-layout li,
body.dark .contact-layout label {
  color: #4c5670;
}

body.dark .feature-card,
body.dark .service-card,
body.dark .step,
body.dark .panel,
body.dark .home-service-card,
body.dark .home-highlight-card,
body.dark .blog-card,
body.dark .blog-featured,
body.dark .faq-item,
body.dark .contact-card,
body.dark .pricing-card,
body.dark .portfolio-card,
body.dark .auth-box {
  background: #131b31;
  border-color: #2b3a5e;
  color: #e9efff;
}

body.dark input,
body.dark textarea,
body.dark select {
  background: #111a30;
  color: #e9efff;
  border-color: #2b3a5e;
}

body.dark .btn-secondary {
  border-color: #9b74ff;
  color: #c9b7ff;
}

body.dark .btn-secondary:hover {
  color: #fff;
  background: #7d3cff;
}

/* Extra dark coverage for homepage and section surfaces */
body.dark .home-highlights,
body.dark .home-ecosystem,
body.dark .services,
body.dark .about-section,
body.dark .blog-listing,
body.dark .blog-toolbar,
body.dark .community-feed,
body.dark .portfolio-grid,
body.dark .pricing-cards,
body.dark .contact-section,
body.dark .faq-section {
  background: #0f172b;
  color: #e9efff;
}

body.dark .home-proof div,
body.dark .home-hero-card,
body.dark .home-pill,
body.dark .step-card,
body.dark .team-card,
body.dark .ceo-card,
body.dark .post-card,
body.dark .portfolio-item,
body.dark .table-wrap,
body.dark .modal-content {
  background: #131b31;
  border-color: #2b3a5e;
  color: #e9efff;
}

body.dark .home-service-card p,
body.dark .home-highlight-card p,
body.dark .blog-meta,
body.dark .blog-featured-content p,
body.dark .copyright {
  color: #b9c6e4;
}

/* Additional Responsive Styles for Homepage */
@media (max-width: 992px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .home-hero-copy {
    order: 2;
  }

  .home-hero-card {
    order: 1;
    margin: 0 auto;
    max-width: 500px;
  }

  .home-hero-cta {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .home-hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .home-hero-copy h1 {
    font-size: 2.5rem;
  }

  .home-hero-cta {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .home-hero-cta .btn-primary,
  .home-hero-cta .btn-secondary {
    width: 100%;
    max-width: 320px;
  }

  .home-proof {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
  }

  .home-proof > div {
    padding: 0;
    border: none;
  }

  .home-service-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .home-highlight-grid {
    grid-template-columns: 1fr;
  }

  .home-cta-wrap {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
}

@media (max-width: 576px) {
  .home-hero-copy h1 {
    font-size: 2.2rem;
  }

  .home-service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .home-service-card h3 {
    font-size: 1rem;
  }

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

  .footer-grid > div {
    margin-bottom: 25px;
  }
}

/* ================= AI ASSISTANT ================= */
.smaj-ai-trigger {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(140deg, #7b4dff 0%, #9554ff 50%, #6f42ff 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(91, 56, 214, 0.35);
  z-index: 3000;
}

.smaj-ai-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(91, 56, 214, 0.42);
}

.smaj-ai-modal {
  position: fixed;
  inset: 0;
  z-index: 3050;
  display: none;
}

.smaj-ai-modal.open {
  display: block;
}

.smaj-ai-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 28, 0.4);
}

.smaj-ai-card {
  position: absolute;
  right: 16px;
  bottom: 98px;
  width: min(380px, calc(100vw - 24px));
  min-height: 520px;
  height: min(78vh, 620px);
  max-height: calc(100dvh - 120px);
  background: #fff;
  border: 1px solid #dfe4f2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 15, 26, 0.32);
  display: flex;
  flex-direction: column;
}

.smaj-ai-head {
  background: linear-gradient(100deg, #a8dce0 0%, #cbbced 100%);
  min-height: 58px;
  padding: 12px;
  display: flex;
  justify-content: flex-end;
}

.smaj-ai-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #14172a;
}

.smaj-ai-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.smaj-ai-content {
  padding: 42px 30px 18px;
  text-align: center;
}

.smaj-ai-content h3 {
  font-size: 47px;
  line-height: 1.15;
  margin-bottom: 10px;
  color: #14172a;
}

.smaj-ai-content h3 span {
  background: linear-gradient(90deg, #1b83be 0%, #5860ff 52%, #9d4cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.smaj-ai-content p {
  color: #4a5167;
  font-size: 16px;
}

.smaj-ai-log {
  flex: 1;
  min-height: 0;
  padding: 14px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.smaj-ai-msg {
  max-width: 88%;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 12px;
  padding: 10px 12px;
}

.smaj-ai-msg.user {
  align-self: flex-end;
  background: #7d3cff;
  color: #fff;
}

.smaj-ai-msg.bot {
  align-self: flex-start;
  background: #f2f4fb;
  color: #1f2437;
}

.smaj-ai-form {
  padding: 12px 16px 12px;
}

.smaj-ai-input-wrap {
  border: 1px solid #ced5e5;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 14px;
}

.smaj-ai-input-wrap input {
  border: none;
  flex: 1;
  outline: none;
  font-size: 20px;
  color: #111;
  background: transparent;
}

.smaj-ai-send {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: #efe7ff;
  color: #6b39ff;
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.smaj-ai-send:hover {
  background: #e3d6ff;
  color: #5828e5;
}

.smaj-ai-note {
  text-align: center;
  font-size: 11px;
  color: #505a75;
  padding: 0 16px 14px;
}

body.smaj-ai-open {
  overflow: hidden;
}

@media (max-width: 576px) {
  .smaj-ai-trigger {
    width: 46px;
    height: 46px;
    font-size: 21px;
    right: 14px;
    bottom: 14px;
  }

  .smaj-ai-card {
    right: 12px;
    bottom: 82px;
    width: min(360px, calc(100vw - 28px));
    min-height: 500px;
    height: min(82vh, 560px);
    max-height: calc(100dvh - 98px);
  }

  .smaj-ai-content h3 {
    font-size: 40px;
  }
}
