:root{--bg:#050812;--gold:#f4c95d;--cream:#f8f1df;--muted:#c5cbd8;--line:rgba(244,201,93,.32)}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{min-height:100vh;font-family:Arial,Helvetica,sans-serif;color:var(--cream);background:var(--bg);overflow-x:hidden}

.page-bg{
  position:fixed;
  inset:0;
  z-index:-3;
  background:url("assets/background.png") center center / cover no-repeat;
  filter:saturate(1.15) contrast(1.05) brightness(.72);
}

.nav{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:20;
  height:72px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 7vw;
  background:rgba(2,6,14,.88);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(18px);
}

.brand{
  color:var(--gold)!important;
  letter-spacing:.16em;
  font-size:1.35rem!important;
  font-weight:900!important;
  padding:8px 16px;
  border:1px solid rgba(244,201,93,.25);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  transition:.2s ease;
}

.brand:hover{
  color:var(--gold)!important;
  border-color:var(--gold);
  background:rgba(244,201,93,.12);
}

.nav-links{
  display:flex;
  align-items:center;
  gap:12px;
}

.nav a{
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:.92rem;
  padding:9px 16px;
  border-radius:999px;
  transition:.2s ease;
}

.nav-links a{
  border:1px solid rgba(244,201,93,.25);
  background:rgba(0,0,0,.22);
}

.nav a:hover{
  color:var(--gold);
  border-color:var(--gold);
}

.hero{position:relative;min-height:78vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:115px 24px 80px}
.hero-glow{display:none}
.eyebrow{color:var(--gold);letter-spacing:.34em;font-size:.78rem;font-weight:900;margin-bottom:22px}
h1{font-size:clamp(3.4rem,7vw,6.9rem);line-height:.9;letter-spacing:-.045em;font-weight:900;color:var(--cream);text-shadow:0 10px 55px rgba(0,0,0,.65)}
.hero-text{max-width:900px;margin:20px auto 0;color:white;font-size:clamp(1rem,1.45vw,1.25rem);line-height:1.55;text-shadow:0 4px 20px rgba(0,0,0,.75)}
.hero-actions{display:flex;justify-content:center;gap:22px;flex-wrap:wrap;margin-top:34px}
h1 span{
  color:var(--gold);
}

.btn{display:inline-flex;align-items:center;justify-content:center;min-width:210px;padding:17px 28px;border-radius:8px;text-decoration:none;font-weight:900;letter-spacing:.04em;transition:.22s ease}
.btn:hover{transform:translateY(-3px)}
.btn-gold{background:linear-gradient(135deg,#ffe8a0,var(--gold),#ad7418);color:#111;box-shadow:0 18px 50px rgba(244,201,93,.25)}

.section{width:min(1180px,92%);margin:0 auto;padding:72px 0}
.section-title{display:flex;align-items:center;justify-content:center;gap:28px;margin-bottom:18px}
.section-title span{width:150px;height:1px;background:var(--line)}
h2{font-size:clamp(2.2rem,4vw,3.4rem);line-height:1.05;color:var(--gold);letter-spacing:.02em}

.manifest{text-align:center;background:transparent;border:none;width:100%;padding-top:20px}
.manifest-text{max-width:850px;margin:0 auto 34px;color:white;line-height:1.55;font-size:1.1rem}
.manifest-text strong{color:var(--gold)}

.cards{width:min(1180px,100%);margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.cards article{display:grid;grid-template-columns:auto 1fr;gap:18px;text-align:left;align-items:center;min-height:128px;padding:26px;border:1px solid var(--line);border-radius:10px;background:rgba(2,7,16,.72);backdrop-filter:blur(12px)}
.icon{font-size:2.7rem;color:var(--gold)}
.cards h3{color:white;font-size:1.25rem;margin-bottom:6px}
.cards p{color:var(--muted);line-height:1.45}

.about{display:grid;grid-template-columns:1fr 1fr;gap:0;border-top:1px solid var(--line)}
.about>div,.glass{background:rgba(2,7,16,.72);border:1px solid var(--line);padding:34px;min-height:220px}
.about h2{color:var(--gold);font-size:2rem}
.glass{border-radius:0;color:white;line-height:1.7;backdrop-filter:blur(12px)}
.glass p+p{margin-top:18px}

.buy-section{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch}
.buy-card,.steps{background:rgba(2,7,16,.74);border:1px solid var(--line);border-radius:14px;padding:34px;backdrop-filter:blur(12px)}
.buy-card h2{margin-bottom:14px}
.buy-card p{color:white;line-height:1.6;margin-bottom:24px}
.steps{display:grid;gap:18px}
.steps div{display:flex;gap:18px;align-items:center}
.steps strong{color:var(--gold);font-size:1.6rem}
.steps span{color:white;line-height:1.4}

.community{
  text-align:center;
  min-height:60vh;
  padding-top:120px;
}
.community h2{margin-bottom:14px}
.community p{color:white;margin-bottom:24px}
.socials{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}
.socials a{
  color:white;
  text-decoration:none;
  border:1px solid rgba(244,201,93,.25);
  padding:13px 20px;
  border-radius:8px;
  background:rgba(2,7,16,.62);
  transition:.2s ease;
}

.socials a:hover{
  color:var(--gold);
  border-color:var(--gold);
  background:rgba(244,201,93,.12);
}

@media (max-width: 900px){

  .nav{
    padding:0 20px;
  }

  .nav-links{
    gap:8px;
  }

  .nav-links a{
    padding:8px 12px;
    font-size:.85rem;
  }

  .hero{
    min-height:70vh;
    padding:110px 20px 60px;
  }

  .cards,
  .about,
  .buy-section{
    grid-template-columns:1fr;
  }

  .section-title span{
    display:none;
  }

}

@media (max-width:560px){

  .brand{
    font-size:1.1rem!important;
    padding:8px 14px;
  }

  .nav-links a{
    display:none;
  }

  h1{
    font-size:3rem;
  }

  .hero-text{
    font-size:1rem;
  }

  .btn{
    width:100%;
    max-width:320px;
  }

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

}
.footer{
  width:100%;
  margin-top:0;
  padding:36px 7vw;
  background:#02060e;
  border-top:2px solid rgba(244,201,93,.45);
  box-shadow:0 -20px 60px rgba(0,0,0,.45);

  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  flex-wrap:wrap;
}

.token-address{
  margin:22px 0 26px;
  padding:14px 16px;
  border:1px solid rgba(244,201,93,.25);
  border-radius:10px;
  background:rgba(0,0,0,.22);
}

.token-address strong{
  display:block;
  color:var(--gold);
  margin-bottom:8px;
}

.token-address code{
  display:block;
  padding:10px 12px;
  margin-top:8px;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(244,201,93,.18);
  border-radius:8px;
  color:var(--gold);
  font-family:monospace;
  font-size:.88rem;
  line-height:1.45;
  word-break:break-all;
  user-select:all;
}

/* ===== Builder Hub ===== */

.builder-hub{
    padding:130px 20px 80px;
    text-align:center;
}

.builder-glass{
  max-width:900px;
  margin:0 auto;
  padding:50px 40px;
}

.builder-hub h2{
  font-size:2.6rem;
  color:#ffd369;
  margin-bottom:18px;
}

.builder-subtitle{
  color:#ffffff;
  font-size:1.45rem;
  font-weight:700;
  letter-spacing:.06em;
  margin-bottom:28px;
}

.builder-intro{
  max-width:760px;
  margin:0 auto;
  color:#f2f2f2;
  font-size:1.2rem;
  line-height:1.8;
  font-weight:500;
}

/* ===== Builder Hub ===== */

.hub-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    width:100%;
    max-width:1000px;
    gap:24px;
    margin:40px auto 0;
    align-items:stretch;
}

.hub-card{
    display:flex;
    flex-direction:column;
    justify-content:space-between;

    background:rgba(10,18,32,.65);
    border:1px solid rgba(244,201,93,.18);
    border-radius:18px;
    padding:28px;
    text-align:left;
    backdrop-filter:blur(12px);
    transition:.25s;
}

.hub-card:hover{
    transform:translateY(-4px);
    border-color:#f4c95d;
    box-shadow:0 0 25px rgba(244,201,93,.15);
}

.hub-card h3{
    color:#f4c95d;
    margin-bottom:14px;
    font-size:1.35rem;
}

.hub-card p{
    color:#d5d5d5;
    line-height:1.7;
}

.hub-link{
    display:inline-block;
    margin-top:18px;
    color:#f4c95d;
    text-decoration:none;
    font-weight:600;
    transition:.25s;
}

.hub-link:hover{
    color:#ffffff;
    transform:translateX(6px);
}
/* ===== Privacy Dropdown ===== */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: transparent;
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: #f5f5f5;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  transition: all .25s ease;
}

.dropbtn:hover {
  color: #f6c65b;
  border-color: #f6c65b;
  box-shadow: 0 0 14px rgba(246,198,91,.35);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: rgba(8,14,24,.98);
  border: 1px solid rgba(246,198,91,.35);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: #f5f5f5;
  text-decoration: none;
  transition: .2s;
}

.dropdown-content a:hover {
  background: rgba(246,198,91,.12);
  color: #f6c65b;
}

.dropdown:hover .dropdown-content {
  display: block;
}
/* ===== Privacy dropdown ===== */

.privacy-menu{
  position:relative;
}

.privacy-menu summary{
  list-style:none;
  cursor:pointer;
  color:#fff;
  font-weight:700;
  padding:10px 18px;
  border:1px solid rgba(244,201,93,.35);
  border-radius:999px;
  transition:.25s;
}

.privacy-menu summary::-webkit-details-marker{
  display:none;
}

.privacy-menu summary::after{
  content:" ▼";
  color:#fff;
  font-size:11px;
}

.privacy-menu[open] summary,
.privacy-menu summary:hover{
  color:#f4c95d;
  border-color:#f4c95d;
  box-shadow:0 0 14px rgba(244,201,93,.35);
}

.privacy-menu-content{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  min-width:220px;
  padding:8px;
  background:#08101c;
  border:1px solid rgba(244,201,93,.35);
  border-radius:12px;
  z-index:1000;
}

.privacy-menu-content a{
  display:block;
  padding:12px 14px;
  color:#fff;
  font-weight:800;
  font-size:14px;
  text-decoration:none;
  white-space:nowrap;
}

.privacy-menu-content a:hover{
  color:#f4c95d;
  background:rgba(244,201,93,.10);
}

.builder-form{
    display:flex;
    flex-direction:column;
    gap:14px;
    max-width:600px;
    margin-top:30px;
}

.builder-form label{
    font-weight:600;
    color:#f3e8cf;
}

.builder-form input,
.builder-form textarea{
    width:100%;
    padding:14px;
    border:1px solid rgba(212,175,55,.35);
    border-radius:10px;
    background:#111722;
    color:#fff;
    font-size:16px;
}

.builder-form textarea{
    resize:vertical;
    min-height:160px;
}

.builder-form button{
    width:220px;
    margin-top:10px;
}

/* ===== Builder Directory ===== */

.builder-directory{
    margin:50px 0;
}

.builder-search input{
    width:100%;
    padding:16px;
    background:#111722;
    border:1px solid rgba(244,201,93,.25);
    border-radius:10px;
    color:#fff;
    font-size:16px;
}

.builder-filters{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin:24px 0 34px;
}

.filter{
    padding:10px 18px;
    border:1px solid rgba(244,201,93,.25);
    border-radius:999px;
    background:transparent;
    color:#fff;
    cursor:pointer;
    transition:.2s;
}

.filter:hover,
.filter.active{
    background:#f4c95d;
    color:#111;
}

.builder-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:24px;
    margin-bottom:50px;
}

.builder-card{
    background:rgba(2,7,16,.72);
    border:1px solid rgba(244,201,93,.25);
    border-radius:14px;
    padding:24px;
    backdrop-filter:blur(12px);
}

.builder-card h3{
    color:#f4c95d;
    margin-bottom:12px;
}

.builder-card p{
    margin-bottom:10px;
    color:#ddd;
    line-height:1.5;
}

.profession{
    color:#fff !important;
    font-weight:700;
}

.builder-card .btn{
    width:100%;
    min-width:0;
    margin-top:18px;
}

/* ===== Builder Profile ===== */

.profile-card{
max-width:900px;
margin:auto;
padding:40px;
}

.profile-header{
display:flex;
align-items:center;
gap:30px;
margin-bottom:40px;
}

.profile-avatar{
width:120px;
height:120px;
border-radius:50%;
display:flex;
justify-content:center;
align-items:center;
font-size:60px;
background:rgba(244,201,93,.15);
border:2px solid rgba(244,201,93,.35);
}

.profile-name{
font-size:48px;
color:#fff;
margin-bottom:10px;
}

.profile-job{
font-size:22px;
color:#f4c95d;
font-weight:bold;
}

.profile-country{
margin-top:8px;
color:#ddd;
}

.profile-about,
.profile-skills,
.profile-projects{
margin-top:40px;
}

.profile-card h2{
margin-bottom:20px;
color:#f4c95d;
}

.skill-list{
display:flex;
flex-wrap:wrap;
gap:12px;
}

.skill-list span{
padding:10px 18px;
border-radius:999px;
border:1px solid rgba(244,201,93,.3);
background:#111722;
}

.project-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:20px;
margin-top:20px;
}

.project-box{
height:150px;
display:flex;
justify-content:center;
align-items:center;
border-radius:12px;
background:#111722;
border:1px solid rgba(244,201,93,.25);
}

/* ===== Marketplace ===== */

.marketplace-page{
max-width:1200px;
margin:auto;
padding:40px;
}

.market-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:24px;
margin-top:40px;
}

.market-card{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;

padding:35px;

background:rgba(2,7,16,.72);

border:1px solid rgba(244,201,93,.25);

border-radius:16px;

text-decoration:none;

color:white;

transition:.25s;
}

.market-card:hover{

transform:translateY(-6px);

border-color:#f4c95d;

box-shadow:0 0 28px rgba(244,201,93,.18);

}

.market-icon{

font-size:56px;

margin-bottom:20px;

}

.market-card h3{

color:#f4c95d;

margin-bottom:14px;

}

.market-card p{

line-height:1.6;

color:#ddd;

}

/* ===== Builder Chat ===== */

.chat-page{
display:flex;
align-items:center;
justify-content:center;
min-height:calc(100vh - 90px);
padding-top:120px;
padding-bottom:72px;
}

.chat-shell{
width:min(900px,100%);
min-height:0;
padding:42px;
border-radius:18px;
box-shadow:0 24px 70px rgba(0,0,0,.35);
}

.chat-shell h1{
color:#f4c95d;
font-size:clamp(2.8rem,6vw,4.8rem);
line-height:1;
margin-bottom:12px;
}

.chat-shell .builder-subtitle{
margin-bottom:30px;
font-size:1.15rem;
text-align:left;
letter-spacing:.04em;
}

.chat-shell label{
display:inline-block;
margin-right:8px;
color:#f4f4f4;
font-weight:700;
}

.chat-shell select{
padding:10px 14px;
border:1px solid rgba(244,201,93,.4);
border-radius:8px;
background:#111722;
color:#fff;
font-size:1rem;
cursor:pointer;
}

.chat-window{
display:flex;
flex-direction:column;
gap:12px;
min-height:300px;
max-height:46vh;
margin-top:22px;
padding:20px;
overflow-y:auto;
border:1px solid rgba(244,201,93,.22);
border-radius:14px;
background:rgba(5,10,19,.82);
}

.chat-message{
padding:14px 16px;
overflow-wrap:anywhere;
border-left:3px solid #f4c95d;
border-radius:10px;
background:#111722;
color:#f5f5f5;
line-height:1.5;
}

.chat-message strong{
color:#f4c95d;
}

.chat-message-meta{
display:flex;
align-items:center;
justify-content:space-between;
flex-wrap:wrap;
gap:4px 12px;
margin-bottom:4px;
}

.chat-message-username{
color:#f5f5f5;
font-weight:700;
}

.chat-message-language{
color:#f4c95d;
font-size:.82rem;
font-weight:700;
white-space:nowrap;
}

.chat-form{
display:grid;
grid-template-columns:minmax(140px,.7fr) minmax(260px,2fr) auto;
gap:12px;
margin-top:18px;
align-items:stretch;
}

.chat-form input{
width:100%;
min-width:0;
padding:14px 16px;
border:1px solid rgba(244,201,93,.3);
border-radius:10px;
background:#111722;
color:#fff;
font-size:1rem;
outline:none;
}

.chat-form input:focus{
border-color:#f4c95d;
box-shadow:0 0 0 3px rgba(244,201,93,.12);
}

.chat-form input::placeholder{
color:#8d94a0;
}

.chat-form .btn{
min-width:150px;
padding:14px 22px;
border:none;
cursor:pointer;
}

.chat-form .btn:disabled{
opacity:.6;
cursor:not-allowed;
transform:none;
}

@media (max-width:720px){

.chat-page{
padding-top:100px;
padding-bottom:40px;
}

.chat-shell{
padding:26px 20px;
}

.chat-window{
min-height:280px;
}

.chat-form{
grid-template-columns:1fr;
}

.chat-form .btn{
width:100%;
min-width:0;
}

}

.nav-links a.has-unread {
  color: #d4af37;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.75);
}
