:root{
  --bg-darkest:#13121d;
  --bg-header:#15141f;
  --bg-subnav:#2c2950;
  --bg-hero-top:#211e3a;
  --bg-hero-bottom:#1a1830;
  --gold:#d8a943;
  --gold-soft:#caa052;
  --green:#3ddc84;
  --blue-link:#6fa8e0;
  --text-light:#e7e5ef;
  --text-muted:#a7a3bd;
  --text-faint:rgba(231,229,239,0.42);
  --border-soft:#46406b;
  --cube-line:rgba(255,255,255,0.045);
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--bg-hero-bottom);
  font-family:'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color:var(--text-light);
}
a{color:inherit;text-decoration:none;}

/* ===== Top utility bar ===== */
.topbar{
  background:var(--bg-darkest);
  border-bottom:1px solid #232136;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 28px;
  font-size:14px;
}
.topbar-left{
  display:flex;
  align-items:center;
  gap:18px;
}
.icon-circle{
  width:26px;height:26px;
  border-radius:50%;
  background:#23213a;
  display:flex;align-items:center;justify-content:center;
  color:var(--text-muted);
  font-size:13px;
}
.rate-info{
  margin-left:6px;
  color:var(--text-muted);
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
.rate-up{color:var(--green);font-weight:600;}
.rate-pct{color:var(--green);}
.vol-figure{color:var(--blue-link);}

.topbar-right{
  display:flex;
  gap:26px;
  color:var(--gold-soft);
}
.topbar-right a:hover{color:var(--gold);text-decoration:underline;}

/* ===== Main header ===== */
.main-header{
  background:var(--bg-header);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 40px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
}
.logo img{height:42px;width:auto;}

.header-actions{
  display:flex;
  gap:46px;
}
.header-action{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  color:var(--text-muted);
  cursor:pointer;
  transition:color .15s ease;
}
.header-action:hover{color:var(--text-light);}
.header-action svg{width:24px;height:24px;}
.header-action span{font-size:15px;}

/* ===== Secondary nav ===== */
.subnav{
  background:var(--bg-subnav);
  display:flex;
  gap:36px;
  padding:14px 40px;
  font-size:15.5px;
}
.subnav a{color:var(--text-light);opacity:0.9;}
.subnav a:hover{color:var(--gold);opacity:1;}

/* ===== Hero ===== */
.hero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(160deg, var(--bg-hero-top) 0%, var(--bg-hero-bottom) 65%);
  padding:110px 24px 90px;
  text-align:center;
}
.hero-cubes{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(60deg, var(--cube-line) 1px, transparent 1px),
    linear-gradient(-60deg, var(--cube-line) 1px, transparent 1px),
    linear-gradient(0deg, var(--cube-line) 1px, transparent 1px);
  background-size:70px 120px;
  pointer-events:none;
  opacity:0.8;
}
.hero-content{position:relative;z-index:1;}
.hero h1{
  font-size:58px;
  margin:0 0 38px;
  color:var(--gold);
  font-weight:800;
  letter-spacing:0.5px;
}
.hero-box{
  max-width:680px;
  margin:0 auto 46px;
  border:1px solid var(--border-soft);
  border-radius:10px;
  padding:26px 30px;
  background:rgba(255,255,255,0.015);
}
.hero-box p{
  margin:6px 0;
  font-size:21px;
  color:var(--text-light);
}
.hero-box .privacy-coin{color:var(--gold-soft);}
.hero-box .privacy-coin:hover{text-decoration:underline;}

.download-label{
  font-size:21px;
  color:var(--text-muted);
  margin-bottom:26px;
}

.download-row{
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}
.get-started-btn{
  background:linear-gradient(135deg, var(--gold) 0%, #b8852f 100%);
  color:#1a1306;
  border:none;
  border-radius:8px;
  padding:16px 48px;
  font-size:19px;
  font-weight:700;
  letter-spacing:0.3px;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
  box-shadow:0 4px 14px rgba(216,169,67,0.25);
}
.get-started-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(216,169,67,0.35);
}
.get-started-btn:active{transform:translateY(0);}

/* ===== Featured In section ===== */
.featured-section{
  margin-top:54px;
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}
.featured-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
}
.featured-cell{
  border:1px solid var(--border-soft);
  border-radius:10px;
  background:rgba(255,255,255,0.015);
  padding:24px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-muted);
  font-size:18px;
  min-height:64px;
}
.featured-label{
  color:var(--text-light);
  font-weight:600;
  font-size:21px;
}
.brand-logo{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  white-space:nowrap;
}
.brand-logo svg{width:22px;height:22px;flex-shrink:0;}

@media (min-width: 761px){
  .featured-grid{grid-template-columns:repeat(6, 1fr);}
  .featured-section{max-width:1100px;}
  .featured-cell{font-size:15px;padding:20px 10px;}
  .featured-label{font-size:17px;}
}

/* ===== Mobile header ===== */
.mobile-header{
  display:none;
  align-items:center;
  justify-content:center;
  gap:18px;
  background:var(--bg-subnav);
  padding:22px 20px;
}
.mobile-icon-btn{
  background:none;
  border:none;
  color:var(--gold);
  padding:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.mobile-icon-btn svg{width:26px;height:26px;}
.mobile-icon-btn:active{opacity:0.7;}
.mobile-logo img{height:46px;width:auto;display:block;}

/* ===== Mobile slide-down menu ===== */
.mobile-menu-overlay{
  position:fixed;
  inset:0;
  background:rgba(8,7,14,0.6);
  z-index:50;
  opacity:0;
  visibility:hidden;
  transition:opacity .2s ease;
}
.mobile-menu-overlay.open{opacity:1;visibility:visible;}
.mobile-menu-panel{
  background:var(--bg-header);
  border-bottom:1px solid var(--border-soft);
  padding:18px 24px 28px;
  transform:translateY(-12px);
  opacity:0;
  transition:transform .22s ease, opacity .22s ease;
}
.mobile-menu-overlay.open .mobile-menu-panel{
  transform:translateY(0);
  opacity:1;
}
.mobile-menu-close{
  background:none;
  border:none;
  color:var(--text-muted);
  font-size:30px;
  line-height:1;
  float:right;
  cursor:pointer;
  padding:0 4px;
}
.mobile-menu-links{
  display:flex;
  flex-direction:column;
  margin-top:18px;
  clear:both;
}
.mobile-menu-links a{
  color:var(--text-light);
  font-size:19px;
  padding:13px 4px;
  border-bottom:1px solid #232136;
}
.mobile-menu-links a:active{color:var(--gold);}
.mobile-menu-divider{height:8px;}

/* ===== Mobile search bar ===== */
.mobile-search-bar{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--bg-header);
  border-bottom:1px solid var(--border-soft);
  padding:0 16px;
  max-height:0;
  overflow:hidden;
  transition:max-height .2s ease, padding .2s ease;
}
.mobile-search-bar.open{
  max-height:70px;
  padding:14px 16px;
}
.mobile-search-bar input{
  flex:1;
  background:#0e0d18;
  border:1px solid var(--border-soft);
  border-radius:8px;
  padding:11px 14px;
  color:var(--text-light);
  font-size:16px;
}
.mobile-search-bar input::placeholder{color:var(--text-muted);}
.mobile-search-bar button{
  background:none;
  border:none;
  color:var(--text-muted);
  font-size:26px;
  cursor:pointer;
  line-height:1;
}

@media (max-width: 760px){
  .topbar, .main-header, .subnav{display:none;}
  .mobile-header{display:flex;}
  .hero{padding:54px 20px 70px;}
  .header-actions{gap:24px;}
  .subnav{gap:18px;flex-wrap:wrap;}
  .hero h1{font-size:38px;}
  .hero-box p{font-size:17px;}
}

/* ===== OVERLAY BASE ===== */
.overlay{
  position:fixed;
  inset:0;
  z-index:200;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transition:opacity .25s ease, visibility .25s ease;
}
.overlay.visible{
  opacity:1;
  visibility:visible;
}

/* ===== PRELOADER ===== */
#preloader{
  background:radial-gradient(ellipse 900px 400px at 50% 110%, rgba(216,169,67,0.1) 0%, #0a0914 55%, #060510 100%);
  flex-direction:column;
  gap:26px;
}

.preloader-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
  width:300px;
  text-align:center;
}

.preloader-logo{
  height:52px;
  width:auto;
  margin-bottom:4px;
}

.spinner{
  width:58px;
  height:58px;
  border-radius:50%;
  border:4px solid rgba(216,169,67,0.18);
  border-top-color:var(--gold);
  animation:spin .9s linear infinite;
}

@keyframes spin{to{transform:rotate(360deg);}}

.preloader-text{
  font-size:15px;
  font-weight:500;
  color:var(--text-muted);
  letter-spacing:0.2px;
  transition:opacity .22s ease;
}

.preloader-bar-wrap{
  width:100%;
  height:3px;
  background:rgba(216,169,67,0.15);
  border-radius:99px;
  overflow:hidden;
}

.preloader-bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, var(--gold-soft), var(--gold), #f0cc78);
  border-radius:99px;
  transition:width .55s cubic-bezier(.4,0,.2,1);
}

.preloader-step{
  font-size:12px;
  color:var(--text-faint);
  letter-spacing:0.4px;
}

/* ===== MODAL ===== */
#modalOverlay{
  background:rgba(4,4,10,0.78);
  backdrop-filter:blur(4px);
  padding:24px;
}

.modal-card{
  position:relative;
  width:100%;
  max-width:440px;
  background:#1a1830;
  border:1px solid var(--border-soft);
  border-radius:20px;
  padding:40px 36px 36px;
  box-shadow:0 30px 70px rgba(0,0,0,0.65);
  transform:translateY(14px) scale(0.97);
  transition:transform .28s ease;
}

#modalOverlay.visible .modal-card{
  transform:translateY(0) scale(1);
}

.modal-close{
  position:absolute;
  top:18px;
  right:18px;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:transparent;
  border:none;
  color:var(--text-muted);
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.modal-close:hover{
  background:rgba(255,255,255,0.08);
  color:var(--text-light);
}
.modal-close svg{width:18px;height:18px;}

.modal-logo-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:20px;
}
.modal-logo-img{
  height:32px;
  width:auto;
  flex-shrink:0;
}
.modal-logo-text{
  font-weight:700;
  font-size:18px;
  letter-spacing:0.3px;
  color:var(--gold);
}

.modal-title{
  font-weight:800;
  font-size:28px;
  letter-spacing:-0.3px;
  color:var(--text-light);
  margin-bottom:8px;
}

.modal-sub{
  font-size:14px;
  color:var(--text-muted);
  margin-bottom:28px;
}

.field-group{
  margin-bottom:18px;
}
.field-group label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--text-muted);
  margin-bottom:7px;
}
.field-group input,
.field-group textarea{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid var(--border-soft);
  background:rgba(255,255,255,0.04);
  color:var(--text-light);
  font-size:14px;
  font-family:inherit;
  outline:none;
  transition:border-color .15s ease, background .15s ease;
}
.field-group input{height:46px;}
.field-group textarea{height:90px;resize:none;line-height:1.5;}
.field-group input::placeholder,
.field-group textarea::placeholder{color:rgba(167,163,189,0.5);}
.field-group input:focus,
.field-group textarea:focus{
  border-color:var(--gold-soft);
  background:rgba(216,169,67,0.06);
}

.modal-submit{
  width:100%;
  height:50px;
  margin-top:10px;
  background:linear-gradient(135deg, var(--gold) 0%, #b8852f 100%);
  color:#1a1306;
  font-size:15px;
  font-weight:700;
  border:none;
  border-radius:12px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-family:inherit;
  transition:transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
  box-shadow:0 4px 14px rgba(216,169,67,0.25);
}
.modal-submit:hover:not(:disabled):not(.failed){
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(216,169,67,0.35);
}
.modal-submit.loading{
  opacity:0.75;
  cursor:not-allowed;
}
.modal-submit.failed{
  background:#ef4444;
  color:#ffffff;
  cursor:default;
  box-shadow:none;
}

.btn-spinner{
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid rgba(26,19,6,0.22);
  border-top-color:#1a1306;
  animation:spin .7s linear infinite;
  flex-shrink:0;
}
