---------- AKASDAO shared stylesheet (css/style.css) ----------
/* Reset + base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --gold: #d7b14a;
  --header-h: 72px;
  --muted: rgba(255, 255, 255, 0.88);
  --bg-image: url('../image/BVCBGFHFDC.png');
}

html, body {
  height: 100%;
  font-family:Verdana, Geneva, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* DO NOT set height:100vh or overflow:hidden here */
}

body {
  background: #000;
  color: var(--muted);
  overflow-x: hidden;
  
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  z-index: 1400;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.03));
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo-row,
.brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.logo-img,
.brand img {
  height: 42px;
  display: block
}

.logo-text {
  color: var(--gold);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px
}

/* Nav desktop */
.site-nav {
  display: flex;
  gap: 18px;
  align-items: center
}

.site-nav a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all .18s
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 215, 0, 0.06);
  color: #fff
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center
}

.hamburger span {
  display: block;
  height: 3px;
  width: 22px;
  border-radius: 2px;
  background: var(--gold);
  margin: 5px 0
}

/* Drawer overlay (mobile) */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1390;
  opacity: 0;
  transition: opacity .22s
}

.drawer-overlay.visible {
  display: block;
  opacity: 1;
  pointer-events: auto
}

/* Mobile nav (hidden by default) */
@media(max-width:720px) {
  .site-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    padding: 88px 18px;
    gap: 18px;
    background: linear-gradient(180deg, rgba(6, 6, 6, 0.98), rgba(0, 0, 0, 0.98));
    z-index: 1405;
    transition: left .28s
  }

  .site-nav.mobile-open {
    left: 0
  }

  .hamburger {
    display: flex
  }
}

/* ---------- Hero / Shared background layers ---------- */
.hero,
.hero-wrap {
  margin-top: var(--header-h);
  position: relative;
  overflow: hidden;
  width: 100%;
}
.hero {
  /* fallback using normal vh */
  min-height: calc(100vh - var(--header-h));
  /* newer viewport units to handle mobile address bars (supported in modern browsers) */
  min-height: calc(100svh - var(--header-h));
  /* further fallback for some browsers that support dynamic viewport */
  min-height: calc(100dvh - var(--header-h));
  position: relative;
  overflow: hidden;
}
/* .hero {
  height: calc(100vh - var(--header-h));
} */

/* .hero-wrap {
  min-height: 38vh;
} */
.hero .bg,
.hero-bg,
.smoke-layer,
.cloud-video,
#svgProxy {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
}
/* background image (full-bleed) */
.hero .bg,
.hero-bg,
.smoke-layer,
.cloud-video,
#svgProxy {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
}

.hero .bg::after,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
  mix-blend-mode: multiply;
}

/* smoke overlay (subtle animated texture) */
.smoke-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: blur(10px) saturate(.95) contrast(1.02);
  animation: smokeDrift 28s linear infinite, smokePulse 9s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes smokeDrift {
  0% {
    transform: translate3d(-3%, -1%, 0)
  }

  50% {
    transform: translate3d(3%, 1.2%, 0)
  }

  100% {
    transform: translate3d(-3%, -1%, 0)
  }
}

@keyframes smokePulse {
  0% {
    opacity: .18
  }

  50% {
    opacity: .30
  }

  100% {
    opacity: .18
  }
}

/* dark overlay for contrast */
.dark-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.56));
  mix-blend-mode: multiply
}

/* cloud video overlay (when used) */
.cloud-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity .36s ease;
  pointer-events: none;
  filter: contrast(.95) saturate(.95) brightness(.98)
}

.cloud-video.visible {
  opacity: .56
}

/* CSS cloud fallback */
.clouds {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden
}

.cloud {
  position: absolute;
  filter: blur(36px) saturate(.95) contrast(1.02);
  opacity: .18;
  background: radial-gradient(60% 50% at 30% 30%, rgba(230, 230, 240, 0.95) 0%, rgba(200, 200, 220, 0.85) 22%, rgba(160, 150, 140, 0.22) 60%, rgba(0, 0, 0, 0) 70%);
  mix-blend-mode: screen
}

.cloud--a {
  width: 1400px;
  height: 480px;
  left: -200px;
  top: -40px;
  opacity: .22;
  animation: cloudMoveA 48s linear infinite, cloudPulseA 8s ease-in-out infinite
}

.cloud--b {
  width: 1200px;
  height: 420px;
  left: -300px;
  top: 40px;
  opacity: .16;
  animation: cloudMoveB 70s linear infinite, cloudPulseB 10s ease-in-out infinite
}

.cloud--c {
  width: 900px;
  height: 380px;
  left: -150px;
  top: 140px;
  opacity: .12;
  animation: cloudMoveC 110s linear infinite, cloudPulseC 14s ease-in-out infinite
}

@keyframes cloudMoveA {
  0% {
    transform: translate3d(-8%, 0, 0)
  }

  50% {
    transform: translate3d(10%, -2%, 0)
  }

  100% {
    transform: translate3d(-8%, 0, 0)
  }
}

@keyframes cloudMoveB {
  0% {
    transform: translate3d(-12%, 0, 0)
  }

  50% {
    transform: translate3d(14%, 1%, 0)
  }

  100% {
    transform: translate3d(-12%, 0, 0)
  }
}

@keyframes cloudMoveC {
  0% {
    transform: translate3d(-6%, 0, 0)
  }

  50% {
    transform: translate3d(8%, -1.2%, 0)
  }

  100% {
    transform: translate3d(-6%, 0, 0)
  }
}

@keyframes cloudPulseA {
  0% {
    opacity: .20
  }

  50% {
    opacity: .26
  }

  100% {
    opacity: .20
  }
}

@keyframes cloudPulseB {
  0% {
    opacity: .14
  }

  50% {
    opacity: .18
  }

  100% {
    opacity: .14
  }
}

@keyframes cloudPulseC {
  0% {
    opacity: .10
  }

  50% {
    opacity: .14
  }

  100% {
    opacity: .10
  }
}

/* sparkles (gold flecks) */
.sparkles {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden
}

.spark {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 236, 160, 1) 0 20%, rgba(255, 205, 64, 0.95) 20% 40%, rgba(255, 160, 0, 0.9) 41% 55%, rgba(255, 160, 0, 0) 60%);
  box-shadow: 0 0 10px rgba(255, 200, 60, 0.25), 0 0 20px rgba(255, 180, 40, 0.18);
  will-change: transform, opacity;
  mix-blend-mode: screen;
  opacity: 0
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(.95);
    opacity: 0
  }

  10% {
    opacity: 1
  }

  50% {
    opacity: .9
  }

  100% {
    transform: translateY(-120px) scale(1.05);
    opacity: 0
  }
}

@keyframes floatSlow {
  0% {
    transform: translateY(0) translateX(0) rotate(0) scale(1);
    opacity: 0
  }

  10% {
    opacity: 1
  }

  50% {
    opacity: .9
  }

  100% {
    transform: translateY(-220px) translateX(18px) rotate(12deg) scale(.95);
    opacity: 0
  }
}

/* ---------- Stage content (title + man) ---------- */
.stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1500px;
  margin: 0 auto;
  z-index: 7;
  overflow: visible
}

.title-block {
  position: absolute;
  top: 7%;
  left: 3.4%;
  max-width: 55%;
  pointer-events: none
}

  /* Show the PNG big text (preferred) */
        .akasdao-png {
            margin-top: 100px;
            display: block;
            width: 100%;
            height: 182px;
            filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.7));
            transform: translateY(0);
        }

   .sublogo {
            display: block;
            width: 64%;
            height: 280px;
            filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.65));
        }
/* Hide logo on screens smaller than 768px */

       .man-wrap {
            position: absolute;
            right: 0;
            bottom: 0;
            width: 35%;
            max-width: 700px;
            height: 100%;
            display: flex;
            align-items: flex-end;
            justify-content: flex-end;
            pointer-events: none;
        }

        .man {
            width: 100%;
            height: auto;
            object-fit: contain;
            transform: translateY(6px);
            display: block;
        }
/* ---------- Content containers (about, forms, etc) ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px;
  position: relative;
  z-index: 8
}

.about-card {
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.68), rgba(6, 6, 6, 0.82));
  border: 1px solid rgba(215, 177, 60, 0.05);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6)
}

.about-card h1 {
  color: var(--gold);
  font-size: 32px;
  margin-bottom: 12px
}

.about-card p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin-bottom: 12px
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 20px
}

.features {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap
}

.feature {
  flex: 1 1 220px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03)
}

.feature h4 {
  color: var(--gold);
  margin-bottom: 8px
}

/* ---------- Auth forms ---------- */
.form-page {
  padding: 100px 20px;
  min-height: calc(100vh - var(--header-h));
  background: transparent
}

.auth-card {
  max-width: 480px;
  margin: 40px auto;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.8), rgba(6, 6, 6, 0.9));
  padding: 28px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.06);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.auth-card h2 {
  color: var(--gold);
  margin-bottom: 14px;
  text-align: center
}

.auth-card label {
  display: block;
  color: #bfb18a;
  margin-top: 10px;
  font-size: 12px
}

.auth-card input {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--gold);
  border-radius: 8px
}

.btn-gold {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 0;
  margin-top: 14px;
  font-weight: 700;
  background: var(--gold);
  color: #000;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.form-links {
  margin-top: 10px;
  text-align: center
}

.form-links a {
  color: var(--gold);
  text-decoration: none
}

.small-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-top: 10px
}

/* footer */
.site-footer {
  text-align: center;
  padding: 22px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px
}

/* ---------- Responsive tweaks ---------- */
@media(max-width:900px) {
  .two-col {
    grid-template-columns: 1fr
  }

  .container {
    padding: 20px
  }

  .title-block {
    left: 3%;
    top: 6%;
    max-width: 60%
  }
 .akasdao-png {
                width: 100%;
            }
  .man-wrap {
    width: 46%
  }
}

@media(max-width:720px) {
      .akasdao-png {
                width: 100%;
                height: auto;
            }

            .sublogo {
                width: 100%;
                
                
            }

 
            .man-wrap {
                right: 2%;
                width: 80%;
                bottom: 0;
            }

            .man {
                width: 88%
            }

  .auth-card {
    margin: 30px 18px
  }
}

/* reduced motion */
@media (prefers-reduced-motion:reduce) {

  .cloud--a,
  .cloud--b,
  .cloud--c,
  .smoke-layer,
  .spark {
    animation: none !important;
    transition: none !important
  }

  .cloud-video {
    transition: none !important
  }
}
/* Make hero-wrap center its content on small screens (vertical & horizontal centering) */
@media (max-width: 720px) {
  /* ensure the hero area can grow and scroll when needed */
  .hero-wrap {
    display: flex;
    align-items: center;      /* vertical center */
    justify-content: center;  /* horizontal center */
    padding: 20px 12px;       /* breathing room for small screens */
    min-height: calc(100svh - var(--header-h)); /* keep header offset behavior */
    box-sizing: border-box;
    overflow: auto;           /* allow scrolling if keyboard opens or content overflows */
  }

  /* remove rigid top margin on auth-card (it will be centered by flex) */
  .auth-card {
    margin: 0 auto;
  }

  /* Slightly reduce auth-card width on narrow phones if needed */
  .auth-card {
    max-width: 420px; /* optional: keep the card from being excessively wide */
    width: 100%;
  }
}



/* popup */
/* ----- Themed modal for AKASDAO ----- */
.theme-modal {
  position: fixed;
  inset: 0;
  display: none;                /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 2200;                /* above header/nav */
  pointer-events: none;
}

.theme-modal.is-open {
  display: flex;
  pointer-events: auto;
}

/* backdrop */
.theme-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 0, 0, 0.66);
  backdrop-filter: blur(6px) saturate(.9);
  transition: opacity .18s ease;
  opacity: 0;
}
.theme-modal.is-open .theme-modal__backdrop { opacity: 1; }

/* card */
.theme-modal__card {
  position: relative;
  width: min(680px, 92%);
  max-width: 720px;
  background: linear-gradient(180deg, rgba(12,12,12,0.92), rgba(6,6,6,0.96));
  border: 1px solid rgba(215,177,60,0.08);
  box-shadow: 0 18px 60px rgba(0,0,0,0.65);
  border-radius: 14px;
  padding: 22px;
  z-index: 2250;
  transform: translateY(8px) scale(.995);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}

/* open animation */
.theme-modal.is-open .theme-modal__card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
@media (max-width: 720px) {
  .theme-modal__card {
    width: 80%;            /* take full width */
    height: auto;           /* expand as needed */
    max-width: 100%;        /* no fixed max */
    margin: 0 12px;         /* small side gap (optional) */
    border-radius: 8px;     /* smaller rounding for mobile */
    padding: 18px;          /* slightly reduced padding */
  }

  .theme-modal__body {
    max-height: 80vh;       /* scrollable if content too tall */
    overflow-y: auto;
  }
}

/* close button */
.theme-modal__close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  color: var(--gold);
  border: 0;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

/* content */
.theme-modal__body h3 {
  margin: 2px 0 6px;
  color: var(--gold);
  font-size: 22px;
  text-align: left;
}
.theme-modal__body p {
  color: rgba(255,255,255,0.86);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* actions: keep button right-aligned like many modals */
.theme-modal__actions {
  display: flex;
  justify-content: flex-end;
}

/* small screens tweak */
@media (max-width: 480px) {
  .theme-modal__card { padding: 16px; border-radius: 12px; }
  .theme-modal__body h3 { font-size: 18px; }
}


/* ===== Blue Success Modal — overrides & helpers (append at end) ===== */

/* lighter, glassy backdrop */
.theme-modal__backdrop{
  /* background: rgba(10,14,40,.55); */
  backdrop-filter: blur(4px) saturate(.95);
  transition: opacity .18s ease;
  opacity: 0;
}
.theme-modal.is-open .theme-modal__backdrop{ opacity: 1; }

/* deep-blue card with soft rim light */
.theme-modal__card{
background: linear-gradient(180deg, rgba(12, 0, 0, 0.6), #d7b14a);
  border: 1px solid rgba(110,140,255,.18);
  box-shadow: 0 22px 80px rgba(12, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,.03) inset;
}

/* optional: hide the default OK/action row when showing custom success card */
.theme-modal--hide-actions .theme-modal__actions{ display:none !important; }

/* inner success card styles (blue box like your screenshot) */
.cm-box{
  background: rgba(5, 0, 0, 0.6);
  border: 1px solid rgba(120,150,255,.14);
  border-radius: 16px;
  padding: 18px 18px 14px;
  margin: 20px;
}
.cm-heading{
  margin:0 0 6px;
  font-size: 24px;
  color:#e7ecff;
  font-weight: 800;
}
.cm-sub{ color:#c6d0ff; margin-bottom: 12px; }
.cm-list div{ line-height: 1.8; }
.cm-note{ font-size: 12.5px; opacity: .9; margin-top: 8px; }

/* blue login button inside the modal */
.btn-indigo{
  display:inline-block;
  padding:12px 22px;
  border-radius:10px;
  background:#6d7cff;
  color:#0b0f2e;
  font-weight:800;
  text-decoration:none;
  border:0;
}
.btn-indigo:hover{ filter: brightness(1.08); }
#themeModalTitle {
  display: none;   /* completely hide */
}