/* Billionaire's Chat – cold/minimal web theme */
:root{
  --bg:#050607;
  --panel:#0b0d10;
  --panel2:#0f1216;
  --text:#f2f4f7;
  --muted:#9aa4b2;
  --border:#1b2028;
  --border2:#242b35;
  --accent:#e6e8ee;
  --danger:#ff4d4d;
  --shadow: 0 12px 50px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 24px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 50% -20%, rgba(255,255,255,.06), transparent 60%),
              radial-gradient(800px 500px at 20% 10%, rgba(255,255,255,.04), transparent 50%),
              var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; text-decoration-color: rgba(255,255,255,.35); }

.wrap{
  max-width: 1040px;
  padding: 28px 18px 72px;
  margin: 0 auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(5,6,7,.70);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner{
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 220px;
}
.brand img{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.brand .name{
  font-weight: 850;
  letter-spacing: .22em;
  font-size: 12px;
  text-transform: uppercase;
}

.nav{
  display:flex;
  gap: 10px;
  align-items:center;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.nav a{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
}
.nav a.active{
  color: var(--text);
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.nav a:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  text-decoration:none;
}

.right{
  min-width: 220px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap: 10px;
}

.lang{
  display:flex;
  align-items:center;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  overflow:hidden;
}
.lang button{
  appearance:none;
  border:0;
  background:transparent;
  color: var(--muted);
  padding: 9px 12px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor:pointer;
}
.lang button.active{
  color: var(--text);
  background: rgba(255,255,255,.08);
}

.hero{
  padding: 38px 0 18px;
}
.kicker{
  color: var(--muted);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 11px;
}
.h1{
  font-size: 42px;
  line-height: 1.05;
  margin: 14px 0 12px;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.sub{
  color: var(--muted);
  max-width: 72ch;
  font-size: 15px;
}

/* App store download CTA — prominent, touch-friendly */
.store-cta{
  margin-top: 28px;
  padding: 20px 20px 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius2);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.store-cta-title{
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--muted);
  text-align: center;
}
.store-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
}
.store-btn{
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none !important;
  font-weight: 700;
  flex: 1 1 260px;
  max-width: 320px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  border: 1px solid transparent;
}
.store-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.store-btn:active{
  transform: translateY(0);
}
.store-btn--apple{
  background: #fff;
  color: #0a0a0a;
  border-color: rgba(255,255,255,.2);
}
.store-btn--apple:hover{
  border-color: rgba(255,255,255,.35);
}
.store-btn--apple .store-btn__icon{
  color: #0a0a0a;
}
.store-btn--google{
  background: rgba(0,0,0,.55);
  color: var(--text);
  border-color: rgba(255,255,255,.14);
}
.store-btn--google:hover{
  border-color: rgba(255,255,255,.22);
  background: rgba(0,0,0,.65);
}
.store-btn__icon{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-btn__text{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}
.store-btn__small{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .75;
}
.store-btn--apple .store-btn__small{
  color: #444;
}
.store-btn--google .store-btn__small{
  color: var(--muted);
}
.store-btn__big{
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-top: 2px;
}

@media (max-width: 520px){
  .store-btn{
    flex: 1 1 100%;
    max-width: none;
    min-height: 56px;
    padding: 14px 18px;
  }
  .store-cta{
    padding: 18px 14px 20px;
  }
}

/* Device-aware store redirect page */
.download-page .topbar-inner{
  justify-content: space-between;
}
.download-page .brand,
.download-page .right{
  min-width: 0;
}
.download-wrap{
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.download-card{
  width: min(100%, 620px);
  padding: 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}
.download-icon{
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 45px rgba(0,0,0,.42);
}
.download-title{
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 900;
}
.download-status{
  min-height: 50px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}
.redirect-copy{
  display: none !important;
  margin: 0;
}
.download-card[data-platform="detecting"] .redirect-copy--detecting,
.download-card[data-platform="ios"] .redirect-copy--ios,
.download-card[data-platform="android"] .redirect-copy--android,
.download-card[data-platform="desktop"] .redirect-copy--desktop{
  display: block !important;
}
.device-check{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  margin: 2px 0 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.device-check[hidden]{
  display: none;
}
.device-check__spinner{
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.18);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: device-spin .8s linear infinite;
}
.download-store-row{
  margin-top: 2px;
}
.download-store-row .store-btn{
  min-height: 64px;
  padding: 14px 20px;
}
.download-card[data-platform="ios"] [data-store="ios"],
.download-card[data-platform="android"] [data-store="android"]{
  box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 14px 36px rgba(0,0,0,.4);
}
.download-help{
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.download-back{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@keyframes device-spin{
  to{ transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce){
  .device-check__spinner{ animation: none; }
  .store-btn{ transition: none; }
}
@media (max-width: 520px){
  .download-page .brand .name{
    font-size: 10px;
    letter-spacing: .16em;
    white-space: nowrap;
  }
  .download-wrap{
    justify-content: flex-start;
    padding-top: 28px;
    padding-bottom: 36px;
  }
  .download-card{
    padding: 30px 18px 26px;
  }
  .download-icon{
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    border-radius: 21px;
  }
  .download-status{
    min-height: 46px;
  }
}
@media (max-width: 350px){
  .download-page .brand .name{
    display: none;
  }
}

.panel{
  margin-top: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 22px;
}
.panel h2{
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 900;
}
.panel p{
  margin: 10px 0;
  color: var(--text);
}
.panel .muted{
  color: var(--muted);
}

.grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.card{
  grid-column: span 6;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 16px;
}
.card h3{
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 900;
}
.card p{ margin: 8px 0; color: var(--muted); font-size: 13px; }

ul.clean{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
ul.clean li{ margin: 6px 0; }

.footer{
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 12px;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer a{ color: var(--muted); }

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.legal h3{
  margin: 18px 0 8px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.legal p, .legal li{
  color: var(--muted);
  font-size: 13px;
}
.legal strong{ color: var(--text); }
.legal a{ text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); }

@media (max-width: 860px){
  .brand{ min-width: 0; }
  .right{ min-width: 0; }
  .h1{ font-size: 34px; }
  .card{ grid-column: span 12; }
  .nav{ justify-content:flex-start; }
}

