:root {
  --bg:#07110f;
  --panel:#0d1c19;
  --line:#1d3932;
  --text:#edf7f4;
  --muted:#91aaa3;
  --accent:#25d0a3;
  --danger:#ff8585;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(circle at 85% 0%,#12382f 0,transparent 35%),
    var(--bg);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif
}

button,input,select{font:inherit}
button{cursor:pointer}

.navbar{
  height:72px;
  padding:0 5vw;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  background:rgba(7,17,15,.94);
  position:sticky;
  top:0;
  z-index:10
}

.brand{
  color:var(--text);
  text-decoration:none;
  font-size:24px;
  font-weight:850
}

.brand span{color:var(--accent)}

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

.btn{
  border:0;
  border-radius:10px;
  padding:12px 18px;
  font-weight:800
}

.btn-primary{
  background:var(--accent);
  color:#04100d
}

.btn-outline{
  background:transparent;
  border:1px solid var(--line);
  color:var(--text)
}

.btn-large{padding:14px 22px}

main{
  max-width:1180px;
  margin:auto;
  padding:48px 5vw 60px
}

.hero{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:30px;
  align-items:center;
  min-height:450px
}

.eyebrow{
  color:var(--accent);
  font-size:11px;
  font-weight:900;
  letter-spacing:1.6px;
  margin:0 0 10px
}

h1{
  max-width:760px;
  margin:0 0 18px;
  font-size:clamp(42px,6vw,68px);
  line-height:.98;
  letter-spacing:-3px
}

h2{margin:0 0 20px}

.hero-copy{
  max-width:650px;
  color:var(--muted);
  line-height:1.7;
  font-size:17px;
  margin-bottom:26px
}

.hero-card,.card{
  background:linear-gradient(145deg,rgba(16,36,31,.96),rgba(9,24,20,.96));
  border:1px solid var(--line);
  border-radius:18px;
  padding:25px
}

.hero-card{
  min-height:210px;
  display:flex;
  flex-direction:column;
  justify-content:center
}

.hero-number{
  font-size:42px;
  font-weight:900;
  margin:8px 0
}

.muted,.small{color:var(--muted)}

.section{margin-top:15px}

.section-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  margin-bottom:16px
}

.stock-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px
}

.stock-card{
  text-align:left;
  color:var(--text);
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:15px;
  padding:19px;
  display:flex;
  flex-direction:column;
  gap:7px
}

.stock-card:hover{border-color:var(--accent)}

.ticker{
  color:var(--accent);
  font-size:11px;
  font-weight:900
}

.stock-price{
  font-size:23px;
  font-weight:850;
  margin-top:5px
}

.change{font-size:12px}
.positive{color:#69e5b6}
.negative{color:var(--danger)}

.trade-section{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:35px
}

.tabs{
  display:flex;
  gap:8px;
  margin-bottom:18px
}

.tab{
  flex:1;
  padding:11px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#081613;
  color:var(--muted);
  font-weight:800
}

.tab.active{
  color:#04100d;
  background:var(--accent);
  border-color:var(--accent)
}

.field-label{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin:15px 0 7px
}

.input{
  width:100%;
  padding:13px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#081613;
  color:var(--text);
  outline:none
}

.input:focus{border-color:var(--accent)}

.notice{
  margin-top:15px;
  padding:13px;
  border-radius:11px;
  background:#081613;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  line-height:1.55
}

.notice strong{color:var(--text)}

.summary-row{
  display:flex;
  justify-content:space-between;
  padding:13px 0;
  border-bottom:1px solid var(--line);
  color:var(--muted)
}

.summary-row strong{color:var(--text)}

.summary-row.total{
  border-bottom:0;
  padding-top:22px;
  font-size:17px
}

.summary-row.total strong{
  font-size:30px;
  color:var(--accent)
}

.payment-btn{
  width:100%;
  margin-top:12px;
  font-size:16px
}

.status{
  margin:13px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5
}

footer{
  border-top:1px solid var(--line);
  padding:25px 5vw;
  color:var(--muted);
  font-size:11px;
  line-height:1.6
}

.modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:50;
  padding:20px;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.72)
}

.modal.show{display:flex}

.modal-box{
  width:min(440px,100%);
  padding:25px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  position:relative
}

.close{
  position:absolute;
  right:14px;
  top:10px;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:26px
}

.auth-input{margin-bottom:10px}
.hidden{display:none}
.full-width{width:100%}

@media(max-width:850px){
  .hero,.trade-section{grid-template-columns:1fr}
  .stock-grid{grid-template-columns:1fr 1fr}
  .hero{min-height:auto}
}

@media(max-width:520px){
  .stock-grid{grid-template-columns:1fr}
  .navbar{padding:0 20px}
  .nav-actions .btn{padding:9px 11px}
  main{padding-left:20px;padding-right:20px}
}
